[Q] Optimus 3D will not turn over - Clockwork recovery touch - LG Optimus 3D

Hi,
I try to install the touch clock recovery but my smart not turn on any more.
I execute this 2 codes
Code:
@echo off
title CWM Recovery Touch 5.8.1.5 for P920
color 0A
echo.
echo --[ Flash process started ]--
echo.
echo.
echo Reseting server
echo ---------------
echo.
adb\adb.exe kill-server
adb\adb.exe start-server
echo.
echo.
echo Waiting for device
echo ------------------
echo.
adb\adb.exe wait-for-device
echo.
echo.
echo Flashing
echo --------
echo.
adb\adb.exe push recovery-clockwork-touch-5.8.1.5-p920.img /data/local/tmp/
adb\adb.exe shell "su -c 'dd if=/data/local/tmp/recovery-clockwork-touch-5.8.1.5-p920.img of=/dev/block/mmcblk0p4'"
adb\adb.exe shell "rm /data/local/tmp/recovery-clockwork-touch-5.8.1.5-p920.img"
echo.
echo.
echo Killing server
echo --------------
echo.
adb\adb.exe kill-server
echo.
echo.
echo -[ Process end ]-
echo.
timeout 10
this is ok ...
Code:
@echo off
title CWM Recovery Touch 5.8.1.5 for P920
color 0A
echo.
adb\adb.exe kill-server
adb\adb.exe start-server
adb\adb.exe wait-for-device
adb\adb.exe reboot recovery
adb\adb.exe kill-server
echo.
timeout 3
in second code my smart turn off and not turn on any more. (i try to start in download mode but not work).
informations
rom: Cyanogenmod 7.2 RC
recovery: clockwork recovery (standard)
-----------
I need to go into a technical assistance?

I believe you flashed recovery to the bootloader rather than the recovery partition. mmcblk0p4 has 512 blocks according to the partition table which means that it's way too small for recovery and probably the wrong partition. Where did you read that you should flash to mmcblk0p4? You should have flashed to mmcblk0p6, not mmcblk0p4. The only thing you can do now is try to reflash it using the instructions here or here, if not you'll have to bring it for warranty service.

