(TOOL) ADB & FASTBOOT SAUCE V1.2 - all in one [many options] SCREENSHOTS

Search This thread

bryantjopplin

Senior Member
Sep 15, 2010
1,635
723
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://forum.xda-developers.com/showpost.php?p=71406861

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

ADBSync:
http://forum.xda-developers.com/showthread.php?t=2133312

Cut, Grep, RM:
http://unxutils.sourceforge.net/

Zip:
http://forum.xda-developers.com/showthread.php?t=1207017

Batch Scripts For ADB Screenshot & SDcard Backup
[email protected] & A Little By Me!
https://forum.xda-developers.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 [email protected]
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://forum.xda-developers.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://forum.xda-developers.com/showthread.php?t=2239421


Secondary Download : Will add once thoroughly tested.
 

Attachments

  • ADB1.JPG
    ADB1.JPG
    35.7 KB · Views: 4,654
  • ADB2.JPG
    ADB2.JPG
    38.1 KB · Views: 4,510
  • ADB3.JPG
    ADB3.JPG
    37.4 KB · Views: 4,236
  • ADB4.JPG
    ADB4.JPG
    31.3 KB · Views: 3,564
  • ADB5.JPG
    ADB5.JPG
    33.3 KB · Views: 3,455
  • screenshotS4.jpg
    screenshotS4.jpg
    202 KB · Views: 3,519
  • Capture.JPG
    Capture.JPG
    53 KB · Views: 3,576
Last edited:

kirito9

Inactive Recognized Contributor
Oct 30, 2013
3,125
1,355
Have you used it? I am adding fastboot oem lock and fastboot flashing unlock / lock. There is an added MoaAB ADBlocker getting worked in as of now and last night I completed to sd card restore option. Still working on zip aligning apks and optimizing ogg's.

Haven't used it as yet, was on Linux. Hoping for a Linux version soon.
 
  • Like
Reactions: Keule-Tm

bryantjopplin

Senior Member
Sep 15, 2010
1,635
723
Haven't used it as yet, was on Linux. Hoping for a Linux version soon.
Well I might have to let someone else do that haha, I really have been reading and learning as I go, not sure how hard it is to turn into a sh. I started out doing something for the s4 to flash Loki bootloaders that I got lucky on making them with Loki patch, then went on to the HP touchpad and make some custom things for it. Then at work I made some enhancements for our CCTV software and used the same format as the others. That's when this started as I seen everything separated and not as one throughout the web, so I just added as I found interesting things. Some of my own design and code but a lot help from others. Just trial and error until it worked across all my devices.

Sent from my Pixel XL using Tapatalk
 

kirito9

Inactive Recognized Contributor
Oct 30, 2013
3,125
1,355
Well I might have to let someone else do that haha, I really have been reading and learning as I go, not sure how hard it is to turn into a sh. I started out doing something for the s4 to flash Loki bootloaders that I got lucky on making them with Loki patch, then went on to the HP touchpad and make some custom things for it. Then at work I made some enhancements for our CCTV software and used the same format as the others. That's when this started as I seen everything separated and not as one throughout the web, so I just added as I found interesting things. Some of my own design and code but a lot help from others. Just trial and error until it worked across all my devices.

That's cool as I have a dual boot setup. That's generally how those big tools begin, a side project leading to greater things.

---------- Post added at 05:29 PM ---------- Previous post was at 05:09 PM ----------

Well I might have to let someone else do that haha, I really have been reading and learning as I go, not sure how hard it is to turn into a sh. I started out doing something for the s4 to flash Loki bootloaders that I got lucky on making them with Loki patch, then went on to the HP touchpad and make some custom things for it. Then at work I made some enhancements for our CCTV software and used the same format as the others. That's when this started as I seen everything separated and not as one throughout the web, so I just added as I found interesting things. Some of my own design and code but a lot help from others. Just trial and error until it worked across all my devices.

Sent from my Pixel XL using Tapatalk

Check this out when you have time. Really good stuff.
 
  • Like
Reactions: iykeDROID™

bryantjopplin

Senior Member
Sep 15, 2010
1,635
723
That's cool as I have a dual boot setup. That's generally how those big tools begin, a side project leading to greater things.

---------- Post added at 05:29 PM ---------- Previous post was at 05:09 PM ----------



Check this out when you have time. Really good stuff.
That's pretty sweet, I think I got my zipalign working finally, omg I'm in over my head haha.

