简体   繁体   中英

Running Xamarin code as root on Android

I am developing an app with Xamarin.Android. I want to process files in the /system partition of a device, so I need root access. Is there any way I can run C# or C++ code as root, given that the target device is rooted with SU present?

EDIT: I successfully compiled C/++ code for ARM and I executed it using a root shell. This gave it full SU access. The question about running C# code as root still remains though.

This link might help you. It helped me.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM