Added to post 2:
The script, code examples and a package for comparison in making the tool with multiple menus!
Enjoy.
The script, code examples and a package for comparison in making the tool with multiple menus!
Enjoy.
hay this got on the portal congrats
http://www.xda-developers.com/android/create-your-own-one-click-utilities-for-windows/
Can i try this on my Xperia U with LB :fingers-crossed:
:laugh:
@ECHO OFF
COLOR 9b - this is the color of the UI - for a list of these click [URL="http://www.computerhope.com/color.htm"]here[/URL]
ECHO.
ECHO one click bootanimation flasher – title of the one click tool
ECHO. ends the text
ECHO By: XDA Eraste – you can put whatever you want here or leave it out..
ECHO.
ECHO.
ECHO. Adding space between text that appears by typing more ECHO. lines
ECHO Use this at your own risk! – simple disclaimer
ECHO.
ECHO By pressing enter you understand the risks – disclaimer
ECHO.
ECHO.
ECHO make sure your phone has usb debugging mode enabled! - information
ECHO.
ECHO.
ECHO make sure you put your custom bootanimation.zip file in this folder – info
ECHO.
PAUSE – this means nothing else will happen until user presses enter, any button
ECHO Loading files and preparing to send – simple information that displays
ECHO.
adb wait-for-device - this tells adb to wait until user has connected the phone
ECHO sending bootanimation - simple information that is displayed
ECHO.
adb push bootanimation.zip /system/media/bootanimation.zip - script that installs
the bootanimation!
ECHO Almost finished – more info
ECHO.
ECHO finished rebooting!
adb reboot – tells the phone to restart this allows you to make sure changes stuck
ECHO thanks for using this script
ECHO.
PAUSE
EXIT - closes the UI
ECHO.
ECHO Press any key to continue
ECHO.
PAUSE.
adb wait-for-device
adb reboot bootloader - this command will get you into fastboot. Make sure by looking at your phones screen it says fastboot usb or
something similar indicating you are in fastboot.
ECHO Rebooting to fastboot please wait and do not touch device!
ECHO.
fastboot flash boot boot.img - this is the command that will actually flash the kernel/ boot.img file
ECHO.
ECHO.
ECHO Finished you can now exit this tool and reboot the phone to recovery or the os
ECHO.
ECHO.
EXIT
fastboot flash boot elekernel.img
ECHO.
ECHO Press any key to continue
ECHO.
PAUSE
adb wait-for-device
ECHO sending your media files please wait and do not touch the phone!
ECHO.
adb push yoursoundsname.mp3 /system/media/audio/ringtones/yoursoundsname.mp3
Now remember the path to your system ringtones etc, may be different depending on the type of phone you have. The above location will work for samsung note 2 and the HTC one X This path is the most common path but still it depends on your phone. Simply use your file explorer and navigate your system folder until you find the path you need and type it in the command line instead of what I have above.
Repeat the above command line until you have all the tones you are flashing added into your bat file
adb push yoursoundsname.mp3 /system/media/audio/ringtones/yoursoundsname.mp3
adb push yoursoundsname1.mp3 /system/media/audio/ringtones/yoursoundsname1.mp3
adb push yoursoundsname2.mp3 /system/media/audio/notifications/yoursoundsname2.mp3
the above one will go into the notification folder for say your favorite SMS tone instead of the ringtone folder
adb push yoursoundsname.ogg /system/media/audio/ui/Lock.ogg <-- AH you see something new! This command will change your screen lock sound to whatever file you want it! This file must be in .ogg format! Make sure its no longer than about 1 second. Or you can get a terrible AudioOut_02 wakelock or similar that will drain your battery!
ECHO finished. Rebooting so changes take effect. After phone reboots you may unplug it
ECHO.
adb reboot
ECHO.
ECHO Thanks
ECHO.
EXIT
ECHO OFF
color 9f
CLS
:MENU
CLS
ECHO.
ECHO Before you start make sure your phone has USB Debugging enabled!
ECHO.
ECHO.
ECHO .... One CLick Multi Tool ....
ECHO Make your selection below
ECHO ..............................
ECHO.
ECHO 1 - Visit XDA
ECHO 2 - Visit Scotts ROMS
ECHO 3 - Visit EMBLWPDesign
ECHO.
ECHO 4 - Flash a new bootanimation: make sure your custom bootanimation
ECHO is in the bootani folder and named bootanimation.zip!
ECHO 5 - Flash New Ringtones
ECHO 6 - Exit this tool
ECHO.
ECHO 7 - Reboot Device
ECHO.
ECHo.
SET /P M=Type your choice then press ENTER:
IF %M%==1 GOTO XDA
IF %M%==2 GOTO SROMS
IF %M%==3 GOTO EMB
IF %M%==4 GOTO BA
IF %M%==5 GOTO RT
IF %M%==6 GOTO EOF
IF %M%==7 GOTO RD
:XDA
START "" "http://www.xda-developers.com"
GOTO MENU
:SROMS
START "" "http://www.scottsroms.com"
GOTO MENU
:EMB
START "" "http://www.emblwpdesign.com"
GOTO MENU
:BA
adb wait-for-device
adb push bootani/bootanimation.zip /system/media
GOTO MENU
:RT
adb wait-for-device
adb push ringtones /storage/extSdCard/ringtones
GOTO MENU
:RD
adb wait-for-device
adb reboot
GOTO MENU
ECHO OFF
color 9f
CLS
:MENU
CLS
ECHO.
ECHO ..................................
ECHO One click app backup
ECHO Make your selection below
ECHO ..................................
ECHO Developed by: XDA Eraste
ECHO ..................................
ECHO One click app backup
ECHO and restore
ECHO ..................................
ECHO.
ECHO.
ECHO.
ECHO Please review the readme file before continuing.
ECHO.
ECHO This tool is safe however I cannot take responsibility should
ECHO anything negative happen to your phone. Use this tool at your own risk.
ECHO.
ECHO 1 - Continue
ECHO 2 - Exit tool
ECHO 3 - Readme File
ECHO 4 - Credits/Share policy
ECHO.
SET /P M=Type your choice then press ENTER:
IF %M%==1 GOTO MENU1
IF %M%==2 GOTO EOF
IF %M%==3 GOTO RED
IF %M%==4 GOTO MENU2
:RED
ECHO.
START readme.txt
GOTO MENU
:MENU1
color 9f
CLS
ECHO.
ECHO ...............................
ECHO Main Menu
ECHO ...............................
ECHO.
ECHO.
ECHO.
ECHO 1 - Backup apps - This will only backup the apps not the
ECHO data. Use this for a "fresh" app install
ECHO after flashing a new rom, etc.
ECHO.
ECHO 2 - Restore apps - Remember no data will be restored these
ECHO will be "fresh" apps.
ECHO.
ECHO 3 - Exit tool
ECHO 4 - Reboot Device
ECHO 5 - Return to previous menu
ECHO.
SET /P M=Type your choice then press ENTER:
IF %M%==1 GOTO BUP
IF %M%==2 GOTO RES
IF %M%==3 GOTO EOF
IF %M%==4 GOTO REB
IF %M%==5 GOTO MENU
:BUP
ECHO Backing up apps to backup folder that will be created here.
ECHO.
ECHO This can take a while depending on how many apps you have
ECHO Press enter to continue
ECHO.
PAUSE
adb wait-for-device
adb pull /data/app ./backup
ECHO.
ECHO Backup finished Press Enter
ECHO.
PAUSE
GOTO MENU1
:RES
ECHO.
ECHO Restoring apps please wait this can take a while!
ECHO Hit enter to continue.
ECHO.
adb wait-for-device
adb install backup/*.apk
ECHO.
ECHO Finished Restoring apps. You can reboot now and apps should
ECHO show up in Google Play as installed.
PAUSE
GOTO MENU1
:REB
ECHO.
ECHO Are you sure you want to reboot device?
PAUSE
adb wait-for-device
adb reboot
ECHO.
ECHO Rebooting press any key to return to the menu.
PAUSE
GOTO MENU1
:MENU2
CLS
COLOR 04
ECHO.
ECHO ...........................................
ECHO Credits/Share policy please check them out!
ECHO ...........................................
ECHO.
ECHO 1 - Visit XDA
ECHO 2 - Visit ScottsROMS
ECHO 3 - Visit EMB LWP Design - My site
ECHO 4 - Return to main menu
ECHO.
ECHO .......................................
ECHO Share Policy
ECHO This tool created by eraste @ XDA
ECHO For all its users. Feel free to use this
ECHO tool at will. If you use portions of it
ECHO to make your own all I ask is that you
ECHO acknowlege myself a little.
ECHO Credits:
ECHO Developed by: Eraste
ECHO Backup script: Scott @scottsroms
ECHO Restore script: Eraste
ECHO Knowledge: XDA
ECHO ........................................
ECHO.
SET /P M=Type your choice then press ENTER:
IF %M%==1 GOTO XDA
IF %M%==2 GOTO SR
IF %M%==3 GOTO EMB
IF %M%==4 GOTO MENU1
:XDA
ECHO.
START "" "http://xdaforums.com/index.php"
GOTO MENU2
:SR
ECHO.
START "" "http://www.scottsroms.com/content.php"
GOTO MENU2
:EMB
START "" "http://www.emblwpdesign.com/"
GOTO MENU2
You can add also a guide for make a "kitchen" like how to add menus like press 1 to go to recovery flashar and it go to another menu:sly: