From abb947f0800bf660bfdc66cc78377c92c154010b Mon Sep 17 00:00:00 2001 From: Awin Huang Date: Tue, 12 Jul 2022 13:40:14 +0800 Subject: [PATCH] vault backup: 2022-07-12 13:40:13 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Affected files: .obsidian/workspace 02. PARA/02. Area(領域)/20150803 - Android/ADB 取得 APK 的 icon.md 02. PARA/02. Area(領域)/20150803 - Android/ADB.md --- .obsidian/workspace | 2 +- .../20150803 - Android/ADB 取得 APK 的 icon.md | 9 +++++++-- 02. PARA/02. Area(領域)/20150803 - Android/ADB.md | 10 +++++++++- 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/.obsidian/workspace b/.obsidian/workspace index c0087e4..173c95b 100644 --- a/.obsidian/workspace +++ b/.obsidian/workspace @@ -53,7 +53,7 @@ } ], "direction": "horizontal", - "width": 262.99999809265137 + "width": 317.99999809265137 }, "right": { "id": "bb4f1f6a5dddbb12", diff --git a/02. PARA/02. Area(領域)/20150803 - Android/ADB 取得 APK 的 icon.md b/02. PARA/02. Area(領域)/20150803 - Android/ADB 取得 APK 的 icon.md index 4268a8f..752302e 100644 --- a/02. PARA/02. Area(領域)/20150803 - Android/ADB 取得 APK 的 icon.md +++ b/02. PARA/02. Area(領域)/20150803 - Android/ADB 取得 APK 的 icon.md @@ -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檔。 \ No newline at end of file +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) \ No newline at end of file diff --git a/02. PARA/02. Area(領域)/20150803 - Android/ADB.md b/02. PARA/02. Area(領域)/20150803 - Android/ADB.md index 6d72cba..34c093c 100644 --- a/02. PARA/02. Area(領域)/20150803 - Android/ADB.md +++ b/02. PARA/02. Area(領域)/20150803 - Android/ADB.md @@ -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達到網路的功能。