[Tutorial] How to flash a new boot.img via Fastboot - HTC One S

Hey Guys,
since I heard many questions lately concerning flashing a boot.img onto the One S I decided to give you a small tutorial! (which should also work on any other device with bootloadermode)
If you have fastboot already installed on your PC it's very quick & easy!
Pls be aware that this could damage your phone & I'm not responsible for this. so only do this if you really feel comfortable with it & you know about the risks!
First of all you need to have fastboot & adb installed, as well as the drivers for the One S. If you haven't, move on to the second post in this thread!
Click to expand...
Click to collapse
If you are on a Sense-based ROM make sure you haven't ticked the fast boot option in the settings!
Click to expand...
Click to collapse
Step 0,5
What is the boot.img?
-> basically it contains the kernel & the ramdisk. But let's hear what the pros have to say:
"The boot.img is a small(ish) file that contains 2 main parts, the kernel (the brain of the Android system) and the ramdisk (a core set of instructions and binaries that begins the boot process and controls base aspects of the system, such as mountpoints, memory management and startup services)" Source
Click to expand...
Click to collapse
Further information can be found here.
Click to expand...
Click to collapse
Do I need to flash the boot.img manually in fastboot?:
No, if you're using TWRP and are on a Hboot-version lower than 1.13
Yes, if you're using any other recovery (like CWM)
Yes, if you're using TWRP and your ville has the Hboot-version 1.13 or higher
Click to expand...
Click to collapse
1.Step
reboot your Phone into the bootloader.
This can either be done via
- powering off and keeping volume up & the power-button pressed
- the extended power-menu (If your ROM has it, just select "reboot" & then "bootloader")
- via adb, connect your phone with the pc, make sure it says "USB debugging connected", go to Android/platform-tools/ & then press shift while you perform a right click with the mouse, then choose "open prompt here", type
Code:
adb reboot-bootloader
& press enter. Your One S should then reboot into the bootloader
I personally prefer one of the last two methods, depending which way occurs faster to me at that specific moment.
Click to expand...
Click to collapse
2.Step
make sure it says "Fastboot USB" like in the following picture
{
"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"
}
(Source = Google)
Click to expand...
Click to collapse
3.Step
Test if it your device has been detected with the following command:
Code:
fastboot devices
if it gives you an answer other than a blank one or an error there you go
Click to expand...
Click to collapse
4.Step
copy the boot.img you want to flash into the folder C:\android\platform-tools\ & then execute the command
Code:
fastboot flash boot boot.img
(if your boot.img is named differently then adjust the last part of the command)
wait for it to succeed.
if it says okay two times & the prompt reappears everything should be fine
Click to expand...
Click to collapse
5.Step
reboot your device with
Code:
fastboot reboot
Click to expand...
Click to collapse
6.Step
If you want check
Code:
Settings -> About phone -> Kernel
if it matches the boot.img you just flashed
Click to expand...
Click to collapse
The whole process should look something like this in your CMD:
Click to expand...
Click to collapse
Here you go!
Quick & easy!
When I helped please press the thanks button!
If you have any suggestions to make it even easier of found a mistake, please tell me, it's already very late in Germany
BE AWARE THAT I'M NOT RESPONSIBLE IF IT DOESN'T WORK OR BREAKS YOUR PHONE! THIS IS JUST THE WAY I UPDATE THE BOOT.IMG ON MY PHONE!

