yashsingh1/xdaforums huggingface dataset:
[One (M7) Android Development] angusc:
Ok there has been a lot of posts over the past 24 hours. So why not explain exactly what issue you have and what you would like to do so that we can try to get at the root of your problem.

I thought that you wanted to go back to the stock Rom for your device?

Edit:

So you want to side load a Rom on to your device........check which folder you have adb.exe located in, then cd to that directory as you did for fastboot. Then follow this guide copied from Mike1986 thread located here, post 2, point 10 of this thread. I just compiled a few bits that I found here and there to make it more clear for myself.

Copy the room file to the same directory as adb.exe is located.

Change xxx.zip to rom.zip, go to recovery and type:

adb shell

mount /data

mkdir /data/media

exit

adb push rom.zip /data/media

sorry mike but I am not an expert and I really don't know from where to start even with your explanation?? , where I have to do this ??? in the phone ? on my computer ?

On your pc. You need the android sdk and open a command shell in the folder where it's located. Then type the commands.

Sent witH desire from One X
[One (M7) Android Development] bobsie41:
Do I sense a hint of irony?
[One (M7) Android Development] angusc:
If you don't have your original NANDROID backup, then go stand in the corner for 10 minutes, then check this thread and if it's not in the first post ask for someone else to post it if they can.

http://xdaforums.com/showthread.php?p=39588860

Sent witH desire from One X
[One (M7) Android Development] bobsie41:
Most (if not all) of the backups there, are with a custom recovery already installed.

