将我的android应用程序签名为系统应用程序 [英] Signing my android application as system app

查看:205
本文介绍了将我的android应用程序签名为系统应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的公司中,我们希望对现场的电池消耗进行全面控制,仅使用2g电池和gps可能会很快耗尽电池电量.我们决定要拥有对手机的root访问权限,以便在手机空闲时关闭那些不必要的电池消耗. 而且我们也不允许用户卸载它并清除其中的数据.

In my company, we would want total control for battery consumption in the field, using only 2g and gps could drain the battery awfully fast. What we decided is that we need to have root access to the mobile phone, So that when phone is idle, we would turn off those needless battery consumption. And also we would not allow users to uninstall it and clear data to it.

我的问题是:

  1. 我从哪里获得这些签名密钥?
  2. 它是否会成为root用户访问权限,如果我成功完成了 签名吗?
  3. 根"与用密钥签名"有什么区别?
  1. Where do I get these signature key?
  2. Is it going to like a root access If ever I successfully managed to sign it?
  3. What is the difference between Root vs Signed with key?

推荐答案

下面是您的答案,

  1. 您可以从以下位置找到平台密钥 此处.对apk进行签名的命令(对于Linux)是:

  1. You can find platform keys from HERE. The command to sign apk (for linux) is:

java -jar signapk.jar -w platform.x509.pem platform.pk8 APPLICATION.apk APPLICATION_sign.apk

如果您使用平台密钥对apk进行签名,则不需要root访问权限,您只需从"adb install"命令安装它,是的,在某种程度上,它就像root'cos,它可以访问所有内部api,但是请记住,如果您的应用是系统签名的,那么您将无法编写外部存储.

If you sign your apk with platform keys you won't required root access you can simply install it from "adb install" command, and yes in someway it is like root 'cos it can access all internal api but keep in mind if your app is system signed then you can't write external storage.

首先不要同时将root用户和系统应用程序作为应用程序类型的用户组合在一起,这与下面的链接与普通应用程序有所区别,这可能会清除您对此的困惑.

First of all don't combine both root is user where system app is application type which distinguish from normal application below link might clear your confusion regarding it.

查看全文

登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