[software]fastboot helper V1.0 - Sony Ericsson Xperia Neo, Pro

fastboot helper.bat
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Code:
@echo off
title fastboot helper V1.0
:Start
set Choice=""
set UnlockChoice=""
set BootChoice=""
set BootString=""
set SystemChoice=""
set SystemString=""
cls
echo.
echo          ╔══════════════════╗
echo          ║    fastboot helper V1.0    ║
echo      ╔═══╩══════════════════╩═══╗
echo      ║      1.write file to boot block       ║
echo      ║     2.write file file to system block     ║
echo      ║       3.unlock your Xperia Phone      ║
echo      ║        4.test fastboot driver       ║
echo      ║           5.help            ║
echo      ║        (c)eqlove196426597         ║
echo      ║      http://free-dev.5d6d.com        ║
echo      ║   Tips:Press CTRL+C and N for skip,Thanks~   ║
echo      ╚══════════════════════════╝
echo. 
SET /P Choice=     Choose your option[1-5] and press enter:
if /I "%Choice%"=="" Goto Start
if /I "%Choice%"=="1" goto boot
if /I "%Choice%"=="2" goto system
if /I "%Choice%"=="3" goto unlock
if /I "%Choice%"=="4" fastboot getvar version
if /I "%Choice%"=="5" fastboot /?
pause >nul
goto start
:unlock
cls
echo.
echo          ╔══════════════════╗
echo          ║    Choose your unlock key   ║
echo      ╔═══╩══════════════════╩═══╗
echo      ║        1.0xC147E64987BD1D77        ║
echo      ║        2.type by yourself         ║
echo      ║         3.back to index          ║
echo      ║        (c)eqlove196426597         ║
echo      ║       http://free-dev.5d6d.com       ║
echo      ║   Tips:Press CTRL+C and N for skip,Thanks~   ║
echo      ╚══════════════════════════╝
echo. 
SET /P UnlockChoice=     Choose your option[1-3] and press enter:
if /I "%UnlockChoice%"=="" goto unlock
if /I "%UnlockChoice%"=="1" fastboot oem unlock 0xC147E64987BD1D77
if /I "%UnlockChoice%"=="2" goto unlock2
if /I "%UnlockChoice%"=="3" goto Start
echo Done,press enter to go back to index
pause >nul
goto start
:unlock2
SET /P UnlockString=     Type your unlock key and press enter:
fastboot oem unlock %UnlockString%
echo Done,press enter to go back to index
pause >nul
goto start
:boot
cls
echo.
echo          ╔══════════════════╗
echo          ║     Choose boot file     ║
echo      ╔═══╩══════════════════╩═══╗
echo      ║          1.boot.img            ║
echo      ║          2.kernel.sin           ║
echo      ║         3.type by yourself        ║
echo      ║          4.back to index         ║
echo      ║        (c)eqlove196426597         ║
echo      ║       http://free-dev.5d6d.com       ║
echo      ║   Tips:Press CTRL+C and N for skip,Thanks~   ║
echo      ╚══════════════════════════╝
echo. 
SET /P BootChoice=     Choose your option[1-4] and press enter:
if /I "%BootChoice%"=="" goto boot
if /I "%BootChoice%"=="1" fastboot flash boot boot.img
if /I "%BootChoice%"=="2" fastboot flash boot kernel.sin
if /I "%BootChoice%"=="3" goto boot2
if /I "%BootChoice%"=="4" goto Start
echo Done,press enter to go back to index
pause >nul
goto start
:boot2
SET /P BootString=     Type your boot file name and press enter:
fastboot flash boot %BootString%
echo Done,press enter to go back to index
pause >nul
goto start
:system
cls
echo.
echo          ╔══════════════════╗
echo          ║    Choose system file     ║
echo      ╔═══╩══════════════════╩═══╗
echo      ║          1.system.img          ║
echo      ║          2.system.sin           ║
echo      ║         3.type by yourself        ║
echo      ║          4.back to index         ║
echo      ║        (c)eqlove196426597         ║
echo      ║       http://free-dev.5d6d.com       ║
echo      ║   Tips:Press CTRL+C and N for skip,Thanks~   ║
echo      ╚══════════════════════════╝
echo. 
SET /P SystemChoice=     Choose your option[1-4] and press enter:
if /I "%SystemChoice%"=="" goto system
if /I "%SystemChoice%"=="1" fastboot flash system system.img
if /I "%SystemChoice%"=="2" fastboot flash system system.sin
if /I "%SystemChoice%"=="3" goto system2
if /I "%SystemChoice%"=="4" goto Start
echo Done,press enter to go back to index
pause >nul
goto start
:system2
SET /P SystemString=     Type your system file name and press enter:
fastboot flash system %SystemString%
echo Done,press enter to go back to index
pause >nul
goto start

no link to download ?

yadabwoy said:
no link to download ?
Click to expand...
Click to collapse
no need to download, copy the code to your bat file is ok.

i was using my phone since 4 months why s-off and root and there are no problems. just 2 days before i rooted one of the ics roms and got an error message and phone went ofline so i made a restorewhit cwm and phone came back online. after this steps i did supercid and s-on to my phone. now telephone works correctly but i cant get any updates or even i cant make my phone s-off again because of it says hboot version is older than 1.20.xxxxxx short for long about phone
- its working
- no problem whit general usage
- i cant do s-off
- cant get any updates
- sometimes when i open close actions it opens whit bootloader.
question ? how can i get my hboot to 1.17xxxx or 1.18.xxx again please help me
eqlove196426597 said:
fastboot helper.bat
Code:
@echo off
title fastboot helper V1.0
:Start
set Choice=""
set UnlockChoice=""
set BootChoice=""
set BootString=""
set SystemChoice=""
set SystemString=""
cls
echo.
echo          ╔══════════════════╗
echo          ║    fastboot helper V1.0    ║
echo      ╔═══╩══════════════════╩═══╗
echo      ║      1.write file to boot block       ║
echo      ║     2.write file file to system block     ║
echo      ║       3.unlock your Xperia Phone      ║
echo      ║        4.test fastboot driver       ║
echo      ║           5.help            ║
echo      ║        (c)eqlove196426597         ║
echo      ║      http://free-dev.5d6d.com        ║
echo      ║   Tips:Press CTRL+C and N for skip,Thanks~   ║
echo      ╚══════════════════════════╝
echo. 
SET /P Choice=     Choose your option[1-5] and press enter:
if /I "%Choice%"=="" Goto Start
if /I "%Choice%"=="1" goto boot
if /I "%Choice%"=="2" goto system
if /I "%Choice%"=="3" goto unlock
if /I "%Choice%"=="4" fastboot getvar version
if /I "%Choice%"=="5" fastboot /?
pause >nul
goto start
:unlock
cls
echo.
echo          ╔══════════════════╗
echo          ║    Choose your unlock key   ║
echo      ╔═══╩══════════════════╩═══╗
echo      ║        1.0xC147E64987BD1D77        ║
echo      ║        2.type by yourself         ║
echo      ║         3.back to index          ║
echo      ║        (c)eqlove196426597         ║
echo      ║       http://free-dev.5d6d.com       ║
echo      ║   Tips:Press CTRL+C and N for skip,Thanks~   ║
echo      ╚══════════════════════════╝
echo. 
SET /P UnlockChoice=     Choose your option[1-3] and press enter:
if /I "%UnlockChoice%"=="" goto unlock
if /I "%UnlockChoice%"=="1" fastboot oem unlock 0xC147E64987BD1D77
if /I "%UnlockChoice%"=="2" goto unlock2
if /I "%UnlockChoice%"=="3" goto Start
echo Done,press enter to go back to index
pause >nul
goto start
:unlock2
SET /P UnlockString=     Type your unlock key and press enter:
fastboot oem unlock %UnlockString%
echo Done,press enter to go back to index
pause >nul
goto start
:boot
cls
echo.
echo          ╔══════════════════╗
echo          ║     Choose boot file     ║
echo      ╔═══╩══════════════════╩═══╗
echo      ║          1.boot.img            ║
echo      ║          2.kernel.sin           ║
echo      ║         3.type by yourself        ║
echo      ║          4.back to index         ║
echo      ║        (c)eqlove196426597         ║
echo      ║       http://free-dev.5d6d.com       ║
echo      ║   Tips:Press CTRL+C and N for skip,Thanks~   ║
echo      ╚══════════════════════════╝
echo. 
SET /P BootChoice=     Choose your option[1-4] and press enter:
if /I "%BootChoice%"=="" goto boot
if /I "%BootChoice%"=="1" fastboot flash boot boot.img
if /I "%BootChoice%"=="2" fastboot flash boot kernel.sin
if /I "%BootChoice%"=="3" goto boot2
if /I "%BootChoice%"=="4" goto Start
echo Done,press enter to go back to index
pause >nul
goto start
:boot2
SET /P BootString=     Type your boot file name and press enter:
fastboot flash boot %BootString%
echo Done,press enter to go back to index
pause >nul
goto start
:system
cls
echo.
echo          ╔══════════════════╗
echo          ║    Choose system file     ║
echo      ╔═══╩══════════════════╩═══╗
echo      ║          1.system.img          ║
echo      ║          2.system.sin           ║
echo      ║         3.type by yourself        ║
echo      ║          4.back to index         ║
echo      ║        (c)eqlove196426597         ║
echo      ║       http://free-dev.5d6d.com       ║
echo      ║   Tips:Press CTRL+C and N for skip,Thanks~   ║
echo      ╚══════════════════════════╝
echo. 
SET /P SystemChoice=     Choose your option[1-4] and press enter:
if /I "%SystemChoice%"=="" goto system
if /I "%SystemChoice%"=="1" fastboot flash system system.img
if /I "%SystemChoice%"=="2" fastboot flash system system.sin
if /I "%SystemChoice%"=="3" goto system2
if /I "%SystemChoice%"=="4" goto Start
echo Done,press enter to go back to index
pause >nul
goto start
:system2
SET /P SystemString=     Type your system file name and press enter:
fastboot flash system %SystemString%
echo Done,press enter to go back to index
pause >nul
goto start
Click to expand...
Click to collapse
---------- Post added at 02:03 PM ---------- Previous post was at 02:02 PM ----------
my phone htc sensation

perhaps you should ask this question in HTC Sensation subforum

Related

[11/24/2011] Adb tools/Mod tools [WIP]

