Chinaunix首页 | 论坛 | 博客
  • 博客访问: 404413
  • 博文数量: 120
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 741
  • 用 户 组: 普通用户
  • 注册时间: 2014-03-27 18:15
文章分类

全部博文(120)

文章存档

2016年(13)

2015年(41)

2014年(66)

我的朋友

分类: Android平台

2014-12-08 16:32:22

  • In the AndroidManifest.xml of your application: under the 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 /out/host//framework/signapk.jar to sign your app using platform.x509.pem and platform.pk8 in /build/target/product/security generated earlier:

点击(此处)折叠或打开

  1. java -jar signapk.jar platform.x509.pem platform.pk8 YourApp-unsigned.apk YourApp-signed.apk.
  • Install the app to your device:
    

点击(此处)折叠或打开

  1. adb install YourApp-signed.apk


  • Run your app
  • Use adb shell ps to confirm that your app is running as system.
阅读(1021) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~