How to split boot.img using Terminal Emulator on HD2? - HD2 Android Q&A, Help & Troubleshooting and Genera

Anyone knows how to split a boot.img file using Terminal Emulator on HD2?
There is a "split_bootimg.pl" script in the forum and wiki page but whenever I run this on Terminal Emulator it gives me either "permission denied" or "not found" error... Changing permissions for the files also does not help.

Are you using it with superuser permission?
try :
sudo split .....
or this one:
su *hit enter*
split ....

Marvlesz said:
Are you using it with superuser permission?
try :
sudo split .....
or this one:
su *hit enter*
split ....
Click to expand...
Click to collapse
Tried both but doesn't work.. first one says not found... second one still give permission denied
Here's what I do:
1) Copy boot.img and split_bootimg.pl into a temp folder
2) Enter su (Gives me Terminal Emulator has been granted super user access...)
3) cd /temp folder
4) enter "./split_bootimg.pl boot.img"
5) Gives error "split_bootimg.pl: permission denied"

Go to superuser, and make sure that terminal is allowed.

Marvlesz said:
Go to superuser, and make sure that terminal is allowed.
Click to expand...
Click to collapse
Yes. Terminal already allowed.
Sent from my HTC Desire using XDA App

boonbing said:
Yes. Terminal already allowed.
Sent from my HTC Desire using XDA App
Click to expand...
Click to collapse
do you have the perl file?

Marvlesz said:
do you have the perl file?
Click to expand...
Click to collapse
Sorry I am not sure which perl file you're referring to... can show me the file?
Sent from my HTC Desire using XDA App

Go to superuser, and make sure that terminal is allowed.
...

boonbing said:
Sorry I am not sure which perl file you're referring to... can show me the file?
Sent from my HTC Desire using XDA App
Click to expand...
Click to collapse
Sure, it is in the attachments.. It is (supposedly) the script that allows splitting .
Rename split_bootimg.pl.zip to split_bootimg.pl (remove .zip)
dxjwtjy said:
Go to superuser, and make sure that terminal is allowed.
...
Click to expand...
Click to collapse
He already did, check the previous posts.

Related

Quick way to check if rooted?

I did the rooting process, but I'm not sure if it worked. I have the Superuser Permissions app if that counts for anything, which I have read means that I did root it correctly but I just want to double check.
Try downloading terminal emulator and type in "su" and if that box comes out of allow of don't allow click allow and u know if ur rooted
Sent from my Liberty using XDA App
Javi97100 said:
Try downloading terminal emulator and type in "su" and if that box comes out of allow of don't allow click allow and u know if ur rooted
Sent from my Liberty using XDA App
Click to expand...
Click to collapse
Ok I downloaded it typed su then it said allow or deny and i allowed, so I am rooted?
just to clarify, if youre gonna use Terminal to check Root run Terminal, allow permission, and type SU as Javi97100 states.... now if in Terminal it shows # sign after entering SU, then you have root.
i do believe however, if "Superuser Permissions" is in the apps list Root has been achieved
zedbra said:
just to clarify, if youre gonna use Terminal to check Root run Terminal, allow permission, and type SU as Javi97100 states.... now if in Terminal it shows # sign after entering SU, then you have root.
i do believe however, if "Superuser Permissions" is in the apps list Root has been achieved
Click to expand...
Click to collapse
Great thanks. What would you recommend now, I flashed before but I didn't do it right I think. Should I try flashing again and what do I do before hand.
Sent from my HTC Liberty using XDA App
vicmora5 said:
Great thanks. What would you recommend now, I flashed before but I didn't do it right I think. Should I try flashing again and what do I do before hand.
Sent from my HTC Liberty using XDA App
Click to expand...
Click to collapse
Why don't you think you did it right? Do you see the "superuser permissions" app in the app drawer/list? When you type "su" in the terminal emulator do you get a hash mark (#) instead of a $?
I think maybe he's talking about flashing a custom rom.
Check out my guide here
http://www.motoxtreme.info/showthread.php?t=9768
zervic said:
Why don't you think you did it right? Do you see the "superuser permissions" app in the app drawer/list? When you type "su" in the terminal emulator do you get a hash mark (#) instead of a $?
Click to expand...
Click to collapse
This is how it looks
Code:
export PATH=/data/local/bin:$PATH
$ $su
#
Is that right?
Yes, you are rooted.
zervic said:
Yes, you are rooted.
Click to expand...
Click to collapse
Alright thanks what's first thing before flashing make a nandroid backup right?
Sent from my HTC Liberty using XDA App
vicmora5 said:
Alright thanks what's first thing before flashing make a nandroid backup right?
Sent from my HTC Liberty using XDA App
Click to expand...
Click to collapse
Yep, boot into recovery and do a nandroid backup.
tpbklake said:
Yep, boot into recovery and do a nandroid backup.
Click to expand...
Click to collapse
Ok and after that all it is is flashing with which ever ROM I choose and if I don't like it I can just restore with the nandroid backup up and it'll be like nothing happened right?
Sent from my HTC Liberty using XDA App

