How to get root android9

Hi guys, i need a help

now my android application need “su” command

but when i use that in my application show me “su” permission denied

so now im try building source code

i dont know how to grant root permission

can i get root permission in building source code?

if can not do that

have another idea?

Did you tried to root using the traditional way used on phones?
I don’t know if it works on VIM3 but maybe you could have a look on there:

What’s the version of your system? The ROM VIM3_Pie_V200103 has root permission. You can have a try. Thanks!

1 Like

Im not try like that

But i want make root Rom

Thank you ill try if i can not get root in building os

Now im trying VIM3_Pie_V200103

when i use ‘su’ in android programally

It show like below in android studio logcat

avc: denied { execute } for name=“su” dev=“mmcblk0p18” ino=2098 scontext=u:r:untrusted_app:s0:c59,c256,c512,c768 tcontext=u:object_r:su_exec:s0 tclass=file permissive=1

@mo123

it uses Magisk Manager with edge v and android 9 and why not use it with vim 3.

Amlogic devices don’t have official support for Magisk like Rockchip devices.
You might still be able to use Magisk on Vim3 but it will be more complicated to setup.
On another Amlogic device I have, you first need to use root included in the firmware to be able to get Magisk working to make it the default root method.

1 Like

I used it