I suspect there will be many people on network devices who will struggle to get back to stock for updates without RUU's which don't appear to be very readily available............me included :o (my first non-generic device, just blundered in straight out of the box :( )

Completely stock 1.28.61.7 anybody :D
[One (M7) Android Development] angusc:
Well you need to ask that in the other thread! So what's your actual goal......? To get an OTA update from your carrier? Forget it (in my humble opinion) you will get faster and more up to date Rom versions from custom Roms. If you want near stock then ARHD is hard to beat and always being updated by the developer.

someone will eventually make a stock NANDROID for your device before flashing a custom recovery, not all users who have your carrier phone will "blunder" in without making a stock backup. And also eventually the RUU should also get leaked out.

Why not start your own thread with your carrier model as the title "+ stock NANDROID" and ask someone thinking to unlock and flash custom recovery and Rom to make a stock NANDROID fist. That kinda alerts them to the importance of it so well he'll then as well as yourself.

Sent witH desire from One X
[One (M7) Android Development] bobsie41:
I'm running the stock odexed 1.29.401.16R rom at the moment however, this doesn't update my firmware. There will come to a stage were updated firmware will be necessary for a rom to run properly which I suspect will be the 4.2.2 sense 5+ update.
[One (M7) Android Development] and116:
Thanks Angus. To recap, I unlocked the HTC ONE via HTCDEV, then rooted, then installed Bulletproof ROM. Then I found the camera had stopped working. So I tried to restoring my backup but the camera still wasn't working. So I decided to return to stock and followed the instructions on the first page of this thread. option 2. after doing the mini-sdk part my boot screen said RELOCKED but then I couldn't continue on to the next part as it won't leave the boot screen. Also my PC then couldn't detect my Device. It is there in Device Manager, but not in my computer, so I can't 'look' inside the SD Card to see my backup on nandroid or what else is in there... Very annoying...

I did try a RUU which had only one letter difference from my own, but it said it wasn't compatible, unsurprisingly

Good thinking I guess. Thanks for your help.

So I can sideload? I've got as far as renaming the bulletproof.... to rom.zip

then "go to recovery and type"

Where is this Recovery please?

then next?

Change xxx.zip to rom.zip, go to recovery and type:

adb shell

mount /data

mkdir /data/media

exit

adb push rom.zip /data/media

thanks so much everyone
[One (M7) Android Development] angusc:
[MENTION=2776037]and116[/MENTION]

Just copied this from the RUU thread, it is helpful for you to know your main version so as to try and match any RUU or compatible NANDROID.

So now when you plug in to a pc it doesn't mount the device? You can't try it on someone's pc? Accessing the phone from a pc is probably your last chance to save your NANDROID backup.

Ok well I'm not an expert in this but you followed method 2 to "return to stock"but you don't have the RUU to run to complete method 2.

This is my advice, follow the steps to unlock your bootloader. You should already have your unlock .bin code from the first time you did it.

Then install a custom recovery again. This should allow you to then flash another custom Rom. I believe that the bullet proof Rom you choose also has/had a custom kernel, it was this that caused your camera to stop working. (Not a100% sure but nevermind that now). So my suggestion to get you out of the woods and back to a useable phone would be to download ARHD 9.1 from here http://xdaforums.com/showthread.php?t=2183023 and install that. It's near to stock and is very stable. Don't change any off the aroma options EXCEPT for the "wipe my device" as in effect you are coming from another custom Rom so need to clear out the memory. This won't wipe your personal storage if the unlocking process didn't already do that.

Aroma installer has its issues so do not use the touch screen. Just change the wipe option by using your volume keys and power key to select options and process to the "next" screens.

Hopefully you can get through the installation and will have a working phone.

NOTE: Unlocking your bootloader again might cause your virtual storage card to be wiped. This will mean losing your NANDROID back up (if it is still there) so consider this before proceeding. I locked and the subsequently unlocked my one-x bootloader a few times and never lost anything, but don't know if the same applies to the new ONE.

Good luck.

Sent witH desire from One X

Sent witH desire from One X
[One (M7) Android Development] matt95:
it will! :D so save your datas before unlocking again
[One (M7) Android Development] angusc:
Any idea how he can do that with a relocked bootloader and his pc is unable to recognise his device? (Although he has fastboot working to be able to relock.....?)

[MENTION=2776037]and116[/MENTION]

This info is also of interest if you can copy your backup to your pc.

http://xdaforums.com/showthread.php?p=41526516

Sent witH desire from One X
[One (M7) Android Development] matt95:
well he can type

adb pull sdcard/

and all of his files will be saved... but if he doesn't even recognizes it in adb mode then there's nothing to do but be sure that he has SDK and HTC drivers installed correctly
[One (M7) Android Development] descenpet:
he can't . he relocked with custom rom and recovery on so it's not booting into recovery nor android.
[One (M7) Android Development] matt95:
why not unlocking it again and flash another recovery? that's the only way if the android os doesn't even boot up
[One (M7) Android Development] angusc:
What state would the device need to be in for the adb pull cmd to work...... HBOOT or Fastboot?

Sent witH desire from One X
[One (M7) Android Development] matt95:
recovery or android os! so he needs to unlock and flash at least a custom recovery
[One (M7) Android Development] angusc:
So he has no options but to unlock and lose his data.

Flash custom recovery.

Install a custom Rom.

Get back to his life with a working phone :p

Sent witH desire from One X
[One (M7) Android Development] descenpet:
but you said unlocking again will wipe data. if so, the data is a lost cause. i personally never tried unlocking a relocked bootloader again so i can't say for sure. the only time i relocked before was to RUU and sell off my old phones.

to get back a working phone, he either have to RUU or unlock again and go custom route.
[One (M7) Android Development] matt95:
yeah, unfortunately...

try this one before but i don't know if the fastboot command will work with a locked device

1) Download CWM, rename it to recovery.img and place it in the same directory as your fastboot executable;

2) Reboot you device into fastboot mode and connect to your computer;

3) Boot CWM by typing

fastboot boot recovery.img

4) Pull all the files from /sdcard by typing:

adb pull sdcard/
[One (M7) Android Development] angusc:
Yes I think that might work! As you can make an original NANDROID backup before flashing any custom recovery the same way.

But as I said, I have unlocked my one-x bootloader a few times after re locking for firmware updates and never did lose my personal data.

But better that and116 tries this first to save his original NANDROID to his pc if possible.

Sent witH desire from One X
[One (M7) Android Development] bobsie41:
Needs to be unlocked I believe.
[One (M7) Android Development] boroboy69r:
Im stuck with a similar situation but i have twrp unlocked bootloader but no rom on sd pc see's phone so how can i get a rom on there

Smoothly typed from my n7
[One (M7) Android Development] and116:
Hi, thanks for all the input while I was sleeping.

I tried unlocking it again with the token from HTCDEV but it said 'Error: cannot load 'Unlock_code.bin' : unknown error.'

also

I downloaded CWM and it seemed to run. all the commands came up in the CMD window,

but then I tried pulling the sdcard. Weirdly it says device not found.

So I typed 'fastboot devices' again and it DOES recognize it and gives me its Device Number.

