[Android Software/Hacking General [Developers Only]] bryantjopplin:
ADB & FASTBOOT SAUCE V1.2

*YOUR WARRANTY IS ALREADY VOIDED*

*I AM NOT RESPONSIBLE FOR BRICKED DEVICES OR ANY OTHER DAMAGE*

* PLEASE USE THE README*

* YOU ARE THE ONE PRESSING THE BUTTONS SO DON'T BLAME ME*​

This is for most devices and mainly for devices that are unlocked. This is also for most devices that use fastboot. This can be used with many devices as well. I have only tested on a few

It is a menu based batch file that combines many things from around this thread. It is also pretty self explanatory.

Update V1.2 FIXED Directory Issues Caused By Update v1.1 That I Missed :confused:

Update V1.1 added cmd prompt options for fastboot and adb. Also added fastboot oem unlock option.

README:

ALL THE CREDITS ARE LISTED BELOW, IF I MISSED ANY LET ME KNOW!

PLEASE READ EVERYTHING IN HERE AND ASK QUESTIONS IF THERE ARE ANY.

THE TWRP BACKUP AND RESTORE TOOL LOCATED AT OPTION 4 IS STILL

EXPERIMENTAL AND MIGHT NOT WORK. DO NOT RELY ON IT AS OF YET!

THIS IS TO BE RAN FROM RECOVERY, AS FROM ANDROID IS NOT WORKING

FOR ME. IT WILL PUSH THE BACKUPS FROM YOUR CHOICE AT THE MENU

TO THE SAME FOLDER AS THIS SCRIPT FILE IS LOCATED.

FOR THE RESTORE OPTION IT SEEMS TO HANG BUT ON TWRP IT SHOWS IT

COMPLETING. A CNTRL+C AFTER RESTORE COMPLETE SHOWS UP WILL

TERMINATE BATCH JOB AND PRESSING N WILL BRING YOU BACK TO THE MENU.

For Option 11 FASTBOOT FLASH RECOVERY You Can Substitute Any

Custom Recovery, But You Would Have To Rename It To twrp.img

As This Script Is Looking For That Particular Naming Convention.

This Is For Devices That Use Fastboot Only!

For Option 25 ADB SHELL After Your Done Using The Shell You

Can Type exit And It Will Allow You To Go Back To The Menu!

For Option 32 ADB SD-CARD INCREMENTAL BACKUP There Is An

ignore-list.ini File That Has Instructions To Ignore Specific

Folders To Not Sync. This Is Best Ran In Recovery Via ADB IMO.

ADB SD-CARD INCREMENTAL BACKUP Description

This Backs Up The Entire SDcard So That You Can Have A

Complete Snapshot Of Your Device When You Make Periodic

Backups, And Be Able To Restore Things Exactly As They Were.

CREDITS:

TWRP Backup And Restore Tool:

http://xdaforums.com/showpost.php?p=71406861

Fb2Png:

https://github.com/PhilZ-cwm6/philz_touch_cwm6/tree/cm-11.0/fb2png

ADBSync:

http://xdaforums.com/showthread.php?t=2133312

Cut, Grep, RM:

http://unxutils.sourceforge.net/

Zip:

http://xdaforums.com/showthread.php?t=1207017

Batch Scripts For ADB Screenshot & SDcard Backup

osm0sis@xda-developers & A Little By Me!

https://xdaforums.com/showthread.php?t=2239421

ADB and Fastboot Files:

..................................................................................................................................................................................................................

Copyright 2012 The Android Open Source Project.....................................................................................

Licensed under the Apache License, Version 2.0 (the "License");

you may not use this file except in compliance with the License.

You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software

distributed under the License is distributed on an "AS IS" BASIS,

WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

See the License for the specific language governing permissions and

limitations under the License.........................................................................................................................................

...................................................................................................................................................................................................................

Android Screenshooter (fb2png) by Kyan He kyan.ql.he@gmail.com

Maintained by Phil3759 & McKael @ xda-developers

TWRP Backup And Restore Tool v1.1 by dexbyte www.dexteroid.com

ADB Screenshot For Recovery By osm0sis @ xda-developers & A Little By Me!

https://xdaforums.com/showthread.php?t=2239421

ADB Sync Utility Copyright (c) Temblast 2012-2014

By Renate NST @ xda-developers

SDcard Backup Automation By osm0sis @ xda-developers & A Little By Me!

https://xdaforums.com/showthread.php?t=2239421

Secondary Download : Will add once thoroughly tested.