Sent from my Pixel XL using Tapatalk
 
  • Like
Reactions: TheArt. and kirito9

bryantjopplin

Senior Member
Sep 15, 2010
1,635
723
You wouldn't happen to be able and tell me if you see anything wrong with this code so far? Man this one is a pain. lol

Code:
:ZIPALIGNAPK
CLS
ECHO.
ECHO Before You Start Make Sure Your Device Has USB Debugging Enabled!
ECHO.
ECHO                 Presented By: B-RAD
ECHO              FOR ADB ^& FASTBOOT ONLY
ECHO                    CHOOSE BELOW
ECHO __________________________________________________________________
ECHO 41 - /system/app  VIA ADB
ECHO.
ECHO 42 - /system/priv-app VIA ADB
ECHO.
ECHO 43 - /data/app VIA ADB
ECHO.
ECHO 44 - OPTIMIZE ALL APKS VIA ADB
ECHO.
ECHO 99 - OPTIMIZATION MAIN MENU
ECHO.
ECHO.
set /p M=Type Your Choice Then Press ENTER:
ECHO.
ECHO.
IF %M% == 41 (
  ECHO.
  CD /d "%~dp0FILES"
  CLS
  ECHO.
  ECHO  ZIPALIGNING APK'S FROM '\system\app'
  ECHO.
  ECHO  PULLING APK'S
  IF exist TEMP rd /Q /S TEMP
  mkdir TEMP
  adb start-server
  adb pull /system/app TEMP
  del /Q /S *.so
  call :subzipalign
  ECHO  PUSHING APK'S
  adb remount
  adb push TEMP /system/app
  ECHO  CLEANING UP LOCAL TEMP FILES
  rd /Q /S TEMP
  ECHO.
  ECHO  ZIPALIGN COMPLETE
  ECHO.
  Pause
  goto zipalignapk
)
IF %M% == 42 (
  ECHO.
  CD /d "%~dp0FILES"
  CLS
  ECHO.
  ECHO  ZIPALIGNING APK'S FROM '\system\priv-app'
  ECHO.
  ECHO  PULLING APK'S
  IF exist TEMP rd /Q /S TEMP
  mkdir TEMP
  adb start-server
  adb pull /system/priv-app TEMP
  del /Q /S *.so
  call :subzipalign
  ECHO  PUSHING APK'S
  adb remount
  adb push TEMP\priv-app /system/
  pause
  ECHO  CLEANING UP LOCAL TEMP FILES
  rd /Q /S TEMP
  ECHO.
  ECHO  ZIPALIGN COMPLETE
  ECHO.
  Pause
  goto ZIPALIGNAPK
)
IF %M% == 43 (
  ECHO.
  CD /d "%~dp0FILES"
  CLS
  ECHO.
  ECHO  ZIPALIGNING APK'S FROM '\data\app'
  ECHO.
  ECHO  PULLING APK'S
  IF exist TEMP rd /Q /S TEMP
  mkdir TEMP
  adb start-server
  adb pull /data/app TEMP
  del /Q /S *.so
  del /Q /S *.odex
  call :subzipalign
  ECHO  PUSHING APK'S
  adb remount
  adb push TEMP\app\ /data/
  pause
  ECHO  CLEANING UP LOCAL TEMP FILES
  rd /Q /S TEMP
  ECHO.
  ECHO  ZIPALIGN COMPLETE
  ECHO.
    CD /d "%~dp0"
  Pause
  goto zipalignapk
)
IF %M% == 44 (
  ECHO.
  CD /d "%~dp0FILES"
  CLS
  ECHO.
  ECHO  PREPARING FOR ZIPALIGN OF ALL APK'S
  ECHO.
  ECHO  ZIPALIGNING ALL APK'S FROM '\system\app'
  ECHO.
  ECHO  PULLINGS APKs...
  IF exist TEMP rd /Q /S TEMP
  mkdir TEMP
  adb start-server >nul 2>&1
  adb pull /system/app TEMP >nul 2>&1
  del /Q /S *.so >nul 2>&1
  call :subzipalign
  ECHO  PUSHING APK'S
  adb remount >nul 2>&1
  adb push TEMP /system/app >nul 2>&1
  ECHO  CLEANING UP LOCAL TEMP FILES
  rd /Q /S TEMP >nul 2>&1
  ECHO.
  ECHO.
  ECHO  ZIPALIGNING ALL APK'S FROM '\system\priv-app'
  ECHO.
  ECHO  PULLING APK'S
  IF exist TEMP rd /Q /S TEMP
  mkdir TEMP
  adb start-server >nul 2>&1
  adb pull /system/priv-app TEMP >nul 2>&1
  del /Q /S *.so >nul 2>&1
  call :subzipalign
  ECHO  PUSHING APK'S
  adb remount >nul 2>&1
  adb push TEMP\priv-app /system/ >nul 2>&1
  ECHO  CLEANING UP LOCAL TEMP FILES
  rd /Q /S TEMP >nul 2>&1
  ECHO.
  ECHO.
  ECHO  ZIPALIGNING ALL APK'S FROM '\data\app'
  ECHO.
  ECHO  PULLING APK'S
  IF exist TEMP rd /Q /S TEMP
  mkdir TEMP
  adb start-server >nul 2>&1
  adb pull /data/app TEMP >nul 2>&1
  del /Q /S *.so >nul 2>&1
  del /Q /S *.odex >nul 2>&1
  call :subzipalign
  ECHO  PUSHING APK'S
  adb remount >nul 2>&1
  adb push TEMP\app\ /data/ >nul 2>&1
  ECHO  CLEANING UP LOCAL TEMP FILES
  rd /Q /S TEMP >nul 2>&1
  ECHO.
  ECHO  ZIPALIGN COMPLETE
  ECHO.
    CD /d "%~dp0"
  Pause
  goto zipalignapk
)
IF %M% == 99 goto M6MENU

