Android应用程序获取系统权限

http://hi.baidu.com/donghaozheng/blog/item/30a00d4f9fca873baec3ab69.html

The only way I know to grant system-level permissions to android apps
(right now) is to install them to /system/app.  Suppose you have an
installer program named my-installer.apk that you wish to give the
INSTALL_PACKAGES permission.  You need to declare that permission in
the manifest, and then:
adb push my-installer.apk /system/app

http://groups.google.com/group/android-developers/browse_thread/thread/23a94989d964d7fd

http://blog.csdn.net/zengyangtech/article/details/5749999


guillaume.leterr ...@teleca.com> wrote:
> "A permission that the system is to grant only to packages in the
> Android system image or that are signed with the same certificates."

> Could someone really clarify what is called the "system image". Could
> someone list or clarify what encompasses the term system image for
> this protection? Is it only packages that are located under directory /
> system/  or more?

It's the .apks under /system/app.
> The Framework core package is installed under /System/,

Fwiw, this is irrelevant.
> and  /frameworks/base/core/res/AndroidManifest.xml  includes API that
> are either protected by signature or SignatureorSystem.

> So, for the framework protected APIs, a Signature and
> SignatureorSystem protection make no protection difference?

Huh?  It means what it says: for someone to be granted the permission, they
must either be signed with the same certificate as the one who declared the
permission (in this case the framework in the path you supply, which is
signed with the core platform certificate), or they must be installed in the
system image.

http://groups.google.com/group/android-security-discuss/browse_thread/thread/acfe52ee02e8cc0b

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值