cb6d9e61d1
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1.6 KiB
1.6 KiB
name, kind, lang, domain, version, purity, signature, description, tags, params, output, uses_functions, uses_types, returns, returns_optional, error_type, imports, tested, tests, test_file_path, file_path
| name | kind | lang | domain | version | purity | signature | description | tags | params | output | uses_functions | uses_types | returns | returns_optional | error_type | imports | tested | tests | test_file_path | file_path | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| android_app_uninstall | function | bash | infra | 1.0.0 | impure | android_app_uninstall([--serial <S>] package [--keep-data]) -> void | Uninstall app via adb uninstall. Optionally keep data with --keep-data. |
|
|
Stdout 'uninstalled <pkg> on <serial>'. Exit 0 OK. |
|
false | error_go_core | false | bash/functions/infra/android_app_uninstall.sh |
Ejemplo
# Desinstalar en el device por defecto
android_app_uninstall com.example.myapp
# Desinstalar en un device concreto
android_app_uninstall --serial emulator-5554 com.example.myapp
# Desinstalar conservando datos y cache
android_app_uninstall --serial emulator-5554 com.example.myapp --keep-data
Notas
Sourcea adb_wsl.sh para resolver el binario adb.exe en WSL2 y usar
adb_pick_serial / adb_s. Si no hay ningún device conectado y no se
pasa --serial, la función falla con exit 1 antes de invocar adb.
El flag --keep-data pasa -k a adb uninstall, equivalente a
pm uninstall -k — el APK se elimina pero los datos y la caché de la app
permanecen en el dispositivo.