简体   繁体   English

使系统应用程序成为Android

[英]Make a system app Android

I'm coding an Android Application to activate the Warranty of my Company's Phone automatically 我正在编码一个Android应用程序以自动激活公司电话的保修

  • Bootupreceiver : Call Khoidong.java Service when Phone Boot Up Bootupreceiver:电话启动时调用Khoidong.java服务
  • Khoidong.java service: Send data (Imei, Model) to my Server Khoidong.java服务:将数据(Imei,模型)发送到我的服务器

Everything works ok. 一切正常。 (User App) I want to make it to system app for factory reset it still there (用户应用)我想将其设置为系统应用,以便将其恢复出厂设置

I sent my APK to the manufacturer and asked they to add my apt to system/app 我将APK发送给制造商,并要求他们将我的apt添加到系统/应用中

They sent my a firmware that included my apt in system app. 他们向我发送了一个固件,其中包含我在系统应用中的apt。 But it don't work. 但这不起作用。

I try to copy my apk myself to system/app. 我尝试将自己的apk复制到系统/应用程序。 it works fine when I restart. 重新启动时,它工作正常。 But when I factory reset the phone, the phone boots up, my app force closes. 但是,当我将手机恢复出厂设置时,手机会启动,我的应用程序强制关闭。

Can anyone help me please. 谁能帮我。

System apps are baked into the ROM image, and signed with the same key the ROM was signed with, giving them extra access to the system. 系统应用程序被烘焙到ROM映像中,并使用与ROM签名相同的密钥进行签名,从而赋予了他们对系统的额外访问权限。

You cannot add a new system app on the same level without updating the ROM image of the device, and even then you'll need the OEM key to sign your app and you will have to request them to include it in their ROM. 您不能在不更新设备的ROM映像的情况下在同一级别上添加新的系统应用程序,即使那样,您仍需要OEM密钥来对您的应用程序进行签名,并且您必须要求他们将其包括在其ROM中。

Having a rooted device allows standard apps to gain extra access without being system apps. 具有根目录的设备使标准应用程序无需系统即可获得额外的访问权限。

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

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