【问题标题】:Signature level protection not working签名级别保护不起作用
【发布时间】:2011-04-01 20:46:11
【问题描述】:

我正在使用证书 C1 签署我的 service.apk,使用证书 C2 签署我的 activity.apk,并且我已放入服务的清单文件

e<manifest xmlns:android="http://schemas.android.com/apk/res/android"
  package="yo.myservice"
  android:versionCode="1"
  android:protectionLevel="signature"
  android:versionName="1.0">
<application android:icon="@drawable/icon"
 android:protectionLevel="signature"     
 android:label="@string/app_name">
    <service android:name=".yoService">
        <intent-filter>
            <action android:name="yo.myservice.yoService" />
        </intent-filter>        
    </service>
</application>

但我仍然看到该活动能够绑定到服务并调用其功能。

根据Android Security 提到的内容,我的理解是,除非由相同的证书签名,否则活动将无法访问服务。我在 Android 平台 2.2 上。

有人可以告诉我哪里做错了吗?

【问题讨论】:

    标签: android permissions manifest apk signature


    【解决方案1】:

    android:protectionLevel&lt;permission&gt; 的有效属性。你在&lt;manifest&gt;&lt;application&gt; 上都有它,它对这两个都无效。

    【讨论】:

    猜你喜欢
    • 2012-12-30
    • 2014-02-21
    • 2011-03-31
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多