gpt4 book ai didi

android - manifest中的original-package有什么用

转载 作者:太空狗 更新时间:2023-10-29 14:53:25 26 4
gpt4 key购买 nike

有人知道 list 中 original-package 的确切用途是什么吗?

我刚从 manifest attr 收到以下评论关联。但是不知道怎么用,具体什么时候用?

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.

有知道的请详细说明一下吗?

最佳答案

来自文档:

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.

Eg:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.deskclock"
android:versionCode="301" android:versionName="3.0.0">

<original-package android:name="com.android.alarmclock" />
<original-package android:name="com.android.deskclock" />

关于android - manifest中的original-package有什么用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33422152/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com