Giter Site home page Giter Site logo

Comments (5)

stackvoid avatar stackvoid commented on July 24, 2024

成为系统应用,首先要在 对应设备的 Android 源码 SDK 下编译,编译好之后:

  1. 此 Android 设备是 Debug 版本,并且已经 root,直接将此 apk 用 adb 工具 push 到 system/app 或 system/priv-app 下即可。
  2. 如果非 root 设备,需要编译后重新烧写设备镜像即可。
  3. 有些权限(如 WRITE_SECURE_SETTINGS ),是不开放给第三方应用的,只能在对应设备源码中编译然后作为系统 app 使用。

from android-discuss.

sylcrq avatar sylcrq commented on July 24, 2024

补充一点,Android 4.4 要放到 /system/priv-app/ 下:
http://stackoverflow.com/questions/19812924/how-can-system-app-located-in-system-app-have-system-permission-in-android-4-4

from android-discuss.

songyuequan avatar songyuequan commented on July 24, 2024

系统应用如何升级?

from android-discuss.

Trumeet avatar Trumeet commented on July 24, 2024

如果想要获取一些诸如WRITE_SECURE_SETTINGSSTATUS_BAR之类的权限(signature|privileged)的话,可以直接吧APK放到/system/priv-app里面,不需要框架签名(Root直接拷进去重启,比如系统插件)。
如果要拿到BRICK这类的权限(signature,话说要brick干什么,跑),就需要框架签名了,自己弄个ROM吧..

from android-discuss.

Trumeet avatar Trumeet commented on July 24, 2024

补充,带有development的权限(比如READ_LOGSWRITE_SECURE_SETTINGS)是可以使用pm grant [包名] [权限] 拿到的

from android-discuss.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.