pm install: install a single legacy package
legacy
, 意思有新的技术 /方式来代替了?不是 APK 了吗? 1
AoEiuV020 2021-07-01 16:52:55 +08:00
我咋没看到 legacy,说起新包,难道 pm 支持安装 aab ?
|
2
JinTianYi456 OP @AoEiuV020 我是说它 usage 里用到了 legacy 这个词
|
3
AoEiuV020 2021-07-01 17:21:01 +08:00
@JinTianYi456 还是没有找到,你手机是什么版本的?
|
4
mxT52CRuqR6o5 2021-07-01 18:41:23 +08:00 via Android
可能是指 app bundle ?
|
6
Jirajine 2021-07-01 18:58:21 +08:00 via Android
|
8
AoEiuV020 2021-07-01 18:58:34 +08:00 via Android 1
@also24 找到了,旧版本安卓命令行调用 pm 时打印的 usage 里有这行,
因为几年前就有这句话所以应该不是指 aab 和 apk 的新旧, |
9
also24 2021-07-01 19:08:26 +08:00
|
10
also24 2021-07-01 19:13:38 +08:00 1
顺藤摸瓜,找了一下这段代码的提交记录:
看一下 commit 就知道了: Extend pm to support sessions and split APKs. 可见,确实是在加入 split APKs 支持时,将 apk 称为了 legacy package https://android.googlesource.com/platform/frameworks/base/+/ec55ef0934b8e0d1bb705434947de817f7be57f1%5E%21/cmds/pm/src/com/android/commands/pm/Pm.java |
11
Xusually 2021-07-01 21:25:39 +08:00
迎接 AAB 吧。
TL;DR Starting in August 2021, Google will require all new Android APKs to land on the Play Store as App Bundles instead. This will invariably result in smaller file sizes and other boons for the end-user. However, it will also require app developers to push out APK versions of their apps to other non-Play Store channels, as they won’t support App Bundles. https://www.androidauthority.com/android-apks-sunset-1636829/ |
12
JinTianYi456 OP @also24 #9 新的 pm 已经转到`cmd package`了,看起来是在 https://android.googlesource.com/platform/frameworks/native/+/refs/heads/master/cmds/cmd/
但我怎么看不到代码里的 cmd package 的 usage 在哪? |