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

Root Some noob questions.

Ah, sorry for so many postings, but I've spotted one thing that's different in your recipe from the tutorial.

In the xda post it says stuff like:
cat /sdcard/rageagainstthecage-arm5.bin > /data/data/jackpal.androidterm/shared_prefs/rageagainstthecage-arm5.bin
and /data/data/jackpal.androidterm is the directory tree in /data/data owned by the Android Terminal Emulator app used in this tutorial. Whereas you were just putting stuff in /data/data directly. So to play safe try following the recipe exactly, in case there's some subtlety here.

So if you are using Better Terminal there's going to be a corresponding directory for that inside /data/data. Look in /data/data for an existing directory whose name suggests that it belongs to better terminal, and substitute that name for "jackpal.androidterm" in the recipe. Don't try to be clever and leave out stuff like the "shared_prefs" part of the directory names either - just do what it says, only in the better terminal app's area.

If you can't make it work, Android Terminal Emulator is free, so just install that and follow the recipe exactly.
 
I know I'm a pain but I switched back to android term. When I run the exploit the system is supposed to hang, but it doesn't.

So when I run the final line i get a bad substitution error.
 
No worries - switching to the same terminal emulator as the recipe lets you follow it exactly, which at this point is what I'd recommend.

So, have you followed the XDA recipe exactly, including working in exactly the directories it specifies?
 
Not understanding what I'm doing, I checked this.

/data/data/jackpal.androidterm/shared_prefs/

contains.
mtd0.img
flash_image
rageagainstthecage-arm5.bin

ls -l mtd0.img gives
-rw-rw-rw app_64 app_64 655 360

ls -l flash_image
-rwxr -xr-x app 64 app65 76044

ls -l rageagainstthecage-arm5.bin

- rwxr - xr - x app 64 app 64

Any of that help? Are the permissions ok to let me run the code?
 
Permissions look OK for execution, for the 2 that will be executed, and the 3 files are those I'd expect from the recipe.

I'm assuming that the various "app_64", "app 64", "app65" are just typos and are really all the same. If so, then this all looks OK to me. Remember though that I'm speaking as someone who has never actually done this, and has been learning some of the quirks of Android during this thread! But for the set of commands given, this looks like the right result as far as the contents of that directory goes.
 
When you type a command in a unix terminal (or linux/OSX/android) the PATH environment variable defines the set of directories that the OS should look for the corresponding command in, and the order in which they should be searched.

That command adds /data/local/bin to the front of the PATH, i.e. makes it the first place that it will look.

Edit: I talk about terminals here because that's how I prefer to work on a computer. But the same is true however you execute a command - if an explicit path to the file is not given, the OS will search the PATH to find a file with the right name.
 
Still getting a bad substitution error when I run the last line. I think I should get a pal who does unix programming to try to sort it for me.

Thanks Hadron.
 
Does the error tell you what it thinks is a bad substitution?

The syntax of the "export" command you quoted seems fine, so I doubt that's the problem (plus, as it's not part of the recipe, I assume it's something you've seen go past rather than something you've typed). If you want to check, type "echo $PATH" at the terminal - my PATH is currently /data/local/bin:/sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin, and I doubt that is ROM-dependent.
 
Back
Top Bottom