【发布时间】: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