But then I type 'adb pull sdcard/' and it says 'error: device not found'

Is this because it is relocked?

I am curious as to why the device is recognized in windows Device Manager, but not in My Computer tho'? could I have damaged the flash?

my RUU is similar to this one except for the Radio is 4V not 4A RUU_M7_UL_JB_50_HTC_Europe_1.28.401.7_Radio_4A.13.3231.27_10.31.1131.05_release_310878_signed.exe

maybe I should just wait for mine to appear on the list? You've all been putting in so much time and I'm very grateful.
[One (M7) Android Development] EddyOS:
adb only works when running Android/recovery, fastboot mode is for fastboot commands only
[One (M7) Android Development] and116:
You mean the recovery option in the boot screen of the device? I cannot access that. When I choose it, it just reboots
[One (M7) Android Development] EddyOS:
No, I mean CWM/TWRP recovery
[One (M7) Android Development] descenpet:
sideload the rom if your custom recovery is working
[One (M7) Android Development] angusc:
You need to get the same response as you did with the command:

fastboot devices

By running:

adb devices

Once you get that you know that you can proceed to run adb commands.

Does adb work in HBOOT screen?

Power off phone.

Hold volume down button and press simultaneously the power button until phone boots to HBOOT.

Sent witH desire from One X
[One (M7) Android Development] boroboy69r:
tried that but cant get the right command i need if my rom.zip is my adb folder which is at root of my c drive what do i type adb sideload /path/to/rom.zip :S
[One (M7) Android Development] descenpet:
if your rom is in same folder as adb, just type adb sideload whatever_your_rom_name_is.zip

your phone must be in adb sideload mode in recovery.
[One (M7) Android Development] boroboy69r:
ahh ok thanks mate didnt understand what the command ment i thiought thats what i typed :banghead: trying now

well recovery wont mount partions for adb sideload

Edit: rite i can flash boot and recovery img but nothing else not even my own stock nand system.win

2nd edit: just for a fyi i fixed my issue by using usb-otg to flash arhd now all works
[One (M7) Android Development] and116:
Thanks, but unfortunately not. It does respond with 'List of devices attached' but no serial number as with 'fastboot devices'
[One (M7) Android Development] angusc:
Did you try running the adb pull command anyways?

If it's not working then just bite the bullet and unlock again. Have you tried the all in one flashing tool yet? This can save you manually typing ask the commands. Can be found here:

http://xdaforums.com/showthread.php?p=40493789

Sent witH desire from One X

---------- Post added at 06:52 AM ---------- Previous post was at 06:45 AM ----------

Are you sure the unlock bin code is in the fastboot folder still? Try replacing the version on your pc again with the file from the original email from HTC in case it fit corrupted somehow.

Have you tried running that RUU? Can't do any harm with RUU as they match the CID and run or just abort.

Sent witH desire from One X
[One (M7) Android Development] brunswick000:
Stock Recovery

I just restored a nandroid of my stock Rogers ROM as I have to return my phone tomorrow for a replacement (speakers died). I followed the guide in this thread to unlock and backup my original ROM and recovery, however when I restored my recovery is still TWRP. Perhaps I did something wrong when I initially backed it up? Anyway I can't seem to find the recovery specific to this ROM version 1.29.631.4 Does it matter or can I use another stock recovery?? Like the one linked in this thread of 1.29.401.16R. Im worried that if I flash that ROM version that Rogers will know that i have tamepered. I plan to fastboot oem lock to relock the bootloader as well, even though I have not heard of anyone having warranty issues following an unlock of the bootloader. Just Root.
[One (M7) Android Development] and116:
AWESOME! :) The all in one flashing tool unlocked it and it immediately rebooted! YEY! Thanks Angus.

So will stop meddling with it [nor now...]

What do you think of the ReRooting instructions [option 2] on the first post of this thread? Should they be rewritten? Why would we Relock our devices first? I followed the instructions to the letter & once I got into this mess I googled it and found others who'd fallen into the same trap. But Hasoon's AIO Kit has saved the day. Big thanks Hasoon
[One (M7) Android Development] angusc:
Glad that you got it sorted out. Regarding the rewrite off instructions, maybe Mike will see your recommendation and edit it if he's not to busy cooking his roms!

I do highly recommend that you try again later and install his ARHD rim it will be very good.

Sent witH desire from One X
[One (M7) Android Development] TylerDurdenK:
Hi Mike, great guide.

Just one thing I would add to method 1 of returning to stock.

At point 3 you could tell people to move the latest stock odexed ROM onto the device.

I just booted into recovery only to realise I needed the stock ROM on the device... :rolleyes:
[One (M7) Android Development] townay:
I plan to only flash the modded youtube app that plays hd through 3g. Will flashing this will prevent me from receiving official ota ? Asked since iirc, I was unable to uninstall youtube/flash the modded youtube apk because it was part of system.
[One (M7) Android Development] langer hans:
Youtube is installed on /system/app and is indeed checked by OTA. So yes, when you flash this App OTA will fail from there on.
[One (M7) Android Development] mike1986.:
It depends where he install it. Should be fine on /data/app :)
[One (M7) Android Development] langer hans:
True, but he said something about flashing. So I didn't thnk of a /data install, as this wouldn't need to be flashed^^
[One (M7) Android Development] townay:
I am not sure I understand the /data install part. Can you explain please?

But also, I meant removing the original youtube apk and then installing the modded youtube apk. Sorry if I caused confusions:silly:
[One (M7) Android Development] langer hans:
It depends. What do you want to install, can you link it? If it is just an APK you will install it to /data/app folder. That has no influence on the phone. But if you gonna flash a ZIP, it will probably install to /system/app. That on the other hand will influence OTA installs.
[One (M7) Android Development] geviron:
Hello, I flashed a stock recovery through fastboot but i'm unable to acces it with the bootloader I select recevery the the htc logo appears and the screen goes dark and that's it ...

Is that normal ?
[One (M7) Android Development] cc999:
Mike Help

Mike,

based on info below:

Method 2 - flashing RUU (ROM Update Utility)1.Visit this or this thread.

2.Find proper RUU for your device

3.Connect your device to the PC

4.Boot your device in fastboot mode (like you did during unlocking bootloader - power off the device and turn it on using power + vol down buttons and select "FASTBOOT")

5.Open up command prompt ( Start > Run > type cmd and hit enter ). The window that appears is called Command Prompt. <click here to see the image>

6.Navigate to where you unzipped "mini-sdk" package (type in Command Prompt: cd c:\mini-sdk). Note: make sure the path is not c:\mini-sdk\mini-sdk

7.In the Command Prompt type following command: fastboot oem lock

8.Flash RUU and follow on screen instructions.

9.You have now completely stock software on your device.

On step 8 do you mean to run the RUU.EXE file on its own? ALSO does the device have to be LOCKED for this to work?

I have tried to reflash the original firmware on my 64 gb Developer Edition using the RUU.EXE d/l from HTC

but it never works. My device is UNLOCKED. Does it have to be LOCKED for the RUU.EXE to work?

Thanks

Charlie C
[One (M7) Android Development] x017in:
on the RUU download page i saw a file - "PN07IMG_M7_UL_JB_50_BrightstarUS_WWE_1.29.1540.3.zip"

Is this an RUU or something else?
[One (M7) Android Development] angusc:
No it doesn't need to be locked to flash an RUU.exe but you might have to put the device into bootloader or try fastboot then run the RUU......

Sent witH desire from One X
[One (M7) Android Development] langer hans:
Try fastboot erase cache from the command line before booting recovery.

Gesendet von meinem GT-N5100 mit Tapatalk 2
[One (M7) Android Development] geviron:
I already tried with no success. I realy need help here guys, I have to return the phone on monday, I'd rather it to as stock as possible.

Cheers

edit : when I try to in the recovery the screen goes black and a few seconds later it displays a red triangle
[One (M7) Android Development] langer hans:
What happens after the screen going black?

Which recovery did you flash? Do you have a backup of your original recovery image?

Gesendet von meinem GT-N5100 mit Tapatalk 2
[One (M7) Android Development] cc999:
question

One last question, to use the fastboot method to flash the HTC STOCK image,

do I use the ZIP file for this? just flash xxxxxx.zip in the command line?

or

can I do it with either the .exe or .zip file?

I am thinking the .exe is the stand alone and the ZIP isfor the fastboot method?

Also in the .zip I do NOT unzip just flash the ZIP right?

Thanks again

CC
[One (M7) Android Development] geviron:
when I try to go in the recovery the screen goes black and a few seconds later it displays a red triangle and a while later it reboots itself.

I do not have a backup of my original recovery image. I used the one I extrated from vodafone FR OTA. ( which is supposed to be my the stock rom matching my phone)

Thank you for your time.
[One (M7) Android Development] langer hans:
If I'm not totally mistaken, this is what the stock recovery looks like.
[One (M7) Android Development] geviron:
That's what I thought, but I wasn't sure I have never seen the stock recovery before. Thank you for your time.
[One (M7) Android Development] townay:
http://xdaforums.com/showthread.php?t=1529715

This is the modded YouTube app that allows 720/1080p over 3g. I tried installing this app by itself hoping it would overwrite the original since I wasn't able to uninstall original that came with the phone.

Stupid me I know lol :p
[One (M7) Android Development] langer hans:
Well, Yotube is a system app on stock. So replacing it will fail OTAs later. You would need to install this apk on /data/app, but that wouldn't work because of the same package name. I am a bit lost here. I think there is now way as long as it won't be release as an actual seperate app, with a seperate package name.
[One (M7) Android Development] townay:
Thanks. Looks like for now I might have to just stick with the original app. Reason I don't feel like rooting is because sense5 is actually decent and smooth enough to make stick to stock rom.
[One (M7) Android Development] angusc:
Your correct........if it's a flashable.zip then you flash it in recovery mode. But if you have an RUU you should be able to run that from your PC with your ONE plugged in to the USB port and it should completely wipe and return your device back to stock. However I have seen cases where running the RUU does not work, in which case try putting the phone in to different modes and try running the RUU again (bootloader, fastboot and if possible from within Android OS.

Sent witH desire from One X

---------- Post added at 11:55 AM ---------- Previous post was at 11:43 AM ----------

Yesterday my new HTC dev one arrived so I followed this thread to make a stock NANDROID backup with stock recovery, then I flashed custom CWM recovery (non touch) and finally I flashed the SuperUser app to root the stock Rom.

Problem is that although the SU is installed in the system/apps folder and I updated the binaries, I still don't think I have full root access cos when I try to copy my personal media/audio sounds in to the system folder they do not stick after a reboot........anyone have any ideas?

Sent witH desire from One X
[One (M7) Android Development] descenpet:
stock rom have system write protection enabled by default.

you need to install kernel module to disable it http://xdaforums.com/showthread.php?t=2230341 or get custom kernel.
[One (M7) Android Development] pedromartinez1983:
im sure this is a noob question but i dont get the whole "Fastboot erase cache " . how do you do it exactly ?
[One (M7) Android Development] descenpet:
boot your phone into bootloader(hold vol down and power on OR reboot to bootloader from apm if you have it in your rom OR adb reboot bootloader)

connect it to your PC, you must have drivers installed on your pc. on phone screen it must show "fastboot usb"

open cmd and cd to where your fastboot.exe is and type "fastboot erase cache"
[One (M7) Android Development] angusc:
Open a cmd prompt on your PC a administrator if using Windows 7.

Then type "fastboot devices" to make sure your PC recognises your phone.

Then type that command in the window and hit enter.

You either need the Android-sdk downloaded and installed or easier if you don't to use the sdk link in the first post.

Or really easy is to use the all-in-one flashing tool.

http://xdaforums.com/showthread.php?p=40493789

Sent witH desire from One X
[One (M7) Android Development] pedromartinez1983:
i have a mac so do the same thing with the command prompt. i know the mac has had issues with drivers . so im not sure i could use this method
[One (M7) Android Development] descenpet:
If you are using mac, you will need mac drivers and fastboot for mac I guess.
[One (M7) Android Development] langer hans:
No drivers needed. Just the binaries. Check this Thread for a How-To install adb and fastboot on a Mac: http://xdaforums.com/showthread.php?t=1917237
[One (M7) Android Development] Lexmazter:
My M7 Multi Tool has support for mac, the binaries are included there, all you need to do is choose your oprtions in the script and you're done. Advertising.
[One (M7) Android Development] davidou:
This is soooo helpfull . Thank you very much
[One (M7) Android Development] riro56:
I've followed all the steps but when I wrote " fastboot boot recovery.img the word tempered appeared on unlocked and when I enter in recovery after flashing this one, it showed "E can't mount cache / recovery commande, cache /recovery/log ... And I'm enable to flash trickdriod ROM ..

Is there a solution ?