如果我把我的Andr​​oid应用程序到系统的应用程序,恢复出厂设置后,将它从手机中删除?应用程序、我的、我把、将它

2023-09-04 02:58:47 作者:正宗二货,如假包换

我创建一个企业应用程序,我需要保持它即使在恢复出厂设置已被用户执行的手机上。

I'm creating a corporate app, and I need to keep it on the phone even after a factory reset has been executed by user.

如果我把我的Andr​​oid应用程序到系统的应用程序,恢复出厂设置后,将它从手机中删除?

If I set my android app to a system app, after a factory reset, will it be removed from the phone?

如果这不是一个可能性,那我该怎么办?

If it's not a possibility, then what can I do?

谢谢...

推荐答案

我不知道,这将工作或没有,但你可以试试。该方法需要根设备。如果乌拉圭回合手机的根源并非是那么这种方法是行不通的。 好吧首先把你的应用程序在系统/私法-app文件夹。这是所有系统的apk的存储位置。当恢复出厂设置发生的那么Android系统加载的所有系统的apk从私法-app文件夹,然后重新创建自己的ODEX文件。所以,如果您的APK文件是此文件夹中则可能是您的文件将会与系统的apk但你的previous数据都将丢失安装的变化。还有一件事,当你把你的apk文件夹中,那么你必须改变的apk的权限,0644否则将无法安装APK。

I am not sure that this will work or not but you can try . This method requires a rooted device. If ur phone is not rooted then this method will not work. Ok firstly put your app in System/priv-app folder .This is place where all system apk's are stored. When factory reset happen's then the android system loads all the system apk's from the priv-app folder and again creates their odex files . So if your apk file is in this folder then there might be a change that your file will be installed with the system apks but your previous data will be lost. And one more thing when you put your apk in that folder then you must change the permission of the apk to 0644 otherwise it will not install the apk.