Here is a simple script for adb push and more.​Developed by Chubbzlou and myself.​
Over the coming days there will be more added. Some will be for experienced developers while some for the newer developers. My goal is to make a one stop tool to help with the following.
Changelog 11/24/2011
Updated the menu to simplify the options plus added HP Touchpad support
New Link
Changelog 10/12/2011
Ok, things got overhauled on this one to simplify things more. Currently there are 23 options with most of them working. The zip menu isn't working 100% but other than that you will have a lot of usefull stuff here.
It's been reorganized to the following.
Section 1
Apk editing
* Framework apks
* Decompile apks
* Compile apks
* Sign apks
* Install apks
* Compile/sign, install apks
Section 2
Classes.dex
* Decompile Classes.dex
* Compile classes.dex
Section 3
Logcat Menu
* Screen Logcat
* Logcat Text
Section 4
Push/Pull Menu
* Push system/folders
* Push data/app
* Pull system from phone
* Adb Shell
* Push to sdcard to create pushed folder or to root of sdcard
* New Back up your sdcard
Section 5
Reboot Menu
* Reboot Phone
* Reboot to Recovery
* Reboot to Bootloader
Section 6
Zip Menu
* Extract apk (not fuctional)
* Zip apk (not functional)
* Zip align/Png opting (completely functional now)
* Compression level (not functional)
Section 7
Odexing Menu
* You can now choose this for an automated odexing. It will odex your ROM, pull system/app and system/framework to device/app and device/framework
edit: Confirmed it will do multiple zipalign/opt pngs. Place apks in folder called apks. Choose menu 22, select zp. It will place them in tools/optimized. However, you have to hit enter after each apk for now. we are working on a fix to move folder to main directory and fix the hit enter. this will let you zipalign and opt all the apks and walk away.
Mirror
More to come...
Credit:
Chubbz, for helping with a lot of the scripting and ideas. Viddywell, thanks for your help. TommyT, your Android Utility inspired me to simplify things, Misfit, testing is always appreciated! Also, Virus. Always helping the community. Thanks brotha!
Sounds like we're thinking on similar wavelengths in terms of making things more easy and user friendly.
I am working on a wrapper to help with troubleshooting and running pre checks to assure any adb scripts will run properly here.
Interested in combining the two?
viddywell said:
Sounds like we're thinking on similar wavelengths in terms of making things more easy and user friendly.
I am working on a wrapper to help with troubleshooting and running pre checks to assure any adb scripts will run properly here.
Interested in combining the two?
Click to expand...
Click to collapse
sure
Plans are to expand this a lot more. Add decomplie/compile classes.dex, decompile/compile apks and jars, and sign non system jars, decompile systemui, framework-res, resources.apks and configure them to ur needs and recompile.
I am tired of using 4-5 different folders when one would surfice.
OMG man this is exactly what I've been wanting to see for the longest time...I'm not very familiar with ADB although I've been wanting to get to learn it for the longest time...thanks a bunfh man...much appreciated as always....
Sent from my PG86100 using Tapatalk
reverepats said:
OMG man this is exactly what I've been wanting to see for the longest time...I'm not very familiar with ADB although I've been wanting to get to learn it for the longest time...thanks a bunfh man...much appreciated as always....
Sent from my PG86100 using Tapatalk
Click to expand...
Click to collapse
+1 thanks Leo!
Nice write up as always Leo
Sent from the CM powered 3d
Leoisright said:
sure
Plans are to expand this a lot more. Add decomplie/compile classes.dex, decompile/compile apks and jars, and sign non system jars, decompile systemui, framework-res, resources.apks and configure them to ur needs and recompile.
I am tired of using 4-5 different folders when one would surfice.
Click to expand...
Click to collapse
Sounds good to me - I see a lot of wasted effort around troubleshooting and working through the basics that can be eliminated by building solid tools.
I've put our two works together. I renamed the file to adbtool.bat, you can change it to whatever you'd like but I'd steer you away from using the name "command" as it is also the same as the system variable for calling the cmd window on a machine.
You can test this by running the script with your device unplugged - that's the only time my portion should do anything. Otherwise it will jump right down to your section.
The .bat is attached and the code below:
Code:
@echo off
REM ========================================================================================================
REM PRE CHECK TEST SCRIPT WRITTEN BY VIDDYWELL (XDA)
REM FURTHER DETAILS AND FUTURE UPDATES AVAILABLE @ http://forum.xda-developers.com/showthread.php?t=1294880
REM ========================================================================================================
REM ====================== BEGIN PRE CHECK TEST SCRIPT ======================
:top
color f0
set reportrun=0
REM Check for HTC Sync
tasklist | findstr htcUPCTLoader >nul
If %errorlevel% equ 0 (set htcsync=1) ELSE (set htcsync=0)
REM Check for Easy Tether
tasklist | findstr easytthr >nul
If %errorlevel% equ 0 (set easyt=1) ELSE (set easyt=0)
REM Check for device connection
adb devices | findstr /r "device$" >nul
If %errorlevel% neq 0 goto devmis
REM Get device state (this can be used as an error checking variable later if necessary)
for /f %%a in ('adb get-state') do @set state=%%a
cls
Echo Device found! In %state% mode.
GOTO ADBCODE
REM ====================== ERROR HANDLING BELOW ======================
exit
:devmis
set sys=n
color 4f
CLS
Echo No device found - please check the following items:
Echo.
If %htcsync% equ 1 Echo - HTC Sync found - Please try disabling
If %easyt% equ 1 Echo - Easy Tether found - Please try disabling
Echo - Device is connected
Echo - USB Debugging is enabled
Echo.
Echo ------------------------------------------
Echo We can collect further information to assist with troubleshooting.
Echo This will query your system and generate a report with information
Echo about your computer. You will be given a chance to review and edit
Echo the collected information and share via copy/paste. No information
Echo will be shared without your consent.
Echo.
Set /p sys=Would you like to collect system information (y/n):
if /I %sys% equ y GOTO sysinfo
if /I %sys% equ yes sysinfo
goto tryagain
:tryagain
cls
echo.
If %reportrun% equ 1 (echo Text from window can be copied to forum for troubleshooting)
Echo Press any key to try running script again
Pause >nul
goto top
:sysinfo
Echo System information - Generated on %date% at %time% >report.txt
Echo ----------------------------------------------------- >>report.txt
echo ADB Version: >>report.txt
adb version >>report.txt
Echo. >>report.txt
echo Windows Version: >>report.txt
ver >>report.txt
Echo. >>report.txt
Echo Files in Directory of Script Execution >>report.txt
dir /b >>report.txt
Echo. >>report.txt
Echo Running Applications: >>report.txt
tasklist >>report.txt
Echo. >>report.txt
Echo Started Services: >>report.txt
sc query >>report.txt
start "" report.txt
set reportrun=1
goto tryagain
REM ====================== END PRE CHECK TEST SCRIPT ======================
REM ========================================================================================================
REM CODE BELOW THIS LINE WRITTEN BY LEOISRIGHT (XDA)
REM FURTHER DETAILS AND FUTURE UPDATES AVAILABLE @ http://forum.xda-developers.com/showthread.php?t=1297096
REM ========================================================================================================
:ADBCODE
setlocal enabledelayedexpansion
COLOR f0
mode con:cols=70 lines=34
setLocal EnableDelayedExpansion
cls
echo.
:restart
echo. **presented by Leoisright**
echo.
echo.
echo HELLO WHAT CAN I DO FOR YOU
echo.
echo.
ECHO 1 - CMD
echo.
ECHO 2 - Logcat
echo.
ECHO 3 - push system/folders
echo.
ECHO 4 - push data/app
echo.
ECHO 5 - Reboot to Recovery
echo.
ECHO 6 - Pull System from phone
echo.
set M=GARBAGE
SET /P M= Choose a Task then press ENTER:
IF %M%==1 GOTO CMD
IF %M%==2 GOTO LOGCAT
IF %M%==3 GOTO push
IF %M%==4 GOTO adb push data/app
IF %M%==5 GOTO RECOVERY
IF %M%==6 GOTO pull system
if %M%==7 GOTO Adb Shell
echo.
:CMD
start %windir%\system32\cmd.exe
cls
goto restart
echo.
echo.
:LOGCAT
start %windir%\system32\cmd.exe /k adb logcat
cls
goto restart
echo.
echo.
:push
start %windir%\system32\cmd.exe /k adb push push/system system/
cls
goto restart
echo.
echo.
cls
:adb push data/app
cd adb push
start %windir%\system32\cmd.exe /k adb push push/data/app data/app
cls
goto restart
echo.
echo.
cls
goto restart
:RECOVERY
cd TOOLS
adb reboot recovery
echo.
echo.
cls
:pull system
cd adb pull
start %windir%\system32\cmd.exe /k adb pull system xron/
cls
goto restart
echo.
echo.
cls
viddywell said:
Sounds good to me - I see a lot of wasted effort around troubleshooting and working through the basics that can be eliminated by building solid tools.
I've put our two works together. I renamed the file to adbtool.bat, you can change it to whatever you'd like but I'd steer you away from using the name "command" as it is also the same as the system variable for calling the cmd window on a machine.
You can test this by running the script with your device unplugged - that's the only time my portion should do anything. Otherwise it will jump right down to your section.
The .bat is attached and the code below:
Code:
@echo off
REM ========================================================================================================
REM PRE CHECK TEST SCRIPT WRITTEN BY VIDDYWELL (XDA)
REM FURTHER DETAILS AND FUTURE UPDATES AVAILABLE @ http://forum.xda-developers.com/showthread.php?t=1294880
REM ========================================================================================================
REM ====================== BEGIN PRE CHECK TEST SCRIPT ======================
:top
color f0
set reportrun=0
REM Check for HTC Sync
tasklist | findstr htcUPCTLoader >nul
If %errorlevel% equ 0 (set htcsync=1) ELSE (set htcsync=0)
REM Check for Easy Tether
tasklist | findstr easytthr >nul
If %errorlevel% equ 0 (set easyt=1) ELSE (set easyt=0)
REM Check for device connection
adb devices | findstr /r "device$" >nul
If %errorlevel% neq 0 goto devmis
REM Get device state (this can be used as an error checking variable later if necessary)
for /f %%a in ('adb get-state') do @set state=%%a
cls
Echo Device found! In %state% mode.
GOTO ADBCODE
REM ====================== ERROR HANDLING BELOW ======================
exit
:devmis
set sys=n
color 4f
CLS
Echo No device found - please check the following items:
Echo.
If %htcsync% equ 1 Echo - HTC Sync found - Please try disabling
If %easyt% equ 1 Echo - Easy Tether found - Please try disabling
Echo - Device is connected
Echo - USB Debugging is enabled
Echo.
Echo ------------------------------------------
Echo We can collect further information to assist with troubleshooting.
Echo This will query your system and generate a report with information
Echo about your computer. You will be given a chance to review and edit
Echo the collected information and share via copy/paste. No information
Echo will be shared without your consent.
Echo.
Set /p sys=Would you like to collect system information (y/n):
if /I %sys% equ y GOTO sysinfo
if /I %sys% equ yes sysinfo
goto tryagain
:tryagain
cls
echo.
If %reportrun% equ 1 (echo Text from window can be copied to forum for troubleshooting)
Echo Press any key to try running script again
Pause >nul
goto top
:sysinfo
Echo System information - Generated on %date% at %time% >report.txt
Echo ----------------------------------------------------- >>report.txt
echo ADB Version: >>report.txt
adb version >>report.txt
Echo. >>report.txt
echo Windows Version: >>report.txt
ver >>report.txt
Echo. >>report.txt
Echo Files in Directory of Script Execution >>report.txt
dir /b >>report.txt
Echo. >>report.txt
Echo Running Applications: >>report.txt
tasklist >>report.txt
Echo. >>report.txt
Echo Started Services: >>report.txt
sc query >>report.txt
start "" report.txt
set reportrun=1
goto tryagain
REM ====================== END PRE CHECK TEST SCRIPT ======================
REM ========================================================================================================
REM CODE BELOW THIS LINE WRITTEN BY LEOISRIGHT (XDA)
REM FURTHER DETAILS AND FUTURE UPDATES AVAILABLE @ http://forum.xda-developers.com/showthread.php?t=1297096
REM ========================================================================================================
:ADBCODE
setlocal enabledelayedexpansion
COLOR f0
mode con:cols=70 lines=34
setLocal EnableDelayedExpansion
cls
echo.
:restart
echo. **presented by Leoisright**
echo.
echo.
echo HELLO WHAT CAN I DO FOR YOU
echo.
echo.
ECHO 1 - CMD
echo.
ECHO 2 - Logcat
echo.
ECHO 3 - push system/folders
echo.
ECHO 4 - push data/app
echo.
ECHO 5 - Reboot to Recovery
echo.
ECHO 6 - Pull System from phone
echo.
set M=GARBAGE
SET /P M= Choose a Task then press ENTER:
IF %M%==1 GOTO CMD
IF %M%==2 GOTO LOGCAT
IF %M%==3 GOTO push
IF %M%==4 GOTO adb push data/app
IF %M%==5 GOTO RECOVERY
IF %M%==6 GOTO pull system
if %M%==7 GOTO Adb Shell
echo.
:CMD
start %windir%\system32\cmd.exe
cls
goto restart
echo.
echo.
:LOGCAT
start %windir%\system32\cmd.exe /k adb logcat
cls
goto restart
echo.
echo.
:push
start %windir%\system32\cmd.exe /k adb push push/system system/
cls
goto restart
echo.
echo.
cls
:adb push data/app
cd adb push
start %windir%\system32\cmd.exe /k adb push push/data/app data/app
cls
goto restart
echo.
echo.
cls
goto restart
:RECOVERY
cd TOOLS
adb reboot recovery
echo.
echo.
cls
:pull system
cd adb pull
start %windir%\system32\cmd.exe /k adb pull system xron/
cls
goto restart
echo.
echo.
cls
Click to expand...
Click to collapse
Good work Bro. Adbtool is much better. I set out to make a simple folder so I could push multiple libs/apps/bin for porting purposes. I will refine my scripts to be more Refined. While I've used lots of great bats, none are an all in one utility.
Tommytomatoe has a fantastic android utility for ubuntu and we need the same stuff for windows.
Let's keep building this. I will keep the OP updated
Sent from my PG86100 using Tapatalk
Hell yea nice, thanx
Sent from my PG86100 using XDA App
updated the thread more and have better adb .bat file for everyone. thanks
Good **** leo definitely gonna give this a shot
Sent from my PG86100 using Tapatalk
OP has been updated with more options and better description of the menu.
Leoisright said:
OP has been updated with more options and better description of the menu.
Click to expand...
Click to collapse
Thanks for the excellent contribution Leo, thanks chubbz!
Leo, your the best. This is Awesome!! Can't wait to be able to compile apks. Thanks for all you do for me and the rest of the community.
Tiffany84 said:
Leo, your the best. This is Awesome!! Can't wait to be able to compile apks. Thanks for all you do for me and the rest of the community.
Click to expand...
Click to collapse
we are very very close to compile right now. Also, we may have figured out a way to extract a zip to folder and zip it back up. will be nice to extract roms this way...mod, then zip back up
Leoisright said:
we are very very close to compile right now. Also, we may have figured out a way to extract a zip to folder and zip it back up. will be nice to extract roms this way...mod, then zip back up
Click to expand...
Click to collapse
WoW!! Just sounding better and better. Please, if you don't mind and can remember, keep me informed on your progress.
solver404 said:
Thanks for the excellent contribution Leo, thanks chubbz!
Click to expand...
Click to collapse
No prob just a little contibution for you guys. Enjoy
Looking good, this will help out so many people
Update. Will fill out OP more later but probaly will have another update before.. Enjoy.
Still a WIP but lots of stuff added.
Very nice tool. Keeps me from having to type adb commands out. Just one comment/suggestion:
Shouldn't the system be mounted before executing adb push(es)??

