TGD on MiPad1

Hello, I used to work TGD fine but after a automatic upgrade:

Find target process. pid:3567
Inject failed: Cannot copy path.
Find target process. pid:3567
Inject failed: Cannot copy path.

TGD v2.4.21613000
MIUI 8 7.4.13 Dev (Rooted with SuperSU)

Other tools like GPA work fine with this MiPad, and TGD work fine with my other devices :(

Hi qiankanglai,

Could you please try removing the files in /data/local/tmp/tgd/lib/ on MiPad, and try again?
Thanks.

Hi, I tried the following and reinstall debugger in TGD:

cd shell@mocha:/ $ cd /data/local/tmp/tgd/lib
shell@mocha:/data/local/tmp/tgd/lib $ ls
Injector
libAndroidGFXInjection.so
libNvPmApi.Core.so
libNvidia_gfx_debugger.so
libnvperfapi32.so
shell@mocha:/data/local/tmp/tgd/lib $ rm *
shell@mocha:/data/local/tmp/tgd/lib $ ls
shell@mocha:/data/local/tmp/tgd/lib $

And the error remains

Hi there,

Could you please provide more information?

  • android version
  • what is the output of “adb root” then “adb shell id”?
  • host operating system
  • is your app debuggable?
  • Android 4.4.4 (modified ROM by XiaoMi)
  • adb root shows nothing. ps. I can use su in adb shell
  • Windows 10 Professional x64 (14393.1066)
  • Yes. I can debug the same apk on a non-rooted device with TGD

I’m at home now and will provide more details tomorrow

Details

  • Android 4.4.4 KTU84P
  • uid=2000(shell) gid=2000(shell) groups=1003(graphics),1004(input),1007(log),1011(adb),1015(sdcard_rw),1028(sdcard_r),3001(net_bt_admin),3002(net_bt),3003(inet),3006(net_bw_stats) context=u:r:shell:s0

Hi,
Thanks for the details. We will be investigating this issue.
Another thing to note, TGD doesn’t consider the device as rooted if you’re using su rooting method. “uid=2000(shell) gid=2000(shell)” is considered as non-rooted, while “uid=0(root) gid=0(root)” is rooted.

Hello, any update?

I found a interesting thing:

C:\Users\Anthony>adb shell su
root@mocha:/ # id
id
uid=0(root) gid=0(root) context=u:r:init:s0

but adb root+adb shell id getting uid=2000(shell)

Hi,

The “Inject failed” issue is fixed in the next release version.

As I replied in my last post, TGD uses adb root+adb shell id to check device root permission, in your case, device is considered as non-rooted.

Hi:
I have exactly the same problem. When will you guys release the next version?
Though I have GPA, or Snapdragon Profiler to use. But TGD is my favorite tool for profiling. So please fix this and release it as soon as possible. I’ll appreciate for that.

Hi gsymost,
Sorry, the exact date of next release is not confirmed yet, but I think it should be in the coming weeks.

Thank you for reply. I know you guys have your schedule for release date.
But I notice that you release TGD every six month.
If so, it’s a long time for me. So I wonder if there is a temporary way for me to work on it.
Thanks.

I found a tool to resolve this: [2014.11.10][ROOT] adbd Insecure v2.00 | XDA Forums
(For those who have rooted but got wrong adb shell id)