I’ve been using TGD with debuggable apps for a while, but I also want to profile non-debuggable builds. As I’ve searched this forum, it turned out that TGD checks for the “rooted” device by checking “adb root, adb shell id” so I have spent quite some time on making it work (and it finally does).
However, TGD still can’t launch the process as it fails at start (apps just crash)
Starting ADB server, please wait... Scanning for devices... Device Product Model: SHIELD Tablet Detected current device is running Android N Located 32-bit driver libraries in /vendor/lib/egl/ Waiting for the device to become available Checking If adbd has root permission Waiting for the device to become available. Rooted device Setting SELinux policy to permissive. SELinux policy successfully changed to permissive. Querying instrumentation property. Checking debugger status... Host supports 32-bit graphics debugging Graphics debugger is enabled. Scan for devices complete. ABI: armeabi-v7a Unsetting property wrap.com.myAwesomeAppBundleIdHere Launching com.myAwesomeAppBundleIdHere/LaunchActivity Scanning process... Injecting debugger... Debugger injection failed Can't find process
As you can see, it sees the device as rooted, tries to launch some app, but it crashes instantly and TGD can’t find the process anymore (I have replaced bundle id and activity name)