[Q] How to gain root permission?

Hi,
i'm using mdj 1.7 nandroid and i got problem to get root permission.
i installed super user, z4root,su-2.3.6.1-ef-signed and still i cant delete files , and few more actions.
someone can help me ? :O
incident said:
Hi,
i'm using mdj 1.7 nandroid and i got problem to get root permission.
i installed super user, z4root,su-2.3.6.1-ef-signed and still i cant delete files , and few more actions.
someone can help me ? :O
Click to expand...
Click to collapse
Did you check it is r/w and not r/o?
Have you tried superclick?
Sent from my HTC HD2 using XDA App
jose makalolot said:
Did you check it is r/w and not r/o?
Have you tried superclick?
Sent from my HTC HD2 using XDA App
Click to expand...
Click to collapse
I dont know how to check that is r/w ..
1.7 is already rooted...you dont need to install any of those apps...
the_scotsman said:
1.7 is already rooted...you dont need to install any of those apps...
Click to expand...
Click to collapse
are you sure ? cuz i cant delete files from system folder in root and etc..
incident said:
are you sure ? cuz i cant delete files from system folder in root and etc..
Click to expand...
Click to collapse
You need to use something like Root Explorer to do that.
the_scotsman said:
You need to use something like Root Explorer to do that.
Click to expand...
Click to collapse
i know.. but still cant do it..
btw i try to run desktop virtualizer and also this program said that she dont have the right permission do to so. :<
thanks for your's help , mate ! :]
Do you have SDK installed? If so, just open up a command prompt and use:
Code:
adb shell
mount -o rw,remount /system
rm *insert path to specific file you want to remove*
Ctrl+C
exit
anrabi4 said:
Do you have SDK installed? If so, just open up a command prompt and use:
Code:
adb shell
mount -o rw,remount /system
rm *insert path to specific file you want to remove*
Ctrl+C
exit
Click to expand...
Click to collapse
thanks !
with this way , can i grand permission for application? like desktop virtualizer?
(when i run it, it's said "not have right permission")
if yes , how?

Unable to "push su" in rooting my Xoom (push: not found) - any ideas?

So I just got to one of the final steps in rooting my xoom, but for some reason, when I enter the "push su /system/bin/" command, I get a "push: not found" response. I'm completely stuck at this step...anyone have any ideas on this one??
Was adb remount succesful before you tried?
joeski27 said:
So I just got to one of the final steps in rooting my xoom, but for some reason, when I enter the "push su /system/bin/" command, I get a "push: not found" response. I'm completely stuck at this step...anyone have any ideas on this one??
Click to expand...
Click to collapse
I ran in to this. Make sure your Xoom is not on the lock screen. Should be good to go.
PaulG1488 said:
Was adb remount succesful before you tried?
Click to expand...
Click to collapse
Yes, adb remount was in fact successful.
Edit - now I'm getting "cannot stat 'su': No such file or directory"
just to be clear, is it supposed to be:
adb push su /system/bin/
or
adb shell push su /system/bin/
???
syntax is "adb push ..."
bcgaynor82 said:
syntax is "adb push ..."
Click to expand...
Click to collapse
thats what I thought, and when I do this I get the "cannot stat 'su': No such file or directory" error message.
I have no idea what's going on here. Its almost as if I dont have the xoomroot files (including su) in the correct place, but they are there in the SDK tools folder as they are supposed to be. UGH!?!!?
joeski27 said:
thats what I thought, and when I do this I get the "cannot stat 'su': No such file or directory" error message. ?????
Click to expand...
Click to collapse
Make sure that one of the following is true:
the files you want to push are in the same folder as adb
adb is in your path and you are in the directory that the files are
Also make sure you are running this from your computer and not the Xoom, although it sounds like you are bumping into one of the two scenarios above.
nindoja said:
Make sure that one of the following is true:
the files you want to push are in the same folder as adb
adb is in your path and you are in the directory that the files are
Also make sure you are running this from your computer and not the Xoom, although it sounds like you are bumping into one of the two scenarios above.
Click to expand...
Click to collapse
yes they are in the same folder as adb, and I'm in the adb directory while in terminal. still getting the same error message. I'm so lost on this one.
Is there any chance that the unlock didn't take? Though I can't see how it didn't - I went through the entire procedure, answered all the prompts during fastboot, and it did erase/reset the tablet afterwards, so I'm guessing that isn't it.
joeski27 said:
yes they are in the same folder as adb, and I'm in the adb directory while in terminal. still getting the same error message. I'm so lost on this one.
Click to expand...
Click to collapse
Any chance you can screenshot your sdk tools folder
They're supposed to be in the 'platform-tools' folder, not tools. The files go in the same folder as adb so it knows where they are.
PaulG1488 said:
Any chance you can screenshot your sdk tools folder
Click to expand...
Click to collapse
Screenshot of my sdk tools folder:
EDIT: heres the link:
http://i869.photobucket.com/albums/ab259/olesweski/Screenshot2011-03-03at122552AM.png?t=1299130486
Elysian893 said:
They're supposed to be in the 'platform-tools' folder, not tools. The files go in the same folder as adb so it knows where they are.
Click to expand...
Click to collapse
I know, but I had already moved adb into the tools folder earlier on. So they are in the same folder.
send a screenshot of everything in your command prompt if u can please
PaulG1488 said:
send a screenshot of everything in your command prompt if u can please
Click to expand...
Click to collapse
here's the screenshot of my terminal:
http://i869.photobucket.com/albums/ab259/olesweski/Screenshot2011-03-03at124929AM.png?t=1299131460
Do you have the 3.0 sdk installed
Wait I see the problem after you remounted you have to direct it back into your tools foledr before doing the adb push command
PaulG1488 said:
Do you have the 3.0 sdk installed
Click to expand...
Click to collapse
all I know is that i have the latest sdk installed, but are you referring to something additional to that? such as "SDK Platform Android 3.0, API 11, revision 1" ?
joeski27 said:
all I know is that i have the latest sdk installed, but are you referring to something additional to that?
Click to expand...
Click to collapse
After u did adb remount it took you back to your main folder make sure you direct it back to your tools folder then run the adb push command and problem will be solved
PaulG1488 said:
After u did adb remount it took you back to your main folder make sure you direct it back to your tools folder then run the adb push command and problem will be solved
Click to expand...
Click to collapse
So I just did the remount again (successfully), and now instead of just entering "adb push ...", I would need to do what?
EDIT - just tried this, and got this result:
Joseph-Olesweskis-iMac:~ olesweski$ /Users/olesweski/Desktop/android-sdk-mac_x86/tools adb push su /system/bin/
-bash: /Users/olesweski/Desktop/android-sdk-mac_x86/tools: is a directory

Help, I can't root my phone. HELP!

I have been trying to root my phone but it keeps saying "sh file type not found"
Can someone help me please.
Sent from my HTC Glacier using XDA App
Did you unzip it and put it in root of your sdcard? Which method did you use? Anyways follow my instructions below.
HKM said:
Well since you are up to the PermROOT I take it you have TempROOT, if so as you saying you have root.sh in root dir inside /sdcard so it would look like /sdcard/root/root.sh for the absolute path. Also you have console right? If not go download Terminal Emulator. Then type in "su" and press enter SU=Super User or @wheel,root permission base. Then use "cd /sdcard/root" press enter CD = Change Directory. Then do "sh root.sh" and press enter as sh is shall execute command. So it would look like this below:
su
cd /sdcard/root
sh root.sh
Click to expand...
Click to collapse
Sent from my HTC Glacier
I tried the only two methods I know of, using the command prompt, and the file explorer. I did put it in the root of my sd card. And I tryied several times and get the same reponse.
Sent using my T-mobile MyTouch 4G (unrooted).
dnlgorz said:
I tried the only two methods I know of, using the command prompt, and the file explorer. I did put it in the root of my sd card. And I tryied several times and get the same reponse.
Sent using my T-mobile MyTouch 4G (unrooted).
Click to expand...
Click to collapse
Follow the video from TheUnlockr then exactly step by step.
tempROOT> http://www.youtube.com/watch?v=gylaXOCNzqU
permROOT> http://www.youtube.com/watch?v=Sy_aqKoeev4
If that don't work here is the one by grankin01.
http://forum.xda-developers.com/showthread.php?t=858996

Question

How to get back to s-on and how do I remove Rom manager permanently as In not being on when I boot my phone like I was never rooted?I want to completely remove all of this
Sent from my HTC Glacier using Tapatalk
This worked for me
[COLOR="Red" said:
Process for turning S back on[/COLOR]
Download this file and unzip it to /sdcard on your device.
unroot.rar
http://www.mediafire.com/?12oi5elu7v2y8og
md5sum: aad4e64126cf8d92d7e8b5abb48fdadd
Terminal Emulator Method
1. Open up terminal editor on your device.(I prefer this method b/c you can see the output.)
a. Type "su" + enter to gain root privileges.
b. Type "cd /sdcard/unroot" + enter.
c. Type "sh unroot.sh" + enter.
d. Follow the onscreen prompts.
File Explorer Method
2. Open root explorer, sufbs, or some other file browser with root access.
a. Navigate to /sdcard/unroot.
b. Click on unroot.sh and allow it to run. Some file browsers ask permission before they execute scripts.
c. Wait 18 to 20 seconds and reboot your phone into the bootloader to check if S=on.
You now have S=ON again.
Since we opened up the nand to writes you should still retain persistent root privileges.
Hope this makes it all easier for you.
Cheers --grankin01
For everyone that is have trouble writing to the protected areas of the system after following the rooting procedures.
Reboot into Clockwork recovery and choose the mounts and storage option. From there choose mount system (or whichever protected directory you want access to) and click the trackpad. When unmount system shows you have rw access to the /system directory and all of its subs.
Click to expand...
Click to collapse
Sent from my HTC Glacier using XDA App
thanks how about rom manager
thanks how about rom manager
Click to expand...
Click to collapse
Should be able to using the market
Sent from my HTC Glacier using XDA App
Drzfr3shboialex said:
thanks how about rom manager
Click to expand...
Click to collapse
Look for PD15IMG.ZIP . It contains the stock rom. Just put that on the root of the sdcard. It will wipe everything. It's on a sticky in the dev forums. You just boot into hboot and follow the on screen promps.
If you are talking about the program then just uninstall it .
Sent from my HTC Glacier using XDA Premium App
Come on man!
post this in the right section...
Q&A
People here are glad to help you, but this is definitely not development related.
they have to make it so only people with at least 25 or more post's to post in the Dev Section of phones
Thanks guys
Sent from my HTC Glacier using Tapatalk

Categories

Resources