Xperia neo v wont boot (NO LED,NOTHING) after testpoint

I follow the procedure i have found here in xda...All seemed to be ok and i download fastboot found in an other site for my bad luck.I run the command that i found here but i get command not found.
AND for my bad luck again i run this script
Code:
cls
@echo off
color 7
if not exist "fastboot.exe" cd fastboot
if not exist "fastboot.exe" cd C:\Fastboot\fastboot
if not exist "fastboot.exe" cd C:\Fastboot
set myvar=""
FOR /F "tokens=1 delims=&" %%i in ('fastboot devices') do SET myvar=%%i
if not %myvar%=="" goto UL
@color C
@echo.
@echo Es wurde KEIN Geraet mit entsperrbarem Bootloader erkannt!
@echo.
@pause
@goto END
:UL
@color A
@echo.
@echo %myvar%
@echo Bootloader entsperrbar!
@echo.
@pause
fastboot reboot
:END
cd..
@color 7
cls
After that i opened s1tool and i connect the phone with "back+power" and i pressed restore.
After that mobile stop boot at all.no led,nothing.i have this mobile for only 1 week,and im so sad........
Please help me...How can i make it functional again?

I need help. [SOLVED]

I am making a big programme to unpack or repack boot image. I made a batch file but its giving error when I enter my choice
Batch code is removed: but no problem in it
Code:::::
color 02
cls
@ECHO off
:start
cls
echo ================================================
echo == TOOL MADE BY MZ_. ==
echo == Credits: Me for creating tool ==
echo ================================================
echo.
echo.
echo.
echo 1) Extract Boot IMAGE
echo.
echo 2) Repack Boot IMAGE
echo.
echo 3) View on XDA
echo.
echo 4) End program
echo.
set /p ch=Enter a choice in numbers:
if no '%ch%'==set ch=%ch%:~0,1%
if '%ch%'=='1' goto extract
if '%ch%'=='2' goto repack
if '%ch%'=='3' goto xda
if '%ch%'=='4' goto end
echo Please chose a valid option, '%ch%' isn't valid!
echo.
pause
goto start
:extract
@ECHO TOOL MADE BY HAMZA
@ECHO www.facebook.com/MZ11200
@ECHO [email protected]
@ECHO _____________________________________
goto start
:repack
@ECHO Deleted code...
goto start
:xda
start http://forum.xda-developers.com/android/software/tool-kernel-spilitter-t3058786/post59543250
goto start
:end
end
On running I'm getting %ch% was unexpected at this time
Hit THANKS if I help, or you like my post!
Edit: I found the problem, I had to delete if no '%ch%'==set ch=%ch%:~0,1% line... Now it is working and it is a nice tool to split a kernel into its parts

