Better shell ? - XPERIA X10 Android Development

does anyone know how to add new commands to shell ? or it is possible to install bash or something similiar inside, once we have root now ?
this shell inside is really "cuted" and almost all "ordinary(standart)" command I am missing
e.g: more vi and so on
maybe it works in different way , if yes just correct me
Any try to help is appreciated , but please stay on topic. because I can see it is one of the biggest problem here ..

Have you downloaded the newest version of busybox in the marked? This gives you a lot more commands then the first version posted with the initial root, one if them is vi.

thermoska said:
does anyone know how to add new commands to shell ? or it is possible to install bash or something similiar inside, once we have root now ?
this shell inside is really "cuted" and almost all "ordinary(standart)" command I am missing
e.g: more vi and so on
maybe it works in different way , if yes just correct me
Any try to help is appreciated , but please stay on topic. because I can see it is one of the biggest problem here ..
Click to expand...
Click to collapse
I did this:
Download bash binary from here: http://forum.xda-developers.com/showthread.php?t=537827
You can either replace the default "sh" with this (warning: the "sh" binary is the one that gives you root privileges in the first place, so you might loose them, I'm about to experiment with this and would post more details soon) or keep them both.
Download ASE from here: http://code.google.com/p/android-scripting/
This gives you an easy bridge to Android java using a scripting language of your preference.

When you use adb you will have VI and such available. I don't know much about the varios unix/linux shells available but I know that ADB is offering a lot of ****

Diabolico said:
When you use adb you will have VI and such available. I don't know much about the varios unix/linux shells available but I know that ADB is offering a lot of ****
Click to expand...
Click to collapse
no.. that's what busybox is for

Related

when a cooked rom??

When will it arrive?for 101 i mean
It won't happen until we get permanant root. No telling when that will happen.
a better question is, when will root be available, doesn't seem we have people with the right skills interested on the 101
Does the rageagainstthemachine root patch not work? Are you able to get to the /data/local directory and place something there that will allow for a flash_image command to be run? Do we know if they have the same type of hardware-level protection like HTC does?
EDIT: Can someone do the following:
1. download the rage zip enclosed, and unzip to it's own directory
2. run the following from your command prompt, assuming you have the Android SDK installed and in the path
adb push root/rageagainstthecage /data/local/tmp
adb shell
chmod 0755 /data/local/tmp/rageagainstthecage
./data/local/tmp/rageagainstthecage
Click to expand...
Click to collapse
It should kick you out and display some messages on the screen...just not errors. Then type:
adb shell
Click to expand...
Click to collapse
You Should see a "#".
If so, then we have temp root and then we should be able to perform some other functions like flash a recovery, etc....
Sent with my fingertips and voice on my Evo
jerdog said:
Does the rageagainstthemachine root patch not work? Are you able to get to the /data/local directory and place something there that will allow for a flash_image command to be run? Do we know if they have the same type of hardware-level protection like HTC does?
EDIT: Can someone do the following:
1. download the rage zip enclosed, and unzip to it's own directory
2. run the following from your command prompt, assuming you have the Android SDK installed and in the path
It should kick you out and display some messages on the screen...just not errors. Then type:
You Should see a "#".
If so, then we have temp root and then we should be able to perform some other functions like flash a recovery, etc....
Sent with my fingertips and voice on my Evo
Click to expand...
Click to collapse
It does not work as of the latest Archos firmware. All the previous firmwares/z4root work fine for temp root. The ADB device part of the Archos just never comes back (doesn't show in device manager for instance). I do not know if this helps, but Archos also has a crippled busybox and it seems furthered crippled as of the last firmware upgrade.
Tsusai said:
It does not work as of the latest Archos firmware. All the previous firmwares/z4root work fine for temp root. The ADB device part of the Archos just never comes back (doesn't show in device manager for instance). I do not know if this helps, but Archos also has a crippled busybox and it seems furthered crippled as of the last firmware upgrade.
Click to expand...
Click to collapse
Maybe have something to do with newer ARM architecture?
Sent with my fingertips and voice on my Evo
Why do you need permanent root?
Archos kindly released SDE which provides a way to install your own builds in dual boot.
Some links for more info:
http://forum.xda-developers.com/showthread.php?t=871335
http://www.openaos.org/
IRC #openaos on freenode
Maurice
The SDE require booting in recovery mode, and people said that it's often not perfect.
A permanent root for main OS would still be very useful, and still allow us to dual boot when we need to..
I think so too. PermaRoot would be very usefull.

Root method thru ADB with a Mac-Please

Can someone please list the correct steps line by line for us peeps with Mac computers. Maybe a stickie? Please. P.S. sorry if this was already posted somewhere but I could not find one relating to the MoPho.
Are you stuck anywhere in particular? Do you know how to use ADB? The only difference between windows and OSX when executing adb commands is needing to add ./ before adb
Ive used ADB back in the day to root the HTC Hero and knew there was that extra command to put but couldnt remember what it was. What u put ./ was what I forgot.
I rooted my photon from my mac and didn't need to use any special commands. I found a post online that explained how to create a hidden profile with a text document to the location of ADB on my comp and now when i go to terminal i don't need to CD to anything i just type adb and the command and it works like a charm i just copy pasted the commands from here into terminal.
laraiza said:
Ive used ADB back in the day to root the HTC Hero and knew there was that extra command to put but couldnt remember what it was. What u put ./ was what I forgot.
Click to expand...
Click to collapse
your welcome feel free to hit the thanks button
laraiza said:
Can someone please list the correct steps line by line for us peeps with Mac computers. Maybe a stickie? Please. P.S. sorry if this was already posted somewhere but I could not find one relating to the MoPho.
Click to expand...
Click to collapse
you should start a mac thread or request a mac section.

[Q] Howto upgrade the busybox properly ??

Hi,
I tried to upgrade the busybox with different manner (busybox, busybox installer, manual installation from xda), but no one works properly.
Each time i broke the original Archos busibox, so i lose the adb shell.
Can someone explain to me the good way to upgrade the busybox?
Thanks.
SirOch
Hi,
Nobody to explain a clean upgrade of the busybox?
cheers
SirOch said:
Hi,
Nobody to explain a clean upgrade of the busybox?
cheers
Click to expand...
Click to collapse
Google? also XDA has a great search feature have you tried that? :silly: Any particular reason why you want/need to upgrade busybox?
Hi,
As i said, i tried the different busybox installers and the installation was ok, but i each time, i lost the shell from adb.
That's just my problem.
So i just want to understand why the upgrade of the busybox broke the original archos busybox?
Moreover some application need to have other busybox installed.
Regards.
David
SirOch said:
Hi,
As i said, i tried the different busybox installers and the installation was ok, but i each time, i lost the shell from adb.
That's just my problem.
So i just want to understand why the upgrade of the busybox broke the original archos busybox?
Moreover some application need to have other busybox installed.
Regards.
David
Click to expand...
Click to collapse
Ahhh right, the quest for knowledge Your problem is as much to do with adb ( /sbin/adbd to be precise ) as it is to do with busybox, firstly you've probably wiped out the symlinks in /bin, especially /bin/sh which is the location that adbd on archos looks to run the when you do adb shell from your desktop. This is not the default location which just about every other android OEM adheares ,that is /system/bin/sh.
If you are going to upgrade the archos busybox be aware that a large number of symlinks back to /bin/busybox exist not only in /bin but also in /usr/bin /usr/sbin
Archos for reasons I still haven't fathomed, really went to town on restructuring and customized Android on the platform level.
A little tip if you've got more question, to save you bumping threads , which really does upset some folks round here... you'll probably get more more if you add more details, such as error messages etc. Saying " i lost the shell from adb." doesn't really help anyone who might be able to offer assistance. There about 10 different ways adb can fail to connect, Did the device disappear from the list or report as offline. or even come up with the message "- exec '/bin/sh' failed: No such file or directory (2) -".??
Hopefully that's helped.
Hi SirOrch,
i don't know why you loose your adb shell, but concerning busybox... the things on Archos tablets are like this:
Basically on a non rooted device we got a squashfs image mounted read only.
This image contains the stock busybox compiled by Archos (sharing system's uclibc) with limited functionality,
but containing enough tools to handle the daily job.
The path to this busybox is "hard-coded" as well. It's location is /bin which is the second entry in the path environment.
You might check that by typing printenv in your console.
The first entry should be /data/local/bin on your device.
So if you like to replace stock busybox with an advanced one, you should make sure that it will be installed to /data/local/bin.
Often there's no need to use all this apk Android Market stuff to get a proper busybox installation.
Sometimes it's little better to really understand what's happening under the hood.
Most busybox app's are statically linked, because with a static binary you don't have to take care of the device's libc or uclibc.
So you might easily extract on of the apk's or get one from xda-developers.
There are many floating around in the end.
If got one push it to /data/local/bin with adb.
You might need softlinks in this directory as well. This could be done by hand as well.
Anyway if you are a lazy person, who doesn't care about what's happening, go to the market install busybox.
Then check at /data/local/bin if it is there.
If it got installed elsewhere, some commands will still use stock busybox.
Extended commands might then use the installed one.
So check it out...
EDIT:
... aaaargh again simultaneous posting.
scholbert
Hi gentlemen,
Thanks for your help and sorry to forget to give you the error message i had:
the message was : - exec '/bin/sh' failed: No such file or directory (2) -
After investigation i found my mistake:
- In manual mode, i forget to change the ownership of busybox to root in /bin.
- when i tried to use any application from the market, the busybox was well updated in /system/xbin but the application also delete the busybox in /bin and don't change the symlinks in /bin. That's explain why adb shell won't work.
Regards.
SirOch

[Q] How to ROOT a A5 IMAPX820 tablet?? (ippo Y88)

Hello guys, i have a question here, i bought this tablet from Focalprice:
http://www.focalprice.com/CE0427B/Y...PX820_Dualcore_12GHz_Tablet_PC_with_WiFi.html
This tablet have the same specs of the Ippo Y88, BUT Y88 have 1.5ghz and mine have 1.2ghz, they use the SAME dualcore A5 processor, IMAPX820.
Well, i search on google, and use the tool here on XDA to find some information, but its impossible to find anything about this processor, and those tablets... I know they are simple tablets, but someone know if i can ROOT this thing using CWM and put some light ROM, or Cymod?
Thnaks for help, this forum is the best, and i love the Galaxy S3 forum!
This proc is new, or have some other name?
up
up.
too cheap to be rooted? xD
p_morales said:
up.
too cheap to be rooted? xD
Click to expand...
Click to collapse
Hehe, idk maybe this tablet is not so good, so none develop for it. ;x
p_morales said:
up.
too cheap to be rooted? xD
Click to expand...
Click to collapse
How is your answer supposed to help anybody? People buy cheap tablets for a lot of reasons, I bought this to use it for a home automation system and it's perfectly fit for this purpose.
I'm also interested in rooting it, so any information ( ROMs , ideas on how to root it or how to make a ROM dump without root, etc) would be much appreciated.
crwro said:
How is your answer supposed to help anybody? People buy cheap tablets for a lot of reasons, I bought this to use it for a home automation system and it's perfectly fit for this purpose.
I'm also interested in rooting it, so any information ( ROMs , ideas on how to root it or how to make a ROM dump without root, etc) would be much appreciated.
Click to expand...
Click to collapse
My answer helps as yours. I only wanted to say that Aldighieri is not the only person looking for a way to root it.
Maybe nobody will develop a rooting method for this kind of tablets, but there could be an existing method that works ¿isnt it? hope so.
Thanks all of u!
Calm down boys, hehe!
So, none know a way? Is impossible to root this thing? =/
Aldighieri said:
Calm down boys, hehe!
So, none know a way? Is impossible to root this thing? =/
Click to expand...
Click to collapse
If you or somebody else can provide/find the original ROM I might be able to root it. I'm not an expert but I've managed to root an "unrootable" android tv box once. I've asked the guys at focalprice for the ROM but they didn't answer my email and I don't have too much hope given their awful customer service.
Oh thanks! Ill try to find it with someone on ebay, or google, if i find it i tell you! Thanks! )
Same problem for me. Excelent tablet, bu timpossible to root. When I try (with different methods: unlockroot,z4root, superoneclick, root bin4ay, rootx...) a massage say that is rooted, but when I try to install Superuser don't work for me. Please, help!
I asked for sellers on ebay to try to find the rom with the providers, but have no awnser yet, if u can, try it too! ^^
Me too on focal price. If i know something, I will post about it. Is very a rare case...
Thanks.
Aldighieri said:
I asked for sellers on ebay to try to find the rom with the providers, but have no awnser yet, if u can, try it too! ^^
Click to expand...
Click to collapse
elefantino9 said:
Me too on focal price. If i know something, I will post about it. Is very a rare case...
Thanks.
Click to expand...
Click to collapse
Nice! Thanks!
Still no answer from focalprice on my side and I think the best chance to find the ROM is via ebay sellers. I've tried a few methods of rooting the tablet without any luck and I came to the conclusion (with my limited knowledge) that the problem is related to the file system the ROM is packed, which doesn't allow changing file permissions. I can't go further without risking bricking my tablet, but if we find the original ROM I may be able to unpack /repack it, changing the permissions in the process. It may be a long shot but it's worth a try.
Thanks everybody for your efforts!
Fast response from focalprice: a word file with how to use this tablet: on, off, mute, how listen to the music...wow!
IF you find the rom ok, but you can't use it because the recovery is not present on this tablet. If you can do somethins, please, post it.
Thanks :good:
crwro said:
Still no answer from focalprice on my side and I think the best chance to find the ROM is via ebay sellers. I've tried a few methods of rooting the tablet without any luck and I came to the conclusion (with my limited knowledge) that the problem is related to the file system the ROM is packed, which doesn't allow changing file permissions. I can't go further without risking bricking my tablet, but if we find the original ROM I may be able to unpack /repack it, changing the permissions in the process. It may be a long shot but it's worth a try.
Thanks everybody for your efforts!
Click to expand...
Click to collapse
Hello friends!
I'm completly frustated. Google is burned with my researches. I have found this video and I think that is our tablet, but this combination don't work for me. Any idea?
Thank you for the info. I've tried the method in the video and it doesn't work on my tablet either, so probably we have a different model. Even if there is no recovery mode as the guys from focalprice say, I am sure that the ROM can be updated/reinstalled somehow, via usb maybe?
I'll keep trying to make a ROM dump from my tablet and I'll post here if I succeed.
Aldighieri said:
Hello guys, i have a question here, i bought this tablet from Focalprice:
http://www.focalprice.com/CE0427B/Y...PX820_Dualcore_12GHz_Tablet_PC_with_WiFi.html
This tablet have the same specs of the Ippo Y88, BUT Y88 have 1.5ghz and mine have 1.2ghz, they use the SAME dualcore A5 processor, IMAPX820.
Well, i search on google, and use the tool here on XDA to find some information, but its impossible to find anything about this processor, and those tablets... I know they are simple tablets, but someone know if i can ROOT this thing using CWM and put some light ROM, or Cymod?
Thnaks for help, this forum is the best, and i love the Galaxy S3 forum!
Click to expand...
Click to collapse
Okay, I found a way to root it, but its on different device (Infotmic GF20). Firstly you have to enter recovery mode with adb (adb reboot recovery), then disconnect and reconnect usb cable, enter adb shell. If you have # as prompt, you can continue - it will work on your device too - if not, you have to obtain firmware from seller to root it. If you have #, type
Code:
ubiattach -m 1
busybox mount -tubifs /dev/ubi0_0 /system
Then exit adb shell, get su binaries and supersu app, and pull them to the device:
Code:
adb push su /system/xbin/
adb shell chown 0.0 /system/xbin/su
adb shell chmod 6755 /system/xbin/su
adb shell ln /system/xbin/su /system/bin/su
adb shell chown 0.0 /system/bin/su
adb shell chmod 6755 /system/bin/su
adb shell push supersu.apk /system/app/
Reboot device and it should work
OMG! Incredible!
My problem is the seller: they don't have the firmware, but I will try to understand all the process and I will try.
Thanks, thanks and thanks
lolet said:
Okay, I found a way to root it, but its on different device (Infotmic GF20). Firstly you have to enter recovery mode with adb (adb reboot recovery), then disconnect and reconnect usb cable, enter adb shell. If you have # as prompt, you can continue - it will work on your device too - if not, you have to obtain firmware from seller to root it. If you have #, type
Code:
ubiattach -m 1
busybox mount -tubifs /dev/ubi0_0 /system
Then exit adb shell, get su binaries and supersu app, and pull them to the device:
Code:
adb push su /system/xbin/
adb shell chown 0.0 /system/xbin/su
adb shell chmod 6755 /system/xbin/su
adb shell ln /system/xbin/su /system/bin/su
adb shell chown 0.0 /system/bin/su
adb shell chmod 6755 /system/bin/su
adb shell push supersu.apk /system/app/
Reboot device and it should work
Click to expand...
Click to collapse
Don't works for me. I can see the recovery (thanks), but when I unplug and plug the device, windows (xp) don't recognize the tablet. I use the Universal ADB drivers https://github.com/koush/UniversalAdbDriver, but I think that are the correct drivers. Any idea? Thanks! :good:
Here we have the solition, but I don't understand the recovery mode driver installation...

[Q] Superuser Command List

hi i want to know if exist a list of the SU commands ..i think it will be very useful to have it
Hi,
i think you got something wrong. There a linux commands an some need SU permission, thats all.
The available commands depends on the linux distribution you have, in our case android.
In PlayStore you can download TerminalEmulator
(https://play.google.com/store/apps/details?id=jackpal.androidterm&hl=de), this is first step for using linux commands directly.
I don't know the list of all available commands for android, maybe some will help us ...
bye

Categories

Resources