How To Create a Full Android Phone or Tablet Backup Without Rooting or Unlocking Your Device
2016-06-16 16:13
721 查看
How
To Create a Full Android Phone or Tablet Backup Without Rooting or Unlocking Your Device
![](https://oscdn.geek-share.com/Uploads/Images/Content/201606/bba8c80a288652f3301d4d0163637a2a.png)
Android includes a built-in way to back up and restore the contents of your phone or tablet. All you need is a computer and a device running Android 4.0 (Ice Cream Sandwich) or newer.
We’ve also covered backing up and restoring your Android phone with Titanium Backup. Titanium Backup
is a great app, but it requires rooting your Android. This feature isn’t exposed in Android’s user interface, so you should consider it experimental.
Installing the Android SDK
We’ll need to use the adb (Android Debug Bridge) command to perform a backup or restore. This command is included with Google’s Android SDK, which you can download for free.First, you’ll need to install Oracle’s Java Development Kit, which the Android SDK requires.Download and install the 32-bit version –
the Android SDK wants the 32-bit version, even if you’re using a 64-bit version of Windows.
![](https://oscdn.geek-share.com/Uploads/Images/Content/201606/4c016b184f31b0ea9318ac054c3771da.png)
Next, download and install the Android SDK from Google. If the SDK informs you that it can’t find Java, you may have installed the 64-bit version of the JDK
– ensure you install the 32-bit version.
After the SDK is installed, open the Android SDK Manager from your Start menu (search for “SDK Manager”).
Enable the Android SDK Platform-tools checkbox and click the Install button to install the platform tools package, which contains adb. If you see an error, you may need to run the SDK Manager as Administrator. (Right-click the SDK Manager shortcut
in your Start menu and select Run as Administrator.)
![](https://oscdn.geek-share.com/Uploads/Images/Content/201606/53c902c4e9014f7da7ecc8f145a0ffd2.png)
Device Setup
You’ll need to enable USB Debugging on your Android device – you can do this from the Developer Options screen in Android’s settings.![](https://oscdn.geek-share.com/Uploads/Images/Content/201606/84bc7724c76fb2286bb92546db21f475.png)
You can now connect your Android smartphone or tablet to your computer using a USB cable. You’ll need drivers for your device installed on your computer to communicate with it – you can often find these drivers on your device manufacturer’s website. Installing
the Google USB Driver from the Android SDK Manager window (look for it under Extras) may also work.
Testing ADB
Note the path where you installed the Android SDK. It’s displayed at the top of the Android SDK Manager window, next to SDK Path.![](https://oscdn.geek-share.com/Uploads/Images/Content/201606/aaad50237667b9f7189e6c7ff9a6c65d.png)
You’ll find the adb.exe file in the platform-tools folder. With the default installation settings, the location is: C:\Users\NAME\AppData\Local\Android\Android-sdk\platform-tools
Navigate to this folder, hold Shift and right-click inside it, and select Open command window here.
![](https://oscdn.geek-share.com/Uploads/Images/Content/201606/2f26672bd596624323c46244c943b439.png)
To test whether adb can communicate with your device, run the following command:
adb devices
![](https://oscdn.geek-share.com/Uploads/Images/Content/201606/d2a0de94b359284dc99811e42ec58c9f.png)
You should see a device in the list – if you see no devices, adb can’t communicate with your device because its driver isn’t installed properly.
Backing Up Your Device
You can now use the adb backup command to back up your device. To back up everything, run the following command:adb backup -apk -shared -all -f C:\Users\NAME\backup.ab
This backs up all your installed apps (APK files) and shared storage (SD card) data to the C:\Users\NAME\backup.ab file on your computer. Replace NAME in the command with your Windows username or provide another location for the backup file.
![](https://oscdn.geek-share.com/Uploads/Images/Content/201606/8484e6b3159fb6e1c9806ef294a2cd56.png)
After running this command, you’ll have to agree to the backup on your device. You can also encrypt the backup with a password here, if you like.
![](https://oscdn.geek-share.com/Uploads/Images/Content/201606/28a4b997b1dad4dc9f8d324bd1bffea3.png)
Depending on how much data there is to back up, the process may take some time.
Restoring a Backup
To restore your backup in the future, run the following command:adb restore C:\Users\NAME\backup.ab
You’ll be asked if you want to do a full restore – this will replace the data and apps on the device with the ones from your backup. If you encrypted the backup with a password, you’ll have to enter the password to restore it.
![](https://oscdn.geek-share.com/Uploads/Images/Content/201606/4948c503cf56ab3ea9e44dddc19e1c64.png)
This is a useful feature, but the complexity of using the Android SDK to create and restore backups is a bit much for the average user. Hopefully this feature will be given a convenient button in Android’s interface in the future.
相关文章推荐
- android手机获取cpu信息
- Android渠道商做假激活量!教你分辨!
- Android-短信验证功能
- Android Design Support Library简单介绍(一)
- AndroidStudio下的混淆编译
- androd 横竖屏切换 activity生命周期加载
- android中图片的放大缩小拖动
- Android自定义类似支付宝密码输入的控件
- Android Dex 热补丁更新
- 转: android编译过程(流程图)
- android studio 导入 annotations 注解框架
- 从java内存分配角度分析android内存泄漏问题
- Android开发环境搭建之Eclipes (Mars)
- Android NDK *** could not be resolved
- android之存储篇_SQLite数据库_让你彻底学会SQLite的使用
- 使用Kotlin进行Android开发
- Android中Cursor类的概念和用法
- Android数据请求之Volley框架
- Android省市县三级联动 真实项目抽出 调用只需3行代码 源码免积分下载
- Android文摘学习2016.6.15