vault backup: 2022-07-12 13:40:13
Affected files: .obsidian/workspace 02. PARA/02. Area(領域)/20150803 - Android/ADB 取得 APK 的 icon.md 02. PARA/02. Area(領域)/20150803 - Android/ADB.md
This commit is contained in:
2
.obsidian/workspace
vendored
2
.obsidian/workspace
vendored
@@ -53,7 +53,7 @@
|
||||
}
|
||||
],
|
||||
"direction": "horizontal",
|
||||
"width": 262.99999809265137
|
||||
"width": 317.99999809265137
|
||||
},
|
||||
"right": {
|
||||
"id": "bb4f1f6a5dddbb12",
|
||||
|
||||
@@ -1,7 +1,12 @@
|
||||
所有 apk 在安裝之後必須要 launcher 註冊,並將 icon 存在 launcher 的 `app_icons.db` 裡面。
|
||||
launcher 的 package 是 `com.android.launcher3`,所以 `app_icons.db` 的位置在 `/data/data/com.android.launcher3/databases/launcher.db`。
|
||||
|
||||
用 SQLiteDatabaseBrowserPortable.exe 之類的工具可以打開 `app_icons.db`,其內容如下:
|
||||
用 `SQLiteDatabaseBrowserPortable.exe` 之類的工具可以打開 `app_icons.db`,其內容如下:
|
||||
![[Pasted image 20220712100904.png|800]]
|
||||
|
||||
icon 欄位的blob就是icon的圖檔,看來是PNG檔。
|
||||
icon 欄位的blob就是icon的圖檔,看來是PNG檔。
|
||||
|
||||
## 參考
|
||||
- [Can i get the icon image of an app through adb](https://stackoverflow.com/questions/39170162/can-i-get-the-icon-image-of-an-app-through-adb)
|
||||
- [只是简单看下Launcher_Jason_Lee155的博客-CSDN博客](https://blog.csdn.net/Jason_Lee155/article/details/125096966)
|
||||
- [Android Launcher3中微信联系人快捷方式无法卸载的解决方案 - 简书](https://www.jianshu.com/p/8ba912ad537e)
|
||||
@@ -21,7 +21,15 @@ adb shell am start -S com.logitech.sentineliq/.MainActivity --es cameraId 0
|
||||
|
||||
## pm
|
||||
### list packages
|
||||
- `adb shell pm list packages`:可以列出所有安裝的apk
|
||||
列出所有安裝的apk
|
||||
```bash
|
||||
adb shell pm list packages
|
||||
```
|
||||
|
||||
只列出 user 自己安裝的 apk:
|
||||
```bash
|
||||
adb shell "pm list packages -3"
|
||||
```
|
||||
|
||||
## Forward
|
||||
ADB forward用來把PC端收到的TCP轉到Android去,這樣就可以透過USB ADB達到網路的功能。
|
||||
|
||||
Reference in New Issue
Block a user