How to flash new firmware and Rom, using MAC? - One (M7) Q&A, Help & Troubleshooting

Hey guys
I want to flash my Firmeware after i unlocked my Bootloader and rooted my phone. What are the steps to do so on MAC computers?
I unlocked my bootloader and rooted my phone few days ago by the following steps on my Mac sucessfully:
http://htconeroot.com/htc-one-root/how-to-root-htc-one-windowsmaclinux/
Step 1. First, go to Settings->Developer options and make sure USB debugging is checked ON.
Step 2. Connect a micro-USB cable from your HTC One to your computer.
Step 3. Download HTCOneRoot.zip and unzip to HTCOneRoot directory. This zip file contains everything you need to root your HTC One!
Step 4. Open a command prompt/terminal on your computer and type:
cd Downloads
cd HTCOneRoot
chmod 755 *
./adb-mac backup -apk -all -f backup.ab
Step 5. Go to your phone and choose “Backup up my data”. This will back up all of your app and app data.
Step 6. Once app backup is done, go to Settings->Power and make sure Fast boot is checked OFF.
Step 7. Turn off your HTC One. Then hold down Volume Down and Power buttons together for about 3-5 seconds until you see bootloader menu.
-Hit the Power button to enter Fastboot mode
-Connect micro-USB cable from your HTC One to your computer.
Step 8. Type the following in your command prompt/terminal:
./fastboot-mac oem get_identifier_token
Step 9. Copy the identifier token you get exactly as shown below (or see video tutorial).
Step 10. Go to HTCDev.com and log-in. If you don’t have an account, register then log-in.
Click on “Unlock Bootloader” then “Get Started”.
Step 11. Choose “All Other Supported Models” then click on “Begin Unlock Bootloader”.
Step 12. Choose “Yes”.
Step 13. Make sure check boxes are checked ON and click on “Proceed to Unlock Instructions”.
Step 14. Scroll all the way to the bottom and click on “Proceed to Step 5″.
Step 15. Scroll all the way to the bottom and click on “Proceed to Step 8″.
Step 16. Scroll all the way to the bottom and paste your token you copied over earlier. Make sure there’s no white spaces or INFO (if using MAC/Linux).
Step 17. Hit “Submit” and if you copied and pasted the token correctly, you should get a success message.
Step 18. Check your e-mail and you should have received Unlock_code.bin file from HTC.com.
Step 19. Download and copy the Unlock_code.bin file to the HTCOneRoot folder.
Step 20. Next type in command prompt/terminal:
./fastboot-mac flash unlocktoken Unlock_code.bin
Step 21. Go to your phone and choose “Yes” using Volume Up button then hit the Power button. Your HTC One will reboot in about 5 seconds.
Step 22. Once rebooted, your HTC One should be completely wiped and you should get Welcome message just like the day you got your phone. Sign in through the setup process then copy the CWM-SuperSU-v1.30.zip file in HTCOneRoot folder to anywhere on your HTC One’s internal storage.
Step 23. Power off your phone then re-boot into bootloader menu to fastboot mode like you did in Step 7.
Step 24. Type the following to install recovery:
For HTC One M7 (AT&T/T-Mobile/International/Unlocked/Developer)
fastboot flash recovery openrecovery-twrp-2.5.0.0-m7.img
Then Type:
./fastboot-mac erase cache
Step 25. Choose “Bootloader” and hit the Power button.
Step 26. Choose “Recovery” and hit the Power button.
Step 27. Once in TWRP recovery, choose “Install”.
Step 28. Choose the file CWM-SuperSU-v1.30.zip.
Step 29. Swipe to flash this file. This will root your HTC One by installing SuperSU superuser app and SU binaries.
Step 30. Choose “Reboot System” to reboot.
Step 31. Once rebooted, you will find “SuperSU” app in your app drawer. Congratulations! You’ve successfully rooted your HTC One! You can verify full root by installing a rooted app like Titanium Backup app.
My question:
How do I now flash a new Firmware on it? I know I have to relock my bootloader and then i can flash the firmware.
But what are the concrete steps in terminal and on the phone to relock and flash firmeware and for expample Revoultion HD on it?
Here I found the firmware http://forum.xda-developers.com/showthread.php?t=2182823
I would be grateful for any help
Filip