How to flash multiple zip files via ADB Sideload?

Hey guys, as per the title, I'm trying to flash multiple zip files via ADB. I am tasked with a project of flashing nearly 100 devices over the next week or so, and my standard method of imaging is a bit thwarted since i need to flash a firmware and ROM package on these Xiaomi Redmi Note 5s before I flash my custom ROM to it. When I run adb sideload and flash a zip, it will close adb sideload. I then need to unlock the device, and re-enable ADB sideload again.
Is there any way of stacking zips in adb sideload? I don''t see any arguments that would enable this. Alternatively, is there a standar ADB command to enable sideload in TWRP? I couldn't find any information on this either. Advice would be appreciated
Hello,
I have the same problem, did you find a solution ?
adb sideload zip1.zip zip2.zip does not work for me
lapwat said:
Hello,
I have the same problem, did you find a solution ?
adb sideload zip1.zip zip2.zip does not work for me
Click to expand...
Click to collapse
Why not make use of a Windows CMD script to perform a mass-sideload of ZIPs?
Example
Code:
@echo off & setlocal
set "zip_files_repository=C:\ZIP-FILES-REPOSITORY"
echo Sideloading ZIPs contained in %zip_files_repository% ...
for /F "skip=1" "tokens=*" %%t in ('adb devices 2^>nul') do ( set "mode=%%t" )
if not "?%mode%"=="?" (
echo %mode% | findstr /C:"device" >nul
if %errorlevel% neq 0 ( goto :done_sideload )
) else (
goto :done_sideload
)
for /F %%a in ('dir %zip_files_repository% /B') do (
set "zip_file=%%a"
if "?%zip_file%"=="?" ( goto :done_sideload )
set "zip_file=%zip_files_repository%\%zip_file%"
adb reboot sideload
timeout /t 5 /nobreak >nul
for /F "skip=1" "tokens=*" %%t in ('adb devices 2^>nul') do ( set "mode=%%t" )
if not "?%mode%"=="?" (
echo %mode% | findstr /C:"sideload" >nul
if %errorlevel% equ 0 (
adb sideload %zip_file%
) else (
goto :done_sideload
)
)
)
:done_sideload
echo Job done.
timeout /t 10 /nobreak >nul
endlocal & @echo on & exit