:subzipalign
@echo off
@echo Zip aligning now...
for /R %%X in (*.apk) do zipalign 4 "%%X" "%%~dpX%%~nX.new"
@echo Replacing non-aligned files with zip aligned files...
for /R %%X in (*.new) do move /Y "%%X" "%%~dpX%%~nX.apk"
@echo Zip aligning done, press any key to exit
pause
Goto :eof


That's cool as I have a dual boot setup. That's generally how those big tools begin, a side project leading to greater things.

---------- Post added at 05:29 PM ---------- Previous post was at 05:09 PM ----------



Check this out when you have time. Really good stuff.
 

Ricky Divjakovski

Recognized Developer / Recognized Contributor
Feb 4, 2013
5,215
7,600
25
Sydney
You wouldn't happen to be able and tell me if you see anything wrong with this code so far? Man this one is a pain. lol

Code:
:ZIPALIGNAPK
CLS
ECHO.
ECHO Before You Start Make Sure Your Device Has USB Debugging Enabled!
ECHO.
ECHO                 Presented By: B-RAD
ECHO              FOR ADB ^& FASTBOOT ONLY
ECHO                    CHOOSE BELOW
ECHO __________________________________________________________________
ECHO 41 - /system/app  VIA ADB
ECHO.
ECHO 42 - /system/priv-app VIA ADB
ECHO.
ECHO 43 - /data/app VIA ADB
ECHO.
ECHO 44 - OPTIMIZE ALL APKS VIA ADB
ECHO.
ECHO 99 - OPTIMIZATION MAIN MENU
ECHO.
ECHO.
set /p M=Type Your Choice Then Press ENTER:
ECHO.
ECHO.
IF %M% == 41 (
  ECHO.
  CD /d "%~dp0FILES"
  CLS
  ECHO.
  ECHO  ZIPALIGNING APK'S FROM '\system\app'
  ECHO.
  ECHO  PULLING APK'S
  IF exist TEMP rd /Q /S TEMP
  mkdir TEMP
  adb start-server
  adb pull /system/app TEMP
  del /Q /S *.so
  call :subzipalign
  ECHO  PUSHING APK'S
  adb remount
  adb push TEMP /system/app
  ECHO  CLEANING UP LOCAL TEMP FILES
  rd /Q /S TEMP
  ECHO.
  ECHO  ZIPALIGN COMPLETE
  ECHO.
  Pause
  goto zipalignapk
)
IF %M% == 42 (
  ECHO.
  CD /d "%~dp0FILES"
  CLS
  ECHO.
  ECHO  ZIPALIGNING APK'S FROM '\system\priv-app'
  ECHO.
  ECHO  PULLING APK'S
  IF exist TEMP rd /Q /S TEMP
  mkdir TEMP
  adb start-server
  adb pull /system/priv-app TEMP
  del /Q /S *.so
  call :subzipalign
  ECHO  PUSHING APK'S
  adb remount
  adb push TEMP\priv-app /system/
  pause
  ECHO  CLEANING UP LOCAL TEMP FILES
  rd /Q /S TEMP
  ECHO.
  ECHO  ZIPALIGN COMPLETE
  ECHO.
  Pause
  goto ZIPALIGNAPK
)
IF %M% == 43 (
  ECHO.
  CD /d "%~dp0FILES"
  CLS
  ECHO.
  ECHO  ZIPALIGNING APK'S FROM '\data\app'
  ECHO.
  ECHO  PULLING APK'S
  IF exist TEMP rd /Q /S TEMP
  mkdir TEMP
  adb start-server
  adb pull /data/app TEMP
  del /Q /S *.so
  del /Q /S *.odex
  call :subzipalign
  ECHO  PUSHING APK'S
  adb remount
  adb push TEMP\app\ /data/
  pause
  ECHO  CLEANING UP LOCAL TEMP FILES
  rd /Q /S TEMP
  ECHO.
  ECHO  ZIPALIGN COMPLETE
  ECHO.
    CD /d "%~dp0"
  Pause
  goto zipalignapk
)
IF %M% == 44 (
  ECHO.
  CD /d "%~dp0FILES"
  CLS
  ECHO.
  ECHO  PREPARING FOR ZIPALIGN OF ALL APK'S
  ECHO.
  ECHO  ZIPALIGNING ALL APK'S FROM '\system\app'
  ECHO.
  ECHO  PULLINGS APKs...
  IF exist TEMP rd /Q /S TEMP
  mkdir TEMP
  adb start-server >nul 2>&1
  adb pull /system/app TEMP >nul 2>&1
  del /Q /S *.so >nul 2>&1
  call :subzipalign
  ECHO  PUSHING APK'S
  adb remount >nul 2>&1
  adb push TEMP /system/app >nul 2>&1
  ECHO  CLEANING UP LOCAL TEMP FILES
  rd /Q /S TEMP >nul 2>&1
  ECHO.
  ECHO.
  ECHO  ZIPALIGNING ALL APK'S FROM '\system\priv-app'
  ECHO.
  ECHO  PULLING APK'S
  IF exist TEMP rd /Q /S TEMP
  mkdir TEMP
  adb start-server >nul 2>&1
  adb pull /system/priv-app TEMP >nul 2>&1
  del /Q /S *.so >nul 2>&1
  call :subzipalign
  ECHO  PUSHING APK'S
  adb remount >nul 2>&1
  adb push TEMP\priv-app /system/ >nul 2>&1
  ECHO  CLEANING UP LOCAL TEMP FILES
  rd /Q /S TEMP >nul 2>&1
  ECHO.
  ECHO.
  ECHO  ZIPALIGNING ALL APK'S FROM '\data\app'
  ECHO.
  ECHO  PULLING APK'S
  IF exist TEMP rd /Q /S TEMP
  mkdir TEMP
  adb start-server >nul 2>&1
  adb pull /data/app TEMP >nul 2>&1
  del /Q /S *.so >nul 2>&1
  del /Q /S *.odex >nul 2>&1
  call :subzipalign
  ECHO  PUSHING APK'S
  adb remount >nul 2>&1
  adb push TEMP\app\ /data/ >nul 2>&1
  ECHO  CLEANING UP LOCAL TEMP FILES
  rd /Q /S TEMP >nul 2>&1
  ECHO.
  ECHO  ZIPALIGN COMPLETE
  ECHO.
    CD /d "%~dp0"
  Pause
  goto zipalignapk
)
IF %M% == 99 goto M6MENU

