← 返回命令列表

Linux command

adb-uninstall 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Uninstall

adb uninstall [com.example.app]

Example

adb uninstall -k [com.example.app]

Example

adb uninstall --user [user_id] [com.example.app]

Example

adb uninstall --versionCode [version_code] [com.example.app]

说明

adb uninstall removes an installed Android application from the device. The package is specified by its full package name (e.g., com.example.app), not the APK filename. By default, uninstalling removes the app along with all its data, cache, and associated files for all users on the device. Use the -k flag to preserve application data.

参数

-k
Keep the data and cache directories after package removal.
--user _user_id_
Remove the package only for the given user. Default removes for all users.
--versionCode _code_
Only uninstall if the installed app has the given version code.
package
Full package name of the application to remove.

FAQ

What is the adb-uninstall command used for?

adb uninstall removes an installed Android application from the device. The package is specified by its full package name (e.g., com.example.app), not the APK filename. By default, uninstalling removes the app along with all its data, cache, and associated files for all users on the device. Use the -k flag to preserve application data.

How do I run a basic adb-uninstall example?

Run `adb uninstall [com.example.app]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -k do in adb-uninstall?

Keep the data and cache directories after package removal.