How to grant root access to apk on DART-MX8M-MINI with Android Q-10.0.0_r14?

cancel
Showing results for 
Search instead for 
Did you mean: 

How to grant root access to apk on DART-MX8M-MINI with Android Q-10.0.0_r14?

184 Views
wolfg
Contributor I

Hi all,

I am struggling to grant root access to apps on my fresh android userdebug-build, following this instruction:
https://variwiki.com/index.php?title=Android_NXP_Guide&release=RELEASE_Q10.0.0_1.0.0_GA_DART-MX8M-MI...

As it is a userdebug build, I have no troubles to get root access via adb. But my boss wants me to grant root access on this developer board for a certain apk.

I tried already to patch the boot.img with magisk official and canary-build and flashed the patched images successfully via fastboot. But still no luck.

I think, there must be a way to include the su package somehow into the system img, to get root access for all installed apps. Do you have an idea?

Also any other hint would be great.

Thank you so much!

0 Kudos
1 Reply

171 Views
nxf65025
NXP Employee
NXP Employee

Hi wolfg,

 

I think the way is to add sepolicy file to give app permission.

https://source.android.google.cn/security/selinux/build?hl=zh-cn 

 

Best Regards

Zhiming