You would download the Mini-SDK folder which has fastboot and adb files inside and place it on the desktop. You would then open up a terminal window and navigate to that folder "cd /Users/yourusername/Desktop/nameoftheSDKfolder and then you would type fastboot and/or commands just as you would on Windows. I think the command for locking the bootloader is fastboot oem lock.
This is how you setup fastboot and ADB on your Mac: http://forum.xda-developers.com/showthread.php?t=1917237
Read the guide carefully and it will be a piece of cake. Download the "android.zip" file attached in the thread and place the folder on Desktop, do not download the big Android-SDK file (the guide will instruct you to do that anyway).

Related

Recovery and Rooting ICS 4.0.3 OTA

I did the following steps to install recovery. Feel free to do this at your own risk.
My thanks to AndroidHero, Vertigo and Shingers5 for Touch recovery and rooting zip files.
1) Unlock Bootloader (if it locked goto htcdev.com site and follow all steps)
2) Download .zip file and Extract recovery_for_1.28.img from the .zip
3) Copy recovery_for_1.28.img to the same folder as fastboot.exe
4) Select usb debugging (settings>develope option)
5) Connect phone with usb cable to pc and select charge only
6) Goto android-sdk folder and then into platform-tools
7) Shift & Right Click and select open command window here
8) type 'adb reboot bootloader' <enter> (without quotes)
9) In the command window type fastboot flash recovery recovery_for_1.28.img
10) type Exit and disconnect phone
11) reboot the phone.
This recovery is touch recovery and seems to be in its crude form but functional.
If you want to root your phone then do the following,
search for this file CWM-SuperSU-v0.88 and copy to the root directory of your phone and flash using zip from sd card option. You will find this file on the last line.
Goto android-sdk folder and then into platform-tools
Shift & Right Click and select open command window here
type adb reboot-bootloader <enter>
Select fastboot
Select Recovery (Using vol down)
Select install zip from sdcard
Select install from zip file
Scroll down to the place where you copied your CWM-SuperSU-v0.88 file and select it
It will do the root
reboot
Download root checker app from play store and check if you are rooted.
This worked for me. Your comment will be highly appreciated, and do not forget to click my Thanks Meter.

[rOOt] Kwongger's Sprint HTC One All-In-One Root Pack

