HTC Legend Root & Downgrade - Android Software/Hacking General [Developers Only]

Hi,
I'm new here, so I don't know how to put this...
I have a HTC Legend 2.2 Froyo with HBoot 1.01 and I want to downgrade and root it so I can put CM7 on it. Can anyone tell me how to do this?
Thanks!
DM779

@DMasta779 read this ---> [GUIDE] How To Root HBOOT 1.01

i4o said:
@DMasta779 read this ---> [GUIDE] How To Root HBOOT 1.01
Click to expand...
Click to collapse
Thanks, but at the first step, where I type ''adb shell'' it
says:''adb: permission denied''.
What do I have to do?

On linux, make sure adb is executable. On windows, make sure you run cmd as an administrator

Help?
I always did it on my phone with Terminal Emulator(Temprooted). When I type in ''adb shell'' it gives ''adb: permission denied''. When I try it on my PC(Windows) With only charge and USB debugging on, adb doesn't find my phone.(This is also in fastboot mode)
It gives: ''error: device not found''. What on earth am I doing wrong?

Adb isn't executed on the phone, it's on the pc. The phone should be running normally when you run it (with usb debugging enabled)
Also install htc sync to get the correct drivers
Rehash: start the phone normally. Ensure usb debugging is enabled. Plug the gizmo into your pc. Run adb shell in the command prompt as administrator
Sent from my GT-P1000 using XDA App

http ://i55.tinypic.com/f35a2q.png
This is where I get stucked right now. Anyone?
(delete the space in the URL)
The things that've deleted, are the CID's.

DMasta779 said:
http ://i55.tinypic.com/f35a2q.png
This is where I get stucked right now. Anyone?
(delete the space in the URL)
The things that've deleted, are the CID's.
Click to expand...
Click to collapse
Adb is not a valid binary on the phone.
When you issue adb shell you're dropped in to the shell on the phone. Any commands entered there execute on the phone. Type exit to get out of the shell before executing the push commands
Sent from my GT-P1000 using XDA App

Oh OK, I see, but when I type in just ''push goldcard.img /data/local/'' after adb shell, it says: ''push: permission denied''. (running as admin in windows and temprooted phone)

Exit out of the phone's shell, them the command is
Code:
adb push goldcard.img /data/local

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I think it didn't push the file completely. I get this every time when I am trying to push something.
EDIT: I did ignore it and advanced to the next steps and by this command I get stuck:
...and backup your current misc partition:
Code:
cat /dev/mtd/mtd0 > /sdcard/misc_backup.img
Click to expand...
Click to collapse
Click to expand...
Click to collapse

I can't backup/write the misc

Related

I can't pull an app from the sdcard

I just rooted the phone (I know this because I installed a screen shot app and it works) and I'm trying to copy a private app that is free off of my phone onto my computer. But, I cannot figure it out. Could someone please give me step-by-step instructions. I would really appreciate this.
It sounds like you have completed this process:
http://forum.xda-developers.com/showthread.php?t=581577
But read it and make sure you complete the last step to flash the recovery rom.
www.androidspin.com/downloads...roc-v1.2.3.img
He kind of botched the last command instead of:
adb shell flash_image recovery recovery-RA-heroc-v1.2.3.img
it should be:
adb shell
cd /sdcard/
su
flash_image recovery recovery-RA-heroc-v1.2.3.img
Once you make sure this is done, turn of your phone and then hold Home button and press end button. This should load the recovery, choose Nandroid Backup once you are done backing up you will want to flash Modaco's 1.1 rom. More information can be found here:
http://forum.xda-developers.com/showthread.php?t=581846
Once this is done connect your phone to your pc, and open command prompt.
type in:
cd "the directory where the sdk is" \tools
then type:
If you are using appstosd with ext2 and fat32 partitioned sdcard:
adb pull /system/sd/app app
If you are using just fat32, no appstosd:
adb pull /data/app app
this will put all your apps into a directory named app in your \tools folder on your pc.
for private apps just replace app with app-private
alternatively, you can move apps one at a time with the command:
leave out " ".
adb pull /system/sd/app/"appname" "appname"
This will place the file directly into your tools directory. Hope this helps.
Yep, thats what I did. But I didn't flash the recovery rom. If I do that will it erase all my applicastion that I have installed? I didn't want to do that because the app I want to backup was free when I downloaded it but now it's not.
Ok, so I followed all the instructions above and go the in MoDaCo rom flashed. Then, when I tried to pull the apps off the sdcard I get a permissions denied error.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Thanks.
Now I have a new problem. It says "adb: not found". Now what?
Thanks for being so helpful everyone.
adb is a command that is run outside of the shell
for example your prompt would still be at
c:\android-sdk-windows\tools>adb pull /data/app-private (location)
you can't use adb inside of adb shell
Ah, I didn't know adb had to be run outside of the shell.
Now it says there aren't any files in app-private but I know there are two in there.