I tried many times but I only returned error: -1 in ADB. I found this code and I ventured (it was for the P970, only modified files).
And I can`t also put you in reflash mode (the smartphone is leaving and entering the driver).
I hope the assistance does not cover me for out of warranty.

Related

[ROOT] Tianji X720D

Hi guys,
first of all, I'm noob on Android, plus I'm Italian, my english is not really good, I apologize for that.
I searched a lot, but I found nothing on this forum about this smartphone, nor on google.
I searched for Haipai X720D, ONE XC, HTC EVO 4G, any X720D related, but for various reasons nothing really satisfied me.. are they really compatible with my phone? Probably, but I doubt that. Benchmarks are quite different (build, brand, different antutu scores...).
So, just to let people know it is possible, "hey, it just worked! don't be afraid, I did that", I wrote this little guide.
1) I have Windows 8 Pro
If you have an older Windows release, it is possible you are going to have more trouble, as always.
2) Drivers -> You need to install "Android Composite ADB Interface"
For me it was a big problem, because you can't find any driver around, no real "Tianji" website to find some kind of support or update.
I was relying on this guide (HERE related to "unrevoked" tool, but I found out their modified drivers to be just crappy and I couldn't install due to some checksum problem they have. Still, this link is a good guide about "how to" install the right driver.
I hoped to find something on google with ID_Hardware "USB\VID_0BB4&PID_0C03&REV_0255&MI_01", but I didn't find anything to download, just a couple of "driver update" services who really had something, but pretended to install software on your PC.
Tired of wasting my time, I decided to try "driver identifier" website because they offer a free service for 1 day, just what I needed. (I don't know if I can post link here, so if you need it, just use google). It worked and now I've a ZIP ready to install just following instructions in "unrevoked" guide.
3) Root tool
Thanks to Bin4ry on xda-developers forum for his great script. You can find it on this thread: sorry guy, I can't write on your thread due to xda-developer policies, I hope you understand.
You need to choose method 1: Normal method.
This script allows you to rollback, so if something goes wrong, just launch tha batch again and select Rollback option.
But, you know, nothing is perfect, and his batch script is still a little :victory: crappy :victory: to work with this smartphone: You need to reboot your device a couple of times, but it doesnt wait for your device to resume, it just runs in timeout and because of that, it does a lot of crappy things.
You need to modify RUNME.BAT file like that:
Code:
@echo off
COLOR 0A
echo ======================================================================
echo = This script will root your Android phone with adb restore function =
echo = Script by Bin4ry (thanks to Goroh_kun and tkymgr for the idea) =
echo = Idea for Tablet S from Fi01_IS01 =
echo = (22.11.2012) v17 =
echo ======================================================================
echo Tianji === NORMAL mode
echo.
:CHOICE
set nxt=0
set ric=0
echo Device type:
echo 1) Normal
echo 2) Special (for example: Sony Tablet S, Medion Lifetab)
echo.
echo x) Unroot
echo.
set /p type=Make a choice:
if %type% == 1 GOTO TEST
if %type% == 2 GOTO TABSMENU
if %type% == x GOTO UNROOT
echo.
echo Please Enter a valid number (1 to x)
echo.
GOTO CHOICE
:TEST
echo Checking if i should run in Normal Mode or special Sony Mode
echo Please connect your device with USB-Debugging enabled now
stuff\adb.exe wait-for-device
stuff\adb.exe pull /system/app/Backup-Restore.apk . > NUL
stuff\adb.exe pull /system/bin/ric . > NUL
if EXIST ric (set ric=1) else (echo .)
if EXIST Backup-Restore.apk (GOTO XPS) else (echo .)
GOTO OTHER
:UNROOT
set /p unr=Really (y/n) ?
IF %unr% == n GOTO CHOICE
stuff\adb.exe push stuff\busybox /data/local/tmp/busybox
stuff\adb.exe shell "chmod 755 /data/local/tmp/busybox"
stuff\adb.exe shell "su -c '/data/local/tmp/busybox mount -o remount,rw /system'"
stuff\adb.exe shell "su -c 'rm /system/bin/su'"
stuff\adb.exe shell "su -c 'rm /system/app/Superuser.apk'"
GOTO FINISH
:TABSMENU
echo.
echo Special mode:
echo 1) Root
echo 2) Rollback
set /p tabtype=Make a choice:
if %tabtype% == 1 GOTO TABS
if %tabtype% == 2 GOTO TABS_RB
:TABS
echo.
echo Tablet S mode enabled!
echo.
GOTO START
:XPS
echo.
echo Found Sony Backup-Restore.apk
echo LT26,LT22 etc. mode enabled!
echo.
del Backup-Restore.apk
if %ric% == 1 (del ric) else (echo .)
set NXT=1
GOTO START
:TABS_RB
echo.
echo Tablet S Roll Back
echo.
echo Please connect device with ADB-Debugging enabled now....
stuff\adb.exe wait-for-device
FOR /F "tokens=1 delims=" %%A in ('stuff\adb.exe shell "if [ -d /data/app- ]; then echo 1 ; else echo 0 ; fi"') do SET tabs_app=%%A
if %tabs_app% == 1 GOTO TABS_RB_1
if %tabs_app% == 0 GOTO TABS_RB_2
:TABS_RB_1
stuff\adb.exe shell "rm -r /data/data/com.android.settings/a/*"
stuff\adb.exe restore stuff/tabletS.ab
echo Please look at your device and click "Restore my data"
echo.
stuff\adb.exe shell "while [ ! -d /data/data/com.android.settings/a/file99 ] ; do echo 1; done" > NUL
echo 1st RESTORE OK, hit ENTER to continue.
pause
stuff\adb.exe shell "rm -r /data/data/com.android.settings/a"
stuff\adb.exe restore stuff/tabletS.ab
echo Please look at your device and click "Restore my data"
echo.
stuff\adb.exe shell "while : ; do ln -s /data /data/data/com.android.settings/a/file99; [ -f /data/file99 ] && exit; done" > NUL
stuff\adb.exe shell "rm -r /data/file99"
echo Achieved! hit ENTER to continue.
echo.
pause
stuff\adb.exe shell "mv /data/system /data/system3"
stuff\adb.exe shell "mv /data/system- /data/system"
stuff\adb.exe shell "mv /data/app /data/app3"
stuff\adb.exe shell "mv /data/app- /data/app"
echo "Roll back compelted."
GOTO FINISH
:TABS_RB_2
echo.
echo.
echo "Roll back failed. /data/app- not found."
echo.
echo.
GOTO FINISH
:eek:THER
echo.
echo Normal Mode enabled!
if %ric% == 1 (del ric) else (echo .)
echo.
:START
stuff\adb.exe wait-for-device
IF %type% == 2 GOTO TABTRICK
echo Pushing busybox....
stuff\adb.exe push stuff/busybox /data/local/tmp/.
echo Pushing su binary ....
stuff\adb.exe push stuff/su /data/local/tmp/.
echo Pushing Superuser app
stuff\adb.exe push stuff/Superuser.apk /data/local/tmp/.
echo Making busybox runable ...
stuff\adb.exe shell chmod 755 /data/local/tmp/busybox
if %ric% == 1 (stuff\adb.exe push stuff/ric /data/local/tmp/ric) else (echo .)
IF %nxt% == 1 GOTO XPSTRICK
stuff\adb.exe restore stuff/fakebackup.ab
echo Please look at your device and click RESTORE!
echo If all is successful i will tell you, if not this shell will run forever.
echo Running ...
stuff\adb.exe shell "while ! ln -s /data/local.prop /data/data/com.android.settings/a/file99; do :; done" > NUL
echo Successful, going to reboot your device in 10 seconds!
ping -n 10 127.0.0.1 > NUL
stuff\adb.exe reboot
echo Waiting for device to show up again....
pause
ping -n 10 127.0.0.1 > NUL
stuff\adb.exe wait-for-device
GOTO NORMAL
:TABTRICK
stuff\adb.exe install -s stuff/Term.apk
stuff\adb.exe push stuff/busybox /data/local/tmp/.
stuff\adb.exe push stuff/su /data/local/tmp/.
stuff\adb.exe push stuff/Superuser.apk /data/local/tmp/.
stuff\adb.exe push stuff/rootkittablet.tar.gz /data/local/tmp/rootkittablet.tar.gz
stuff\adb.exe shell "chmod 755 /data/local/tmp/busybox"
stuff\adb.exe shell "/data/local/tmp/busybox tar -C /data/local/tmp -x -v -f /data/local/tmp/rootkittablet.tar.gz"
stuff\adb.exe shell "chmod 644 /data/local/tmp/VpnFaker.apk"
stuff\adb.exe shell "touch -t 1346025600 /data/local/tmp/VpnFaker.apk"
stuff\adb.exe shell "chmod 755 /data/local/tmp/_su"
stuff\adb.exe shell "chmod 755 /data/local/tmp/su"
stuff\adb.exe shell "chmod 755 /data/local/tmp/onload.sh"
stuff\adb.exe shell "chmod 755 /data/local/tmp/onload2.sh"
stuff\adb.exe shell "rm -r /data/data/com.android.settings/a/*"
stuff\adb.exe restore stuff/tabletS.ab
echo Please look at your device and click "Restore my data"
echo.
stuff\adb.exe shell "while [ ! -d /data/data/com.android.settings/a/file99 ] ; do echo 1; done" > NUL
ping -n 3 127.0.0.1 > NUL
echo 1st RESTORE OK, hit ENTER to continue.
pause
stuff\adb.exe shell "rm -r /data/data/com.android.settings/a"
stuff\adb.exe restore stuff/tabletS.ab
echo Please look at your device and click "Restore my data"
echo.
stuff\adb.exe shell "while : ; do ln -s /data /data/data/com.android.settings/a/file99; [ -f /data/file99 ] && exit; done" > NUL
stuff\adb.exe shell "rm -r /data/file99"
ping -n 3 127.0.0.1 > NUL
echo Achieved! hit ENTER to continue.
echo.
pause
stuff\adb.exe shell "/data/local/tmp/busybox cp -r /data/system /data/system2"
stuff\adb.exe shell "/data/local/tmp/busybox find /data/system2 -type f -exec chmod 666 {} \;"
stuff\adb.exe shell "/data/local/tmp/busybox find /data/system2 -type d -exec chmod 777 {} \;"
stuff\adb.exe shell "mv /data/system /data/system-"
stuff\adb.exe shell "mv /data/system2 /data/system"
stuff\adb.exe shell "mv /data/app /data/app-"
stuff\adb.exe shell "mkdir /data/app"
stuff\adb.exe shell "mv /data/local/tmp/VpnFaker.apk /data/app"
stuff\adb.exe shell "/data/local/tmp/busybox sed -f /data/local/tmp/packages.xml.sed /data/system-/packages.xml > /data/system/packages.xml"
stuff\adb.exe shell "sync; sync; sync"
echo Need to reboot now!
stuff\adb.exe reboot
ping -n 3 127.0.0.1 > NUL
echo Waiting for device to come up again....
pause
stuff\adb.exe wait-for-device
echo Unlock your device, a Terminal will show now, type this 2 lines, after each line press ENTER
echo /data/local/tmp/onload.sh
echo /data/local/tmp/onload2.sh
echo after this is done press a key here in this shell to continue!
echo If the shell on your device does not show please re-start the process!
stuff\adb.exe shell "am start -n com.android.vpndialogs/.Term"
pause
GOTO TABTRICK1
:TABTRICK1
stuff\adb.exe push stuff/script1.sh /data/local/tmp/.
stuff\adb.exe shell "chmod 755 /data/local/tmp/script1.sh"
stuff\adb.exe shell "/data/local/tmp/script1.sh"
echo Almost complete! Reboot and cleanup.
stuff\adb.exe reboot
ping -n 3 127.0.0.1 > NUL
echo Waiting for device to come up again....
pause
stuff\adb.exe wait-for-device
stuff\adb.exe shell "su -c 'rm -r /data/app2'"
stuff\adb.exe shell "su -c 'rm -r /data/system2'"
stuff\adb.exe shell "su -c 'rm -r /data/local/tmp/*'"
GOTO FINISH
:XPSTRICK
set %NXT%=0
echo Pushing fake Backup
stuff\adb.exe push stuff\RootMe.tar /data/local/tmp/RootMe.tar
stuff\adb.exe shell "mkdir /mnt/sdcard/.semc-fullbackup > /dev/null 2>&1"
echo Extracting fakebackup on device ...
stuff\adb.exe shell "cd /mnt/sdcard/.semc-fullbackup/; /data/local/tmp/busybox tar xf /data/local/tmp/RootMe.tar"
echo Watch now your device. Select the backup named RootMe and restore it!
stuff\adb.exe shell "am start com.sonyericsson.vendor.backuprestore/.ui.BackupActivity"
echo If all is successful i will tell you, if not this shell will run forever.
echo Running ......
stuff\adb.exe shell "while ! ln -s /data/local.prop /data/data/com.android.settings/a/file99; do :; done" > NUL
echo.
echo Good, it worked! Now we are rebooting soon, please be patient!
ping -n 3 127.0.0.1 > NUL
stuff\adb.exe shell "rm -r /mnt/sdcard/.semc-fullbackup/RootMe"
stuff\adb.exe reboot
ping -n 10 127.0.0.1 > NUL
echo Waiting for device to come up again....
pause
stuff\adb.exe wait-for-device
:NORMAL
IF %ric% == 1 GOTO RICSTUFF
echo Going to copy files to it's place
stuff\adb.exe shell "/data/local/tmp/busybox mount -o remount,rw /system && /data/local/tmp/busybox mv /data/local/tmp/su /system/xbin/su && /data/local/tmp/busybox mv /data/local/tmp/Superuser.apk /system/app/Superuser.apk && /data/local/tmp/busybox cp /data/local/tmp/busybox /system/xbin/busybox && chown 0.0 /system/xbin/su && chmod 06755 /system/xbin/su && chmod 655 /system/app/Superuser.apk && chmod 755 /system/xbin/busybox && rm /data/local.prop && reboot"
GOTO FINISH
:RICSTUFF
echo Going to copy files to it's place
stuff\adb.exe shell "/data/local/tmp/busybox mount -o remount,rw /system && /data/local/tmp/busybox mv /data/local/tmp/ric /system/bin/ric && chmod 755 /system/bin/ric && /data/local/tmp/busybox mv /data/local/tmp/su /system/xbin/su && /data/local/tmp/busybox mv /data/local/tmp/Superuser.apk /system/app/Superuser.apk && /data/local/tmp/busybox cp /data/local/tmp/busybox /system/xbin/busybox && chown 0.0 /system/xbin/su && chmod 06755 /system/xbin/su && chmod 655 /system/app/Superuser.apk && chmod 755 /system/xbin/busybox && rm /data/local.prop && reboot"
GOTO FINISH
:FINISH
echo You can close all open command-prompts now!
echo After reboot all is done! Have fun!
echo Bin4ry
pause
5) Just did it!
Now you have only to download Root App Delete tool and remove all crappy chinese apps you'll never use. If it works, you did it! cheers!
Hope you enjoied this guide, I tried to be as simple as possible
Burstina
Hey man !!! please make back up of your off software !!! i have brick my phone !!!!
PeBBa said:
Hey man !!! please make back up of your off software !!! i have brick my phone !!!!
Click to expand...
Click to collapse
wait, what did you do?
did you try factory reset?
burstina - no man i put in ROM flash other firmware !
PeBBa said:
burstina - no man i put in ROM flash other firmware !
Click to expand...
Click to collapse
this is bad... I'm new on smartphone world, I'll tell you something once I'll make a succesfull firmware backup.
btw, I tried using nandroid backup, even if there is no correct patch for our device, I was just able to do something I still can't fully understand:
something like that... it is 1 Gb friend. Perhaps there is another way to do a backup for you, any idea?
2.163.712 .android_secure.vfat.tar
10.240 cache.ext4.tar
286.050.304 data.ext4.tar
256 nandroid.md5
473.817.088 sd-ext.vfat.tar
357.468.160 system.ext4.tar
Does lewa os support this phone ?
I'm enjoying lewa on zp100 and this tianji looks very similar in build.
UPDATE:
with linux I used the RunMe.sh provided by Bin4ry (no edit was needed)
Now that it's rooted I just need to find and flash a CWM recovery and then I'd start trying looking for lewa
Here are some guides about the recovery question:
http://omappedia.org/wiki/Android_eMMC_Booting#Modifying_.IMG_Files (how recovery.img is built)
http://andwise.net/?p=403 (unpack/repack system)
http://forum.xda-developers.com/showthread.php?t=1587411 (mtk related perl script to unpack/repack recovery - it works)
http://www.twobitcoder.com/?p=158 (curious if I could open this page)
Do you think we can use cwm and rom from this one http://forum.xda-developers.com/showthread.php?t=1899592 ?
I'm almost sure the difference between haipad and tianji is in screen size only
---------- Post added at 03:21 PM ---------- Previous post was at 02:51 PM ----------
UPDATE:
I found lewa for haipad x720d !!!
http://forum.china-iphone.ru/sborka-lewa-os-dlya-haipai-x720d-t27041.html
I've uploaded the full nandroid here https://mega.co.nz/#F!RI5QHS4C!eJ39DF-LaQEzQey_fFCwuA.
I'd like a cwm recovery and a firefox os rom for it
Also found this:
http://forum.xda-developers.com/showthread.php?t=1825722
Tianji X720D
Hi suoko you had uploaded the full nandroid here - mega.co.nz/#F!RI5QHS4C!eJ39DF-LaQEzQey_fFCwuA[
Are all those files refer to Tianji X720D phone? Can we use it to flash the phone?
Thanks.:fingers-crossed:
Install Mt657xRepartition_en.apk and choose 2.5gb to have a larger storage for apps
Inviato dal mio GT-I9300 con Tapatalk 2

[SCRIPT] Common ADB/FASTBOOT Functions

DISCLAIMER: I TAKE NO RESPONSIBILITY FOR DAMAGE CAUSED TO ANYONE OR ANYTHING BY USING MY SCRIPT. USE THIS AT YOUR OWN RISK.
So pretty much this is a script that can:
1. Flash a new boot animation without going through all the hassle of entering remounting commands. (Main reason why I wrote this) (Requires root and maybe adb insecure by chainfire)
2. Flash a new startup logo. (Requires unlocked bootloader)
3. Basic reboot commands with the press of a number.
4. Push and Pull files without entering commands, just need to specify the file location by dragging and dropping into the command window. (Some cases may need root. If your case does not need root, and the script says failed to restart adb as root, your command will still work, hopefully)
5. Install an apk the same way as 4. (If it says failed to restart as root it will still work in most cases)
6. Extremely noob friendly :laugh:.
Just a small little script to make your life a bit easier.
I tested this numerous times on a Moto G xt1032 running cyanogenmod 11 m4 and it showed no flaws. If this does not work for you try installing adb insecure by chainfire.
This works on windows only (I think).
If you find any bugs please tell me and I will try to fix even though I am just starting out with the wonders of developing. Some of the functions of the script need root access!
To use this, just copy and paste the lines below into a notepad window. Then save the file as something.bat Make sure to change the dropdown menu from txt document to all files when saving. Put the script in the folder where adb.exe and fastboot.exe are located. Double-click and enjoy!
Press "Click to show content" below!
@ECHO off
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
echo IF YOUR DEVICE IS LISTED BELOW TYPE 1
echo ELSE TYPE 2 TO EXIT
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
adb devices
SET /p startcheck= Type your choice:
if "%startcheck%" =="1" goto menu
if "%startcheck%" =="2" goto exit
:menu
cls
echo Type 0 for Device Check
echo Type 1 to Flash Boot Animation (ADB root required)
echo Type 2 to Flash Startup Logo
echo Type 3 to Reboot to Bootloader
echo Type 4 to Reboot
echo Type 5 to Pull a File
echo Type 6 to Push a File
echo Type 7 to Install Apk
echo Type 8 to Run ADB as Root
echo Type 9 to Browse and Copy Apps to Computer (ADB root required)
echo Type 10 to Browse and Copy SYSTEM Apps to Computer (ADB root required)
echo Type 11 to Exit
SET /p choice= Type your choice:
if "%choice%" =="0" goto devcheck
if "%choice%" =="1" goto anim
if "%choice%" =="2" goto logo
if "%choice%" =="3" goto rebootloader
if "%choice%" =="4" goto reboot
if "%choice%" =="5" goto adbpull
if "%choice%" =="6" goto adbpush
if "%choice%" =="7" goto apk
if "%choice%" =="8" goto adbroot
if "%choice%" =="9" goto apps
if "%choice%" =="10" goto sysapps
if "%choice%" =="11" goto exit
goto end
:end
cls
echo Type 1 to restart program
echo Type 2 to exit
SET /p restart= Type your choice
if "%restart%" =="1" goto menu
if "%restart%" =="2" goto exit
:exit
exit
:anim
cls
adb kill-server
adb start-server
cls
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
echo IF YOUR DEVICE IS LISTED BELOW TYPE 1
echo ELSE TYPE 2 TO EXIT
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
adb devices
SET /p adb= Type your choice
if "%adb%" =="2" goto menu
cls
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
echo TYPE THE PATH FOR YOUR bootanimation.zip
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
SET /p bapath= Type your path here and press enter:
cls
adb wait-for-device root
timeout -t 1 > nul
echo Remounting system in read-write mode!
adb wait-for-device remount
timeout -t 2 > nul
adb wait-for-device shell "su -c 'mount -o rw,remount -t yaffs2 /dev/block/mtdblock1 /system'"
echo Deleting existing bootanimation!
adb wait-for-device shell "su -c 'rm /system/media/bootanimation.zip'"
echo Sending new bootanimation!
adb push %bapath% /system/media
echo Remounting system in read-only mode!
adb wait-for-device shell "su -c 'mount -o ro,remount -t yaffs2 /dev/block/mtdblock1 /system'"
echo Done!
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
echo Press 1 to reboot!
echo Press 2 to exit!
SET /p dm= Type your choice
if "%dm%" =="1" goto reboot
if "%dm%" =="2" goto end
:logo
cls
echo Rebooting to bootloader...
adb reboot-bootloader
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
echo When device is in bootloader press any key to continue!
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PAUSE
cls
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
echo IF YOUR DEVICE IS LISTED BELOW TYPE 1
echo ELSE TYPE 2 TO EXIT
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fastboot devices
SET /p fbdev= Type your choice
if "%fbdev%" =="2" goto menu
cls
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
echo TYPE THE PATH FOR YOUR logo.bin
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
SET /p lopath= Type your path here and press enter:
cls
echo Sending new logo!
fastboot flash logo %lopath%
echo Rebooting...
fastboot reboot
echo Done!
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
echo Press any key to return to menu!
PAUSE
goto menu
:reboot
cls
adb reboot
echo Rebooting...
timeout -t 3 > nul
goto menu
:rebootloader
cls
adb reboot-bootloader
echo Rebooting to bootloader...
timeout -t 3 > nul
goto menu
:adbpull
cls
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
echo TYPE THE PATH FOR THE FILE TO PULL
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
SET /p adbpullpath= Type your path here and press enter:
cls
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
echo TYPE THE PATH FOR THE FILE TO SAVE
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
SET /p adbpullsave= Type your path here and press enter:
cls
echo !!!IF THIS ACTION NEEDS ROOT RUN OPTION 8 FROM MENU FIRST!!!
timeout -t 2 > nul
echo Pulling File!
adb wait-for-device pull %adbpullpath% %adbpullsave%
echo Done!
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
echo Press any key to return to menu!
PAUSE
goto menu
:adbpush
cls
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
echo TYPE THE PATH FOR THE FILE TO PUSH
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
SET /p adbpushpath= Type your path here and press enter:
cls
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
echo TYPE THE PATH FOR THE DIRECTORY TO PUSH TO
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
SET /p adbpushsave= Type your path here and press enter:
cls
echo !!!IF THIS ACTION NEEDS ROOT RUN OPTION 8 FROM MENU FIRST!!!
timeout -t 2 > nul
echo Pushing File!
adb wait-for-device push %adbpushpath% %adbpushsave%
echo Done!
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
echo Press any key to return to menu!
PAUSE
goto menu
:apk
cls
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
echo IF YOUR DEVICE IS LISTED BELOW TYPE 1
echo ELSE TYPE 2 TO EXIT
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
adb devices
SET /p apkcheck= Type your choice
if "%apkcheck%" =="2" goto exit
cls
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
echo TYPE THE PATH FOR THE APK TO INSTALL
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
SET /p apkinstall= Type your path here and press enter:
cls
echo !!!IF THIS ACTION NEEDS ROOT RUN OPTION 8 FROM MENU FIRST!!!
timeout -t 2 > nul
echo Installing Apk!
adb wait-for-device install %apkinstall%
echo Done!
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
echo Press any key to return to menu!
PAUSE
goto menu
:devcheck
cls
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
echo DEVICE CONNECTION CHECK
echo Your device should be listed below!
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
adb devices
PAUSE
goto menu
:adbroot
cls
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
echo Trying to run ADB as root!
adb wait-for-device root
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
echo !!!ONCE DEVICE RECONNECTS TO COMPUTER PRESS ANY KEY TO GET TO MENU!!!
PAUSE
goto menu
:apps
cls
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
adb wait-for-device shell "su -c 'ls /data/app'"
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
echo Do you want to copy an app to the computer?
set /p appans= (Y or N):
if "%appans%" =="N" goto menu
if "%appans%" =="n" goto menu
if "%appans%" =="no" goto menu
if "%appans%" =="No" goto menu
if "%appans%" =="NO" goto menu
cls
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
adb wait-for-device shell "su -c 'ls /data/app'"
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
echo Type the app's name EXACTLY including the .apk extension
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
set /p appcp= Type the name EXACTLY as it appears:
cls
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
echo Type the destination directory
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
set /p appdd= Destination Directory:
cls
echo Copying App!
adb pull /data/app/%appcp% %appdd%
echo Done!
PAUSE
goto menu
:sysapps
cls
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
adb wait-for-device shell "su -c 'ls /system/app'"
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
echo Do you want to copy an app to the computer?
set /p sappans= (Y or N):
if "%sappans%" =="N" goto menu
if "%sappans%" =="n" goto menu
if "%sappans%" =="no" goto menu
if "%sappans%" =="No" goto menu
if "%sappans%" =="NO" goto menu
cls
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
adb wait-for-device shell "su -c 'ls /system/app'"
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
echo Type the app's name EXACTLY including the .apk extension
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
set /p sappcp= Type the name EXACTLY as it appears:
cls
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
echo Type the destination directory
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
set /p sappdd= Destination Directory:
cls
echo Copying App!
adb pull /system/app/%sappcp% %sappdd%
echo Done!
PAUSE
goto menu

[SCRIPT] Bootanimation.zip Flasher

This is a simple script that automatically flashes a new boot animation. It does the remount and deletion commands automatically to provide an easy and fast way to flash boot animations.
ADB ROOT command must be functioning for this to work properly.
DISCLAIMER: THE CREATOR IS NOT RESPONSIBLE FOR DAMAGE CAUSED BY THE USE OF THIS SCRIPT! USE THIS AT YOUR OWN RISK!!!
1. Copy the code below into a new notepad window.
2. Save the file as bootanimation flasher.bat in the folder where adb and its components are located. (MAKE SURE YOU HAVE THE .bat EXTENSION)
3. Run the script!
Common Errors:
"error protocol failure" - this error occurs when the command adb root did not function properly. Fix the issue and try again. Try and re-enable usb debugging if it still doesn't work.
Try and use this app to get adb root functioning: http://forum.xda-developers.com/showthread.php?t=1687590
This was tried and tested with success on a oneplus one and a moto g (1st gen)
Script (click button to show):
@echo off
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
echo ROOT ACCESS IS REQUIRED. ADB ROOT COMMAND MUST BE FUNCTIONING.
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
echo THE CREATOR OF THIS SCRIPT IS NOT RESPONSIBLE FOR ANY DAMAGE!
echo USE THIS AT YOUR OWN RISK!!!
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PAUSE
cls
echo Starting ADB!
adb kill-server > nul
adb start-server > nul
echo Done!
timeout -t 1 > nul
:menu
cls
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
echo IF YOUR DEVICE IS LISTED BELOW TYPE 1
echo TYPE 2 TO TRY AGAIN
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
adb devices
SET /p startcheck= Type your choice:
if "%startcheck%" =="1" goto ask
if "%startcheck%" =="2" goto menu
goto menu
:ask
cls
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
echo TYPE 1 TO FLASH BOOTANIMATION!
echo TYPE 2 TO BACKUP EXISTING BOOTANIMATION THEN FLASH!
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
SET /p askbackup= Type your choice:
if "%askbackup%" =="1" goto anim
if "%askbackup%" =="2" goto backup
goto menu
:backup
cls
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
echo TYPE THE PATH TO BACKUP BOOTANIMATION TO!
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
SET /p backuppath= Type your path and press enter:
cls
echo Backing Up!
adb pull /system/media/bootanimation.zip %backuppath%
echo Done
PAUSE
goto anim
:anim
cls
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
echo TYPE THE PATH FOR YOUR bootanimation.zip
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
SET /p bapath= Type your path here and press enter:
cls
echo Running command adb root...
adb wait-for-device root > nul
timeout -t 1 > nul
echo Success, Root Access obtained!
echo Remounting system in read-write mode!
adb wait-for-device remount > nul
timeout -t 1 > nul
adb wait-for-device shell "su -c 'mount -o rw,remount -t yaffs2 /dev/block/mtdblock1 /system'"
echo Remount Succeded!
echo Deleting existing bootanimation!
adb wait-for-device shell "su -c 'rm /system/media/bootanimation.zip'"
echo Sending new bootanimation!
adb push %bapath% /system/media
echo Remounting system in read-only mode!
adb wait-for-device shell "su -c 'mount -o ro,remount -t yaffs2 /dev/block/mtdblock1 /system'"
echo Done!
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
echo Press 1 to Reboot!
echo Press 2 to Exit!
SET /p dm= Type your choice
if "%dm%" =="1" goto reboot
if "%dm%" =="2" goto exit
:reboot
cls
echo Rebooting!
adb reboot
timeout -t 1 > nul
PAUSE
:exit
exit

Method to flash Recovery on your Lollipop LG G Pro 2 (F350L)

It should be this one, you must unzip in Windows 7,
and make the folders unhidden.
http://pan.baidu.com/share/link?shareid=2319894707&uk=607599158
unzip and copy the adb.exe etc. files and the imgL folder to Desktop
Make sure your Windows 7 (not Windows 8/10) can recognise adb.exe,
google for solution if it doesn't.
Create a Flash.bat containing the following scripts:
@ECHO off
pause
echo contacting, please wait
adb kill-server > NUL 2>&1
echo one minute, be patient
adb shell su -c "mount -o remount, rw /system"
adb shell su -c "rm -r /sdcard/img"
adb shell su -c "mkdir /sdcard/img"
adb push imgL /sdcard/img
adb shell su -c "dd if=/storage/emulated/0/img/recovery.img of=/dev/block/platform/msm_sdcc.1/by-name/recovery"
adb shell su -c "dd if=/storage/emulated/0/img/aboot.img of=/dev/block/platform/msm_sdcc.1/by-name/aboot"
adb shell su -c "dd if=/storage/emulated/0/img/boot.img of=/dev/block/platform/msm_sdcc.1/by-name/boot"
adb shell su -c "dd if=/storage/emulated/0/img/dbi.img of=/dev/block/platform/msm_sdcc.1/by-name/dbi"
adb shell su -c "dd if=/storage/emulated/0/img/laf.img of=/dev/block/platform/msm_sdcc.1/by-name/laf"
adb shell su -c "dd if=/storage/emulated/0/img/persist.img of=/dev/block/platform/msm_sdcc.1/by-name/persist"
adb shell su -c "dd if=/storage/emulated/0/img/rpm.img of=/dev/block/platform/msm_sdcc.1/by-name/rpm"
adb shell su -c "dd if=/storage/emulated/0/img/sbl1.img of=/dev/block/platform/msm_sdcc.1/by-name/sbl1"
adb shell su -c "dd if=/storage/emulated/0/img/tz.img of=/dev/block/platform/msm_sdcc.1/by-name/tz"
adb shell su -c "dd if=/storage/emulated/0/img/modem.img of=/dev/block/platform/msm_sdcc.1/by-name/modem"
adb shell su -c "rm -r /sdcard/img"
echo.
echo ***********************************************************************
echo * Congratulations , reboot to recovery *
echo ***********************************************************************
echo.
pause
adb reboot recovery
Any questions can email to me: [email protected]
It works 100% for me.
can you upload it somewhere else, I cant download from here.
what about f350k?
Works for all LG G Pro 2.
My F350L has become D838 after flashing cm13.
Thank you very much. Was going crazy with this because i couldnt find any kk kdz to go back and didnt have recovery cuz i was on lollipop.
Btw do you have a kk kdz?
atifsh said:
can you upload it somewhere else, I cant download from here.
Click to expand...
Click to collapse
Use Baidu browser to download. any other browser will probably stop before download is complete.
This is the only method so far what really worked to me!
I can confirm that this method works perfectly on my D838 Lollipop! A BIG thank you from Hungary!
I am glad that it works for you.
Anyway, I am not going to flash any more ROM on my GP2, it is an old phone.
I am switching to other phone.
My LG G Pro 2 is two years old now, but I still love it : -) I had a problem with the LCD, as a brown strip appeared at the top right corner of the screen, and later I dropped the phone and the glass was broken. At first I was thinking to invest into a new phone, but I changed my mind and replaced the LCD module instead. It costed 54 EUR on eBay, way cheaper than a new phone with a similar spec! I have no intention to buy a new phone in the near future, so your method was really useful to me.
Whenever you flash a new ROM, remember to flash again the TWRP rom before rebooting, so that you continue to have your TWRP recovery.
I just wrote a backup script for the same folders, just in case anything messes up.
There is also a path error, because "su" runs a command as superuser, and sees the files in different way.
BUT, why do we flash ALL the partitions?
I think we would have to ONLY flash the Recovery one, the rest just increases the risk of bricking.
Or am I wrong here?
Backup script:
Code:
@echo off
REM *****************************************************************
REM * This script was written by XDA member [h8aramex] *
REM * Email contact: [email protected] *
REM * *
REM * Target phone: LG G Pro 2 32GB *
REM * Target Model: D838 *
REM * Target version: d83820d *
REM * *
REM * Script description: *
REM * Backup crucial / recovery partition found on a G Pro 2. *
REM * *
REM * Original author: [yplim200] XDA member *
REM * Took the idea, and names from his post. *
REM * *
REM * *
REM *****************************************************************
Set COUNT=1
Set COUNTFULL=10
echo.
echo *******************
echo * Starting backup *
echo *******************
echo.
REM clean previous backup
rmdir /S /Q backupmin
mkdir backupmin
REM restart server / restart in usb mode
adb kill-server
ping -n 3 127.0.0.1 >nul
adb usb
ping -n 3 127.0.0.1 >nul
REM clean temporary folder and re-create folder
adb shell "rm -r /sdcard/backupmin/"
adb shell "mkdir /sdcard/backupmin/"
REM do full backup of each partition
adb shell su -c "dd if=/dev/block/platform/msm_sdcc.1/by-name/recovery of=/storage/emulated/0/backupmin/recovery.img"
echo * Progress %COUNT%/%COUNTFULL% *
set /A COUNT+=1
adb shell su -c "dd if=/dev/block/platform/msm_sdcc.1/by-name/aboot of=/storage/emulated/0/backupmin/aboot.img"
echo * Progress %COUNT%/%COUNTFULL% *
set /A COUNT+=1
adb shell su -c "dd if=/dev/block/platform/msm_sdcc.1/by-name/boot of=/storage/emulated/0/backupmin/boot.img"
echo * Progress %COUNT%/%COUNTFULL% *
set /A COUNT+=1
adb shell su -c "dd if=/dev/block/platform/msm_sdcc.1/by-name/dbi of=/storage/emulated/0/backupmin/dbi.img"
echo * Progress %COUNT%/%COUNTFULL% *
set /A COUNT+=1
adb shell su -c "dd if=/dev/block/platform/msm_sdcc.1/by-name/laf of=/storage/emulated/0/backupmin/laf.img"
echo * Progress %COUNT%/%COUNTFULL% *
set /A COUNT+=1
adb shell su -c "dd if=/dev/block/platform/msm_sdcc.1/by-name/persist of=/storage/emulated/0/backupmin/persist.img"
echo * Progress %COUNT%/%COUNTFULL% *
set /A COUNT+=1
adb shell su -c "dd if=/dev/block/platform/msm_sdcc.1/by-name/rpm of=/storage/emulated/0/backupmin/rpm.img"
echo * Progress %COUNT%/%COUNTFULL% *
set /A COUNT+=1
adb shell su -c "dd if=/dev/block/platform/msm_sdcc.1/by-name/sbl1 of=/storage/emulated/0/backupmin/sbl1.img"
echo * Progress %COUNT%/%COUNTFULL% *
set /A COUNT+=1
adb shell su -c "dd if=/dev/block/platform/msm_sdcc.1/by-name/tz of=/storage/emulated/0/backupmin/tz.img"
echo * Progress %COUNT%/%COUNTFULL% *
set /A COUNT+=1
adb shell su -c "dd if=/dev/block/platform/msm_sdcc.1/by-name/modem of=/storage/emulated/0/backupmin/modem.img"
REM
REM pull the files to the user pc
REM
echo * Progress: COPY - Pulling files. *
adb pull "/sdcard/backupmin"
REM delete temp folder
echo * Progress: DONE - Pulling DONE. *
move *.img backupmin
REM adb shell su -c "rm -r /sdcard/backupmin"
echo.
echo *******************
echo * Backup complete *
echo *******************
echo.
pause
Link has dead!
This link is not working.
http://pan.baidu.com/share/link?shar...7&uk=60759915
All 'baidu' links are removed.
Does someone has another link?
I need TWRP. I've lost it after LP Update on F350s.
All the Baidu.com links are dead!
Can someone update these links?
I need this to install TWRP in my F350s. I've installed Lollipop but the TWRP is gone.
I have deleted everything, sorry.
I will not flash any more ROM on my LG G Pro2,
I will buy new phone of big battery 5000mAh.
GP2 will be used as spare phone.
Sorry.
yplim2300 said:
I have deleted everything, sorry.
I will not flash any more ROM on my LG G Pro2,
I will buy new phone of big battery 5000mAh.
GP2 will be used as spare phone.
Sorry.
Click to expand...
Click to collapse
Can you email me the zip file?
Or where else I should look for a solution? Any idea??? :silly:
Sorry, I had forgotten the method.
Links are dead!
Peregrinator said:
I can confirm that this method works perfectly on my D838 Lollipop! A BIG thank you from Hungary!
Click to expand...
Click to collapse
Can you please send me that zip file?
Or provide a link?
Try this link, but it is vorking only for 4 days:
http://www.mammutmail.com/hu/mail/download/671d3b099d743bfa80939e3ddf877ad1
Finally I've found it!
Thanks to Peregrinator to provide me the link. :good:
I've uploaded the 'GPRO2LLREC.zip' file to my Google Drive for easier access to all :angel:, here is the link:
https://drive.google.com/open?id=0BwKYxuGW8Z_PZ1hldi11REtIdmM
And I've tried it in my F350S it worked. 100% OK! :good:
However; the original post for this I've found is:
https://forum.xda-developers.com/lg...icial-5-0-1-lollipop-d838-20c-twn-16-t3023332
But it is not so easy to use. You will have to edit the script (bat file).

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

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
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.
Version Info
Update V1.2 FIXED Directory Issues Caused By Update v1.1 That I Missed
Update V1.1 added cmd prompt options for fastboot and adb. Also added fastboot oem unlock option.
bryantjopplin said:
Version Info
Update V1.2 FIXED Directory Issues Caused By Update v1.1 That I Missed
Update V1.1 added cmd prompt options for fastboot and adb. Also added fastboot oem unlock option.
Click to expand...
Click to collapse
Nice work! Automation saves lives :angel:.
kirito9 said:
Nice work! Automation saves lives :angel:.
Click to expand...
Click to collapse
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.
bryantjopplin said:
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.
Click to expand...
Click to collapse
Haven't used it as yet, was on Linux. Hoping for a Linux version soon.
kirito9 said:
Haven't used it as yet, was on Linux. Hoping for a Linux version soon.
Click to expand...
Click to collapse
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
bryantjopplin said:
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.
Click to expand...
Click to collapse
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 ----------
bryantjopplin said:
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
Click to expand...
Click to collapse
Check this out when you have time. Really good stuff.
kirito9 said:
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.
Click to expand...
Click to collapse
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
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
kirito9 said:
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.
Click to expand...
Click to collapse
bryantjopplin said:
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
Click to expand...
Click to collapse
Lol, I'm sorry if I gave the impression that I know bash :"). I don't, I did but I didn't get into the advanced stuff. Maybe @Ricky Divjakovski can help.
kirito9 said:
Lol, I'm sorry if I gave the impression that I know bash :"). I don't, I did but I didn't get into the advanced stuff. Maybe @Ricky Divjakovski can help.
Click to expand...
Click to collapse
The /data/app seems to do fine, still testing on a new flash haha. I guess trial and error will tell. Thanks though!
bryantjopplin said:
The /data/app seems to do fine, still testing on a new flash haha. I guess trial and error will tell. Thanks though!
Click to expand...
Click to collapse
Good luck .
kirito9 said:
Good luck .
Click to expand...
Click to collapse
Shows to be good. Haha now for a reboot.
bryantjopplin said:
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
Click to expand...
Click to collapse
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
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
Ricky Divjakovski said:
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
Click to expand...
Click to collapse
Ricky Divjakovski said:
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
Click to expand...
Click to collapse
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?
bryantjopplin said:
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?
Click to expand...
Click to collapse
check architecture then push correct busybox to /data/tmp, apply correct permissions and mount with busybox
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
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?
osm0sis said:
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?
Click to expand...
Click to collapse
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

Categories

Resources