Hello,
First off, I'd like to apologize for putting this in the "General" section, as I am new, I cannot post in the development related sections.
So, I have compiled a all in one package for rooting your HTC One, this kit includes fastboot, drivers, recoveries, SuperSU, and anything else you will need to root your device (there is a full list below). I have compiled some pretty detailed instructions and will post them in the second post.
INCLUDED FILES:
Fastboot
adb
Clockwork Mod Touch 6.3.something
TWRP 2.5.0
SuperSU (recovery flashable)
Disable Write Protection (recovery flashable)
Drivers (32 and 64 bit)
Stock Boot Image and Recovery
INSTRUCTIONS-
Download Latest:adf . ly/O7zCG​
Past Releases:
None Now, this is 1.0!
Notes:
By downloading this you are placing the full responsibility on yourself for anything that happens to your sexy new phone, unless it starts shooting lasers and destroying iDevices, then, the Credit is mine
This works on both Windows and Mac OSX
If you make a video or blog post etc get my permission BEFORE
ENJOY!!!
Instructions
Kwongger's Sprint HTC One All-In-One Pack
1. Create an account at HTC DEV
2. Unlock using the HTC Dev instructions (below) (select "all other supported devices" at start)
3. Flash A recovery using the below instructions
4. Either Flash the SuperSU zip (stock rooted) or the rom of Your Choice (both IN RECOVERY)
NOTE:
I will soon post a detailed YouTube video (in 2 weeks or so when I get my One!)
on youtube com /user/ kwongger​
HTC unlock method instructions:
Just So you know, these are directly from htc, all credit to them!
Step 1: Remove and reinsert the battery then proceed to step 2. For devices without a removable battery, long press the power key then select restart. Hold down the volume down key while restarting to start the device in Bootloader mode.
Step 2: Press Volume Down and Power to start the device into Bootloader mode.
Step 3: Use the Volume buttons to select up or down. Highlight Fastboot and press the Power button.
Step 4: Connect the device to the computer via a usb cable
Step 5: Isn't needed
Step 6: Open a command prompt in the directory by pressing shift, right clicking, and selecting open command prompt window here
Step 7: Navigate to where you unzipped the ZIP file and go to the folder you just created (see step 6 above)
Step 8: Type in Command Prompt: fastboot oem get_identifier_token
Step 9: You will see a long block of text. Copy and paste into the token box on HTC DEV.
You should get this:
Token Submitted Successfully!
You've been sent an email with your unlock key as a file attachment. Please review this email for further instructions and a link to complete the Bootloader process.
Leave your cmd window open you will need it after you get your Unlock_code.bin in the e-mail.
You can place the Unlock_code.bin in your Root folder and follow the instructions from the e-mail.
NOW: boot to the bootloader and select fastboot
Installing TWRP
Now type "fastboot flash recovery openrecovery-twrp-2.5.0.0-m7wls.img" without the quotes and press enter
Now type "fastboot erase cache" without the quotes and press enter
This will install custom TWRP recovery on your phone so you can start flashing custom ROMs.
Installing CWM v6.0.3.1
Turn phone completely off
Boot into HBOOT>Fastboot
Use command "fastboot flash recovery recovery-clockwork-6.0.3.1-m7wls.img" without the quotes or
"fastboot flash recovery recovery-clockwork-touch-6.0.3.1-m7wls.img" also without the quotes
AFTER FLASHING RECOVERY
1. Boot to your recovery and flash the rom of your choice.
~or~
Boot to your recovery and flash the SuperSU zip.
2. Flash the Disable Write Protection zip (will allow you to replace/edit system files)
Frequently Asked Questions
FAQ​
Will this work on (insert alternate Htc One carrier here)?
Most likely not, give it a shot though! Remember I am not responsible for anything that happens to your device.
Can I return to stock?
Yeah, just flash the stock stuff through fastboot and relock your boot loader.
Will this void my warranty?
If you really have this question you don't belong on these forums... YES htc even told you themselves when you started the bootloader unlock process
My phone won't boot.
Well you did something wrong, return to stock using the above instructions and then try again.​
I am closing this thread because it has information which this thread already has in more detail.
It's best not to have a plethora of the same thread.
Thanks

[GUIDE]- Easiest,Safest and Best way to ROOT NEXUS 5

