yashsingh1/xdaforums huggingface dataset:
[HTC Droid DNA] red_trela:
Sorry, currently sick and lacking proper concentration so have to keep this rather simple. Feel free to ask details where needed. What I did was:

1) unlock phone via htcdev

2) flash the Droid DNA recovery of ROM Manager by:

2a) booting into fastboot

2b) running "fastboot flash recovery recovery-clockwork-6.0.2.3-dlx.img" (replace the last part with the actual filename, if necessary)

3) push Superuser and ROM Manager by:

3a) booting into the recovery (the screen will show colorful lines or whatever, but technically it's actually a working recovery)

3b) "adb shell"

3c) "mount /system"

3d) "exit"

3f) "adb push Superuser.apk /system/app"

3g) "adb push su /system/bin"

3h) "adb push RomManager.apk /system/app"

3i) "adb shell"

3j) "chmod 6755 /system/bin/su"

3k) "reboot"

4) Reboot into normal mode

5) Check Superuser and ROM Manager are available from the menu and if so check if you can open them. (in one of several tries to root the phone, ROM Manager force closed on me - pushing it again helped solve that for unknown reasons)

6) Configure ROM Manager to (correctly) think a recovery is installed

6a) Click on Flash ClockworkMod Recovery

6b) Choose Device Not Listed Above, confirm with Yes and choose 3.x.+

7) Install Google Apps (optionally) by:

7a) Still in ROM Manager, go to Download ROM and choose Google Apps. For Android 4.1.x 20120111 JB is the recommended version, newer one might not work

7b) After downloading, have ROM Manager install gapps (forgot what the button says, but you'll see)

If step 7b fails to execute (i.e. automatically reboot into recovery), the phone is not properly rooted (for unknown reasons). If it's successful, you have the phone rooted and gapps installed. Congratulations!

If you don't want to install Google Apps, you can instead try to boot into recovery or try to backup the current ROM from within ROM Manager. If it works, so does root.

Note: Things between quotes are commands to be executed on a computer with working adb and fastboot binaries (either available in the current working directory or through your systems PATH). The two apk files and the su binary are expected to be available in the current working directory.

The instructions should work independent of the computer's OS, but I performed them on a Windows 7 system. Other recoveries than ROM Manager should probably work likewise, but I only tried this.

Some handy links:

http://htcdev.com/bootloader/ (to unlock the phone - just follow the instructions on the website)

http://www.clockworkmod.com/rommanager (for both the recovery and the apk)

http://androidsu.com/superuser/ (get Superuser-3.1.3-arm-signed.zip to extract the Superuser.apk and the su binary)
[HTC Droid DNA] valygar:
Thanks for detailed guide! everything works now

some remarks

here i saw 4 lines

~ # cat /etc/fstab
/dev/block/mmcblk0p33 /cache ext4 rw
/dev/block/mmcblk0p34 /data ext4 rw
/dev/block/mmcblk0p32 /system ext4 rw
/dev/null /sdcard datamedia rw

mounted the third.

I tried to make a backup, phone rebooted in recovery, saw a color stripes, but a backup was made.

Thanks again for the guide.

---------- Post added at 09:48 AM ---------- Previous post was at 09:39 AM ----------

some apps remain started, even when I disable it. For example HTC Sense Sina Weibo, it's disabled and stopped, but some time after stopping, I can stop it again
[HTC Droid DNA] red_trela:
Welcome!

Ah, actually I was being stupid and made that more complicated than necessary. There's no need to look at the fstab, just a simple "mount /system" will be enough. The system will look what to mount on /system in the fstab itself, automatically. Fixed that in my instructions above.
[HTC Droid DNA] jlevy73:
Nice writeup, that did the trick. One of the files I had must have been corrupted, yours worked perfectly. Thanks

---------- Post added at 12:44 PM ---------- Previous post was at 12:42 PM ----------

Now that you have root, you can use Titanium Backup and freeze any apps you don't want. That will keep them from restarting.
[HTC Droid DNA] red_trela:
Or you can delete them with any root explorer (or the adb shell, again). I think they hide in /data/app (need to mount /data if in recovery). Or just move them away in case you think you could ever miss them ;)
[HTC Droid DNA] Dees_Troy:
Can someone with root run this command for me:

cat /proc/emmc

Paste the output (probably easier to do this via adb shell for an easier copy/paste). Also run this command:

dd if=/dev/block/mmcblk0p20 of=/sdcard/butterflyp20.img

Upload the /sdcard/butterflyp20.img file and give me the link. I believe that this is the location of the stock recovery and I need a copy of that to begin trying to get a working recovery for this device. Thanks.
[HTC Droid DNA] katsuya82:
Hi Dees_Troy, unfortunately, at the moment there is no other method of rooting other than flashing DNA recovery on X920d, so whatever people dump out by dd if=/dev/block/mmcblk0p20, you'll get DNA recovery. However, I do see some lights when I found Japanese hackers manage to root HTC J Butterfly without flashing DNA recovery. Hopefully someone will figure out the exploit and plot it on to X920d.

BTW, Good Job on the HTC J Butterfly recovery!
[HTC Droid DNA] Dees_Troy:
This is only true if the recovery was actually flashed. You can one-time boot recovery with fastboot boot which you could then use to root or run adb commands to dump the stock recovery. I can also get the stock recovery if someone can find an RUU.
[HTC Droid DNA] katsuya82:
I'm sure many others has already tried and failed.

I just had a go and phone boots into android straight away.

After booting in Android, I've tried to push su etc into system and no luck.

If it's that easy, then why Japanese go through so much effort to gain root using their own exploit.

And ofcourse there is no RUU for X920d, even there is one, it is likely to be encrypted.
[HTC Droid DNA] big_me:
I've tried for the last 5 hours and I'm stuck on the final few steps (configuring CWM to believe there is a recovery installed...) using red_trela's post (http://xdaforums.com/showpost.php?p=36387611&postcount=26) Any help with this? Or is there someways I can bypass that step using adb

Katsuya, what do you mean you had no luck pushing su into the system?
[HTC Droid DNA] katsuya82:
You need to tell us which step you up to so we can help you.

I guess you are up to step 6. open up Rom Manager, click on Flash CWM Recovery, go to the bottom of the list, click device not listed above, hit yes, then hit clickwork mod 3.x+.

Then you should follow step 7 to download gapps through Rom Manager.

-------------------------------------------------------------------------------------------------------------------------------------------

I can't push su to the system by only booting from recovery image ( it doesn't even boot :p)
[HTC Droid DNA] jlevy73:
On the x920e I had to fastboot flash the DNA recovery in order to push su to get root. So I'm afraid the only thing my output will show is the DNA recovery which won't do you much good.

I've spent hours trying to find a RUU for this device but so far no go. That being said, maybe Football can obtain one. I will send him a PM and see if I get anything. Chances are though that even if he does have it, it will probably by be encrypted.
[HTC Droid DNA] big_me:
Wait... I can't seem to be able to find the Device not listed above option on the bottom of the 'confirm phone model' list. And I also only have very few phones to choose from? None from htc, some from LGE and Huawei, and it only seems to go up to the Samsung Galaxy S2... So I've tried to remove my current version of ROM manager (5.0 something - that's probably why.)

Now im' trying to remove that Rom manager but im' failing to do so. Any help with what i can do wit that? I can't update it on Market because it says that i have an improperly signed apk or something.
[HTC Droid DNA] jlevy73:
It's the very last option on the list (scroll all the way down to the bottom) and you will see "Device not listed"
[HTC Droid DNA] katsuya82:
That's because your Rom Manager was pushed into /system/app rather than download from Market. Where did you obtain RomManager.apk?

here is the right link: http://download.clockworkmod.com/recoveries/RomManager.apk

start over from step 3..
[HTC Droid DNA] big_me:
reseted my phone. Starting from the 'beginning'. Hope it works this time :crying:

---------- Post added at 09:08 AM ---------- Previous post was at 08:49 AM ----------

Okay, so i've decided to reset my phone, and when It was done resetting, I could still see ROM Manager 5.0.x.x and SuperSU downloaded. What am i doing wrong?

I've tried using adb to uninstall ROM manager.

Tried resetting myphone again and startnig from step 3 of the post.

All that to no avail. anyhelp on how to remove ROM mananger from my phone? like completely.
[HTC Droid DNA] katsuya82:
you need to use "rm -r /system/app/[AppName].apk" instead of "adb unistall [package name]"

RomManager.apk is not package name, so you can't uninstall from adb.

the steps are:

3a) booting into the recovery (the screen will show colorful lines or whatever, but technically it's actually a working recovery)

"adb shell"

"mount /system"

"rm -r /system/app/RomManager.apk"

"exit"

"adb push [newRomManager.apk] /system/app"

----------------------------

I'm not sure what happens to su and other stuff you pushed in the system after you reset your phone.

If I were you, I'd start from step 2 again, and add "rm -r /system/app/RomManager.apk" along the way in step 3, and continue on.
[HTC Droid DNA] big_me:
Unfortunately the rm -r /system/app/RomManager.apk command didn't work, im' still stuck with the old fake Premium Rom Manager that I accidentally flashed.

anymore ideas? Thanks for the help so far, you guys are awesome! :)
[HTC Droid DNA] katsuya82:
you need to let us know what the command tell you when it fail so we can find out why... otherwise we are just guessing in the dark.
[HTC Droid DNA] big_me:
Would love to tell you what went wrong, but the cmd displayed nothing out of the ordinary.

C:\Users\User\Desktop\adt-bundle-windows-x86_64\sdk\platform-tools>adb shell

adb server is out of date. killing...

* daemon started successfully *

~ # mount system

mount system

~ # rm -r /system/app/RomManager.apk

rm -r /system/app/RomManager.apk

~ # exit

exit

C:\Users\User\Desktop\adt-bundle-windows-x86_64\sdk\platform-tools>adb push Sup

eruser.apk /system/app

3572 KB/s (1020803 bytes in 0.279s)

C:\Users\User\Desktop\adt-bundle-windows-x86_64\sdk\platform-tools>adb push su

/system/bin

2494 KB/s (91980 bytes in 0.036s)

C:\Users\User\Desktop\adt-bundle-windows-x86_64\sdk\platform-tools>adb push New

RomManager.apk /system/app

3636 KB/s (3109568 bytes in 0.835s)

C:\Users\User\Desktop\adt-bundle-windows-x86_64\sdk\platform-tools>adb shell

~ # chmod 6755 /system/bin/su

chmod 6755 /system/bin/su

~ # reboot

reboot

Anymore guesses? The old version of RomManager seems to refuse to go away. :(
[HTC Droid DNA] jlevy73:
What happens when you try to open Rom Manager? Does it open for you? Do you get any errors? If you can open Rom Manager does it say under Flash Clockword Recovery, "Current Recovery: Clockwork Mod 5.X.X.X? If so, try installing gapps from the "Download Rom" option in Rom Manager.
[HTC Droid DNA] big_me:
Rom Manager Opens fine for me, though under 'Flash CWM Recovery' there isn't any current recovery thing, its just 'you must have CWM Recovery Installed to flash and restore roms.' Does this mean i flashed the recovery wrong or something? :S

I flashed the touch version of the cwm recovery, like the touch function was any use haha.
[HTC Droid DNA] jlevy73:
Click on Flash CMW Recovery and scroll down to the very bottom and it should say "none of the above, or something like that". Click on that and it should flash CMW. Then it should change from no current recovery to current recovery is CMW 5.X.X.X. Once that happens proceed to flashing gapps per the post with the detailed instructions.

Follow these steps from where you are at now:

6a) Click on Flash ClockworkMod Recovery

6b) Choose Device Not Listed Above, confirm with Yes and choose 3.x.+
[HTC Droid DNA] big_me:
The Problem is it doesn't. the list is only like 20 devices long or so, So i'm pretty sure there's something really messed up with my rom manager that refuses to go away. Though there seems to be an option, 'Commtiva Link N700, Spice MI700, and more'. But i'm not brave enough to mess with a wron recovery haha. My Rom Manager is 5.0.2.5 if that helps. I know the current one like 5.5.x.x or something so :/ And it won't update on market :eek:
[HTC Droid DNA] jlevy73:
I just looked and the Rom Manager I have installed is 5.5.1.5. Unfortunately it's 10:30am here in Beijing and I have to go to a meeting. I will check back later when I am free and try to help you troubleshoot this further.
[HTC Droid DNA] big_me:
Thanks a lot dude,

I'm going to head off to bed too, its like 2:45am where i am haha. I used to live in hk for a while :P not anymore, in the UK!

anyways.

thanks so far for you help

12 hours later...

So basically I've been searching all around google, and there seems to be quite a lot of suggestions that use 'su' as the command word in adb shell mode.

But when I try it, it doesnt seem to work.

~ # su -c 'rm /system/app/RomManager.apk'

su -c 'rm /system/app/RomManager.apk'

/sbin/sh: su: not found

And im' trying this now:

I found a com.koushidutta.rommanager.apk lurking in RootUninstaller/autobackup/com.koushidutta.rommanager.apk in my phone's internal storage, but I have no idea how to get to RootUninstaller.

Basically If i confused you there, im' trying to do adb shell rm /xxx/xxxx/RootUninstaller/autobackup/com.koushidutta.rommanager.apk

but then I don't know what the files are before this.
[HTC Droid DNA] Dees_Troy:
This should work on the x920D:

http://goo.im/devs/OpenRecovery/dlxub1/openrecovery-twrp-2.3.3.0-dlxub1.img
[HTC Droid DNA] big_me:
oh yesssss it works now thank you so much dees_troy, why the **** did i not think of that earlier. Now time to solve Rom Manager :)
[HTC Droid DNA] katsuya82:
because the 920d recovrery only became available few hours ago.
[HTC Droid DNA] big_me:
Whoops :o
[HTC Droid DNA] jlevy73:
Time to see if this version of TWRP works on the x920e.
[HTC Droid DNA] big_me:
Well good luck on that buddy :)
[HTC Droid DNA] katsuya82:
I've been asking onepagebook about how he got that recovery out, fingers crossed he'll let us know the method.
[HTC Droid DNA] jlevy73:
If you can find out let me know. I have a source for the shipping RUU for x920e but it will cost money for me to get. I have hesitated spending the money on it because it's encrypted.
[HTC Droid DNA] Dees_Troy:
This might solve the encryption problem:

http://xdaforums.com/showthread.php?p=36330088
[HTC Droid DNA] jlevy73:
Thanks, will take a look.
[HTC Droid DNA] soyuutaku:
This works on x920e (China) too!!! thx for share
[HTC Droid DNA] jlevy73:
Excellent job, works on the x920e as well. My girlfriend asked me why I was crying, I responded honey I'm making a backup of my device. :cyclops:

---------- Post added at 02:18 PM ---------- Previous post was at 02:08 PM ----------

Guys remember to hit the thanks button when someone goes out of there way to help the cause. Especially to Red Trala for the excellent write-up on getting root and a quasi working recovery and to Dees_Troy for getting us a fully working recovery. It's guys (or gals) like these that make XDA the excellent forum it is.

---------- Post added at 02:24 PM ---------- Previous post was at 02:18 PM ----------

For the time being I would just forget about trying to remove CMW since you have a working recovery now with TWRP. Once we get S-Off you'll be able to go in with root explorer and manually delete the files you need to. Having it there for the time being shouldn't have any ill effect on your device.
[HTC Droid DNA] katsuya82:
in case anyone needs it..

X920d CWM Recovery (non-touch): http://d-h.st/lPP

Credit goes to alwayskangel, onepagebook.
[HTC Droid DNA] jlevy73:
Work on the x920e as well. Now all we need is a Rom to flash
[HTC Droid DNA] Dees_Troy:
Can someone paste or post the /system/build.prop for the x920e for me? even though the x920d recovery boots on it, it likely has a different name. I'll need that to get it set up for GooManager automated installs.

Also, can someone check to make sure that the device charges while turned off with that build of TWRP? Make sure that you have TWRP installed, then power off the device. Plug it into a charger. Wait about 2 full minutes. The charge light should still be lit and stay lit (not blinking). Further, make sure that your battery charges after a little while by checking the battery percent before and after.

All newer HTC devices use recovery to handle charging while the device is off. If it doesn't charge while off, a dead battery can sometimes lead to a brick.
[HTC Droid DNA] goodman_east:
u can unlock butterfly at htcdev.com and there is a recovery a vailable several days ago.
[HTC Droid DNA] soyuutaku:
Can you post the recovery??? Or just use the one shared before?
[HTC Droid DNA] jlevy73:
You can use this one: http://goo.im/devs/OpenRecovery/dlxub1/openrecovery-twrp-2.3.3.0-dlxub1.img

There is also CMW recovery posted on the last page but I have not tried it. I like TWRP.
[HTC Droid DNA] soyuutaku:
CWM is work but cannot charge when power off, will boot to recovery and a broken screen.

TWRP, didn't test when power off. But the recovery screen is not match.
[HTC Droid DNA] jlevy73:
TWRP will charge when power off, I tested that already. yes the screen doesn't match but it's better than having no recovery at all.
[HTC Droid DNA] soyuutaku:
Thanks for confirm. Will try TWRP.
[HTC Droid DNA] the duderino:
help pls

My phone is coming tomorrow and don't even know which variant.

Can anyone pls be kind enough to explain all these pages for noobs and since there r no other treads there no other way to understand.

I was on hox before and as far as I remembered there was a fastboot tool folder. I was using a note 2 for the last 2 months and everything was so easy with samsung I mean root rec. Flashing.

Pls help me root my phone cuz I need titanium backup immediately. :(((
[HTC Droid DNA] jlevy73:
Was just notified there is a software update to version 1.10.1400.1 (58.6MB)

Includes:

1. Enhancements and bug fixes

2. System performance and stability enhancements

3. OTG support

4. Other bug fixes

Of course if you're rooted, running a custom recovery you want to be able to install it via the system update.
[HTC Droid DNA] dcupware:
I have a three days old Butterfly X920e from China. I will use it in Europe. I bought it from China including notebook type cover and HD Media Link, totally 4300 RMB (approx. 700 USD).

I am really far from any root or custom rom issues, hence the conversations between you afraids me a lot. :crying:

I do not want to use these stupid programs from China Telecom. Also I need Google Play Store and other programs like facebook, etc.

Hence I have to root my phone and manage programs. Can anyone write all details for the procedure for such users like me who really do not know much.

Yes you wrote everything in previous posts but finding what to do and making a stupid wrong process afraids me.

By the way, I got this update just an hour ago.

Thanks in advance...
[HTC Droid DNA] Dees_Troy:
X920d:

http://goo.im/devs/OpenRecovery/dlxub1/openrecovery-twrp-2.3.3.1-dlxub1.img

X920e:

http://goo.im/devs/OpenRecovery/dlxu/openrecovery-twrp-2.3.3.1-dlxu.img

I think these builds should allow you to use the removable sdcard for storage as well as the internal storage. They still don't have a full sized TWRP theme as I don't have a 1080x1920 device to do a proper theme for them, but there are full screen themes available in the Droid DNA threads here on XDA that you can use if you prefer. The X920e version will also have the proper device ID for zip asserts if/when ROM development for these devices takes off. Enjoy.

If you want to root, take the HTCDev.com unlock, then flash the appropriate recovery image above using:

fastboot flash recovery filename.img

Download the SuperUser zip or SuperSu zip from their websites and install that using TWRP and you will have root.
[HTC Droid DNA] jlevy73:
Thanks a lot for the updated recovery. Good timing as I am about to flash an experimental Rom for the x920e. Will let you know if I run into any issues.
[HTC Droid DNA] jlevy73:
Here's a version of Dees_Troy latest TWRP that fits properly on our device. I have only tested this with x920e. Original source link:http://bbs.xda.cn/thread-11261892-1-1.html
[HTC Droid DNA] Serg1284:
Hi!

Can you explain step by step, how to update?

Or, can anyone help to find the stock recovery for x920e?

When I try to update, I get the following error:

assert failed: check_cid(getprop("ro.cid"), "00000000" , "11111111" ,
"22222222" , "33333333" , "44444444" , "55555555" , "66666666" ,
"77777777" , "88888888" , "99999999" , "HTCCN701" ) == "t"
E:Error in /sdcard/Download/OTA_DLX_U_JB_45_HTCCN_CHS_1.10.1400.1_R-1.0.zip
(Status 7)

Thanks a lot!
[HTC Droid DNA] jlevy73:
You need the stock recovery in order to flash the update otherwise it will fail. Unfortunately there is no stock RUU for us to pull the recovery from. So until someone builds a custom Rom and includes the changes in the OTA I don't see what else can be done.
[HTC Droid DNA] Cocytan:
I was wondering if anyone is working on a custom ROM for the Butterfly (preferably with Gapps installed)? Too much bloatware on the phone as is, and I'd love to sync with my Google account!
[HTC Droid DNA] jlevy73:
This developer is working on a Rom for the x920e and x920d http://xdaforums.com/showthread.php?t=2095683
[HTC Droid DNA] red_trela:
I'm missing a few nice HTC stuff on my x920e that's normally pre-installed or available through HTC Hub. Now I was wondering...the x920d does have the usual stuff. right? Anyone tried to bring over the HTC Hub from there? If not, can anyone with a x920d share the appropriate apk? Also the apk of any other HTC app that allows to download and install HTC/Sense stuff, if any.

Really missing stuff like picasa-sync, sound-set-download, etc.
[HTC Droid DNA] soyuutaku:
you can find it here:http://xdaforums.com/showpost.php?p=36767981&postcount=69
[HTC Droid DNA] dcupware:
This custom ROM for X920e is just released. But the link is in a Chinese page and I do not know any piece of Chinese. :o

I will try this ROM if I can find the link.
[HTC Droid DNA] jlevy73:
I have installed it and it's working great so far.
[HTC Droid DNA] Serg1284:
I'm upload this ROM, but I'm new user, can't post links. http : //we.tl/1lsJIlCoiE

My Google Play don't have Setting button. Are your google play have Setting button? See the photo.

http : //gyazo.com/bd1ffa3dfc9daa91cc43532bd92eb775.png

Anyone know how to solve problem with Setting button in Google Play?
[HTC Droid DNA] dcupware:
I also installed this Rom for x920e.

Everything work perfect, as far as I see.

My play also do not have settings button.
[HTC Droid DNA] jlevy73:
Hold down the recent apps button and the settings menu will appear. If that doesn't work go into the main settings of the phone, display/gestures/buttons - recent apps button and change it to the one you want.
[HTC Droid DNA] Onepagebook:
yeah initially it's NOT work ..after my friend fixed the mount, then it works, thanks for that, and I think you should mention my friend's credit for extract the stock recovery out.

but I really thank you very much Master.:)
[HTC Droid DNA] actowbow:
HTC Butterfly X920e

Hi jievy, ref my separate post on "Butterfly" thread, I am helplessly stupid and curious if downloading this //we.tl/1lsJIlCoiE will solve my problem of wanting to install Google Play Store? help an old man please....
[HTC Droid DNA] red_trela:
Is there any way to update the stock ROM once it's been unlocked and rooted? I had TWRP for a while but hoped switching back to the stock recovery would do the job but while it seems to start the process, it will fail. I'm probably missing something very obvious here.
[HTC Droid DNA] jlevy73:
Are you using a custom kernel? I believe that will kill the update.