Installing ADB and Fastboot
It's actually pretty easy!
1. Step
download the Android SDK from HERE
Alternatively you can also download the USB drivers & the runtimes for adb & fastboot as a standalone as provided by Inferi0r in the 4th post:
Inferi0r said:
USB drivers only & the adb/fastboot-runtimes only
Click to expand...
Click to collapse
[Download carefully, didn't test them for viruses or (mal)function]
Click to expand...
Click to collapse
2. Step
Run the downloaded file & change the extracting-folder directly to C:\
(..this will take some time...)
You should then have a folder C:\Android
Click to expand...
Click to collapse
3. Step
If you haven't installed the One S' drivers yet, download HTC Sync (e.g. from here, or here) & install it, which will also install the drivers needed for adb & fastboot to work.
If you have them installed already, skip this one & proceed to step 4.
Click to expand...
Click to collapse
4. Step
- go to C:\Android again
- press
Code:
Win + R
on your keyboard to bring up the Run dialog
- type in
Code:
sysdm.cpl
and hit OK
- now, the System Properties panel should open. Click on the Advanced tab
- in the Advanced Tab click on Environment Variables
- at the Environment Variables window find where it says Path in the Section of System variables, click on it, and press the Edit button
- when the new window opens, type in
Code:
;C:\Android
at the very end and klick OK
- now close all the windows, that's all, you're done!
Click to expand...
Click to collapse
5. Step
- go to C:\Android\platform-tools\ again
- right-click with your mouse while pressing shift
- select "open prompt here" & then you're ready to go to.
- most common adb/fastboot commands:
- adb commands
- fastboot commands
- by entering
Code:
adb help
or
Code:
fastboot help
Click to expand...
Click to collapse
When I helped please press the thanks button!

Sticky..

Here are links to usb drivers only and adb/fastboot runtimes only.

Inferi0r said:
Here are links to usb drivers only and adb/fastboot runtimes only.
Click to expand...
Click to collapse
Thank you, will implement them later!
[edit] implemented

Nice write up so cleanly written.

Thanks!
Thanks for posting!
Anyone have any sweet boot images they want to share? I'll see what I can dig up for our screen size and post some myself soon.

Excellent post, thank you. You could also mention the easiest way to boot into bootloader: a root enabled app like Quick Boot, or even Titanium Backup has the option.
Sent from my H1S using XDA Premium.

oh finally thank you ive been trying to find how to do this
i wish HTC phones were easy as samsung phones

So boot.img is basically a kernel?

ri123 said:
So boot.img is basically a kernel?
Click to expand...
Click to collapse
basically it contains the kernel & the ramdisk. But there also are some other things:
"[boot.img is a] custom android format consisting of a 2k header, followed by a gzipped kernel, followed by a ramdisk, followed by a [optional] second stage loader" Source
Click to expand...
Click to collapse
"The boot.img is a small(ish) file that contains 2 main parts, the kernel (the brain of the Android system) and the ramdisk (a core set of instructions and binaries that begins the boot process and controls base aspects of the system, such as mountpoints, memory management and startup services)" Source
Click to expand...
Click to collapse
Further information can be found
HERE
& Here
[edit] added this to the OP

fipsib said:
... 3.Step
Test if it your device has been detected with the following command:
Code:
fastboot devices
if it gives you an answer other than a blank one or an error there you go
4.Step
copy the boot.img you want to flash into the folder C:\android\platform-tools\ & then execute the command
Code:
fastboot flash boot boot.img
Click to expand...
Click to collapse
You should consider adding an extra 3.5 step like this:
Code:
fastboot boot boot.img
This step is meant to test the kernel & ramdisk before flashing it. Of course, the phone might not be fully functional because the modules in /system/lib/modules might not be paired with the kernel in boot.img. But at least you can see your phone booting!

Why do I have to do that? Can't I just flash the kernel through TWRP or CWM?

iCaptivate said:
Why do I have to do that? Can't I just flash the kernel through TWRP or CWM?
Click to expand...
Click to collapse
You need to do this due to the restrictions that are given with S-On.
The team behind TWRP somehow found a way to flash the boot.img sometimes. But for me (or my device) this didn't work.

this is very confusing to me
i wish if there was an easier way

AlxMAX said:
You should consider adding an extra 3.5 step like this:
Code:
fastboot boot boot.img
This step is meant to test the kernel & ramdisk before flashing it. Of course, the phone might not be fully functional because the modules in /system/lib/modules might not be paired with the kernel in boot.img. But at least you can see your phone booting!
Click to expand...
Click to collapse
I don't think that this is necessary as it will only confuse people not so familliar with the matter, but thank you for your input

a doubt, I have a friend who wants to put the rom CM9, the question you have is: how to flash the boot.img fastboot in ubuntu?
Thanks!
שנשלח הוז שלי באמצעות Tapatalk2

cualla84 said:
a doubt, I have a friend who wants to put the rom CM9, the question you have is: how to flash the boot.img fastboot in ubuntu?
Thanks!
שנשלח הוז שלי באמצעות Tapatalk2
Click to expand...
Click to collapse
should be exactly the same, only with the difference that the Android SDK should be located at
Code:
~/android_sdk/platform-tools/
or
Code:
~/bin/

i have a problem with step 5
i dont have a folder called "platform-tools"
i got two folders
platform
and
tools

qwerty warrior said:
i have a problem with step 5
i dont have a folder called "platform-tools"
i got two folders
platform
and
tools
Click to expand...
Click to collapse
while installing the android sdk did you download "tools", too?

Related

[Q] Help a noob out with rooting

Hi, I am new to rooting my tablet. I manage to unlock my tablet "asus tf700" but i cannot for the life of me understand how to root this. I have read all the threads/posts regarding this issue but since its my first time i dont understand what "flashing" means or "bootloader". Please any step by step advice is greatly appreciated.
I have the ASUS TF700T Infinity Jellybean Android 4.1.1 I believe it is unlocked because I am able to go into that screen and theres four Icons.
Pms or a step by step guide for this noob because i dont understand any of these terms =(
Sorry for the trouble and thanks in advance
Cheers,
deocare
deocare said:
Hi, I am new to rooting my tablet. I manage to unlock my tablet "asus tf700" but i cannot for the life of me understand how to root this. I have read all the threads/posts regarding this issue but since its my first time i dont understand what "flashing" means or "bootloader". Please any step by step advice is greatly appreciated.
I have the ASUS TF700T Infinity Jellybean Android 4.1.1 I believe it is unlocked because I am able to go into that screen and theres four Icons.
Pms or a step by step guide for this noob because i dont understand any of these terms =(
Sorry for the trouble and thanks in advance
Cheers,
deocare
Click to expand...
Click to collapse
also tried reverting back to ICS to do that auto root but had no idea what "fastlooader" was..
sorry im a total noob at this
deocare said:
also tried reverting back to ICS to do that auto root but had no idea what "fastlooader" was..
sorry im a total noob at this
Click to expand...
Click to collapse
Not too worry, it's very simple, just download the zip, then unzip and double click on the bat file, then follow on screen instruction.
Here is a nice instruction for rooting:
http://tutznet.com/root-tf700t-asus-...-infinity.html
this will work with the specs for my tablet? jellybean etc..?
does not work... i tried this debug already it says failed i think because it doesn't support jellybean.
deocare said:
does not work... i tried this debug already it says failed i think because it doesn't support jellybean.
Click to expand...
Click to collapse
no, it's for ics only, I thought you are on ICS? well you downgrade back to .30 then use my method above, If you don't want to downgrade, then you must unlocked first then follow this method:
http://forum.xda-developers.com/showthread.php?t=1916762
You put your device in fastboot mode, by turn off your device, hold volume down and power button, when you will see white text appeared on the screen release both, hit volume down to navigate to the USB icon, then hit volume up to select and now you are fastboot. plug in your usb cable then open fastboot command on your pc and do your thing.
buhohitr said:
no, it's for ics only, I thought you are on ICS? well you downgrade back to .30 then use my method above, If you don't want to downgrade, then you must unlocked first then follow this method:
http://forum.xda-developers.com/showthread.php?t=1916762
You put your device in fastboot mode, by turn off your device, hold volume down and power button, when you will see white text appeared on the screen release both, hit volume down to navigate to the USB icon, then hit volume up to select and now you are fastboot. plug in your usb cable then open fastboot command on your pc and do your thing.
Click to expand...
Click to collapse
sorry i dont understand that concept of flashing can you go through it with me on how to do it
deocare said:
sorry i dont understand that concept of flashing can you go through it with me on how to do it
Click to expand...
Click to collapse
Not a problem, but I need to verify what your setup first.
1. Are you on Jelly Bean?
2. Are you unlocked? (when you turn on your device, it should displays "device is unlocked"
3. Do you have SDK and fastboot/ADB tool installed on your device?
Once you answered all 3 questions, I will recommend the easiest way to root.
buhohitr said:
Not a problem, but I need to verify what your setup first.
1. Are you on Jelly Bean?
2. Are you unlocked? (when you turn on your device, it should displays "device is unlocked"
3. Do you have SDK and fastboot/ADB tool installed on your device?
Once you answered all 3 questions, I will recommend the easiest way to root.
Click to expand...
Click to collapse
1.yes
2.yes
3. maybe? not sure i have been trying alot of random things trying to root it so im not sure if its installed on my device
deocare said:
1.yes
2.yes
3. maybe? not sure i have been trying alot of random things trying to root it so im not sure if its installed on my device
Click to expand...
Click to collapse
OK, we need to verify if your fastboot is working or not. Put your device in fastboot mode (see my thread above..how to select the usb icon). On your pc, go to the folder that you have fastboot command (should be fastboot.exe). Open window command prompt, navigate to the folder where "fastboot.exe" located (usually located in "platform-tools" folder), then execute this :
type in:
fastboot devices
hti enter, you should be device ID show up
again type:
fastboot reboot
then hit enter
Your device should reboot. If it does, your fastboot is working.
buhohitr said:
OK, we need to verify if your fastboot is working or not. Put your device in fastboot mode (see my thread above..how to select the usb icon). On your pc, go to the folder that you have fastboot command (should be fastboot.exe). Open window command prompt, navigate to the folder where "fastboot.exe" located (usually located in "platform-tools" folder), then execute this :
type in:
fastboot devices
hti enter, you should be device ID show up
again type:
fastboot reboot
then hit enter
Your device should reboot. If it does, your fastboot is working.
Click to expand...
Click to collapse
i dont know where this fastboot.exe is
is there a link i can get it from
deocare said:
i dont know where this fastboot.exe is
is there a link i can get it from
Click to expand...
Click to collapse
Here you go, instruction and fastboot download.
http://forum.xda-developers.com/showpost.php?p=27218675&postcount=20
okay i have no idea it does not work i opend cmd prompt got the bootloader but the commands dont work heres a Screen
{
"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"
}
@deocare
first you have to "cd" into the path wehre you store the fastboot.exe.Ideally you've installed a full android sdk with adb, etc. After setup your android sdk and fastboot, make sure that you're tablet is booted in fastboot mode and you've installed the fastboot drivers, e.g. from universal naked driver package. After this you can send fastboot commands to your tablet but please note that it doesn't answer to fastboot devices.
Here are some threads explaining how to setup fastboot and how to after flashing jellybean, e.g. chainfires SU.
thunderger said:
@deocare
first you have to "cd" into the path wehre you store the fastboot.exe.Ideally you've installed a full android sdk with adb, etc. After setup your android sdk and fastboot, make sure that you're tablet is booted in fastboot mode and you've installed the fastboot drivers, e.g. from universal naked driver package. After this you can send fastboot commands to your tablet but please note that it doesn't answer to fastboot devices.
Here are some threads explaining how to setup fastboot and how to after flashing jellybean, e.g. chainfires SU.
Click to expand...
Click to collapse
I installed the drivers already i believe i checked under portable devices and it says "TF700t transfomer pad.." and I am in booted in fastboot mode with the power+volume down key and went over to the USB icon then opened cmd prompt
deocare said:
I installed the drivers already i believe i checked under portable devices and it says "TF700t transfomer pad.." and I am in booted in fastboot mode with the power+volume down key and went over to the USB icon then opened cmd prompt
Click to expand...
Click to collapse
Based on your screen shot, you put the "fastboot folder" on your desktop. Do this.
open cmd
type:
cd\ then hit enter
you should see:
c:\
now type:
cd users\david\desktop\fastboot then hit enter
you should see
c:\users\david\desktop\fastboot>
now type:
fastboot devices then hit enter
you should see device ID
now type:
fastboot reboot then hit enter
your device should reboot.
buhohitr said:
Based on your screen shot, you put the "fastboot folder" on your desktop. Do this.
open cmd
type:
cd\ then hit enter
you should see:
c:\
now type:
cd users\david\desktop\fastboot then hit enter
you should see
c:\users\david\desktop\fastboot>
now type:
fastboot devices then hit enter
you should see device ID
now type:
fastboot reboot then hit enter
your device should reboot.
Click to expand...
Click to collapse
i am gonna assume it is not installed properly doesn't show devices and it says rebooting but doesn't.
deocare said:
i am gonna assume it is not installed properly doesn't show devices and it says rebooting but doesn't.
Click to expand...
Click to collapse
Do you have your table booted in fastboot mode and usb cable plug into your PC?
i doo
deocare said:
i doo
Click to expand...
Click to collapse
OK, you problably don't have android sdk instalaled. Here is the link to install SDK. When you run the sdk installation, only select anything with android packages and install, don't install everything.
http://forum.xda-developers.com/showthread.php?t=1616059
Another question is are you planing to install custom ROM??? or you just want root?

[GUIDE][30/10/2013]New To Adb And Fastboot Guide

{
"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"
}
this is just a quice guide about some main features of adb and fastboot and ways you can use them
heres some simple information i can give you about a device, a device has 6 main partitions, system, data, cache, dalvik cache, recovery and externel(sdcard)
for a device to boot it must have a boot.img, system.img and a data.img, when you backup your phone it backs up system.img, boot.img(included in system.img), data.img, cache.img, dalvik cache(thats included in the cache.img), and optionally your recovery.img(no point)
THIS WILL TAKE 10 MINUTES OF YOUR TIME AND WILL BENEFIT YOU FOR LIFE​
Here is a little package i uploaded with adb.exe fastboot.exe AdbWinApi.dll AdbWinUsbApi.dll and a file named OPEN.CMD that opens a command window in the same directory as adb and fastboot -
https://github.com/Ricky310711/ADB-Fastboot-Tools/archive/master.zip
Click to expand...
Click to collapse
this is the folder we will be working with. so unzip it and open the OpenCMD.bat file and a command prompt will appear.
Click to expand...
Click to collapse
ADB INTRODUCTION
adb and fastboot can be really hard to work with until you learn the language of it(its easy)
when theres somewhere and something you wanna do, theres almost always a way!
if your using adb to do a task you must do it with your device on, adb you cant do much with, you can pull files from your phone to your computer, and you can push files from computer to your phone, you can reboot your phone, reboot into recovery reboot into bootloader
note, to pull or push system files you have to type in adb root, to get superuser permissions
NOTE: Your Phones Root Directory Is "/"
Click to expand...
Click to collapse
HOW TO PULL A FILE
an example of how to pull a file called bootanimation.zip from system of the phone(need to type adb root to get files from here)
and but it on my desktop, the idea is to type adb pull (location of what you wanna pull then \name of item) (name of location you would like it on your computer)
adb root
adb pull \system\media\bootanimation.zip c:\users\ricky\desktop
LEAVE A SPACE.............................................^
Click to expand...
Click to collapse
HOW TO PUSH A FILE
to push the file from my desktop you simply have to basically do the same command except replace 'pull' with 'push' and you type your computer location \file you wanna push then phone location, ill push the same file back
adb root
adb push c:\users\ricky\desktop\bootanimation.zip \system\media
.........................^^computer location^^............................^^phone location^^
Click to expand...
Click to collapse
HOW TO INSTALL AN APP FROM YOUR PC
to install an app, for example on my desktop named facebook.apk i would write
adb install c:/users/Ricky/desktop/facebook.apk
Click to expand...
Click to collapse
HOW TO BACKUP APPS WITH ADB
First make a folder in your adb folder called backup without capitals, then inside that a two folders, one called systemapps and one called installedapps also without capitals
-To backup apps all system apps
adb pull /system/app backup/systemapps
Click to expand...
Click to collapse
-To backup apps all installed apps
adb pull /data/app backup/installedapps
Click to expand...
Click to collapse
HOW TO RUN SHELL VIA ADB(BACKGROUND TERMINAL)
to run shell type
adb shell
Click to expand...
Click to collapse
to exit shell press CTRL+C or type
exit
Click to expand...
Click to collapse
to run shell silently type
adb shell (type any command)
Click to expand...
Click to collapse
HOW TO REBOOT INTO FASTBOOT, RECOVERY AND NORMAL REBOOT
to reboot your phone normally type
adb reboot
Click to expand...
Click to collapse
to reboot recovery
adb reboot recovery
Click to expand...
Click to collapse
to reboot fastboot
adb reboot fastboot
Click to expand...
Click to collapse
HOW TO START AND STOP ADB SERVER
to start the server type
adb start-server
Click to expand...
Click to collapse
to stop the server type
adb kill-server
Click to expand...
Click to collapse
FASTBOOT INTRODUCTION
now fastboot,
move any file you want to flash or use in fastboot into the Adb Abd Fastboot folder you extracted, fastboot you must have your device booted into bootloader and in fastboot mode, fastboot has many more commands, without fastboot our lives would be miserable, fastboot you can flash recoveries, flash .zip files, unlock bootloader, lock bootloader, flash .img files, wipe partitions get your cid number, write a cid number
i know it doesnt seem like much but doing stuff in the right order you can do ALOOOOT! for example my tool simply uses adb and fastboot commands, look how many features ive added?
move the files your flashing to the same folder as fastboot​
Click to expand...
Click to collapse
FLASH A .ZIP FILE
to flash a .zip file called flashme.zip put the zip file in your fastboot folder and type
fastboot flash flashme.zip
Click to expand...
Click to collapse
FLASH A RECOVERY IMAGE (.IMG)
to flash a recovery called twrp.img, put it in your fastboot folder and type
fastboot flash recovery twrp.img
Click to expand...
Click to collapse
UNLOCK BOOTLOADER
to unlock bootloader from htc you get your identifier token then download the unlock_code.bin they email you and flash it
fastboot oem get_identifier_token <how to get token>
fastboot oem flash Unlock_code.bin <how to flash it>
fastboot oem lock <relock bootloader>
Click to expand...
Click to collapse
FLASHING SPECIFIC IMAGE FILES(SYSTEM, DATA ,CACHE, ECT)
orite now to flash .img files, if your gonna flash a system, data or cache .img file i recommend wiping the partition before flash, and to manually restore your phone you must flash system, data, cache
note, to flash a recovery, all your doing is flashing a recovery .img
note, if your gonna flash a boot.img dont try to wipe your boot partition just flash it
to flash system image file
fastboot erase system
fastboot flash system system.img
Click to expand...
Click to collapse
to flash data image file
fastboot erase data
fastboot flash data data.img
Click to expand...
Click to collapse
to flash cache image file
fastboot erase cache
fastboot flash cache cache.img
Click to expand...
Click to collapse
FLASH A BOOT IMAGE OR KERNEL(BOOT.IMG)
to flash boot image file
fastboot flash boot boot.img
Click to expand...
Click to collapse
HOW TO GET CID NUMBER
this is how you get your cid
fastboot getvar cid
NO SPACE.^
Click to expand...
Click to collapse
HOW TO WRITE SUPERCID
this is how to write super cid
fastboot oem writecid 11111111
NO SPACE.............^
Click to expand...
Click to collapse
HOW TO RESTORE DEVICE BACKUP FROM COMPUTER
if you wanna restore your phone on your from your computer, simply backup your phone in recovery and transfer the backup to your computer and extract all the .img files and put your phone into fastboot mode, then go on your computer, put all your .img files in a folder with adb, fastboot, AdbWinApi and AdnWinUsbApi(the files everyone tells you to get from the android sdk package)
then navigate to the folder on command prompt on terminal then wipe a partition then flash one
for example i do it like this, i wipe system, data and cache first, so this is what i would type,
fastboot erase system
fastboot erase data
fastboot erase cache
Click to expand...
Click to collapse
then flash the .img files(need to flash system first)
fastboot flash system system.img
fastboot flash data data.img
fastboot flash cache cache.img
Click to expand...
Click to collapse
then you can flash boot.img, when you want to install a new kernel, all it is, is a a stock boot.img modified
Thanks MrDannyD for requesting this!​
Thanks for this! It helped a lot
zedawg said:
Thanks for this! It helped a lot
Click to expand...
Click to collapse
nice to know!
Stuck, good job
Thank you very much!
Thanks for your sharing these.
liqueurlee said:
Thanks for your sharing these.
Click to expand...
Click to collapse
It was not shared, I made the package and guide myself, hope this has helped!
ricky310711 said:
It was not shared, I made the package and guide myself, hope this has helped!
Click to expand...
Click to collapse
Thanks again and it is very useful to me.
ricky310711 said:
It was not shared, I made the package and guide myself, hope this has helped!
Click to expand...
Click to collapse
Ummm, what is the purpose of this guide and what phone is it for?
It looks like its for an HTC. If it is, you should put that in the beginning so everyone knows. You should also explain why you are doing this and what it does to the phone. From what I can tell, it does nothing at all and not even worth being a sticky
Thanks you very much!
Thanks you very much!
TheStrokerace said:
Ummm, what is the purpose of this guide and what phone is it for?
It looks like its for an HTC. If it is, you should put that in the beginning so everyone knows. You should also explain why you are doing this and what it does to the phone. From what I can tell, it does nothing at all and not even worth being a sticky
Click to expand...
Click to collapse
This is for all android phones, if you knew what Adb and fastboot are you would be quite happy that I have posted this guid.
Also if it wasn't worth a sticky it wouldn't be here as it has to be approved.
TheStrokerace said:
Umm, I don't need to do anything you just describe in your little smoke and mirrors tuts to change the ROMS, mods etc.
ADB is the adroid debug bridge so why lock it? I guess some people are just gullable enough to do everything that they read on a forum without know that there are way easier ways of doing it without screwing up their phones.
Click to expand...
Click to collapse
Android debug bridge, and this is a developers website and lucky enough people like me enjoy helping others.
Anyways I don't want my thread ruined, you don't like my topic so don't comment
Sorry for the interuption. This thread needed little cleaning. It was going a little bit of course.
ADB and fastboot are incredibly useful tools and a lot of problems can be solved using these tools. The OP has made an installer and a "quick launcher" that makes using ADB and fastboot a lot easier for people who are unfamiliar with using the command line and he provides an introduction into entering commands. This thread can be a valuable resource for people who need help getting started with ADB and Fastboot - let's not derail it by arguing!
Thanks!
thanks
Thanks you very much!
thanks for the guide
Thamk you!!!!!!!!!!!!!!!!!
Thanks a lot man
Thank you very much!
Thank you very much!
Is there a command or something to copy everything on the internal storage os a device that only boots to bootloader?

[GUIDE] Set up Android SDK (ADB) for Windows 8 / 8.1 / [ADB][Bootloader][Fastboot]

Android SDK - Powerful tool and easy to set up for use with your HTC One M8
{
"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"
}
Note - Java is needed to Run SDK Manager - Install JAVA​
The Reason that you would want to use Android SDK is because its very easy, it's well updated and it just WORKS! There is much more use with HTC devices with adb then with Samsung when it comes to the daily things like splash screens, radio updates, firmware. You will be dealing a lot with the bootloader and fastboot flashing. So to help out, I will post a helpful guide to help you get started for use with the HTC One M8.​
Click to expand...
Click to collapse
USB 3.0 Information if Needed
USB 3.0 Windows 8 Solution Link 1
USB 3.0 Windows 8 Solution Lin 2 - Found in above thread
Part 1. Follow These Steps Below - (Preparation)
1. Download Android SDK For Windows
2. Click the
either the 32bit version or 64bit version
3. Create a folder in the C: and name it Android. See below
4. Place adt-bundle-windows in the Android Folder you just created. Use WinZip, WinRAR or 7-Zip to extract the contents inside the folder. See Below
5. Once extracted, Double click SDK Manager and instal all 4.4.2 and 4.3 items and under tools (SDK Tools and Platform Tools). See Picture Below
6. After all packages are installed and updated, download the latest HTC Sync Manager and install once download completes
7. Once Sync Manager completes installation process, go to control panel and uninstall HTC Sync Manager only, you will see HTC Driver in there as well (LEAVE IT THERE)
8. Important, make sure you enable developer options and turn on USB Debugging. Instructions Below if you are unsure how to do that
1. Go to Settings > About > Software information > More > Tap Build Number 5x
2. Once you get notification saying Developer options is unlocked go back to > settings
3. Click Developer options
4. Add check in the box USB Debugging
9. Plug phone into the computer and let it install all the drivers, you should see pop ups.
Click to expand...
Click to collapse
The Computer and Phone are now prepped for you to start the whole ADB Process
Click to expand...
Click to collapse
Part 2. Verifying ADB is set up properly and Working
1. Open Command Prompt and Change directories to your platform-tools folder. This is where all the adb files are located. See Below
In Command Prompt Type - Refer to Part 3 so you no longer need to Change Directory
Code:
cd c:\Android\sdk\platform-tools
2. In Command prompt type
Code:
adb devices
3. If your output shows your device attached like below, then you are good to go!!!
YOU ARE FINISHED!!! Below is a command to get into the bootloader if interested!! Good Luck
Click to expand...
Click to collapse
Part 3. Environment Variables - No need to Change Directory in Command Prompt Anymore (This is if you want to - Not Required)
1. Press Win+R, then type sysdm.cpl
2. Click Advanced Tab
3. Click Environment Variables Button
4. Under System Variables, find Path, click to highlight it and then hit the edit button
5. Go to the end of the Variable Value and add the following exactly as you see it in the code box below
Code:
;C:\Android\sdk\platform-tools
6. Click OK to accept the changes you just added
7. Open Command Prompt again to verify by pressing Win+R and type cmd and hit enter
8. Once Command Prompt is open -> Simply type adb devices with your device connected with USB Debugging already enabled
9. If you did everything correctly, there is no need to change paths anymore
Click to expand...
Click to collapse
Getting into the Bootloader
In Command Prompt Type:
Code:
adb reboot bootloader
Thanks To:
Ashraf - Images used for Environment Variables - Not all were his since the guide was modified
Reserve if needed
Thanks! Good stuff.. I just installed Windows 8 and totally forgot that I had to reinstall this... ( which originally took me 8 hours to figure out the first time! Lol ) this will definitely help future HTC people out...
Thanks for the guide but will this work with USB 3.0? I have an Asus G750JW with 4x usb 3.0 ports and no usb 2.0
x70xchallengerx said:
Thanks for the guide but will this work with USB 3.0? I have an Asus G750JW with 4x usb 3.0 ports and no usb 2.0
Click to expand...
Click to collapse
USB 3.0 gets a bad rep. I do a lot of my adb with a USB 3.0 with few issues
Sent from my HTC6525LVW using Tapatalk
OP Updated
Updated OP
1. Added Environment Variables to no longer have to Change Directory
2. Cleaned up OP
3. Added Thanks
x70xchallengerx said:
Thanks for the guide but will this work with USB 3.0? I have an Asus G750JW with 4x usb 3.0 ports and no usb 2.0
Click to expand...
Click to collapse
wtoj34 said:
USB 3.0 gets a bad rep. I do a lot of my adb with a USB 3.0 with few issues
Sent from my HTC6525LVW using Tapatalk
Click to expand...
Click to collapse
I am aware that USB 3.0 does cause issues with adb, mostly the longer running ones it hangs sometimes, I don't have an answer for that right now, I am running with 2.0 still and I have zero issues.
This is something that I came across that seemed to resolve a lot of adb issues
USB 3.0 Help with ADB
also
XDA Thread I found that in
cant launch sdk manager
After installing abd on Windows8.1 64 is there a trick to launch so that i can add and update?
Fixed issue. New pc and forgot to install java...?
bdorr1105 said:
Android SDK - Powerful tool and easy to set up for use with your HTC One M8
​
USB 3.0 Information if Needed
USB 3.0 Windows 8 Solution Link 1
USB 3.0 Windows 8 Solution Lin 2 - Found in above thread
Part 1. Follow These Steps Below - (Preparation)
Part 2. Verifying ADB is set up properly and Working
Part 3. Environment Variables - No need to Change Directory in Command Prompt Anymore (This is if you want to - Not Required)
Getting into the Bootloader
In Command Prompt Type:
Code:
adb reboot bootloader
Thanks To:
Ashraf - Images used for Environment Variables - Not all were his since the guide was modified
Click to expand...
Click to collapse
davidmatt34 said:
After installing abd on Windows8.1 64 is there a trick to launch so that i can add and update?
Fixed issue. New pc and forgot to install java...?
Click to expand...
Click to collapse
Thanks for sharing that, I added that as note in the OP...Glad you are setup and good to go
I feel like such an idiot, but I want to be sure I'm getting the latest HTC Sync... I follow the link in the OP and it takes me to support.. I Google and the same thing happens.. They move it over at HTC?
I found it here... http://www.htc.com/us/support/software/htc-sync-manager.aspx
And this worked flawlessly!! I was always afraid of going back to Windows 8.1 because of ADB/Fastboot being broken.. so far so good!! Side loading soon!!
jbarcus81 said:
I feel like such an idiot, but I want to be sure I'm getting the latest HTC Sync... I follow the link in the OP and it takes me to support.. I Google and the same thing happens.. They move it over at HTC?
I found it here... http://www.htc.com/us/support/software/htc-sync-manager.aspx
And this worked flawlessly!! I was always afraid of going back to Windows 8.1 because of ADB/Fastboot being broken.. so far so good!! Side loading soon!!
Click to expand...
Click to collapse
Glad everything is working, the link in my OP went to the same exact HTC Sync Manager yours did, pull yours you posted and mine side by side its the same, not sure what happened, either way glad you are up and running
bdorr1105 said:
Glad everything is working, the link in my OP went to the same exact HTC Sync Manager yours did, pull yours you posted and mine side by side its the same, not sure what happened, either way glad you are up and running
Click to expand...
Click to collapse
Yeah.. the link just wasn't working at the time.. weird..
jbarcus81 said:
Yeah.. the link just wasn't working at the time.. weird..
Click to expand...
Click to collapse
Thanks for the update
Sent from my HTC6525LVW using Tapatalk
Also make sure you don't have drivers installed for another phone.. ADB couldn't find my M8 until I uninstalled my lg spectrums drivers on Win 8.1
Sent from my HTC6525LVW using XDA Free mobile app
Nice job.. Thanks for this. My first W8.1 machine.
Guys can someone help ,,
everything is installed and still getting the following error :
C:\Android\android-sdk\platform-tools>adb devices
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached
SH44FWM09049 device
C:\Android\android-sdk\platform-tools>
C:\Android\android-sdk\platform-tools>
C:\Android\android-sdk\platform-tools>fastboot reboot-bootloader
< waiting for device >
i've been trying to fix this for the past 4 hours but no luck ,, anyone ??
I$ device in fastboot mode?
nvmd
without changing environment variable we can even hold shift+right click the folder containing the adb and open command window from the menu isn't it?
technochatter said:
without changing environment variable we can even hold shift+right click the folder containing the adb and open command window from the menu isn't it?
Click to expand...
Click to collapse
Yes.

[Guide] Root on Linux Mint

Rooting a Xiaomi Mi 4i on Linux Mint 17.1 Rebecca
- This guide might also be relevant for users of Debian and Ubuntu
Disclaimer: I accept no responsibility for any damage you do to your phone, body, life or anything else in the past present or future.
This has been written as I had so much difficulty in getting my Mi 4i rooted. I kept trying to do it in Windows through Virtual Box but kept failing.
1. Enable Developer Options
- On your phone, go to Settings
- About phone
- Keep tapping on the Android version until the message at the bottom says that you are a developer
2. Enable USB debugging
- On your phone, go to Settings
- Additional settings
- Developer options
- USB debugging
3. Install the tools
Code:
sudo apt-get install android-tools-adb
sudo apt-get install android-tools-fastboot
4. Try and see the devices
- Connect the phone to your computer
- Run the following command at the terminal
Code:
adb devices
- It will now say List of devices attached.
- If you see another line with an 8 character identifier such as bf1b6529 then you can skip step 5
5. Add phone to known devices
- Run the following command on the terminal
Code:
echo 0x2717 >> ~/.android/adb_usb.ini
6. Add your computer to trusted devices on your phone
- Enter the following command on the terminal:
Code:
adb devices
- Look on your phone, it should now be asking you if it can add the machine to the trusted devices, or something like that. I'm writing this from memory.
7. Check that adb devices is working
- Enter the following command on the terminal:
Code:
adb devices
- Check that the device ID is there (8 characters such as bf1b6529)
- Check that it says device after it
8. Kill adb
- Enter the following command on the terminal
Code:
adb kill-server
9. Now for the fun. You will need sudo access for this stage.
- Download boot.img to your computer.
- At the terminal, navigate to the directory where you downloaded boot.img, this will probably be ~/Downloads
- At the terminal:
Code:
adb reboot bootloader
- You will now see a screen like the following:
{
"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"
}
- At the terminal:
Code:
sudo su
fastboot devices
- You will now see your device ID followed by fastboot
Code:
fastboot boot boot.img
- You will now see something like the following:
Code:
downloading 'boot.img'...
OKAY [ 1.022s]
booting...
OKAY [ 0.259s]
finished. total time: 1.281s
10. Restart
- At the terminal enter:
Code:
fastboot reboot
- You should now see a textual boot screen wher you can see it actually carrying out the rooting with boot.img
- Then it should boot as normal into Android
- Check your apps. You should now have SuperSU
Thanks for step no 5. After trying all kind of 51-android.rules guide from stackoverflow and your solution work. Now I can detect my device in Linux Mint.
5. Add phone to known devices
- Run the following command on the terminal
Code:
echo 0x2717 >> ~/.android/adb_usb.ini
Click to expand...
Click to collapse
thanks....
finally i can connect my mi4i to my linux desktop
Thank you for your guide. I assume this will work on Ubuntu 14.04 as well.
Question to step no.9: "Download boot.img to your current dir" => Which directory do you mean? The root of the phone or on my laptop? Sorry for being newbie. Many thanks.
rmsinaga said:
Which directory do you mean? The root of the phone or on my laptop?
Click to expand...
Click to collapse
You need to download boot.img to your laptop. I've updated Step 9 with the following:
- Download boot.img to your computer.
- At the command line, navigate to the directory where you downloaded boot.img, this will probably be ~/Downloads
Click to expand...
Click to collapse
Step one on the path to rooting my m4i was getting adb to work.
kblade29m said:
Thanks for step no 5. After trying all kind of 51-android.rules guide from stackoverflow and your solution work. Now I can detect my device in Linux Mint.
Click to expand...
Click to collapse
After much googling, much time, and trial and error, I had reached this point. Then I come here and here it is! All made simple.
The next hurdle is that adb devices shows the phone with the word "offline," and that is where...
aembleton said:
- Look on your phone, it should now be asking you if it can add the machine to the trusted devices, or something like that. I'm writing this from memory.
Click to expand...
Click to collapse
...I find I wasn't even seeing the message because the flip cover was closed. Doh.
This is my second Android phone, and I rooted and installed CM on the previous one, a Defy+. Still feel very much a novice, and approaching the rooting is quite scary. Among my worries...
Does this method change the recovery?
Does this method, with boot.img, install a new rom, or does it root the exisiting one?
Will everything else be reset/wiped? (well, backups anyway. Of course).
Will Xiaomi updates still work and be installable?
I am considering using method 1 from "Root/Unroot V6.5.x W/out Losing Stock Recovery [Simplified]" (new member: cannot make that a link) . Any comments?
It is so nice to see the Linux, and especially mint-specific, advice here. Thank you!
(My first post here: usual forum-novice disclaimers apply )
I have used this method to root my mi4i.
Quick answer:
1. No
2. It only roots the existing ROM
3. No
4. You need to full unroot 1st from SuperSU before updating, otherwise it will be bootloop
5. Never tried before
rmsinaga said:
I have used this method to root my mi4i.
Quick answer:
... ... ...
Click to expand...
Click to collapse
Great answer! :good:
Thank you very much for attention to every detail. The only thing putting me off going for this straight away is that I am travelling in just over a week, which doesn't give me any margin for making mistakes (if they can be made, I will make them!).
You mentioned having failed to make stuff work in a virtual machine. Did you try Wine? I failed to make the Mi PC manager software run in Wine.
Simple, painless and absolutely effective
aembleton said:
10. Restart[/B]
- At the terminal enter:
Code:
fastboot reboot
Click to expand...
Click to collapse
(response typed from memory)
Code:
# fastboot reboot
<Waiting for Device>
...amd it goes on waiting. Does anybody get any other response on the terminal screen after this?
Anyway, Be Patient! Probably better to make tea or something away from the screen. After several minutes of Fastboot screen on the phone, the process continues as premised...
aembleton said:
- You should now see a textual boot screen wher you can see it actually carrying out the rooting with boot.img
- Then it should boot as normal into Android
- Check your apps. You should now have SuperSU
Click to expand...
Click to collapse
...and all is well.
After the phone had rebooted, I just ctrl-c-ed the fastboot process and exited from the terminal.
Works wonders, thanks!
Could only find ****ty .exe rooting tools that seemed sketchy and don't have windows installed anymore, so this saved me hours.
My computer could find the phone through adb and got authorized, the phone couldn't find my computer through adb though which was strange but it still worked fine. Thanks alot!
Thad E Ginathom said:
4. Will Xiaomi updates still work and be installable?)
Click to expand...
Click to collapse
rmsinaga said:
4. You need to full unroot 1st from SuperSU before updating, otherwise it will be bootloop
Click to expand...
Click to collapse
Just tried this, it does not work.
Disabled root from SuperSU and updated to the newest weekly developer rom, and my device is now in a boot loop.
I'm currently trying to download the stable fastboot rom from the MIUI forums, but their servers are both incredibly slow and unstable. Doesn't go past 100kb/s and the download loses connection after a while and fails to continue the download. If someone could provide a alternative download link that would be great.
EDIT: Found a hidden link on the rom page for the fastboot rom from the miui page. Go to this page and Ctrl-F Mi4i
zenolijo said:
Found a hidden link on the rom page for the fastboot rom from the miui page. Go to this page and Ctrl-F Mi4i
Click to expand...
Click to collapse
Did this work for you?
I also got into a boot loop after installing the latest update. I installed the latest stable version. This worked, but the Play Store won't start.
aembleton said:
Did this work for you?
I also got into a boot loop after installing the latest update. I installed the latest stable version. This worked, but the Play Store won't start.
Click to expand...
Click to collapse
Well, the stable fastboot rom isn't the global version, so i only used it to get my phone running again and then flashed the stable global version. Everything works as expected now.
How to update ROM using fastboot in Linux?
Do you know how to update ROM using fastboot in Linux?
Sorry to bother you as I'm new in this Linux world.
Thank you.
Thank you man, you have guided us to the land of light, you are our moses, krishna, muhammad and so on and so forth. We can flash left and right without second thoughts. Please keep up your efforts. Thank you one more time.
My phone is, as per previous posts, rooted, using this method.
Can I now flash TWRP recovery from Linux?
Hey, this is a method only for Xiaomi Mi4i? I have an Estar Crystal-clearview and wondering if I can root it by this method? I run the terminal with the adb install and then for the list of devices attached, and I started thinking about!
P.s. Just searched ''root with mint'' and your post was first!
Thad E Ginathom said:
Can I now flash TWRP recovery from Linux?
Click to expand...
Click to collapse
Eventually I got around to doing this using Flashify. I followed the instructions here on the MIUI forum. It was simple and straightforward and I now have TWRP recovery.
However, when I tried to use it to do a backup, it said there was not enough space. But it was long past bedtime, and that is another story that I have yet to investigate. There is probably a simple answer, err... make more space! The absence of SD card slot and the limited internal memory is the big frustration about this phone.
But I want to upgrade MIUI --- and I don't want to do it without an easy backtrack to the previous ROM.
[Solved] Step 9 not working
Goto developer options
Check if 'fastboot mode' is enabled
Thanks
Hi aembleton,
Thanks a lot. it worked just fine.
does this replace recovery too ?

[GUIDE] Install Android SDK Standalone [ADB][30 Dec 2015]

Android SDK - Powerful tool and easy to set up for use with your Android Device
{
"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 am putting this together for some who may be confused on how to set this up. I love Android SDK, have been using it for ever and once it is setup, maintenance is extra easy. There are 100 ways to skin a cat with ADB tools and development tools. This is my personal choice, go about it how ever you want. This tool is well maintained and always updated so its a big reason I use it. Great support and a great and powerful tool
Click to expand...
Click to collapse
Part 1. Follow These Steps Below - (Preparation)
Download Links For Tools
1. Java SE Development Kit (JDK)
2. Android SDK Tools Only - Download Only, Do Not Install yet
If You Choose Windows for example
3. Universal ADB Drivers - Instructions Here
Click to expand...
Click to collapse
How to Install and Set-up
1. Install Java SE Development Kit (JDK) from Start Here section if you have not yet
2. Launch Android SDK installer you downloaded up above in Download Links
3. During install - Set Installation Path to
Code:
C:\Android\
4. After Installation is Complete, run SDK Manager.exe
5. Install 5.1.1 and 6.0 since these are the APIs for all current Devices. Should not really see anything less than 5.1.1
Note* - Just put a check box where you see the red circles in the picture. The reason I have Tools (Preview Channel) is because I updated to the 25.0.1 RC2 SDK Tools, however, that is not required. You can choose 24.4.1 and it will be fine. It will say installed where as mine does not in the picture because I chose to use 25.0.1 RC2
6. Let all updates install to completion - This could take a while depending on your internet connection
Click to expand...
Click to collapse
The Computer and Phone are now prepped for you to start the whole ADB Process
Click to expand...
Click to collapse
Part 2. Verifying ADB is set up properly and Working
IMPORTANT - Make sure you have already enabled developer options and USB Debugging or you will not see the below results
1. Open Command Prompt and Change directories to your platform-tools folder. This is where all the adb files are located. See Below
In Command Prompt Type - Refer to Part 3 so you no longer need to Change Directory
Code:
cd c:\Android\platform-tools
2. In Command prompt type
Code:
adb devices
You Should get Prompted to Allow USB debugging - Ignore if You Already Have Done This
3. If your output shows your device attached like below, then you are good to go!!!
and
YOU ARE FINISHED!!! Below is a command to get into the bootloader if interested!! Good Luck
Click to expand...
Click to collapse
Part 3. Environment Variables - No need to Change Directory in Command Prompt Anymore (This is if you want to - Not Required)
1. Press Win+R, then type
Code:
sysdm.cpl
2. Click Advanced Tab
3. Click Environment Variables Button
4. Under System Variables, find Path, click to highlight it and then hit the edit button
Windows 8
Windows 10
5. Go to the end of the Variable Value and add the following exactly as you see it in the code box below
Code:
;C:\Android\platform-tools
Windows 8
Windows 10
6. Click OK to accept the changes you just added
7. Open Command Prompt again to verify by pressing Win+R and type cmd and hit enter
8. Once Command Prompt is open -> Simply type adb devices with your device connected with USB Debugging already enabled
9. If you did everything correctly, there is no need to change paths anymore
Click to expand...
Click to collapse
Getting into the Bootloader
In Command Prompt Type:
Code:
adb reboot bootloader
Thanks To:
@Ashraf - Images used for Environment Variables - Not all were his since the guide was modified
@[B]Snoop05[/B] - ADB Drivers and Fastboot
Reserve if Needed
Thank you so much for this - can i ask what's the size of the SDK manager files which we are supposed to download? For some reason it downloads in 86 kb/s speed (normaly 5-6 mb/s) so I just wanted to know if i'm going to wait a long time
Peccoskaify said:
Thank you so much for this - can i ask what's the size of the SDK manager files which we are supposed to download? For some reason it downloads in 86 kb/s speed (normaly 5-6 mb/s) so I just wanted to know if i'm going to wait a long time
Click to expand...
Click to collapse
Hey the installer size is 145mb. I was able to download it in 15 seconds
Updating sdk manager will take a while. I am not sure of the file size... It will take a while... You only have to do this once. Updates after this will be quick
Sent from my LG-H901 using Tapatalk
bdorr1105 said:
Hey the installer size is 145mb. I was able to download it in 15 seconds
Updating sdk manager will take a while. I am not sure of the file size... It will take a while... You only have to do this once. Updates after this will be quick
Sent from my LG-H901 using Tapatalk
Click to expand...
Click to collapse
I've tried it many times.... i have enough space on my drive, but everytime i try to download this one and only part, prints out this error message....why do i always have so many problems with it
Peccoskaify said:
I've tried it many times.... i have enough space on mi drive, everytime i try to download this one and only part it prints out this error message....why do i always have to have so many problems with it
Click to expand...
Click to collapse
Lol you and me both bro, but you don't have to install that, that is optional, the rest looks good. You should be able to use it now
Edit: looks like a network issue or the repository is down... That will work itself out.. Right now, it is not required
Sent from my LG-H901 using Tapatalk
This is seriously getting ridicolous - Now everything is downloaded, cmd sees the device I have every stupid thing set-up and still....phone only reboots when i type - adb reboot bootloader -
Shell I record it for you?
Edit:
I did record it -
Peccoskaify said:
This is seriously getting ridicolous - Now everything is downloaded, cmd sees the device I have every stupid thing set-up and still....phone only reboots when i type - adb reboot bootloader -
Shell I record it for you?
Edit:
I did record it -
Click to expand...
Click to collapse
Sounds like your bootloader is borked, you should always be able to get into...Were you able to flash TWRP successfully? Not sure where you went wrong, I would try to push boot.img again, you should have a recovery
Go Here
bdorr1105 said:
Sounds like your bootloader is borked, you should always be able to get into...Were you able to flash TWRP successfully? Not sure where you went wrong, I would try to push boot.img again, you should have a recovery
Go Here
Click to expand...
Click to collapse
I followed steps till the one i got stuck in, so no i did not flash TWRP :/ or anything else. - It's weird that it is broken because it's new phone and i did not do anything to it, expect for right now :/ But sure I'll try
Peccoskaify said:
I followed steps till the one i got stuck in, so no i did not flash TWRP :/ or anything else. - It's weird that it is broken because it's new phone and i did not do anything to it, expect for right now :/ But sure I'll try
Click to expand...
Click to collapse
I think your bootloader may still be locked
Have you done this? Make sure USB Debugging is enabled, OEM Unlock is checked, You are in PTP, type adb devices and verify it sees your device then do the following Next:
nvm edited out got ahead of myself
bdorr1105 said:
I think your bootloader may still be locked
Have you done this? Make sure USB Debugging is enabled, OEM Unlock is checked, You are in PTP, type adb devices and verify it sees your device then do the following Next:
nvm edited out got ahead of myself
Click to expand...
Click to collapse
If you look at the video you can see that i have both on and PTP too - without PTP cmd won't see my device...i think
oh sorry
Peccoskaify said:
If you look at the video you can see that i have both on and PTP too - without PTP cmd won't see my device...i think
oh sorry
Click to expand...
Click to collapse
Have you had any luck?
Sent from my LG-H901 using Tapatalk
bdorr1105 said:
Have you had any luck?
Sent from my LG-H901 using Tapatalk
Click to expand...
Click to collapse
Nope :/
Is there way to flash some LG stock android in my phone so it will have bootloader? :/ - I'm not very good in english so i don't even know what to search for :/
Peccoskaify said:
Is there way to flash some LG stock android in my phone so it will have bootloader? :/ - I'm not very good in english so i don't even know what to search for :/
Click to expand...
Click to collapse
Yea I am looking into it the v10 is hard to find anything
Sent from my LG-H901 using Tapatalk
Peccoskaify said:
Is there way to flash some LG stock android in my phone so it will have bootloader? :/ - I'm not very good in english so i don't even know what to search for :/
Click to expand...
Click to collapse
Ok try this
1. Power phone off
2. Hold volume down and power together 3. Once LG Logo appears, let go of power for 1 second and press power again.. Never let go of volume down
4. Then chose to factory reset
This may resolve the issue so you can retry again
Sent from my LG-H901 using Tapatalk
bdorr1105 said:
Ok try this
1. Power phone off
2. Hold volume down and power together 3. Once LG Logo appears, let go of power for 1 second and press power again.. Never let go of volume down
4. Then chose to factory reset
This may resolve the issue so you can retry again
Sent from my LG-H901 using Tapatalk
Click to expand...
Click to collapse
Did it, nothing changed, is this reason for refund?
Peccoskaify said:
Did it, nothing changed, is this reason for refund?
Click to expand...
Click to collapse
Ok another method
1. Install Terminal Emulator
2. Open the Terminal
3. Type# su
4. Type# reboot-bootloader
This should go straight to the bootloader, if it doesn't, I am at a loss
bdorr1105 said:
Ok another method
1. Install Terminal Emulator
2. Open the Terminal
3. Type# su
4. Type# reboot-bootloader
This should go straight to the bootloader, if it doesn't, I am at a loss
Click to expand...
Click to collapse
I just can't anymore - so far thank you for your help, even though it's never year you are willing to help, not many people would waste time with me
Peccoskaify said:
I just can't anymore - so far thank you for your help, even though it's never year you are willing to help, not many people would waste time with me
Click to expand...
Click to collapse
Thats not correct, su did not work, you should have a # symbol before the command, guess not being rooted doesn't help
edit: connect your phone to the computer and type the same command
I think strangely it is just recognizing adb reboot and omitting the bootloader, so try adb reboot-bootlader when connected to the computer

Categories

Resources