This is a step by step guide to root Nexus 5
PLEASE MAKE A BACKUP of your files on your internal storage.
Unlocking bootloader will ERASE EVERYTHING.
Download the file below
http://d-h.st/YGm
Step1: go to Settings->About Phone > hit the “Build Number” until you get “You are now a developer”.
Step2: go to Settings->“Developer options and turn ON “USB debugging” .
Step3: Connect the device to computer.
Step4: For Windows,we need to install drivers.
Right click on My computer and select Manage and select Device Manager
you should see something like nexus 5,
now double click on that and select update drivers..
choose Browse my computer for device software > let me pick from a list > select install from disk >set path to usb_driver file in
extracted folder.
Now you should see something like Android ADB Interface..(do it again if you dont see this)
Step5: Next, open command prompt(win+r > cmd) and type: cd downloads ( or wherever you have downloaded the file to )
cd Nexus5
adb devices
you should get : 'list of devices attached'
some code and " device"
if you don't get this and instead get offline,then check USB debugging is enabled or not and reconnect the device and install drivers again
in device manager(step4)
Step6: Turn off your Nexus 5.Then hold down Volume Down and Power buttons together for 3 seconds until you see the bootloader menu.
Step7: Connect the cable again and open Device Manager and install drivers again( step 4)
This is because you connected the device in another mode and hence pc recognizes it as a new device
Step8: . Go to command prompt and type: fastboot oem unlock
Step9: Go to your Nexus 5 screen and use Volume buttons to select “Yes” and hit the Power button. This WILL ERASE EVERYTHING
and unlock the bootloader.
Step10: Your phone reboots and you get the welcome screen like the day you unboxed it..
Step11: Now log in with a account and connect it to computer and copy the UPDATE-SuperSU-v1.65.zip file to internal storage.
Step12: Power off your Nexus 5. Then hold Volume Down and Power buttons together until you see the bootloader menu then connect
USB cable from Nexus 5 to your computer.
Step13: Go to command prompt and type: fastboot flash recovery openrecovery-twrp-2.6.3.1-hammerhead.img (for TWRP)
OR
fastboot flash recovery recovery-clockwork-6.0.4.4-hammerhead.img (for CWM)
Step14: Next, use Volume buttons on your Nexus 5 and choose “Recovery mode” and hit the Power button.
Step15: Once in CWM or TWRP recovery, choose “Install zip from sdcard” or “Install”. (choose “choose zip from sdcard” for CWM.)
Step16: Browse your internal storage and find the file UPDATE-SuperSU-v1.65.zip. Install this file to root your Nexus 5.
Now your Nexus 5 is ROOTED.
Step17: Next, choose “reboot” from main menu of CWM or TWRP recovery.
:good:Your NEXUS 5 is now ROOTED:good:
PLEASE hit the THANKS:good: button if my post is useful
I think this already exists. Also you don't need to turn your phone off you can just use the command "adb reboot bootloader"
Sent from my Nexus 5 using Tapatalk
This info is already in the sticky post by Chromium, please read first and post second as saves repeat posts: http://forum.xda-developers.com/showthread.php?t=2507905
MisterEff said:
I think this already exists. Also you don't need to turn your phone off you can just use the command "adb reboot bootloader"
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
This method is a bit easy than those already existing..
And this for those who are new to android with all downloads in one file....
AvRS said:
This info is already in the sticky post by Chromium, please read first and post second as saves repeat posts: http://forum.xda-developers.com/showthread.php?t=2507905
Click to expand...
Click to collapse
Ive added all required files into one zip including drivers and hence no need to download android sdk..
This method is easy to follow for beginners.
help
i need some help. i can't go pass step 13 because it won't let me install TWRP. help :crying:
gerardoeliazz said:
i need some help. i can't go pass step 13 because it won't let me install TWRP. help :crying:
Click to expand...
Click to collapse
for the command to work, you should first be in the directory...
paste the downloaded Nexus 5.zip on desktop , extract it on desktop, then do the following..
> windows key + r
or
go to start and find "run" and type "cmd"
in command prompt, type
> cd Desktop
> cd Nexus 5
> now type fastboot flash recovery openrecovery-twrp-2.6.3.1-hammerhead.img

Update Nexus 7 to 5.0 from 4.4.4 (root + unlocked bootloader) KEEP DATA

