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.
@@ -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
- return File(nativeLibraryDir, libName)
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ha-frp-rn",
3
- "version": "1.0.19",
3
+ "version": "1.0.20",
4
4
  "description": "React Native FRP module for network penetration",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",