:subzipalign
@echo off
@echo Zip aligning now...
for /R %%X in (*.apk) do zipalign 4 "%%X" "%%~dpX%%~nX.new"
@echo Replacing non-aligned files with zip aligned files...
for /R %%X in (*.new) do move /Y "%%X" "%%~dpX%%~nX.apk"
@echo Zip aligning done, press any key to exit
pause
Goto :eof

best option would be trial and error and fix bugs, also clear the dalvik cache after pushing, just a cleaner more stable way of doing things
doesnt look like anything is wrong, but just had a quick flick through so i could be wrong
 
  • Like
Reactions: kirito9

bryantjopplin

Senior Member
Sep 15, 2010
1,635
723
DONE? HAHA
Code:
  ECHO  CLEARING DALVIK CACHE
  ECHO  PRESS ENTER TO CLEAR
  PAUSE >nul 2>&1
  adb shell rm -r /data/dalvik-cache > nul 2>&1
  adb shell rm -r /cache/dalvik-cache > nul 2>&1

best option would be trial and error and fix bugs, also clear the dalvik cache after pushing, just a cleaner more stable way of doing things
doesnt look like anything is wrong, but just had a quick flick through so i could be wrong
 

bryantjopplin

Senior Member
Sep 15, 2010
1,635
723
best option would be trial and error and fix bugs, also clear the dalvik cache after pushing, just a cleaner more stable way of doing things
doesnt look like anything is wrong, but just had a quick flick through so i could be wrong