This is a "re-tread" of a post I previously made, taking an account of the steps I took to successfully update my Nexus 7 from 4.4.4 to 5.0. Note: This is for an unlocked bootloader, if you don't have an unlocked bootloader you will lose your data; consider TiBackup.
My Nexus 7 [WiFi] was rooted on 4.4.4, unlocked bootloader, but stock rom, stock system (as far as I remember). I couldn't find a walkthrough so I'll make one with my experience. This worked for me on my Mac, I hope this helps you.
In the end I didn't lose any data, still have unlocked bootloader and rooted with CWM Recovery & SuperSU (you can replace with TWRP recovery or CWM Touch if desired)
Directions ("./" = file path to platform-tools folder, if you 'cd' to that location the "./" will pull that location in the terminal)
1. You must have Android SDK installed. Download it here: http://developer.android.com/sdk/index.html.
2. UNZIP and you will see a bunch of folders. The one we are interested in is the subfolder "platform-tools". You may copy it to an easier location if you want.
3. Download the factory images 4.4 (KRT16S) (4.4 required, see HERE, Google broke its own bootloader) and 5.0 (LRX21P) for your Nexus 7: https://developers.google.com/android/nexus/images#nakasi (WARNING: Download the correct images for YOUR device, Nexus 7 Wi-Fi vs Mobile)
4. Unzip the 4.4 image file you downloaded and copy "bootloader-grouper-4.23.img" (img name depends on your build) to your "platform-tools" folder (where adb and fastboot are). (WARNING: the bootloader image in 5.0 is broken see HERE)
5. Unzip the 5.0 image file you downloaded and copy all content, except for "bootloader-grouper-4.23.img," to your "platform-tools" folder (where adb and fastboot are).
6. Plug your Nexus 7 into your computer with USB debugging (activate it in "About Phone" and touch "Build number" 6 times, it will activate "Developer Options" menu where you will be able to activate "USB debugging")
7. Open terminal and "cd" to the platform-tools folder
8. Verify ADB is working type "./adb devices"
9. Reboot your device into fastboot mode: type in terminal "./adb reboot-bootloader"
10. Type:
"./fastboot flash bootloader ./bootloader-grouper-4.23.img" (img name depends on your build)
11. If you have "WiFi Only" skip to step 12; for Mobile flash radio type:
"./fastboot reboot-bootloader"
"./fastboot flash radio ./radio-XXXXXXXX.img" (img name depends on your build)
12. Type:
"./fastboot reboot-bootloader"
"./fastboot update ./image-nakasi-lrx21p.zip" (zip name depends on your build)
It will then reboot (takes a while, 5-10 minutes on boot animation, then it must update App info, another 5-10 miuntes) and then you will be in Android 5.0 with all your data preserved.
Then if you want a custom recovery:
1. On your computer, download CWM, CWM Touch, or TWRP recovery from here: CWM Dwnld or TWRP Dwnld (WARNING: Download the correct image for YOUR device, Nexus 7 WiFi vs Mobile)
2. Place the image file you downloaded in your "platform-tools" folder (where adb and fastboot are)
3. Connect your Nexus 7 (debug mode) and put it in fastboot mode (step 9 above): type in terminal "./adb reboot-bootloader"
4. In the terminal type:
"./fastboot flash recovery ./FILENAME.img" (replace FILENAME.img by the file name of the CWM/TWRP file you just downloaded)
5. Verify Recovery - Shut down your device and boot it into recovery mode (Once off, push vol- and power together). Choose recovery mode with vol-, then power to select (Note: if you get an Android on his back you still have stock recovery, retry Steps 1-4. I flashed CWM, CWM Touch. and TWRP with no success, plugged my cable into a different USB port and got it first try; try different cables and ports)
Then if you want a root:
Note: If you don't have an unlocked bootloader you will lose data. Already unlocked should be fine, when you boot there should be an open lock at the bottom of the screen below the Google logo. On PC WugFresh Nexus Root Toolkit might be your best option, for me on Mac it is not available so this is what I did.
1. On your computer, download CF-Auto-Root from here: Auto Root Dwnld (WARNING: Download the correct image for YOUR device, Nexus 7 WiFi vs Mobile)
2. Unzip the CF-Auto-Root file you downloaded and copy all its content to your "platform-tools" folder (where adb and fastboot are)
3. Connect your Nexus 7 (debug mode) and put it in fastboot mode (step 9 above): type in terminal "./adb reboot-bootloader"
4. Type: (Note: Step 4 commands need to be run as Admin)
"chmod +x root-mac.sh"
"ls -al"
"./root-mac.sh"
5. Follow on-screen prompt and type your Mac User Account password and ENTER
6. Let the phone go through its thing (Red Android screen), it will reboot when complete.
That is it!
Thanks to Phil Tech: http://youtu.be/IPg_FGbeyq0
Thanks to jipi: http://forum.xda-developers.com/showthread.php?t=2377691
Good luck and happy flashing.
Thanks for the effort.
Thanks ! I did that, more or less adapted. The result was just awefully slow, so I had to do a wipe to start with a clean slate.
Android, the new Windows: reinstall every 6 months....
I've followed the procedure on w8.1 64bit.
All went well but I lost adb after 5.0 finally booted. So I could not install root through NRT (1.9.8).
Adb mode was recognised in windows device manager but adb commands failed with no device found.
Suprisingly fastboot was working.
The solution was to uninstall NRT and adb drivers and reinstall them.
Great guide!!
Followed the steps to the 'T' and I've got Lollipop on my Nexus 7 Wi-Fi.
If the Bootloader is already on 4.23 then Step 10 can be skipped, as I did.
dg170775 said:
Great guide!!
Followed the steps to the 'T' and I've got Lollipop on my Nexus 7 Wi-Fi.
If the Bootloader is already on 4.23 then Step 10 can be skipped, as I did.
Click to expand...
Click to collapse
True, I was already on 4.23, but still flashed it anyways. Thanks for the input.

