我使用apktool在Jelly Bean上提取默认浏览器的清单,这行显示在清单中 -
<manifest ... package="com.google.android.browser">
<original-package android:name="com.android.browser" />
...
</manifest>
知道这是用来做什么的吗?
答案 0 :(得分:17)
在android / platform_frameworks_base源代码中查看attrs_manifest.xml:
<!-- Private tag to declare the original package name that this package is
based on. Only used for packages installed in the system image. If
given, and different than the actual package name, and the given
original package was previously installed on the device but the new
one was not, then the data for the old one will be renamed to be
for the new package.
<p>This appears as a child tag of the root
{@link #AndroidManifest manifest} tag. -->
<declare-styleable name="AndroidManifestOriginalPackage" parent="AndroidManifest">
<attr name="name" />
</declare-styleable>
评论应该回答你的问题。
答案 1 :(得分:0)
我相信当userID未与任何其他包共享时,会使用原始包AndroidManifest属性