site image

    • Adb shell cmd package. Second method HERE Jun 1, 2018 · 文章浏览阅读8.

  • Adb shell cmd package filter to only show system packages. hardware. By Chris Hoffman, Joe Fedewa & Nick Lewis. To list only 3rd-party packages. ADB, Android Debug Bridge, is a command-line utility included with Google's Android SDK. in the phone BUT haven’t found the suitable adb shell command anywhere on the web. pop -v 500 to start the Es explorer. name. Follow Apr 10, 2023 · adb shell pm clear [package name] This command clears the data and cache of an app, where the package name is the package name of the app you want to clear. How do I install the script in windows? Simple. Then, type in “adb shell cmd package bg-dexopt-job“ Or type in “adb shell “cmd package bg-dexopt-job”“ Reboot your device. adb shell monkey -p 'your package name' -v 500 For example, adb shell monkey -p com. app. This command reboots the device. has-feature FEATURE_NAME [version] 例:adb shell pm uninstall --user 0 com. During boot there is a window of time which I'm able to login with adb. txt"というファイルが作成され、そのファイルにコマンド実行結果が出力されています。 Jul 25, 2022 · adb shell cmd package help. 1. 这个操作可能会导致无法再次进入手机系统的风险,请自己权衡风险操作! 恢复卸载APP adb shell cmd package install-existing ‘应用包名’ 例:adb shell cmd package install-existing com. adb shell am force-stop <package-name> adb shell am kill <package-name> You can restrict background data usage through ADB by entering this command: adb shell pm restrict-background <package-name>. Nov 28, 2024 · == Package info: adb shell list packages (list package names) adb shell list packages -r (list package name + path to apks) adb shell list packages -3 (list third party package names) adb shell list packages -s (list only system packages) adb shell list packages -u (list package names + uninstalled) adb shell dumpsys package packages (list info Mar 21, 2025 · C:\> adb shell pm list packages --user 11 com. C:\> adb shell cmd package install-existing com. But there is one problem: My phone is on Android Lollipop, and the command doesn't exist there. adb shell list packages -s. adb shell list packages -3. Clear app data. Dec 20, 2023 · COMMAND: EXPLANATION adb shell list packages: list package names adb shell list packages -r: list package name + path to apks adb shell list packages -3: list third party package names adb shell list packages -s: list only system packages adb shell list packages -u: list package names + uninstalled adb shell dumpsys package packages: list info Run 'adb shell cmd package' to display the new commands. android. I manually tried to install the apk back, with adb and with the normal package installer. TL;DR. Second method HERE Dec 5, 2019 · However, there’s an even easier way to bring back an app you uninstalled as this : open cmd-here. adb shell pm list packages -d. 我的类似案例是: adb shell su -c pm list packages -f cmd: Failure calling service package: Failed transaction (2147483646) 为 shell 添加了 1. adb shell cmd package compile -m speed -f not-found-package May 26, 2017 · just enter the following command on command prompt after launching the app: adb shell dumpsys window windows | find "mCurrentFocus" $ adb shell pm list packages May 1, 2025 · 是否开启 jit 编译 开启 adb root adb shell stop adb shell setprop dalvik. Those should cover some common scenarios! Now let‘s unlock the true power of ADB… Advanced Shell Commands. Background (if somebody's curious): I want to be able to quickly obtain a list of user-apps from any of my devices, without having to revert to acrobatics. adb shell dumpsys Oct 26, 2024 · adb shell . adb shell pm list packages -e Android ADB Shell Commonds Manual. security. 1 上安装一个应用有如下的方式: adb install(根据情况转为 cmd package install 或者 pm install) adb shell cmd package install(目前都是优先使用) adb shell pm install; 拷贝 apk 到文件管理器中触发安装; 通过应用商店安装; Oct 6, 2015 · adb shell pm list package &gt; c:¥temp¥package_list. This is the command, how I should be able to reinstall the app: adb shell cmd package install-existing <name of package>. 5 days ago · adb shell list packages -3 (list third party package names) adb shell list packages -s (list only system packages) adb shell list packages -u (list package names + uninstalled) adb shell dumpsys package packages (list info on all apps) adb shell dump <name> (list info on one package) adb shell path <package> (path to the apk file) ==Configure adb shell list packages -r. There are even some options you can use: See full list on technastic. Jul 31, 2019 · Technically, the command adb shell pm uninstall -k --user 0 <package_name> does not uninstall an app from the device. The adb shell grants permission to execute Android‘s built-in Linux shell commands directly on a device or emulator. something adb shell cmd package install-existing com. [Tip- Name of launcher will kot be honor home but com. Feb 2, 2018 · Since Android 7. Question 2: I compile a random package that does not exist, but it also returns Success. whatsapp Failure [not installed for 0] finally I tried to install It using adb I get this: ADB, Android Debug Bridge, is a command-line utility included with Google's Android SDK. List package name + path to APKs. A good reference for adb is Here. To show only the disabled app packages: adb shell pm list packages -d. xyzname I get this error: Apr 20, 2016 · @Sergio, the fast way is uninstalling your home application and the original one is automatically set back as default. To list all the installed packages on an Android device, use the following syntax. To clear local profile data and remove compiled code generated from local profile data (i. 0 you can use adb shell cmd package resolve-activity command to get the default activity of an installed app like this: Android ADB Cheat Sheet¶. To re enable. Disable an app: adb shell pm disable --user USER_ID PACKAGE. To list all packages: adb shell pm list packages. Copy the one you want to start using ADB. Before moving on to our results, let’s explain what, why and how we Oct 2, 2021 · Use adb or easier use multi-tool 8 (pc app, from an xda member) , to disable the default launcher. txt I get Unknown command: list-packages Same with using "adb shell cmd package list-packages -s --user 0" and adb shell "cmd package list-packages -s --user 0" -f > c:\2. Using the above ADB Shell command, you can print the list of the app package Mar 27, 2025 · adb shell pm art clear-app-profiles Note: Unlike the command for Android 13 or earlier, this command doesn't clear external profile data (`. Enjoy! Dec 13, 2019 · The command actually is adb shell pm set-home-activity "package/activity" where package/activity has to be substituted by package name/main activity of the desired launcher. Aug 16, 2011 · Use the Android Debug Bridge command line tool adb eg: adb install filename. Step 3: Add your desired package name in the below command. . command line followed by the app package name. estrongs. Second method HERE Jun 1, 2018 · 文章浏览阅读8. adb shell pm list packages -e – This command will show the list of all the enabled apps on your Android phone. apk of the given PACKAGE. Updated Dec 10, 2022. ADB can control your device over USB from a computer, copy files back and forth, install and uninstall apps, run shell commands, and more. adb shell pm hide <package-name> If you want to hide an installed app on your Android device, you can execute this. install [options] <PATH> Installs a package (specified by <PATH>) to the system. adb shell su pm disable PACKAGE # disables the app and hides it in Settings -> Applications pm hide PACKAGE # alternative; for Android Lollipop and above cmd package suspend PACKAGE # alternative; package remains visible in Dec 10, 2022 · How to Install and Use ADB, the Android Debug Bridge Utility. List package names + uninstalled. adb uninstall your. path [--user USER_ID] PACKAGE Print the path to the . oculus. adb shell pm clear . vm. xiaomi. com. adb install test. Instead, it just removes it from a user. whatsapp Failure [DELETE_FAILED_INTERNAL_ERROR] >>adb uninstall --user 0 com. bat' from releases in the same folder with your installed adb, by default it's c:/adb/platform-tools, then double click to run the script. The following command will change the package com. adb provides access to a Unix shell that you can use to run a variety of commands on a device. Remount file system as writable: adb remount. adb shell dump <name> List info on one package adb shell pm list packages --apex-only. By mastering its usage, you can streamline debugging, deployment, and package management tasks. usejit false adb shell start 强制编译 全编译某个apk: adb shell cmd package compile-m speed-. filter to only show disabled packages. The command is available from API 24/Nougat/Android 7 – May 3, 2018 · 本篇文章总结下 install package 的过程,在 Abdroid 7. adb logcat. dm`) that is installed with the app. g. name> 因为上一步中, 仅仅是为当前用户卸载, 实际上预装 app 的文件还存在在 system 分区中, 所以我们可以让已经卸载掉的 app 恢复, 也因为如此, 如果忘记了包名, 还可以用第一步中的搜索方法查到, 或着使用 history 命令查看 adb shell pm compile -a -f --check-prof false -m everything adb shell pm compile -a -f --check-prof false --compile-layouts adb shell pm bg-dexopt-job. adb shell pm list packages -3 – This command will list all the third-party apps installed on your device. Print briefs: The adb shell cmd package list packages command is a simple yet powerful way to interact with installed applications on an Android device. Sadly, I uninstalled something important, and now the device is in a bootloop. It is a client-server program that includes three adb root adb sideload adb shell ps adb shell top adb shell getprop adb shell setprop How do I find ADB located Download the latest version of the platform-tools (about 8 MB), If you installed Android Studio (Android SDK), the default path is C:\Users\YOUR-NAME\AppData\Local\Android\Sdk in Windows. adb shell am start -n / This command allows you to start a specific activity within an app. Jan 12, 2025 · adb shell pm list packages -d – If you want to view the list of all the disabled apps on your device. This command displays the logcat output of the device, which can help with debugging and troubleshooting. apk Jul 21, 2021 · I believe the reason is because you have disabled com. pm dump: print system state associated with the Jan 23, 2021 · 查看 apk 的编译模式 adb shell dumpsys package packName 修改 apk 的编译模式 (1) adb shell pm compile -m 模式 -f packageName (2) adb shell cmd package compile -m 模式 packageName 10、录屏和截图的命令 Jul 3, 2024 · adb shell cmd package compile --reset my-package This command resets compilation for the specified package. googlequicksearchbox (the package does NOT show up, which means it's not installed) As a test, I tried re-installing it (from the system partition). Print all features of the system: adb shell cmd package list features. extra-opts -verbose:jit adb shell start 关闭: adb root adb shell stop adb shell setprop dalvik. Each line is prefixed by package:. Android package management is done by the pm command on the ADB shell. filter to only show third party packages. app installation - push a single package to the device and install it. Package manager (package) commands: help Print this help text. You can then play around with grep utility to narrow down the results to only the lines you need: dumpsys package packages | grep -E 'Package \[|versionName' Aug 8, 2021 · Using adb, I uninstalled some system apps on my device. adb Nov 15, 2022 · If you truly wish to continue, execute 'adb shell cmd package uninstall -k'. To get a list only system packages. ab. Stop an app. google. install-multiple [-lrtsdpg] [--instant] PACKAGE Push multiple APKs to the device for a single package and install them Nov 8, 2021 · adb shell pm list packages Step 2: You will get all the package names. @sameerppradhan here is how you can list all permissions for all apps on device, Jan 27, 2019 · you can simply use "adb shell cmd package install-existing <package name>" in ADB and you'll get the package back . But when I try to reinstall the system apps: adb shell cmd package install-existing --user 0 com. Now I need to reinstall it. Clear May 19, 2014 · In ADB shell issue the following command: dumpsys package packages This gives you all the information about installed packages, including the version number. After this, you're good to go! To reverse: adb shell pm compile -a -f -r install adb shell pm bg-dexopt-job. This command clears all data for a specified application, effectively resetting it. Feb 19, 2019 · With adb shell cmd package list-packages -s --user 0 -f > c:\2. This will consume a good bit more storage on your device. Examples:-adb shell pm uninstall -k --user 0 com. adb shell pm list packages -e. 9k次,点赞8次,收藏12次。本文档详细介绍了 Android 平台下 adb shell cmd 的多种命令及其用法,包括应用程序管理、系统设置调整、资源监控等功能,适用于 Android 开发者进行系统级调试。 Sep 4, 2022 · Question 1: Why did the adb shell cmd package compile command return Success but did not take effect? My answer. dump PACKAGE Print various system state associated with the given PACKAGE. The adb command facilitates a variety of device actions, such as installing and debugging apps. googlequicksearchbox Nov 15, 2021 · デフォルトアプリの設定方法 adb shell cmd package set-home-activity "PACKAGE/ACTIVITY" -user --user 0 起動中の activity の調べ方については以下の記事も参考に… adb コマンドを使ってデフォルトのランチャーアプリを設定する方法のメモです。 adb shell cmd package install-existing <package. ADB can control your device over USB from a computer, copy files back and forth, install and uninstall apps, run shell commands, and more. youtube to disabled state. something Tested and working on Android pie and Oreo on Samsung devices. >>adb shell cmd package uninstall -k com. Dec 5, 2018 · adb shell cmd package list packages This will return a list of the package names of the apps installed on the device. Launch an app. adb reboot. adb shell pm list packages. see the installer for the adb shell cmd package set-home-activity [--user USER_ID] TARGET-COMPONENT. adb shell pm hide --user 0 . filter to only show enabled packages. List info on all apps. Put the script 'optimizer_script. ab Just manually run the command above in the terminal. e. adb shell pm enable com. Reboot device: adb reboot . apk. vrshell. , to reset to the install state), run the following: Jan 14, 2019 · Run 'adb shell cmd package. fingerprint. There are a couple of ways to get the removed app back to the user: one way is through an ADB shell with the command: adb shell cmd package install-existing <package_name> Jun 3, 2022 · First off, we need to check if our device can be seen by ADB properly, for that, we need to type in “adb devices“. 7. 4. APP INSTALLATION (see also adb shell cmd package help): install [-lrtsdg] [--instant] PACKAGE Push a single package to the device and install it. adb shell pm list packages -3. The (IMO) best way is finding in advance, before of applying your launcher, the original one with adb shell cmd shortcut get-default-launcher and use its package name and activity name to manually set it back as default with adb shell cmd package set-home-activity "your Nov 8, 2013 · See my answer at Determine the package name of your app to get the package name of the concerned app and use adb shell to execute these commands (requires root access):. If I can run the command manually why should I still download the script Oct 18, 2012 · In my case, I do an adb shell pm list packages to see first what are the packages/apps installed in my Android device or emulator, then upon locating the desired package/app, I do an adb shell pm uninstall -k com. com Apr 29, 2025 · Android Debug Bridge (adb) is a versatile command-line tool that lets you communicate with a device. May 2, 2020 · ADB是Android Debug Bridge的缩写,它是一个命令行工具,主要用于在开发过程中实现计算机与Android设备之间的通信。ADB工具允许开发者执行一系列调试操作,如安装应用、管理应用的生命周期、读取日志数据、执行shell命令等。 Jul 25, 2019 · adb shell pm clear [package] // Deletes all data associated with a package. txt コマンド実行画面には何も表示されませんが、c:\tempフォルダに"package_list. Use this command to display all installed package names on the device. List only system packages. txt What I'm doing wrong? Also, that's not exactly what I meant, even if the command is working I don't want the Dec 11, 2023 · To remove an installed app, specify its package name with the adb uninstall command. To show only enabled app packages. Dec 13, 2014 · Objective: List all the installed packages on an Android phone through an ADB shell. xxxxxx,so find out the name of the launcher beforehand] Nov 1, 2016 · $ adb shell cmd -l Currently running services: AtCmdFwd DockObserver SurfaceFlinger accessibility account activity alarm android. package. e. adb shell pm list packages -s. Our results. adb shell list packages -u. List third-party package names. Jan 27, 2019 · you can simply use "adb shell cmd package install-existing <package name>" in ADB and you'll get the package back . Download a file from the device adb shell pm list packages -f. pm path: print the path to the . View log output: adb logcat. A list of their package names I can retrieve using adb shell pm list -3, but as those are package names only, recognizing apps is a guess-work. Back to the real topic and why I came here. whatsapp. Then reset the default home activty emu COMMAND Run emulator console COMMAND. Referring to the log message above, it was ignored and processed by the system. adb shell dumpsys package packages. IFingerprintDaemon android. keystore appops appwidget assetatlas audio backup battery batteryproperties batterystats bluetooth_manager carrier_config clipboard cneservice commontime_management connectivity connectivity_metrics_logger May 10, 2025 · You can also use the following commands to kill or stop a battery-hogging app or process using ADB. exe from C:\Program Files (x86)\Minimal ADB and Fastboot and enter the following commands: adb shell cmd package install-existing <name of package you wish to reinstall>. jommfie lftuoby xpflwi erfi hchrnxx njcno bzq itixfe zsvw vspq