Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
cczhr committed Oct 20, 2021
1 parent 7520ff9 commit fa16a79
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Binary file modified app/src/main/assets/bin/usbmuxd
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class HotPlugTools {
for(device in mUsbManager.deviceList.values ){
if (device?.vendorId == VID_APPLE) {
checkPermission(device)
break

}
}
context.registerReceiver(mUsbReceiver, usbDeviceStateFilter)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,12 @@ class IMobileDeviceTools {
if (isKilling)
return@execute
killUsbmuxd(deviceNode)
SystemClock.sleep(1000L)
process = Runtime.getRuntime().exec("su", arrayOf("LD_LIBRARY_PATH=$saveFilePath"))
successResult = BufferedReader(InputStreamReader(process!!.inputStream))
errorResult = BufferedReader(InputStreamReader(process!!.errorStream))
os = DataOutputStream(process!!.outputStream)
os?.write(".$saveFilePath/usbmuxd -v -f ".toByteArray())//--pidfile NONE --usbfd $fd
os?.write(".$saveFilePath/usbmuxd -v -f --pidfile NONE --usbfd $fd ".toByteArray())//--pidfile NONE --usbfd $fd --usbfd $fd
os?.writeBytes("\n")
os?.flush()
os?.close()
Expand Down

0 comments on commit fa16a79

Please sign in to comment.