[英]Can an Android app in /system/app write into /system on unrooted device?
I'm developing an app that will be included in the ROM of a phone vendor's new product. 我正在开发一个应用程序,该应用程序将包含在电话供应商的新产品的ROM中。 So this is the situation I'm facing:
所以这是我面临的情况:
My question is, can my app somehow write into the /system folder? 我的问题是,我的应用程序可以以某种方式写入/ system文件夹吗? I know the system partition is usually read-only.
我知道系统分区通常是只读的。 Is it possible for my app to remount the system partition as read-write, write into it, and turn it back to read-only?
我的应用程序是否可以将系统分区重新安装为可读写,可写并重新回到只读状态?
This guy managed to achieve it by using su permissions. 这个家伙设法通过使用su权限来实现。 I presume you will be developing an an app with signatureOrSystem permissions, I believe the permissions are similar to root but not 100%.
我想您将开发一个具有signatureOrSystem权限的应用程序,我相信这些权限与root相似,但不是100%。 It is hard to find out what exactly you can and can't do with signatureOrSystem permissions so I think this will be a trial and error exercise for you.
很难找到您可以使用signatureOrSystem权限究竟能做什么和不能做什么,因此我认为这对您来说是一个反复试验的练习。 My guess is that it will work with a remount.
我的猜测是它将重新安装。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.