| || |
Re: Android terminal emulator
Well, I'm just learning about this, too. Thanks to your question, I was able to find some interesting information about Android!
Originally Posted by Cawt
To find out how the internal flash memory is divvied up, you type
$ cat /proc/mtd
That shows you the "blocks" of the internal memory.
I'm not exactly sure how to run your file, but I know how to run other binary files. First, put the file you want to run on the root of your sd card. (/sdcard)
Second, open the terminal emulator and type $ su to change to superuser. The cursor should change from a $ to a # symbol.
Then type # mount -o remount, rw -t yaffs2 /dev/block/mtdblock /system. This changes the permission on the /system files to read write.
Then move the file from the SD card to the binary folder with # cat /sdcard/yourfilename > /system/bin/yourfilename
Then do # chmod 755 /system/bin/yourfilename
After that, the file should run from within the /system/bin directory. Also remember, to change back the memory to read only with # mount -o remount,ro -t yaffs2 /mtd/block/mtdblock5 /system.
I got a lot of this information from this website, if you are interested in learning more:
Sent from my LS670 using Android Central Forums