2012-08-22 9 views
16

私はジェリービーンのデフォルトブラウザのマニフェストを抽出するためにapktoolを使用して、この行は、このために使用されているものmanifest--元のパッケージのAndroidManifest属性は何のために使用されていますか?

<manifest ... package="com.google.android.browser"> 
    <original-package android:name="com.android.browser" /> 
    ... 
    </manifest> 

任意のアイデアに登場しましたか?私は、元のパッケージAndroidManifest属性が使用されていると信じて

答えて

17

アンドロイド/ 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> 

コメントはあなたに答える必要があります質問。

+2

と、これに対する実際の使用例は何ですか? – kreker

+0

ええ、これは現実世界でどのように役立つでしょうか?元のAPKを新しいものに置き換えることは... settingsパッケージのplatform_packages_apps_settingsのようなものでしょうか? –

0

ユーザーIDは、他のパッケージと共有されていないとき

+0

userIDとは、Linuxユーザー空間を意味しますか?もしそうなら、それはどのように他のパッケージと共有されるでしょうか? –

関連する問題