Problem of the tutorial: formatting the SD Card into Internal Storage

Hello everyone,
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I've recently checked a tutorial about the auto-formatting the sd card into internal storage since I don't have space in my storage anymore.
https://forum.xda-developers.com/android/software/auto-formatting-sdcard-to-internal-t3583875
I did all instructions, but to the last part with the command "sm partition disk 179:194 private (or mixed 50)" it shows an error message.
You can find what I followed to the link I've put up there, and I'll ask two questions:
1. How can I do the auto-formatting with aftiss.cmd?
2. How can I fix this error message?
I hope that we'll be able to find a solution to this problem ^^
(PS: for anyone who asks "Why don't you go to the SD card and format as internal directly?" WELL, it's just that I don't have this option, I got a Huawei P8 Lite version, PRA-LX1)
May be on your phone it's not allowed the SD card to be formatted as internal memory.
Guess I have to buy another SD card then :/
But I'll wait for some other comment and see what they will say
Kaguma said:
Guess I have to buy another SD card then :/
But I'll wait for some other comment and see what they will say
Click to expand...
Click to collapse
Simply run
Code:
adb shell
sm has-adoptable
to see whether "false" or "true" is returned.
If it's "false", is there a way to put it on "true"?
Kaguma said:
If it's "false", is there a way to put it on "true"?
Click to expand...
Click to collapse
Buy a phone that supports it.
But except of having another phone, can't I put it on "true" even with my actual phone? There isn't a way at all?
@Kaguma
Here a small Windows command script that shows all the steps to be performed to transform an external SD-card into internal memory
Important: This is not tested so be aware of potential mistakes
Code:
rem (c) 2020 [email protected] Licensed under GPL v3
@echo OFF & setlocal ENABLEDELAYEDEXPANSION
echo FORMATTING EXTERNAL SD-CARD TO BE USED AS INTERNAL MEMORY ...
set "retval="
set /a device_connected=0
for /f "tokens=*" %%a in ('adb devices') do (
set "retval=%%a"
if NOT [!retva!]==[] (
echo !retval! | findstr /C:":" >nul
if !errorlevel! EQU 0 (set /a device_connected=1 )
)
)
if !device_connected! EQU 0 ( echo NO ANDROID DEVICE CONNECTED & goto :end )
set /a adoptable_sd_memory_is_supported=0
for /f "tokens=*" %%a in ('adb shell "sm has-adoptable"') do (
set "retval=%%a"
if NOT [!retval!]==[] (
echo !retval! | findstr /I /C:"true" >nul
if !errorlevel! EQU 0 ( set /a adoptable_sd_memory_is_supported=1 )
)
)
if !adoptable_sd_memory_is_supported! EQU 0 ( echo FEATURE ADOPTABLE MEMORY NOT SUPPORTED & goto :end )
set "private_sd_card_partition="
for /f "tokens=*" %%a in ('adb shell "sm list-disks adoptable"') do (
set "retval=%%a"
if NOT [!retval!]==[] (
echo !retval! | findstr /C:"disk:" >nul
if !errorlevel! EQU 0 ( set "private_sd_card_partition=!retval!" )
)
)
if [!private_sd_card_partition!]==[] ( echo NO MOUNTABLE SD-CARD PARTITION FOUND & goto :end )
rem
rem Depending on ROM instead of e.g. 179,128 obviously 179_128 must be used
rem If so, uncomment next command line
rem
rem set "private_sd_card_partition=!private_sd_card_partition:,=_!"
echo TRANSFORMING WHOLE EXTERNAL SD-CARD INTO INTERNAL MEMORY ...
echo IT TAKES TIME. BE PATIENT.
adb shell "sm set-force-adoptable true" >nul 2>nul
adb shell "sm partition !private_sd_card_partition! private" >nul 2>nul
adb shell "sm set-force-adoptable false" >nul 2>nul
echo DEVICE NOW GETS RE-BOOTED: DON'T UNPLUG SD-CARD.
adb reboot
adb wait-for-device >nul
:check_for_device_has_booted
for /f "tokens=*" %%a in ('adb shell "getprop sys.boot_completed"') do (
set "retval=%%a"
if NOT [!retval!]==[] (
echo !retval! | findstr /C:"1" >nul
if !errorlevel! EQU 0 ( goto :done_check_for_device_has_booted )
)
)
timeout /t 10 /nobreak >nul
goto :check_for_device_has_booted
:done_check_for_device_has_booted
set /a adoptable_storage_created=1
for /f "tokens=*" %%a in ('adb shell "sm list-volumes all"') do (
set "retval=%%a"
if NOT [!retval!]==[] (
echo !retval! | findstr /C:"private mounted null" >nul
if !errorlevel! EQU 0 ( set /a adoptable_storage_created=0 & goto :done_check_for_created)
)
)
:done_check_for_created
if !adoptable_storage_created! EQU 1 ( echo SUCCESS & goto :end )
echo FAILED
:end
pause >nul
echo Press any key to continue ...
endlocal & @echo on
exit
jwoegerbauer said:
@Kaguma
Here a small Windows command script that shows all the steps to be performed to transform an external SD-card into internal memory
Important: This is not tested so be aware of potential mistakes
Code:
rem (c) 2020 [email protected] Licensed under GPL v3
@echo OFF & setlocal ENABLEDELAYEDEXPANSION
echo FORMATTING EXTERNAL SD-CARD TO BE USED AS INTERNAL MEMORY ...
set "retval="
set /a device_connected=0
for /f "tokens=*" %%a in ('adb devices') do (
set "retval=%%a"
if NOT [!retva!]==[] (
echo !retval! | findstr /C:":" >nul
if !errorlevel! EQU 0 (set /a device_connected=1 )
)
)
if !device_connected! EQU 0 ( echo NO ANDROID DEVICE CONNECTED & goto :end )
set /a adoptable_sd_memory_is_supported=0
for /f "tokens=*" %%a in ('adb shell "sm has-adoptable"') do (
set "retval=%%a"
if NOT [!retval!]==[] (
echo !retval! | findstr /I /C:"true" >nul
if !errorlevel! EQU 0 ( set /a adoptable_sd_memory_is_supported=1 )
)
)
if !adoptable_sd_memory_is_supported! EQU 0 ( echo FEATURE ADOPTABLE MEMORY NOT SUPPORTED & goto :end )
set "private_sd_card_partition="
for /f "tokens=*" %%a in ('adb shell "sm list-disks adoptable"') do (
set "retval=%%a"
if NOT [!retval!]==[] (
echo !retval! | findstr /C:"disk:" >nul
if !errorlevel! EQU 0 ( set "private_sd_card_partition=!retval!" )
)
)
if [!private_sd_card_partition!]==[] ( echo NO MOUNTABLE SD-CARD PARTITION FOUND & goto :end )
rem
rem Depending on ROM instead of e.g. 179,128 obviously 179_128 must be used
rem If so, uncomment next command line
rem
rem set "private_sd_card_partition=!private_sd_card_partition:,=_!"
echo TRANSFORMING WHOLE EXTERNAL SD-CARD INTO INTERNAL MEMORY ...
echo IT TAKES TIME. BE PATIENT.
adb shell "sm set-force-adoptable true" >nul 2>nul
adb shell "sm partition !private_sd_card_partition! private" >nul 2>nul
adb shell "sm set-force-adoptable false" >nul 2>nul
echo DEVICE NOW GETS RE-BOOTED: DON'T UNPLUG SD-CARD.
adb reboot
adb wait-for-device >nul
:check_for_device_has_booted
for /f "tokens=*" %%a in ('adb shell "getprop sys.boot_completed"') do (
set "retval=%%a"
if NOT [!retval!]==[] (
echo !retval! | findstr /C:"1" >nul
if !errorlevel! EQU 0 ( goto :done_check_for_device_has_booted )
)
)
timeout /t 10 /nobreak >nul
goto :check_for_device_has_booted
:done_check_for_device_has_booted
set /a adoptable_storage_created=1
for /f "tokens=*" %%a in ('adb shell "sm list-volumes all"') do (
set "retval=%%a"
if NOT [!retval!]==[] (
echo !retval! | findstr /C:"private mounted null" >nul
if !errorlevel! EQU 0 ( set /a adoptable_storage_created=0 & goto :done_check_for_created)
)
)
:done_check_for_created
if !adoptable_storage_created! EQU 1 ( echo SUCCESS & goto :end )
echo FAILED
:end
pause >nul
echo Press any key to continue ...
endlocal & @echo on
exit
Click to expand...
Click to collapse
It's really huge, I could maybe test it, thanks
I'll just wait for other answers, but really thanks
Also, do I have to put it after I put the command "adb shell" or where?
And good morning, by the way ^^
(EDIT: What are the eventual consequences / mistakes?)
Kaguma said:
Also, do I have to put it after I put the command "adb shell" or where?
And good morning, by the way ^^
(EDIT: What are the eventual consequences / mistakes?)
Click to expand...
Click to collapse
1. IT'S A WINDOWS COMMAND SCRIPT TO AVOID TYPING
If you want to make use of it, here's the
HOW-TO:
You add /path/to/ADB to Window's PATH environment variable via Windows command prompt ( CMD ) and not via Windows Powershell ( PS )
Code:
set PATH=%PATH%;[color=red]path/to/ADB[/color]
- where /path/to/ADB for example is C:\ADB - and re-boot computer
You create a Windows .BAT file that contains the code listed above - preferredly by copy & paste - and save it under SDTRANSFORMER.BAT
You put the SD-card to be transformed into phone
You connect your running phone via USB cable with computer
You run the .BAT file previously created
As mentioned: Script may contain bugs, if so, then it's on you to fix them - I don't have SD-cards that lie around ..
2. YOU CAN USE ANDROID TERMINAL TO EXECUTE ALL THE SM * COMMANDS , TOO
Notice that this was my last post here, I no longer participate in this thread. Sorry for this.
Thanks for your help, and have a nice day even if you won't reply here
Hi Kaguma,
it doesn't work for Huawei P8 Lite...
stackoverflow.com/questions/60173545/why-i-got-this-error-please-adoptable-storage-not-available-on-device-with-nat
You can try this :
forum.xda-developers.com/p8lite/p8-lite-2017-development/rom-lineageos-17-1-huawei-p8-lite-2017-t4064121

Categories

Resources