ha-frp-rn 1.0.19 → 1.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/src/main/java/io/github/acedroidx/frp/ShellService.kt +18 -1
- package/package.json +1 -1
- /package/{jniLibs → android/src/main/jniLibs}/arm64-v8a/libfrpc.so +0 -0
- /package/{jniLibs → android/src/main/jniLibs}/arm64-v8a/libfrps.so +0 -0
- /package/{jniLibs → android/src/main/jniLibs}/armeabi-v7a/libfrpc.so +0 -0
- /package/{jniLibs → android/src/main/jniLibs}/armeabi-v7a/libfrps.so +0 -0
|
@@ -186,12 +186,29 @@ class ShellService(private val context: Context) {
|
|
|
186
186
|
android.content.pm.PackageManager.GET_SHARED_LIBRARY_FILES
|
|
187
187
|
)
|
|
188
188
|
val nativeLibraryDir = File(applicationInfo.nativeLibraryDir)
|
|
189
|
+
|
|
190
|
+
// ✅ 添加调试信息
|
|
191
|
+
Log.i(TAG, "=== Native Library Debug Info ===")
|
|
192
|
+
Log.i(TAG, "Package name: ${context.packageName}")
|
|
193
|
+
Log.i(TAG, "Native library directory: ${nativeLibraryDir.absolutePath}")
|
|
194
|
+
Log.i(TAG, "Directory exists: ${nativeLibraryDir.exists()}")
|
|
195
|
+
if (nativeLibraryDir.exists()) {
|
|
196
|
+
Log.i(TAG, "Directory files: ${nativeLibraryDir.listFiles()?.joinToString(", ") { it.name }}")
|
|
197
|
+
}
|
|
198
|
+
|
|
189
199
|
val libName = when (binaryName) {
|
|
190
200
|
"frpc" -> "libfrpc.so"
|
|
191
201
|
"frps" -> "libfrps.so"
|
|
192
202
|
else -> throw IllegalArgumentException("Unknown binary: $binaryName")
|
|
193
203
|
}
|
|
194
|
-
|
|
204
|
+
|
|
205
|
+
val binaryFile = File(nativeLibraryDir, libName)
|
|
206
|
+
Log.i(TAG, "Looking for binary: ${binaryFile.absolutePath}")
|
|
207
|
+
Log.i(TAG, "Binary file exists: ${binaryFile.exists()}")
|
|
208
|
+
Log.i(TAG, "Binary file can execute: ${binaryFile.canExecute()}")
|
|
209
|
+
Log.i(TAG, "===================================")
|
|
210
|
+
|
|
211
|
+
return binaryFile
|
|
195
212
|
}
|
|
196
213
|
|
|
197
214
|
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|