• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root Some noob questions.

before you do just try this

http://dl.dropbox.com/u/5684959/stu...9.00.32U_5.11.05.27_release_159811_signed.zip

use the instructions i mentioned above, make sure your gold card is inserted (youll have to put this file on your gold card)

this will installed 2.29.405.5 and should fix misc in the process as its a full upgrade rather than an update
it will wipe your device but should restore usb mass storage


was it originally 2.29.405.2 or did you debrand it?
 
rename it to PB99IMG.zip and put it on the root of your sdcard then boot to bootloader and apply it

I'm getting a cid error. I'll try to find the right version tomorrow, I think I've picked your brains enough for one day.

You've been brilliant and I really appreciate your help :cool:
 
you are getting a cid error because you dont have a gold card

you need to sort a gold card somehow or you wont be able to downgrade either as an alternative option
 
I copied a back-up of my "goldcard" to a spare sd. Perhaps I can't do that. I'll look for my other sd-card tomorrow.

Thanks, I know what I need to do now.
 
I copied a back-up of my "goldcard" to a spare sd. Perhaps I can't do that. I'll look for my other sd-card tomorrow.

Thanks, I know what I need to do now.

yeah you cant do that, each sdcard has its own unique cid image

dont worry about picking our brains we dont mind as long as you help us help you
 
Can anyone tell me what's wrong with this command?

cd /data/data/./flash_image misc mtd0.img

I get a "reply"

Bash cd: /data/data/./flash_image not a directory?
 
I found this thread on XDA for fixing a USB brick without root. Everything seemed fine until the last bit. I had to download a few files first

Code:
" cat /sdcard/rageagainstthecage-arm5.bin > /data/data/rageagainstthecage-arm5.bin
cat /sdcard/flash_image > /data/data/flash_image
cat /sdcard/mtd0.img > /data/data/mtd0.img
cd /data/data/
chmod 755 rageagainstthecage-arm5.bin flash_image

/data/data/rageagainstthecage-arm5.bin

restart the terminal

cd /data/data/
./flash_image misc mtd0.img


then reboot your device

that's how I solve it"
 
You created a directory called /data/data/flash_img but the bottom line refers to a directory you did not create I.e. /data/data/./flash_img

Basically it looks like ./ shouldn't be there
 
You created a directory called /data/data/flash_img but the bottom line refers to a directory you did not create I.e. /data/data/./flash_img

Basically it looks like ./ shouldn't be there
The last 2 lines are 2 separate instructions:

cd /data/data/
and
./flash_image misc mtd0.img
The first changes your current directory to /data/data. The second runs the file "flash_image" which was copied into that directory earlier. The "./" in order to run a command in the current directory is just a bit of bash shell syntax ("." is the current directory, so "./" means "from the current directory" - only needed when you want to execute a file, and a bit redundant to my mind, but hey ho).
 
Bah. In the app it just looked like text wrap to me :(

Bash cd: /data/data/./flash_image not a directory


Anyway, the terminal is seeing the ./ as part of the directory structure so this is the problem because "./" is not a folder in the directory and was not created earlier in the code

Tony, are you typing it as 2 lines or all as 1?
 
Thanks Hadron / Suroot

I'm getting permission errors now in the /data/data/ directory.

But I think this is because:

Different terminal apps have different write permissions on various directories. So as I'm using Better Terminal, I *think* I need to start again and re-run the code in a different directory.

So in effect /data/data/ would need to be changed to e.g. /betterterm/suitable permissions/

Does the above seem logical? Anyone know which directory I could use?

Cheers.
 
It does, but I would like a link to this thread please to read it myself without just snippets please.
 
Cant see anything about permissions in that post.

Why did you vary from the instructions? Have you tried it following them exactly?
 
I'm a little dubious about permissions being specific to a terminal emulator. Might download a second one to test when I get a chance, but the only way I could imagine it would be if different apps appeared as different users to the OS, which would be odd.

One way that permissions can get mixed up is if you use the su command, as that starts a new shell as root (the superuser account). So if you created the file after an su command, you'd need to su again before using the file in another session, because those files would belong to the superuser.
 
Ah, I see - this is a quirk of /data/data, that files there are owned by the app that created them, rather than the user account (whereas on /sdcard they are all owned by "system").

Memo to self: just because it looks like just another *nix, don't assume you know how it will work...:o

But what I don't understand: if the permissions depend on the app, why not just use the same terminal emulator you used to copy them? I feel I'm missing something still.
 
Tony: reading again, after running the first command it says you should have a root prompt (due to the exploit). So what exactly is the permissions error, i.e. what command gives it, and what file does it say you don't have permissions to do what with?

And what are the permissions of that file? In the terminal, type "ls -l file", where "file" is the name of the file it says you don't have permission to act on. It should return a line of information starting with a string like:

-rwxr-xr-x

If the file is one you did a "chmod 755" to it should look exactly like that (owner has read/write/execute, group and other have read and execute but no write access).
 
Back
Top Bottom