Tuesday, May 24, 2016

How to: Use "adb sideload" on your Android device



Probably every Android power-user at lst once in his life used ADB -Android Debug Bridge. It is a versatile command line tool that lets you communie with an emulator instance or connected Android-powered device. Using ADB shell commands gives you additional control over your device and sometimes it can save your device from being bricked (example:How to: copy ROM zip file to the freshly wiped device). You can find some more basic information about ADBhere.
Since Android Jelly Bn there has been a new ADB mode available in the AOSP recovery, incorporated by the Android developer community into custom recoveries too. It is called "ADB sideload" and most of you probably have hrd about it alrdy. This is an alternate method to the one I wrote about here -How to: copy ROM zip file to the freshly wiped device. The main difference is that ADB sideload works only with recoveries based on Jelly Bn source or newer. I believe that ADB sideload was crted to simplify the process of flashing/restoring Android update.zip packages.
Keep in mind that while using ADB sideload, the regular ADB shell won't work. To be able to use SIDELOAD mode make sure you're running latest ADB drivers from the Android SDK (Platform-tools). Here are the simple steps you need to follow to flash update.zip package using adb sideload mode (based on stock Android recovery):Place the ZIP package you want to install in the same loion where you keep ADB drivers - adb.exe, AdbWinApi.dll and AdbWinUsbApi.dll (usually it'sSDK\platform-tools)Make sure you have USB debugging enabled inSettings > Development on your deviceMake sure your phone drivers are installed on the PC you're going to useBoot your device in recovery mode(Android logo with a exclamation mark) and connect your device to PCHold down "power" button first, followed quickly by "volume up" button. You should now see the recovery menuUse the volume up/down to select "apply update from ADB," then press power to select itOpen a command prompt on the PC (cmd.exe), type and confirm with ENTER: /d <adb.exe loion> (for example: /d c:\SDK\platform-tools) or you can open your SDK/platform-tools folder, then press SHIFT button and the right-click mouse button and choose “Open command prompt here”adb sideload <filename>.zip (for example: adb sideload update.zip)The zip package will begin installing. When it's done, select "reboot system now."How is that different from the alternative method? You don't have to manually crte the proper folders structure, push the file and later install if from inside the recovery menu. The result is basically the same, because ADB sideload is also transferring the zip file into the device internal memory and later it automatically begins the installation procedure. However, it works only with recoveries based on Android Jelly Bn source.
Have any questions or comments? Feel free to share!Also, if you like this article, plse use media sharing buttons (Twitter, G+, Facebook) below this post!

No comments:

Post a Comment