简体   繁体   English

如何通过以system-uid运行的应用程序获得root特权?

[英]How to do I obtain root privilege by an app running as system-uid?

I've set sharedUserId as "android.ui.system" in manifest and gotten it to run as system(uid), so now the apk has system privileges. 我在清单中将sharedUserId设置为“ android.ui.system”,并使其以system(uid)身份运行,因此现在apk具有系统特权。

What should I do if I want to obtain root privilege on Android devices if the Android devices haven't been rooted yet (ie, there is no su)? 如果尚未植根Android设备(即没有su),我想在Android设备上获得root特权,该怎么办?

Though you have added System userId in the manifest file, the root access is not granded. 尽管您已在清单文件中添加了系统userId,但根访问权限不是必需的。 There are additional checks like Signature match check. 还有其他检查,例如签名匹配检查。

Here's a link ... 这是一个链接 ...

You should be able to easily achieve root privilege by implementing the code from that link. 通过实现该链接中的代码,您应该能够轻松获得root特权。

Thanks to Muzikant for the blog. 感谢Muzikant的博客。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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