[HOW-TO] ADB for Dummies(How-To Learner's Guide)

Hi,
My name is Joe aka AndroidSamurai..
I have recently made some business acquisitions and will be starting up a new Android Learning series.. Stay tuned for updates..
Thanks again,
AndroidSamurai
Android4D Inc
I thought some people might appreciate the instructions to get adb working over WiFi too and this seems like a good place to put it:
Type this in your terminal emulator on your Android device:
Code:
setprop service.adb.tcp.port 5555
stop adbd
start adbd
Then check it with this:
Code:
getprop service.adb.tcp.port
If it doesn't return "5555" and you're rooted, then do a "su" command and try again. You shouldn't need to be rooted for adb over wifi to work, but I haven't tried every device:
Code:
su
setprop service.adb.tcp.port 5555
stop adbd
start adbd
Then check it:
Code:
getprop service.adb.tcp.port
When it returns "5555" then run this command in the terminal (or command prompt) on your computer:
Code:
adb connect 192.168.0.151
(Obviously enter your device's IP address. You must be on the same network as the computer that has the Android SDK installed.)
And you should be connected!
To tell the Android device to listen for adb on the USB port instead of TCP again, enter this into the terminal emulator:
Code:
setprop service.adb.tcp.port -1
stop adbd
start adbd
(again, might need "su" on your device)
Or just reboot the Android device.
And to tell your computer to use USB for adb instead of TCP:
Code:
adb usb
Now, keep in mind, when your Android device is listening for adb via WiFi, it's wide open... anybody that that the Android SDK installed and knows your device's IP address can access it without a password.
HTH,
Billy
PS - Your
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
are appreciated!
Updating Soon!
Pleased to announce that I will be updating my Full guide within the next few business days along with an E-book version and a Video Guide...
If my guide has helped you please help fund my college, donate.
Thanks for your help guys...
Moved My Guide!
Hey All,
I am pleased to announce that an updated version of my guide and soon to be All in one android E-book is on my website...
Link is in the first post, thanks to all at XDA over the yrs that have used my guide...
Cool, thanks. I plan on using this pretty soon. I really need to get better.
Sent from my SAMSUNG-SGH-I897 using XDA App
Moved my guide!
Hey All,
Sorry to inform you, but my guide has been moved to another site... I can not advertise because it is just not moral...
Click the link to take you to my new guide...
had a question
hi i was wondering if u could help with with a problem im having...i flashed my Tp2 over to boost and it was working fine..except for the web..so i changed the ppp cong and it rebooted..now i have a blue circle with a line through it..and when i try to connect i get a message that says" The process com.android phone has stopped unexpectedly. Please try again"....and theres no longer a connection for the usb in my contron planel......just tossing it out there to see if u had any ideas..thanks S
Updated..
My guide is now even more userfriendly...
Had to make a few revision changes to simplify the process...

[Q] I have S-OFF. now what?

im confused about this o.0
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Head over to the development section and help us out with unlocking all the s-on devices
Sent from my HTC Sensation 4G using XDA Premium App
Are you trying to root your phone or what?
@op, check your PM's please.
Holy ****. S-off with 1.17bootloader with the stock bootloader...
I'm envious to say the least, where did this phone come from? Network? Supplier?
Would you mind dumping your hboot and uploading it to a dropbox/upload site?
Code:
cd c:\adb
adb shell
dd if=/dev/block/mmcblk0p12 of=/sdcard/hboot.img
It would be useful to have this hboot version.
Evil-Dragon said:
I'm envious to say the least, where did this phone come from? Network? Supplier?
Click to expand...
Click to collapse
i got my sensation from HTC before launch and i get off work at 6 so ill try and help after that
Any luck pulling that HBOOT?
Evil-Dragon said:
Would you mind dumping your hboot and uploading it to a dropbox/upload site?
Code:
cd c:\adb
adb shell
dd if=/dev/block/mmcblk0p12 of=/sdcard/hboot.img
It would be useful to have this hboot version.
Click to expand...
Click to collapse
yeah but i dont know why i didnt reaply back to this. sorry haha.
it didnt work. it said no device found then some other error
iPrevailed YDG said:
it didnt work. it said no device found then some other error
Click to expand...
Click to collapse
You'll need to install the android sdk, download the google usb drivers from it and get your phone set up as a ADB Composite Interface. Then make sure USB debugging is enabled on your phone and you'll be able to run the above commands.
Evil-Dragon said:
You'll need to install the android sdk, download the google usb drivers from it and get your phone set up as a ADB Composite Interface. Then make sure USB debugging is enabled on your phone and you'll be able to run the above commands.
Click to expand...
Click to collapse
"Permission not allowed"
iPrevailed YDG said:
"Permission not allowed"
Click to expand...
Click to collapse
You shouldn't be getting a root denial from that command. It looks like HTC *really* bolted it down. Out of curiosity, have you tried downloading Superuser from market? If you have an unlocked boot loader, there is a very very VERY slight chance that you might be able to su out of the box. Doubtful but its worth a try.
just updated everything and got this also SU didnt work ]:
Code:
C:\Users\********>cd c:\sdk\tools
c:\SDK\tools>adb devices
List of devices attached
HT15HT****** device
c:\SDK\tools>adb shell
$ dd if=/dev/block/mmcblk0p12 of=/sdcard/hboot.img
dd if=/dev/block/mmcblk0p12 of=/sdcard/hboot.img
/dev/block/mmcblk0p12: cannot open for read: Permission denied
$

[Q] How do i remount my system so that its no R-O?

Hello Ive recently flashed my phone with a new ROM that its boot animation doesn't appear because its named wrong, Ive tried renaming it using root explorer but it doesn't allow me since the system is mounted as read only, i have "fixed my permissions"
Sgs 4g t959v running razorx3x's 1.3.6 rom
Thank you
Czajkus said:
Hello Ive recently flashed my phone with a new ROM that its boot animation doesn't appear because its named wrong, Ive tried renaming it using root explorer but it doesn't allow me since the system is mounted as read only, i have "fixed my permissions"
Sgs 4g t959v running razorx3x's 1.3.6 rom
Thank you
Click to expand...
Click to collapse
I believe Root Explorer has an option to do that. However, I've not used Root Explorer before so I'm not 100% on how to do it from there.
You can do it with adb through the command prompt:
adb shell mount -o rw,remount /dev/block/stl9 /system
Thank you for responding and no root exploroer doesnt have any thing like that =( and can you explain me what adb is? thanks
Czajkus said:
Thank you for responding and no root exploroer doesnt have any thing like that =( and can you explain me what adb is? thanks
Click to expand...
Click to collapse
Could've sworn I read it does. No worries, though. ABD (Android Debug Bridge) is available through the Android Software Development Kit (SDK) @ www.Android.com. Download the SDK, run the installer, and only select to install the platform tools. Once it's done then open a command prompt and CD to either:
32-bit: C:\Program Files\Android\Android-sdk\platform tools
64-bit: C:\Program Files (x86)\Android\Android-sdk\platform tools
Make sure your phone has USB debugging enabled (Settings -> Applications -> Development -> USB debugging) then plug it into the computer. After that, issue the command from my previous post. Let me know if you have any qurstions. Good luck
Sent from my SGH-T959V using XDA App
I think at top if you long press r/o it should change r/w,i think.
Sent from my SGH-T959V using xda premium
Root explorer will allow you to mount system the system as read write. I don't use it so I am not familiar with how to do it but the option is there. I would guess the post above mine is on the right track I use super manager free on the market. Maybe try a different file explorer if you can't figure it out.
Sent from my SGH-T959V using XDA App
Hi
Root explorer allows you to change read-write permission of every folder quite easily.
Look at the top right corner - you have a grey button there to do just that.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Sent from me
Please use the Q&A Forum for questions Thanks
Moving to Q&A

[Q] Problem Backup Partition TA

Hi guys. I have a small problem. I did it with the root method @ Miche1asso and I wanted to backup partition TA. When I start this script http://forum.xda-developers.com/showthread.php?t=2292598 me from error and the procedure does not go abuon end. I am attaching the screen errors that from me.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I believe that it can not back up because located 2 device. My cell phone and the emulator. In fact, if I give the command 'adb devices' me from this.
Should I disable the emulator but do not know how to do. Could you help me?
Try to run first
adb connect <id of your phone>
All following adb commands should be directed to your phone, ignoring the other device(s). Not sure where that emulator thing comes from, though. I've never had that issue.
Miche1asso said:
Try to run first
adb connect <id of your phone>
All following adb commands should be directed to your phone, ignoring the other device(s). Not sure where that emulator thing comes from, though. I've never had that issue.
Click to expand...
Click to collapse
It does not work
nunu00 said:
It does not work
Click to expand...
Click to collapse
Sorry, my fault. "adb connect" only works with the TCP/IP adb connections. As in adb help for "adb -s" you should set
Code:
set ANDROID_SERIAL=<specific device>
You get to choose <specific device> of your phone from the "adb devices" list. I am not sure about the syntax in Windows but I believe the one above should work.
Miche1asso said:
Sorry, my fault. "adb connect" only works with the TCP/IP adb connections. As in adb help for "adb -s" you should set
Code:
set ANDROID_SERIAL=<specific device>
You get to choose <specific device> of your phone from the "adb devices" list. I am not sure about the syntax in Windows but I believe the one above should work.
Click to expand...
Click to collapse
Thanks anyway, but I solved in another way
Inviato dal mio D2303 utilizzando Tapatalk
nunu00 said:
Thanks anyway, but I solved in another way
Click to expand...
Click to collapse
Which is? Why was the emulator enabled? Did you disable it? How?
Miche1asso said:
Which is? Why was the emulator enabled? Did you disable it? How?
Click to expand...
Click to collapse
I do not know because the emulator is enabled but I could not disabillitarlo. I solved it by changing the script Backup-TA-9.11. I added "-d" after "adb.exe". I attach a screen to better understand

Categories

Resources