remote-android / redroid-doc

redroid (Remote-Android) is a multi-arch, GPU enabled, Android in Cloud solution. Track issues / docs here
4.23k stars 303 forks source link

root prohibited apps throws error #416

Open daraHK88 opened 1 year ago

daraHK88 commented 1 year ago

some apps require non root devices. I installed supersu and root checker but they say your device is not rooted. yet those applications throw error that your device is rooted

if you can add another env to disable root completely it would be nice

I realize that in adb shell i have su access and id will return root id. but device is not rooted nor non rooted at the same time

is there any solution for this at the moment to unroot the redroid?

by the way you have done a great job and thank you for your efforts to build such an amazing emulator

zhouziyang commented 1 year ago

Apps may check several characters about running environment (su, ro.build.fingerprint etc.). The published redroid image is built as userdebug (bundle su by default).

Regarding to your questions, the easiest way is trying to extract the system partition (docker save redroid/redroid-xxx -o xxx.tar), then remove system/xbin/su, then bind mount this new system partition (docker run -v <path-to-system-dir>:/system ... redroid/redroid-xxx ...).

daraHK88 commented 1 year ago

thank you for your attention. I did what you said and now in adb shell su will no longer works. but i still when i use id command it returns root. and those apps still not working. I will do a research about "ro.build.fingerprint" also. the only emulator that works fine for those apps is BlueStacks. is there any way to build such an image that doesn't have any debug feature or root access? in BlueStacks I turn on the developer mode and adb but still those apps are working fine. thank you in advance for any tips on how to solve this problem

justficks commented 10 months ago

Hello,

I just wanted to mention that I am also experiencing the same issue as described in this thread. Any updates or solutions regarding this would be greatly appreciated.

Thank you for your efforts in resolving this.