WSA-Community / WSAGAScript

Scripts to install Google Apps into a WSA image. Plus optional root
The Unlicense
3.58k stars 3.53k forks source link

Question: What Root Access Manager should I use? #62

Open infinity-plus opened 3 years ago

infinity-plus commented 3 years ago

Hey, thank you so much for providing GApps and root support in WSA so early in the game. We are really grateful.

I wonder, is there a way to use a Root manager app so we can use root outside the ADB shell. I tried SuperSU by Chainfire and it says Supersu: SU binary occupied.

If it is not possible to use the root access manager app, how can I grant certain apps, root access via ADB?

yujincheng08 commented 3 years ago

Why not use Magisk: https://github.com/LSPosed/MagiskOnWSA

infinity-plus commented 3 years ago

I will be reinstalling WSA for that. Sure, it is possible and convenient, but looking for some SU apps that I can use without losing my currently installed apps on WSA.

(Maybe I will just use ADB backup, welp :/)

yujincheng08 commented 3 years ago

just simply replace img files

Ryder-99 commented 3 years ago

Also, just as a side note, without a root manager all apps are automatically granted su rights when requested. You may test this behaviour with any root checker or other root apps. While this may be unsafe, you'll be fine as long as you only install trusted apps.

yujincheng08 commented 3 years ago

Of course. KernelSU is written (modified) by me and it's just for testing...

kristibektashi commented 3 years ago

SuperSU doesn't work with WindowsAndroid 11, sadly

Kevin8675 commented 3 years ago

just simply replace img files

Which img files do I replace?

Edit: Figured it out! Download the artifact and replace the product, system, system_ext, and vendor images. Then replace the kernel (if you rooted it with kernel).