[How To] Unlock Bootloader, Install Recovery and Root

Everytime I have to unlock,flash recovery and root I can't remember how to do it....
So I'm writing this very easy guide.
This was a fiddly little phone to root!!!
First off get the One Mini 2 drivers from here:
http://www.htc.com/uk/software/htc-sync-manager/
I personally cannot stand HTC Sync, it's totally pointless but it does contain all the drivers, if you can extract just the drivers then do...
Download Android SDK Slim from here:
https://mega.nz/#!8tETTbga!iVOYHGwT7...PNuQCrX6zJxpwQ
Unzip it anywhere you like, desktop's easy but it can be anywhere...
Go to https://www.htcdev.com log in click on Get Started then Unlock Bootloader and choose One Mini 2 from the dropdown.
Click Yes and Tick the two boxes for all the legal stuff.
Now go into your One Mini 2 Phone Developer Settings and switch on USB debugging.
Next go to Power settings and switch off Fast boot.
Then connect the phone to your PC via USB cable.
Allow your PC to recognise it and download any stuff it wants to.....
Go make a cup of Tea while this is happening.
Next go to your SDK folder, wherever you ended up putting it, click through to the Platform Tools folder where you will see ADB and Fastboot.
Hold down Shift and Right Click anywhere in the folder, choose Open Command Window Here.
In Command Window Type: adb reboot bootloader
Your Phone will boot into Bootloader
Keep the Command Window open...from now until the very end!!
That has just skipped all the 4 Steps on the HTC Dev site!!!
Proceed to Step 5
Now in the Command Windows Type: fastboot oem get_identifier_token
You will see a long block of text. Copy and paste this text into the the token field on the HTC Dev site. Right Click choose Mark and highlight the square bit of code then press Enter to copy.
Paste that into the My Device Identifier Token
HTC will email you a little Unlock_code.bin file within seconds (Check your Junk folder)
Then copy or move the token to the Platform Tools folder.
Back to your Command Window which should still be open!!
Type: fastboot flash unlocktoken Unlock_code.bin
Now follow the instructions on the Phone....
The phone will Unlock the bootloader....
And Reboot your phone....
You need to go back to settings and switch on USB Debugging and switch off Fastboot (See start of tutorial)
Make sure you are still plugged into your PC
In Command Window Type: adb reboot bootloader and your phone will go back into the Bootloader screen.
Next go here: https://forum.xda-developers.com/on...recovery-twrp-3-0-2-0-unofficial-htc-t3555343
Download this TWRP
Place that file in the Platform Tools folder
Then in Command Window type: fastboot flash recovery twrp_3.0.2-0_v0.1.img
This will install your TWRP Recovery!!!
This bit took me a day to sort out... You need to install SuperuserSU but you can't do it using the TWRP "Do you want to install SuperuserSU" method...
The easiest way I found was to Reboot your phone normally into the OS.
Go to Google Play and download ESFile Explorer
Then in a browser go here: http://www.supersu.com/download and download the Recovery V2.79 Flashable.zip don't be tempted to use the 2.8 version...yet!
Now you have the SuperuserSU in downloads...
Boot into Recovery and in TWRP press Install and find the Download folder, then open that to find Recovery V2.79 Flashable.zip.
Select that and swipe to install....voila!!!
Reboot your phone into the OS
From there open the Super SU app and update your Super User Binaries...
And that's how to Unlock the Bootloader, Install TWRP Recovery and Root....
EASY!!!!
:silly::silly::silly:
If you want to S-Off you can only do it using Sunshine and you have to relock bootloader!!!
To relock bootloader connect phone to PC with USB Debugging switched on and Power/Fast boot switched off.......right click holding shift in platform tools click on open command window here...
Type: adb reboot bootloader
Once in Bootloader...
Type: fastboot oem lock
EASY!!!!
:silly::silly::silly:

Categories

Resources