You wouldn't happen to know the proper mount point for system via adb in recovery? I tried using adb shell mount -o rm,remount /system and it doesn't work, but adb shell mount -a does but its just all mount points not /system?
 

Ricky Divjakovski

Recognized Developer / Recognized Contributor
Feb 4, 2013
5,215
7,600
25
Sydney
You wouldn't happen to know the proper mount point for system via adb in recovery? I tried using adb shell mount -o rm,remount /system and it doesn't work, but adb shell mount -a does but its just all mount points not /system?

check architecture then push correct busybox to /data/tmp, apply correct permissions and mount with busybox
 

bryantjopplin

Senior Member
Sep 15, 2010
1,635
723
Sounds like to much work haha, I'll just tell them to reboot recovery before doing anything else or just go to mount and deselect system haha

Sent from my Pixel XL using Tapatalk
 

osm0sis

Senior Recognized Developer / Recognized Contribut
  • Mar 14, 2012
    14,536
    32,731
    Halifax
    GT-i9250
    Nexus 7 (2013)
    Hey, I appreciate the mentions since you're using a few of my works. Could you please also throw a link in your OP to my Odds and Ends thread, where they originated, as you did for the other components? :)
     

    bryantjopplin

    Senior Member
    Sep 15, 2010
    1,635
    723
    Hey, I appreciate the mentions since you're using a few of my works. Could you please also throw a link in your OP to my Odds and Ends thread, where they originated, as you did for the other components? :)
    Uodated!! I actually thought I did, Sorry. And thanks for reminding me, I'll need to update it again for the zip align idea.

    Also any other cool things that I can play with in adb?

    Thanks and sorry

    Sent from my Pixel XL using Tapatalk
     
    • Like
    Reactions: kirito9 and osm0sis

    Top Liked Posts

    • There are no posts matching your filters.
    • 19
      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://forum.xda-developers.com/showpost.php?p=71406861

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

      ADBSync:
      http://forum.xda-developers.com/showthread.php?t=2133312

      Cut, Grep, RM:
      http://unxutils.sourceforge.net/

      Zip:
      http://forum.xda-developers.com/showthread.php?t=1207017

      Batch Scripts For ADB Screenshot & SDcard Backup
      [email protected] & A Little By Me!
      https://forum.xda-developers.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 [email protected]
      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://forum.xda-developers.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://forum.xda-developers.com/showthread.php?t=2239421


      Secondary Download : Will add once thoroughly tested.
      3
      Version Info
      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.
      3
      Haven't used it as yet, was on Linux. Hoping for a Linux version soon.
      Well I might have to let someone else do that haha, I really have been reading and learning as I go, not sure how hard it is to turn into a sh. I started out doing something for the s4 to flash Loki bootloaders that I got lucky on making them with Loki patch, then went on to the HP touchpad and make some custom things for it. Then at work I made some enhancements for our CCTV software and used the same format as the others. That's when this started as I seen everything separated and not as one throughout the web, so I just added as I found interesting things. Some of my own design and code but a lot help from others. Just trial and error until it worked across all my devices.

      Sent from my Pixel XL using Tapatalk
      2
      Nice work! Automation saves lives :angel:.

      Have you used it? I am adding fastboot oem lock and fastboot flashing unlock / lock. There is an added MoaAB ADBlocker getting worked in as of now and last night I completed to sd card restore option. Still working on zip aligning apks and optimizing ogg's.
      2
      Definitely will be adding more, got zipalign coming, ogg optimization, logcat, and some more when I get the time. Thinking about safe mode along with soft reboot and probably a few others.

      Sent from my Pixel XL using Tapatalk
    Our Apps
    Get our official app!
    The best way to access XDA on your phone
    Nav Gestures
    Add swipe gestures to any Android
    One Handed Mode
    Eases uses one hand with your phone