docs(android): say why the uninstall text cannot be read

This commit is contained in:
pj committed 2026-08-16 00:07:12 +05:30
1 parent 6234bf5ba0
commit 87aa7d9284
1 file changed
+4 -4
+4 -4
View File
@@ -142,10 +142,10 @@ func ReinstallApp(ctx context.Context, serial, bundleID, apkPath string, stdout
} }
// clearDataUninstallLeftBehind reaches first-launch state after `adb uninstall` // clearDataUninstallLeftBehind reaches first-launch state after `adb uninstall`
// failed. The failure text cannot say whether it failed: an API 34 emulator // failed. The failure text cannot say why: an API 34 emulator answers
// answers "Failure [DELETE_FAILED_INTERNAL_ERROR]" both for a package that was // "Failure [DELETE_FAILED_INTERNAL_ERROR]" both for a package that was never
// never installed and for one it refuses to remove. So ask the package manager // installed and for one it refuses to remove. So ask the package manager which
// which happened. Nothing installed means nothing to clear. Still installed // happened. Nothing installed means nothing to clear. Still installed
// means the data survives the reinstall, and `pm clear` is the one remaining // means the data survives the reinstall, and `pm clear` is the one remaining
// way to reach first-launch state; when that fails too, so does clear-state. // way to reach first-launch state; when that fails too, so does clear-state.
func clearDataUninstallLeftBehind(ctx context.Context, adb, serial, bundleID, uninstallOutput string, stdout io.Writer) error { func clearDataUninstallLeftBehind(ctx context.Context, adb, serial, bundleID, uninstallOutput string, stdout io.Writer) error {