agi icon indicating copy to clipboard operation
agi copied to clipboard

No device can be found by AGI and GAPIS, but they are detected by adb

Open detzt opened this issue 2 years ago • 0 comments

Environment information:

  • AGI version: 2023-3.3.0:55d96149deb160d0214d73d0e70cb5c799d97416
  • Host OS: Windows 10 If tracing on Android:
  • Device model: OnePlus 10 Pro
  • Android Version: 13
  • Device model: ZTE Blade A51
  • Android Version: 11

Bug description I'm trying the run a GPU profiler for my Unity project. The two devices listed above (OnePlus 10 Pro and ZTE Blade A51) show up reliably in the Unity Editor (e.g. for the Profiler there) and also when running adb devices. However, they do not show up in AGI and are also not found when running gapit devices.

Note: The GAPID-arm64v8a app shows up in the list of all installed apps.

Reproduction steps Connect phone with enabled USB debugging and try to use it within AGI.

Stacktrace

Here's an excerpt from logcat-full.txt that seems related:

12-03 20:52:15.762  3015  7439 W ziparchive: Unable to open '/data/app/~~-wT5pxwzxtAdXNsX0RU6Hg==/com.google.android.gapid.arm64v8a-fpr8bnd50rd9fDWrPMA-pQ==/base.dm': No such file or directory
12-03 20:52:15.822  1664  1664 D [email protected]: getPsyUsbType type: USB, ret_value = 3
12-03 20:52:15.822  1664  1664 D [email protected]: getPsyUsbType type: USB is usb charging.
12-03 20:52:15.840  7825  9758 E Battery : ChargeProtectionUtils: mCanlendarTmp.isEmpty()!
12-03 20:52:15.840  7689  7689 E VendorNfcService: changeNfcStateByWirelessCharge: feature WIRELESS_CHARGING = true; mIsWirelessCharging: false; mIsReverseChargingSwitchOpen: false; mNfcWorkMode: 0; isOverSeaRegion() = true
12-03 20:52:15.909  3015  8188 I ActivityManager: Force stopping com.google.android.gapid.arm64v8a appid=10350 user=0: from pid 15356
12-03 20:52:15.921  3015  3015 D DistributedDeviceService: android.intent.action.PACKAGE_RESTARTED
12-03 20:52:15.925  5122  5122 D CarrierSvcBindHelper: onHandleForceStop: [com.google.android.gapid.arm64v8a]
12-03 20:52:15.925  5122  5122 D CarrierSvcBindHelper: No carrier app for: 0
12-03 20:52:15.925  5122  5122 D CarrierSvcBindHelper: No carrier app for: 1

Screenshots If applicable, add screenshots to help explain your problem.

Additional debugging information

  • Please attach the generated gapis.log and gapic.log files you will find in the temp folder (e.g. /tmp/ on linux).
  • If using Android: Please attach a full logcat dump (adb logcat -d > logcat-full.txt) that contains logs since AGI was started.

gapic.log gapis.log logcat-full.txt

Edit: Just tested also with OnePlus 5T running Android 10. Same result but different logcat: logcat-5T.txt

detzt avatar Dec 03 '23 20:12 detzt