如何注册与系统签名的Andr​​oid应用程序? [英] How to sign Android app with system signature?

查看:146
本文介绍了如何注册与系统签名的Andr​​oid应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经下载并编制了Android 2.1版本 signed-google_ion-ota-14721.zip 图片我的HTC手机。编译成功完成,因此系统的图像闪烁。 我如何注册自己的Andr​​oid应用程序与系统的签名?

I've downloaded and compiled Android 2.1 version with signed-google_ion-ota-14721.zip image for my HTC phone. The compile completed successfully and so the system image flash. How can I sign my own Android application with the system signature?

有人可以描述整个过程签署与系统签名的用户应用程序,因为我完全新的签名过程。

Can someone describe the whole process for signing a user application with system signature as I am completely new to the signing process.

推荐答案

最后,我设法找到一种方式让我签字的平台签名应用。您需要使用位于&LT键;根的,Android的源代码树> /编译/目标/产品/安全/ 并添加安卓:sharedUserId =android.uid.system在AndroidManifest.xml文件。

Finally I managed to discover a way to sign my application with the platform signature. You need to use keys located in <root-of-android-source-tree>/build/target/product/security/ and add android:sharedUserId="android.uid.system" in your AndroidManifest.xml file.

详情这个谷歌组线程

在与生成的证书签名的Andr​​oid 1.6的梦想之上   我自己,我也设法让我签字与平台证书应用   和与系统sharedUserId运行它。这是我采取的步骤:

On top of signing Android 1.6 for Dream with certificates generated by myself, I've also managed to sign my app with the platform certificate and run it with the system sharedUserId. These are the steps I took:

      
  • 生成并闪到你的梦想你自己的Andr​​oid使用<一个href="http://source.android.com/documentation/building-for-dream">http://source.android.com/documentation/building-for-dream.使用   mkkey.sh脚本上   <一href="http://pdk.android.com/online-pdk/guide/release_keys.html">http://pdk.android.com/online-pdk/guide/release_keys.html创造   新的证书,包括X509证书在此之前化妆。
  •   
  • 的Andr​​oidManifest.xml 您的应用程序在:在&LT下,舱单&GT; 元素中,添加属性机器人:sharedUserId =android.uid.system
  •   
  • 在使用Eclipse导出你的Andr​​oid应用程序的签名版本:在项目上单击右键>>安卓工具>>出口   未签名的应用程序包。
  •   
  • 使用&LT;根的,Android的源代码树&GT;输入/输出/主机/&lt;您的主机&GT; /framework/signapk.jar 来在&LT签署使用 platform.x509.pem platform.pk8 您的应用程序;根 - 即用Android的源代码树&GT; /编译/目标/产品/安全   早些时候生成的:

  • Build and flash to your Dream your own Android using http://source.android.com/documentation/building-for-dream. Use the mkkey.sh script on http://pdk.android.com/online-pdk/guide/release_keys.html to create new certificates, including x509 certificates before you do 'make'.
  • In the AndroidManifest.xml of your application: under the <manifest> element, add the attribute android:sharedUserId="android.uid.system".
  • Export an unsigned version of your Android application using Eclipse: right-click on the project >> Android Tools >> Export Unsigned Application Package.
  • Use <root-of-android-source-tree>/out/host/<your-host>/framework/signapk.jar to sign your app using platform.x509.pem and platform.pk8 in <root-of-android-source-tree>/build/target/product/security generated earlier:

java -jar signapk.jar platform.x509.pem platform.pk8 YourApp-unsigned.apk YourApp-signed.apk.

  

  • 安装应用程序到您的设备:

  • Install the app to your device:

    adb install YourApp-signed.apk
    

  •   
  • 运行你的应用程序
  •   
  • 使用亚行外壳PS 来确认您的应用程序正在运行的系统。
  •   

  • Run your app
  • Use adb shell ps to confirm that your app is running as system.
  • 这篇关于如何注册与系统签名的Andr​​oid应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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