简体   繁体   English

/ system / app中的Android应用程序可以在无根设备上写入/ system吗?

[英]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 app resides in /system/app; 我的应用程序位于/ system / app;
  • but the device is NOT rooted. 但设备未植根。

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.

相关问题 Android应用程序可以修改设备的音频系统吗? - Can an Android app modify the audio system of the device? Android应用程序可以将自身复制到有根设备上的系统目录中吗? - Can an Android app copy itself to the system directory on a rooted device? 如何在没有root设备的情况下在system / app目录中安装android应用程序,以便用户无法卸载该应用程序 - How to install android app in system/app directory without rooted device so that user can not uninstall that app 如何在Android中写入系统/应用程序的权限 - How to Write Permission to System/app in Android 未经电话的电话和电话API使用的Android应用程序 - Android app in unrooted phone and telephony API usage 如何在不root设备的情况下将应用转换为android +5.0中的系统应用? - How to convert an app to be a system app in android +5.0 without rooting the device? 无法在模拟器上将Android App安装为系统应用程序,从而无法通过WRITE_APN_SETTINGS的SecurityException - Can't get Android App installed as System App on emulator to get past SecurityException for WRITE_APN_SETTINGS unrooted设备的Android应用程序的默认数据库位置是什么? 是否与root用户相同? - What is the default database location of an android app for an unrooted device?? Is it same as for rooted one? 使系统应用程序成为Android - Make a system app Android Android系统应用程式转换 - Android system app conversion
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM