简体   繁体   English

如何使用adb命令在非root用户的android设备中擦除用户应用,用户数据,用户缓存?

[英]How to wipe user apps, user data, user cache in non-rooted android devices using adb commands?

I want to wipe all user apps, user data and user cache of an android device by using adb commands. 我想使用adb命令擦除android设备的所有用户应用程序,用户数据和用户缓存。 The android device is NOT rooted. android设备未植根。 Please help me. 请帮我。 Thanks in advance. 提前致谢。

Sorry to say this you can not achieve this on non-rooted device because by default android system is read-only file system . 抱歉地说,您无法在非root用户的设备上实现此功能,因为默认情况下android系统是只读文件系统。

Just try this: 尝试一下:

1:Start AVD. 1:启动AVD。

2:Run "adb shell" command in terminal. 2:在终端中运行“ adb shell”命令。

3:After that try to remove anyone file from system . 3:之后,尝试从system中删除任何文件。 It shows read-only file system error. 它显示只读文件系统错误。

If you want to root your avd : http://www.spinachsoftware.com/blog/?p=224 如果您想植根avd: http : //www.spinachsoftware.com/blog/? p = 224

Thanks. 谢谢。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 非root用户的Android手机用户可以查看/编辑存储在Realm DB中的数据吗? - Can a non-rooted phone android user see/edit the data stored in Realm DB? 是否真的有一种方法可以在不使用电缆的情况下将 ADB 命令发送到非 root 的 android 设备? - Is there truly a way to send ADB commands without the usage of a cable to a non-rooted android device? 我可以在用户应用程序中非root用户的设备上使用packagemanager.setApplicationEnabledSetting() - Can I use packagemanager.setApplicationEnabledSetting() on non-rooted device in user app Android:如何通过 adb 清除应用程序缓存并保留用户数据? - Android: how to clear app cache and keep user data via adb? 我们可以在 Android 上使用 'dpm set-owner' 用于有根/无根 Android 上的生产设备吗 - Can we use 'dpm set-owner' on Android for production devices on Rooted/Non-rooted Android 重新启动android模拟器后擦除用户数据 - wipe user data after restart android emulator Android:在非根目录设备上运行脚本 - Android: run a script on non-rooted device 如何从 adb 终端擦除缓存 android? - how to wipe cache android from adb terminal? 如何解决无根电话上的ADB错误[INSTALL_FAILED_UID_CHANGED]? - How to solve ADB error [INSTALL_FAILED_UID_CHANGED] on non-rooted phone? 如何在正在调试的应用程序上下文中(在非root用户的设备上)打开“ adb shell”? - How to open “adb shell” in context of application being debugged (on non-rooted device)?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM