Insecure ADB for PLAY - Xperia Play Android Development

Modaco made it:
http://android.modaco.com/content/s...-com/339300/insecure-adb-for-the-xperia-play/
But be warned: This methode isn safe for 100% so if you're a "beginner" (aka Noob) dont lay your fingers on it. You should wait for a real recovery release.

......awsome

GScript Insecure ADB Install:
Link: Click here to download
Instructions:
1) if you already use gscript skip to step 3
2) install gscript from market, create a folder on sdcard called gscript
3) extract files from archive to gscript folder on sdcard
4) load gscript press menu, select add script, then select load script
5) Select "install modaco insecure adb.sh"
6) MAKE SURE SU is ticked, then run script
7) Enjoy adb remount
8) THANK PAUL AT MODACO
WARNING: AS PAUL HAS ADVISED THIS MAY BRICK YOUR DEVICE... Maybe.. Although I would think flashing a system.img from fastboot would repair.
WARNING: RECOMMENDED ONLY FOR UNLOCKED BOOTLOADER

FrAsErTaG said:
WARNING: RECOMMENDED ONLY FOR UNLOCKED BOOTLOADER
Click to expand...
Click to collapse
That's not entirely true mate ;-)
"To that end, i'm releasing here a method for getting Insecure ADB on any rooted Play (with or without unlocked bootloader)"
Regards Dousan...

The gscript will work on any play its just recovering a problem that's Why I recommend this for unlocked boot loader
Sent from my R800i using XDA Premium App

Paul has released an APK to do it all for you now

FrAsErTaG said:
Paul has released an APK to do it all for you now
Click to expand...
Click to collapse
can we get a link to the download on modaco please?
*edit* DM i found it lol

Can you please explain to me what this does for us?

emann56 said:
Can you please explain to me what this does for us?
Click to expand...
Click to collapse
If you don't understand what it does don't worry about it...
It basically allows you to use adb with full write access to the device.. including adb push to /system

emann56 said:
Can you please explain to me what this does for us?
Click to expand...
Click to collapse
yeah as FrAsErTaG said it allows you to use commands like adb remount, this remounts /system as R/W, its more usefull for devs atm. than standard users

Can someone reupload the gscript somewhere please

When i press install my phone reboots what should i do?

ThePerfectBitch said:
When i press install my phone reboots what should i do?
Click to expand...
Click to collapse
Nothing, That means it's finished

Can you revert the changes applied by this ?

Related

[TUT]Root + Xrecovery + JIT for X10 Mini Pro with firmware v2.1.1.A.0.6 !

Hey guys,
The good news i wanna notice for everybody here is my X10 Mini Pro with lastest firmware 2.1.1.A.0.6 can Root + xRecovery + JIT and use Link2SD okay without any errors !
I will tutorial you to do that. Now lets begin !
Root : Automate Installation
1. Download attached file "SuperOneClick".
2. Enable "USB Debug".
3. Connect phone to "PC" and select "Charge Phone".
4. Open "SuperOneClick" and select "Root".
5. Wait!
6. When it is done, reboot.
xRecovery : Manual Installation
- Phone must be rooted
- Download and install Titanium Backup. Run it and press Problems to install busybox or you can install standalone busybox in market !
- Download attached file and unpack the recovery package in to sdcard
- Use Root Explorer to remount /system rw
- Copy the content of the package (3 files) into /system/bin folder
- Chmod 777 for 3 files copied !
How to use xRecovery :
- Reboot your phone !
- Press BACK button few times right after white SE logo appears.
- Use VOLUME-UP and VOLUME-DOWN to browse, HOME to select, BACK to go back.
JIT : Here is manual installation. Automatic Installer here : http://forum.xda-developers.com/showthread.php?t=951274
I'm strongly recommend to backup with xRecovery before install JIT !
- Download attached file !
- Go to market place and find app "Terminal Emulator" download and install it.
- Extract and copy to sdcard
- Use root explorer to remount /system rw
- Copy dalvikvm,dexopt,logcat in sdcard to /system/bin/
- CHMOD 755 for 3 files copied!
- Copy libdvm.so,libnativehelper.so,libcutils.so,libdl.so,liblog.so,libm.so,libz.so in sdcard to /system/lib/
- CHMOD 644 for 7 files copied!
- Copy build.prop in sdcard to /system/ (You can use your build.prob file. Please see Warning section below)
- Chmod 666 for build.prop !
- Go to /data/dalvik-cache/ and remove all file in it or use command rm -r /data/dalvik-cache/* or we can use xRecovery and choose Advanced Options > Wipe dalvik cached
- Reboot your phone and enjoy !
- To check it work or not run Terminal Emulator and type dalvikvm -k if you see "Configured with: debugger profiler jit show_exception=1. It's mean JIT has been working !
Warning : if your phone cannot reboot again please use xRecovery to restore backup file (if not backup yet you can use SEUS to reflash your device) and JIT again with your build.prop file.
Follow these instructions:
- At the step copy build.prob above please use your build.prob instead my file provided and edit your file :
- Edit /system/build.prob with Root Explorer
+Find :
DEVICE_PROVISIONED=1
Click to expand...
Click to collapse
and replace with
#DEVICE_PROVISIONED=1
Click to expand...
Click to collapse
+Find :
dalvik.vm.heapsize=24m
Click to expand...
Click to collapse
and replace with
dalvik.vm.heapsize=30m
Click to expand...
Click to collapse
+Find :
kernel.log=default
Click to expand...
Click to collapse
and replace with
#kernel.log=default
Click to expand...
Click to collapse
+Find
debug.sf.hw=1
Click to expand...
Click to collapse
if don't have add one
+Add
dalvik.vm.execution-mode=int:jit
Click to expand...
Click to collapse
at the end of file !
- Save file and do continue others step to complete JIT.
Thanks to zdzihu for xRecovery, shivenjuneja for SuperOneClick modified version and all member in XDA for JIT installation method !
Now important action ^_^. Please thanks me if you want cheer !!
Can anyone confirm that the jit part is working?
i just instaled every thing x recovery works but when i installed jit the phone frezes at se logo and will not boot. Waited 15 mins and nothing good thing i did a back up
Sweet,another repair added to my records :/
Miniwolfi said:
i just instaled every thing x recovery works but when i installed jit the phone frezes at se logo and will not boot. Waited 15 mins and nothing good thing i did a back up
Click to expand...
Click to collapse
Do you wipe all dalvik caches ?? and the first boot after install it's take about 5 minutes to rebuild all cache files. After that it's working perfectly. Try to reboot few times and plug off your battery first !
no need to use the modified superoneclick.
the original version 1.6.5 just fine in this firmware
http://forum.xda-developers.com/showthread.php?t=803682
juan77_sonic said:
no need to use the modified superoneclick.
the original version 1.6.5 just fine in this firmware
http://forum.xda-developers.com/showthread.php?t=803682
Click to expand...
Click to collapse
Dude i used this version 1.6.5 but it cannot root for newest firmware for me ! It's notice me that device rooted but it's not you can check device root or not with Root checker in the market , it's also check busybox install !
i tried the method exactly like u write
stuck at SE white logo and it's rebooting again n again (10 minutes)
ntonzrockz said:
i tried the method exactly like u write
stuck at SE white logo and it's rebooting again n again (10 minutes)
Click to expand...
Click to collapse
I have been wrote new warning section for who have problems same you. Please read and do again to fix it. I hope you can because i can
quangnhut123 said:
I have been wrote new warning section for who have problems same you. Please read and do again to fix it. I hope you can because i can
Click to expand...
Click to collapse
okay i'll try it, maybe tomorrow...
it's late night now
thanks anyway
I was updated my TUT for more details !
For those needing JIT in the version 2.1.1.A.0.6.
donetus has updated deano309 xrecovery based installer. All you need to do is copy the files to the SD card and update using xrecovery.
http://forum.xda-developers.com/showthread.php?p=11289748#post11289748
Works well.
safrajs said:
For those needing JIT in the version 2.1.1.A.0.6.
donetus has updated deano309 xrecovery based installer. All you need to do is copy the files to the SD card and update using xrecovery.
http://forum.xda-developers.com/showthread.php?p=11289748#post11289748
Works well.
Click to expand...
Click to collapse
Thanks this i nice TUT but not automate system to install i will write script to do that but now i'm not because i'm have not free time dude
warkxia said:
xRecovery compatible with :
X10 MINI / 2.1.1.A.0.6
Click to expand...
Click to collapse
Please test more as Root and JIT. Thanks for reading my topic !
warkxia said:
xRecovery install but not boot ><
Click to expand...
Click to collapse
Why not boot dude ? Try my AIO installer script : http://forum.xda-developers.com/showthread.php?t=951274 to install xrecovery because xrecovery working 100% on lastest firmware ! i tested so many times
Re: OP
quangnhut123 said:
+Find
Code:
[COLOR="red"]debug.sf.hw=1[/COLOR]
if don't have add one
+Add
Code:
dalvik.vm.execution-mode=int:jit
at the end of file !
- Save file and do continue others step to complete JIT.
Click to expand...
Click to collapse
Hey bro, nice TUT for jit...just wondering, the part in red, what do i replace that with? Or do i just comment it out? Sorry prob a stupid question, im just really sick of having to reflash so just making sure its all good before i flash to my phone.
Cheers,
Jeremy.
jeremyward420 said:
Hey bro, nice TUT for jit...just wondering, the part in red, what do i replace that with? Or do i just comment it out? Sorry prob a stupid question, im just really sick of having to reflash so just making sure its all good before i flash to my phone.
Cheers,
Jeremy.
Click to expand...
Click to collapse
you just need find it if it's exist do nothing . And if not exist please add it after kernel.log=default
PS : As i recommend please backup your phone with xRecovery !
quangnhut123 said:
you just need find it if it's exist do nothing . And if not exist please add it after kernel.log=default
PS : As i recommend please backup your phone with xRecovery !
Click to expand...
Click to collapse
Cheers bro, i thought so but i just wanted to make sure.
And i dont need to back up coz im making my own custom rom and im just enabling jit within it.
Cheers,
Jeremy.
for people who want xrecovery and wants to charge offline (phone off) as well, you just have to follow this post:
http://forum.xda-developers.com/showpost.php?p=11549855&postcount=5
help with xrecovery
hello guys,
just bought myself x10 mini pro and loving it so far. I have successfully rooted and have busy box and su permissions.
next, I followed the following steps for xrecovery but it does not seem to work for me.
Code:
xRecovery : Manual Installation
- Phone must be rooted
- Download and install Titanium Backup. Run it and press Problems to install busybox or you can install standalone busybox in market !
- Download attached file and unpack the recovery package in to sdcard
- Use Root Explorer to remount /system rw
- Copy the content of the package (3 files) into /system/bin folder
- Chmod 777 for 3 files copied !
How to use xRecovery :
- Reboot your phone !
- Press BACK button few times right after white SE logo appears.
- Use VOLUME-UP and VOLUME-DOWN to browse, HOME to select, BACK to go back.
I have copied the 3 files using root explorer and mounting it rw and the permission set to 777. I have also checked the files/permission using adb shell.
I have then turn the phone off, turn it back on and press back < button on the sony ericsson logo but no matter how many times i press or hold the back button it does not take me into recovery menu.
Edit:
my bad, i did not copy over busybox and chargemon because the files were already there from rooting process.
anyone who has this trouble, make sure you copy all the three files to system/bin folder and set the permissions and it should be good.

[Q] screwed up custom recovery - bricked? :(

Hi everyone,
I tried using a script which automated the install for the the custom recovery, but I started to get messages that it ran out of disk space (I can't link to the file due to my noob status). I probably should have come here first before using that script, but such as life..
I have no important data on the phone, if I lose it all that's ok.
It rebooted and my p500 waits with the following
"Fastboot mode started"
"udc_start()"
It also gives some info when USB is connected ie.
"- suspend -"
"- reset -"
Do I have a paperweight?
thanks and sorry for the newb post ..
edit: so I found this : http://forum.xda-developers.com/showthread.php?t=1003790 and
http://forum.xda-developers.com/showthread.php?t=875881
and have gotten it to the yellow emergency mode, not sure how to flash it from here though.
edit2: dling the stock firmware from http://forum.xda-developers.com/showthread.php?t=1073827
edit3: there's this as well.. http://forum.xda-developers.com/showthread.php?t=1088046 If I try this method, will it screw up again from too little free disk space?
I'm to drunk to guide our give you the link to fix it but I will tell you, you can fix it just hold on we will help you ; ) and we don't by the time I wake up I will help you its ok ))
Sent from my LG-P500 using XDA Premium App
dislplin01 said:
I'm to drunk to guide our give you the link to fix it but I will tell you, you can fix it just hold on we will help you ; ) and we don't by the time I wake up I will help you its ok ))
Sent from my LG-P500 using XDA Premium App
Click to expand...
Click to collapse
thank you very much, I appreciate it haha
Your phone has booted in fastboot mode. Go to development section and read a tutorial how to recover from fastboot.
Sent from my LG-P500 using XDA Premium App
setTopbox said:
thank you very much, I appreciate it haha
Click to expand...
Click to collapse
Then did u unbricked now
Mahesh
go here....
http://forum.xda-developers.com/showthread.php?t=1088046
or here
http://forum.xda-developers.com/showthread.php?p=13813493
How to install Android SDK /ADB
http://lgoptimusonep500.blogspot.com/2011/01/how-to-install-android-sdk-adb.html
dislplin01 said:
I'm to drunk to guide our give you the link to fix it but I will tell you, you can fix it just hold on we will help you ; ) and we don't by the time I wake up I will help you its ok ))
Sent from my LG-P500 using XDA Premium App
Click to expand...
Click to collapse
Most honest post I've seen on the entire forum.
Sent from my Kyocera Echo.
mvgadagi said:
Then did u unbricked now
Mahesh
Click to expand...
Click to collapse
I got the phone working again - thanks! I guess it's not a great idea to install the custom recovery
with low disk space?
setTopbox said:
I got the phone working again - thanks! I guess it's not a great idea to install the custom recovery
with low disk space?
Click to expand...
Click to collapse
Hmmm. Well, should not matter? /recovery uses a separate partition. Perhaps you flashed a corrupt (incomplete) image?
well if u ever wish to install recovery just download rom manger from market (latest) and install recovery from rom manger option make sure u hav eusb debugging enabled. it works easy
shhbz said:
well if u ever wish to install recovery just download rom manger from market (latest) and install recovery from rom manger option make sure u hav eusb debugging enabled. it works easy
Click to expand...
Click to collapse
Erm... reading all the posts about fastboot after using ROM Manager for this, I guess I would rather stick with the custom script using flash_image.
doktornotor said:
Hmmm. Well, should not matter? /recovery uses a separate partition. Perhaps you flashed a corrupt (incomplete) image?
Click to expand...
Click to collapse
hmm, I'm not sure (when I dl'd the file I did compare the hash as per instructions). I used the following instructions:
manast.com/2011/05/07/how-to-install-custom-recovery-on-lg-optimus-one-p500
I then went into a terminal emulator, and ran "sh /sdcard/rf.sh". At that point the output of the script started to say "disk full" (and then it reboot into the fastboot prompt).
setTopbox said:
I then went into a terminal emulator, and ran "sh /sdcard/rf.sh". At that point the output of the script started to say "disk full" (and then it reboot into the fastboot prompt).
Click to expand...
Click to collapse
No idea about that script. Using flash_image and never had any issue with "disk full", frankly the message does not make sense. All you need is to copy the recovery image to SD and run as root:
Code:
# flash_image recovery /sdcard/recovery.img
Done.
doktornotor said:
No idea about that script. Using flash_image and never had any issue with "disk full", frankly the message does not make sense. All you need is to copy the recovery image to SD and run as root:
Code:
# flash_image recovery /sdcard/recovery.img
Done.
Click to expand...
Click to collapse
I'm getting permission denied when trying to use flash_image. Gingerbreak says the device is rooted, and the terminal does ask for superuser permission when i open it (su works in the terminal). I also tried chmod 755 flash_image but that didn't work either.
the permissions for flash_image are r-xr-x any thoughts ?
edit: apparently the sdcard is mounted with -noexecute ? So I tried copying flash_image to / but it's read only. Is there somewhere where I can execute this?
This rf.sh script seems most notorious, I too went into fastboot after that. Doktornotor's method worked (in fact I think he/she was the one who bailed me out back then as well).
If you got into fastboot, most probably you have a rooted phone.
To use flash_image you need to get the flash_image.sh on the root of your sd card. Search the forum for Amon-Ra custom recovery, and you shall find this file in that thread (it is required for Amon ra setup). Log in to your adb console, and use fastboot to push the new image in the recovery partition.
Unless your recovery.img or flash_image.sh is corrupted, it will work for sure.
Keep in mind, fastboot is a very powerfull tool, if you can access it, you're safe.
Cheers,
Alex
did you get out??
just flash stock firmware with kdz worked for me bro
Buddy,
You do not need to flash anything with KDZ. The ROM is fine nothing happened to it. All your issue is with the recovery being flashed wrongly for some reason.
I had the same issue just yesterday and I managed to flash the recovery through fastboot.
What you need to do is:
1. Install android SDK from Google.
2. Connect the phone while it is on fastboot.
3. If your windows does not find the fastboot drivers online, use the drivers in this link:
http://www.megaupload.com/?d=39ZR16W1
4. extract the .zip file that you copied to your SD. The one that contains the recovery.
5. Copy the recover.img (or whatever the name of the .img file in the .zip file) to the folder inside the android sdk where fastboot.exe is located (I think its the tools folder)
6. Copy the adbwinapi.dll file from the android SDK\platform-tools\ to the folder containing fastboot.
7. issue the command (and replace recovery.img with the .img file name you have):
fastboot flash recovery recovery.img
fastboot reboot
Dr.Alani said:
Buddy,
You do not need to flash anything with KDZ. The ROM is fine nothing happened to it. All your issue is with the recovery being flashed wrongly for some reason.
I had the same issue just yesterday and I managed to flash the recovery through fastboot.
What you need to do is:
1. Install android SDK from Google.
2. Connect the phone while it is on fastboot.
3. If your windows does not find the fastboot drivers online, use the drivers in this link:
http://www.megaupload.com/?d=39ZR16W1
4. extract the .zip file that you copied to your SD. The one that contains the recovery.
5. Copy the recover.img (or whatever the name of the .img file in the .zip file) to the folder inside the android sdk where fastboot.exe is located (I think its the tools folder)
6. Copy the adbwinapi.dll file from the android SDK\platform-tools\ to the folder containing fastboot.
7. issue the command (and replace recovery.img with the .img file name you have):
fastboot flash recovery recovery.img
fastboot reboot
Click to expand...
Click to collapse
I appreciate the information. When I'm in adb, su won't allow me to gain root access on the phone. The phone itself is rooted using gingerbreak though.
setTopbox said:
I appreciate the information. When I'm in adb, su won't allow me to gain root access on the phone. The phone itself is rooted using gingerbreak though.
Click to expand...
Click to collapse
I do not see how you need to use adb.
Sent from my LG-P500 using XDA App

New Simple(r)-Root Method 7/25/11 (For devices with 2.2 OTA)

Ok, this is how to root the 2.2 OTA:
1. Download THIS file
2. Unzip "Root.zip" to your C:/SDK_Tools/Platform-Tools/ directory
3. Double click "Root.bat"
4. You should now have the # sign in Command Prompt
5. Download THIS File THIS file and THIS
7. Mount usb storage
8. copy ESPRIMG.zip and update.zip that you downloaded to the root of your sdcard
9. Unmount usb storage
10. Unzip "eng.zip" to yous platform-tools directory and click eng-prep.bat
11. Type:
cd /data/local
chmod 04755 *
/data/local/flash_image misc /data/local/mtd0.img
exit
adb reboot bootloader
11. Press Power when you see the fastboot screen, then press volume up when prompted on the device
12. Reboot into recovery, click apply: update.zip from /sdcard
13. Flash the rom of your chioce!
Your welcome
Thank NBetcher for this method!
It's great that we can root the offcial OTA this way, which is my more quickly than the one that requires goldcard and bunches of other stuffs. However, I know it's a bit too much but is it possible that we can have the rooted official Froyo version that we can flash anytime? Sometimes, I need a stable ROM but flashing the official version and then root it takes too much time. Just show me the way and I will try to do it myself if you don't have time. Thanks in advance
bearshare said:
It's great that we can root the offcial OTA this way, which is my more quickly than the one that requires goldcard and bunches of other stuffs. However, I know it's a bit too much but is it possible that we can have the rooted official Froyo version that we can flash anytime? Sometimes, I need a stable ROM but flashing the official version and then root it takes too much time. Just show me the way and I will try to do it myself if you don't have time. Thanks in advance
Click to expand...
Click to collapse
Just install NB_Mod or CR_Mod, thats exactly what you are asking for
Whoareyou said:
Just install NB_Mod or CR_Mod, thats exactly what you are asking for
Click to expand...
Click to collapse
The OTA was released later and it's newer (update3 I think). I am just curious and want to play with is for a while. If there's no major difference among those, then I will use those Mod versions. Thanks.
bearshare said:
The OTA was released later and it's newer (update3 I think). I am just curious and want to play with is for a while. If there's no major difference among those, then I will use those Mod versions. Thanks.
Click to expand...
Click to collapse
Someone posted a rooted official OTA but the link no longer works. I managed to grab it while it was available and it works very well, I even flashed Dark Tremor's a2sd to gain way more memory. This is my daily ROM now. This was the post that contained the link: http://forum.xda-developers.com/showthread.php?t=1022518
Fuzi0719 said:
Someone posted a rooted official OTA but the link no longer works. I managed to grab it while it was available and it works very well, I even flashed Dark Tremor's a2sd to gain way more memory. This is my daily ROM now. This was the post that contained the link: http://forum.xda-developers.com/showthread.php?t=1022518
Click to expand...
Click to collapse
Thanks man, but the link is down. If no one cares about it anymore then I skip it.
11. Press Volume Up when prompted on the device... this is the step thats confusing me. I have done everything as said with no errors , root.bat and eng-prep but nowhere have i recieved a prompt to press volume up? and will the prompt be on my phone or on cmd?
Balem said:
11. Press Volume Up when prompted on the device... this is the step thats confusing me. I have done everything as said with no errors , root.bat and eng-prep but nowhere have i recieved a prompt to press volume up? and will the prompt be on my phone or on cmd?
Click to expand...
Click to collapse
I messed up the .bat file, ill look in to it, but the prompt will be on your phone....i will revise the thread
Ok so I have tried to move the appropriate file to the specified directory but it doesn't exist?
I dont have a "C:/SDK_Tools/Platform-Tools/" directory. And I just installed android sdk. Do I need a different one?
Am I missing something here?
EyeAndroid said:
Ok so I have tried to move the appropriate file to the specified directory but it doesn't exist?
I dont have a "C:/SDK_Tools/Platform-Tools/" directory. And I just installed android sdk. Do I need a different one?
Am I missing something here?
Click to expand...
Click to collapse
The files need to be unzipped to the Platform-Tools folder in the android sdk directory. Look in the folder that the android sdk is installed in and you will find the platform-tools forlder.
Has this actually worked for anyone? Not getting anything telling me to press volume up. also do you do all of these steps with the phone on and booted?
I'm working on fixing the .bat right now
Sent from my NookColor using XDA Premium App
Ok, try that
Does this flash a recovery?
Clock or amonRa?
Sent from my PG86100 using XDA Premium App
Bump?
Sent from my PG86100 using XDA Premium App
jshealton said:
The files need to be unzipped to the Platform-Tools folder in the android sdk directory. Look in the folder that the android sdk is installed in and you will find the platform-tools forlder.
Click to expand...
Click to collapse
Ok Ill try that. Also do I need to have 2.2 sdk installed?
mine keeps telling me SU not found /// help
alemanandrew said:
mine keeps telling me SU not found /// help
Click to expand...
Click to collapse
Just don't type sun if you already have the "#" prompt
Sent from my NookColor using XDA Premium App
this method does not work.
It does work, just 1 typo
This Method DOES Work!
there is just one little typo that stops it's functionality. You need a space between the [chmod 04755] and [*]. It should be:
chmod 04755 *
Thanks Whoareyou!
Whoareyou said:
Ok, this is how to root the 2.2 OTA:
1. Download THIS file
2. Unzip "Root.zip" to your C:/SDK_Tools/Platform-Tools/ directory
3. Double click "Root.bat"
4. You should now have the # sign in Command Prompt
5. Download THIS File THIS file and THIS
7. Mount usb storage
8. copy ESPRIMG.zip and update.zip that you downloaded to the root of your sdcard
9. Unmount usb storage
10. Unzip "eng.zip" to yous platform-tools directory and click eng-prep.bat
11. Type:
cd /data/local
chmod 04755*
/data/local/flash_image misc /data/local/mtd0.img
exit
adb reboot bootloader
11. Press Power when you see the fastboot screen, then press volume up when prompted on the device
12. Reboot into recovery, click apply: update.zip from /sdcard
13. Flash the rom of your chioce!
Your welcome
Thank NBetcher for this method!
Click to expand...
Click to collapse

[ROOT][COMPLETE GUIDE]How To Root HTC Droid DNA

Here is a complete guide for anyone interested in rooting the HTC Droid DNA. The insecure boot image, TWRP recovery, CWM recovery and SuperSU files used in this guide are not my own developments, and their developers have been credited in the end of this post.
I am only writing this as a newbie-friendly guide for everyone, and am providing my own SuperSU, su and busybox installer zip file that includes everything you need for full root.
Unlock the bootloader of your device by visiting the HTC bootloader unlock page. Warning: This will wipe your data.
UPDATE: Thanks to Verizon, the official bootloader unlocking method mentioned above no longer works. Please refer to this method for unlocking the bootloader.
Download ClockworkMod or TWRP recovery for the device and rename it to recovery.img (or keep the existing name and change recovery.img in the command below to that name).
Download the SuperSU and busybox package and put it on your SD card.
Put your phone into bootloader mode and connect it to your PC via USB.
On your computer, make sure you are in the folder where you downloaded the recovery file and use this command to flash the recovery:
Code:
fastboot flash recovery recovery.img
Finally, reboot your device into recovery, flash the SuperSU and busybox package and reboot your device.
You should now have root access.
Credits:
jcase for unlocking the bootloader after Verizon decided to lock it.
dsb9938 for sharing the CWM port and correcting me regarding my previously posted and now removed second method involving his insecure boot image
Dees_Troy for TWRP recovery.
utkanos for CWM port.
Chainfire for developing SuperSU
I have tried to credit everyone involved but if I have missed out on anyone, please do let me know.
thanks for the guide!
just one question though. when you say "Download the SuperSU and busybox package and put it on your SD card.", what do you mean exactly by SD card? doesn't the DNA not have a SD card? sorry if this is a dumb question. i've never rooted a phone before :/
hotmonkas said:
thanks for the guide!
just one question though. when you say "Download the SuperSU and busybox package and put it on your SD card.", what do you mean exactly by SD card? doesn't the DNA not have a SD card? sorry if this is a dumb question. i've never rooted a phone before :/
Click to expand...
Click to collapse
Internal storage would be another name for the SD card.
touretts69 said:
Internal storage would be another name for the SD card.
Click to expand...
Click to collapse
ah okay, thank you
which device do u use on the htc page?
nyjw said:
which device do u use on the htc page?
Click to expand...
Click to collapse
"Other devices", or similar.
Sent from my ADR6425LVW using xda premium
Awesomeness.
The fact that this phone is rooted a week before its even out... simply awesome. I love XDA!
So excited for this phone.
HQRaja said:
Code:
adb shell mount -o remount,rw /system
[LIST=1]
[*] adb push su /system/bin/
adb push Superuser.apk /system/app/
adb push busybox /system/xbin/
adb shell
chmod 06755 /system/bin/su
chmod 0644 /system/app/Superuser.apk
chmod 04755 /system/xbin/busybox
cd /system/xbin
busybox --install /system/xbin/
exit
exit
[*]Reboot your device.
[/LIST]
Click to expand...
Click to collapse
This will not work. You cannot write to /system except in recovery.
This is why I did not publish my initial root method. Using a package and flashing in recovery is the only way to get files on /system without some really gnarly stuff.
D
.
dsb9938 said:
This will not work. You cannot write to /system except in recovery.
This is why I did not publish my initial root method. Using a package and flashing in recovery is the only way to get files on /system without some really gnarly stuff.
D
.
Click to expand...
Click to collapse
Thanks for your response. =)
Based on my understanding (and my experience with Nexus devices), once you boot using an insecure boot image, you have full root access in ADB since it is running adbd as root on the device. You can then successfully write to the /system partition and the changes persist after reboot. While I can confirm that the above will work on any Nexus device as well as any similar device with an unlocked bootloader and fastboot access, I am not 100% sure if that's how it works on HTC devices that have the S-ON flag. Are you referring to S-ON devices in particular here?
HQRaja said:
Thanks for your response. =)
Based on my understanding (and my experience with Nexus devices), once you boot using an insecure boot image, you have full root access in ADB since it is running adbd as root on the device. You can then successfully write to the /system partition and the changes persist after reboot. While I can confirm that the above will work on any Nexus device as well as any similar device with an unlocked bootloader and fastboot access, I am not 100% sure if that's how it works on HTC devices that have the S-ON flag. Are you referring to S-ON devices in particular here?
Click to expand...
Click to collapse
Normally it does work that way. And I was very disappointed that it did not on this phone, as I made the kernel just for that reason.
I think there was an error in the coding where it tells unlock which partitions to remove write protection from. That, or they just wanna make our lives hard for some reason.
Either way, you cannot write to /system while the phone is booted normally without S-Off. Even as root.
D
.
dsb9938 said:
Normally it does work that way. And I was very disappointed that it did not on this phone, as I made the kernel just for that reason.
I think there was an error in the coding where it tells unlock which partitions to remove write protection from. That, or they just wanna make our lives hard for some reason.
Either way, you cannot write to /system while the phone is booted normally without S-Off. Even as root.
D
.
Click to expand...
Click to collapse
Ah I see. Thanks for pointing that out. I'll remove the second method from my guide, since including that would be pointless if that's the case as you can now confirm.
So does this method work? Or not???Im confused with the last few posts. Thanks
suzook said:
So does this method work? Or not???Im confused with the last few posts. Thanks
Click to expand...
Click to collapse
Edited post is fine. He removed the part I was talking about.
D
.
What I want to know most if anyone knows..will the DNA through verizon be unlockable....I'm actually using the RAZR Maxx hd through verizon and Motorola has restricted unlocking the bootloader because of verizon
Sent from my DROID RAZR HD using xda app-developers app
Irish65 said:
What I want to know most if anyone knows..will the DNA through verizon be unlockable....I'm actually using the RAZR Maxx hd through verizon and Motorola has restricted unlocking the bootloader because of verizon
Sent from my DROID RAZR HD using xda app-developers app
Click to expand...
Click to collapse
You can't do any of this stuff without unlocking.
As of right now, it is working.
D
.
How do you do the command in the folder were u downloaded to like the instructions say?
idle0095 said:
How do you do the command in the folder were u downloaded to like the instructions say?
Click to expand...
Click to collapse
Please be more specific.
D
.
idle0095 said:
How do you do the command in the folder were u downloaded to like the instructions say?
Click to expand...
Click to collapse
In command prompt, use the "cd" command. The easiest way to do this is to make a folder at the root of your hard drive (C:\) and place all files you need to flash in here e.g. "C:\android\" Then in command prompt, type in "cd .." and press enter until it displays "C:\". Then type (if you use the same name as the example) "cd android" and it will enter the folder "C:\android\" where you placed the files. Now you can continue with the rest of the guide.
CastleBravo said:
In command prompt, use the "cd" command. The easiest way to do this is to make a folder at the root of your hard drive (C:\) and place all files you need to flash in here e.g. "C:\android\" Then in command prompt, type in "cd .." and press enter until it displays "C:\". Then type (if you use the same name as the example) "cd android" and it will enter the folder "C:\android\" where you placed the files. Now you can continue with the rest of the guide.
Click to expand...
Click to collapse
Or if on Windows, simply: Do the following in folder where files are located.
Shift+Right-Click > Open Command Window Here
I've never had an HTC device before but does using the HTC bootloader unlock is that making it s-off? Also I don't see the DROID dna on the list
Sent from my SCH-I535 using xda premium

Help unlock Bootloader D618 20b

I follow the steps on this post: http://forum.xda-developers.com/g2-mini/development/bootloader-d620-d618-t3127819
but when I put the commands in the terminal , it appears: "No such file or directory". How i can fix it? Thanks.
You probably mistyped something.
Vagelis1608 said:
You probably mistyped something.
Click to expand...
Click to collapse
I try copying it directly from the post and still shows the same error
Acritura said:
I follow the steps on this post: http://forum.xda-developers.com/g2-mini/development/bootloader-d620-d618-t3127819
but when I put the commands in the terminal , it appears: "No such file or directory". How i can fix it? Thanks.
Click to expand...
Click to collapse
Copy it to internal storage and make sure, that you write commands correctly.
Don't forget the unpack and don't forget the "su" before you try the "dd".
Zaaap72 said:
Don't forget the unpack and don't forget the "su" before you try the "dd".
Click to expand...
Click to collapse
Yes, I'm sure I have not forgotten . It's safe to try putting the file on internal storage and see if it works well ? It would be the same command ?
Acritura said:
Yes, I'm sure I have not forgotten . It's safe to try putting the file on internal storage and see if it works well ? It would be the same command ?
Click to expand...
Click to collapse
You actually have to put it in internal storage with that command.
Cafi96 said:
You actually have to put it in internal storage with that command.
Click to expand...
Click to collapse
Installation:
1 - Unzip the file. E.g. using 7zip.
2 - Copy the extracted file to /sdcard on your phone.
3 - Start a shell using a terminal or ADB
4 - Get root rights: su
5 - Install the bootloader using dd
Says in the instructions must be copied to the SD , now I 'm confused.
----------------------------------------------------------------------------------
Ok , you were right and I was able to unlock the bootloader. But now I have another problem , I flash the CWM.img with flashify, and when reboot the phone i got a green screen "TZ Crash - DemiGod Crash Handler" how i can fix it? thanks.
Acritura said:
Installation:
1 - Unzip the file. E.g. using 7zip.
2 - Copy the extracted file to /sdcard on your phone.
3 - Start a shell using a terminal or ADB
4 - Get root rights: su
5 - Install the bootloader using dd
Says in the instructions must be copied to the SD , now I 'm confused.
----------------------------------------------------------------------------------
Ok , you were right and I was able to unlock the bootloader. But now I have another problem , I flash the CWM.img with flashify, and when reboot the phone i got a green screen "TZ Crash - DemiGod Crash Handler" how i can fix it? thanks.
Click to expand...
Click to collapse
Can you boot up the phone? If yes, flash TWRP instead.
Cafi96 said:
Can you boot up the phone? If yes, flash TWRP instead.
Click to expand...
Click to collapse
Yeah, by luck i can boot it. I will try flashing TWRP from: http://forum.xda-developers.com/g2-mini/development/recovery-lg-g2-mini-d618-v10c-t2854493 to see if it works.
------------------------------------------------------------------------------
It worked perfectly , millions of thanks! o/
prefered from here http://forum.xda-developers.com/g2-mini/development/recovery-twrp-2-8-7-0-t3147675 download 2.8.7.0 TWRP

Categories

Resources