Superuser.apk - XPERIA X10 Android Development

I have successfully installed a Superuser.apk but it does not seem to be working properly. Titanium reports that Su does not elevate to root.
I have debugging enabled and I have connected through adb shell but nothing seems to work.
Anyone have any success? If so, which version did you use?

Here is my method
I download 2nd link from here :
http://forum.xda-developers.com/showthread.php?t=682828
After unzip (E:\Android\ROOT\step4\ directory for my example) :
adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system
adb push E:\Android\ROOT\step4\system\bin\su /system/bin/su
adb shell chmod 6777 /system/bin/su
adb install E:\Android\ROOT\step4\system\app\Superuser.apk
adb reboot

trying this now, will report

thanks a lot works like a charm..

i can confirm this works perfect

very good... spread 30min to install it yesterday night...

Will be included in new version. Sorry just forgotten
Regards
Bin4ry

You make very good job so no problem for that
Thank a lot for your hard work !

gibou13 said:
Here is my method
I download 2nd link from here :
http://forum.xda-developers.com/showthread.php?t=682828
After unzip (E:\Android\ROOT\step4\ directory for my example) :
adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system
adb push E:\Android\ROOT\step4\system\bin\su /system/bin/su
adb shell chmod 6777 /system/bin/su
adb install E:\Android\ROOT\step4\system\app\Superuser.apk
adb reboot
Click to expand...
Click to collapse
I am trying to do same thing with mediascape , but I get error
"Failure [INSTALL_FAILED_DEXOPT]", I am reading on google that its something related to the .odex file, how can I install/or whatever I have to do in order to be able to put mediascape back.
I know I just could restore and than root again and remove rm command for mediascape from ch file, but I am trying to remove more branding apps of telenor firmware and flash and root again with clean system.
PS: Messing with my phone as I don't have any knowledge in programming...just google.
Thx

Hi
You can try to do this :
adb shell
su
mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system
cd /system/app
cp /sdcard/apps/mediascape* .
cp /sdcard/apps/MediascapePluginManager* .
reboot

gibou13 said:
Hi
You can try to do this :
adb shell
su
mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system
cd /system/app
cp /sdcard/apps/mediascape* .
cp /sdcard/apps/MediascapePluginManager* .
reboot
Click to expand...
Click to collapse
never mind guys Jerpelea posted how to do it.
jerpelea said:
restore mediascape (from step4 folder)
adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system
adb shell dd if=/sdcard/apps/MediascapePluginManager.apk of=/system/app/MediascapePluginManager.apk
adb shell dd if=/sdcard/apps/MediascapePluginManager.odex of=/system/app/MediascapePluginManager.odex
adb shell chmod 644 /system/app/MediascapePluginManager*
adb shell dd if=/sdcard/apps/mediascape.apk of=/system/app/mediascape.apk
adb shell dd if=/sdcard/apps/mediascape.odex of=/system/app/mediascape.odex
adb shell chmod 644 /system/app/mediascape*
adb shell reboot
Click to expand...
Click to collapse
I got mediascape back as I did't find better media explorer.
One thing can anyone explain what this lines of code mean(Jerpelea's mediascape restore), each separate if u can, I am trying to understand. As I said I am no programmer but I like to learn.
Thanks.

I've tried doing this 4 times... and it's not working ^^;;
Is it missing a step? Or is this all that I need to do?
I get no errors when doing it yet the program isn't working a shown in the screens realunited... ^^;

taye look into the second post of the guide thread -- it has all the info necessary, else: poke me on irc

gibou13 said:
Here is my method
I download 2nd link from here :
http://forum.xda-developers.com/showthread.php?t=682828
After unzip (E:\Android\ROOT\step4\ directory for my example) :
adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system
adb push E:\Android\ROOT\step4\system\bin\su /system/bin/su
adb shell chmod 6777 /system/bin/su
adb install E:\Android\ROOT\step4\system\app\Superuser.apk
adb reboot
Click to expand...
Click to collapse
sorry for this very very noob question...
where i try this command?
at windows?
or at my android device with better terminal?
done...
i trying it my self..
sorry for my noob question...
anyway i still don't know how to use superuser lol....

greatermushasi said:
sorry for this very very noob question...
where i try this command?
at windows?
or at my android device with better terminal?
done...
i trying it my self..
sorry for my noob question...
anyway i still don't know how to use superuser lol....
Click to expand...
Click to collapse
It's done from a windows dos prompt. In windows, click on START > RUN > then enter CMD. Next do as mentioned. Happy entering

Confirmed... works for me as well.

Related

busybox and custom roms

Hi,
since a few days I have my first andriod mobile the HTC Hero. I have rooted it and everything works fine.
However, I found several interesting images for the G1 (JesusFreke or CyanogenMOD and so on). I suppose that they will not run on the HTC Hero :-( (yet). Sombody know if there is someone working on it? A google search is not that easy because the most roms are based on the HTC Hero sence and so you can easy find 100 hits with hero but all roms are not for the hero itself.
Does somebody have busybox running on the hero? I searched for a while but found nothing Hero specific. My first try to use a exiting manual for G1 did not work without problems. The most manuals are old and suggest to use a custom rom which include busybox.
Maybe someone has a hint for me
I want to test debian but the istaller use cp and so on. So busybox is a good starting point.
Cheers
Visios
download the attachment (busybox taken from cyanogen's rom), extract busybox and copy it to sdcard, then (if you have root):
Code:
adb shell
su
mount -o remount,rw /dev/block/mtdblock3 /system
dd if=/sdcard/busybox of=/system/bin/busybox
chmod 4755 /system/bin/busybox
mount -o remount,ro /dev/block/mtdblock3 /system
enlightener said:
download the attachment (busybox taken from cyanogen's rom), extract busybox and copy it to sdcard, then (if you have root):
Code:
adb shell
su
mount -o remount,rw /dev/block/mtdblock3 /system
dd if=/sdcard/busybox of=/system/bin/busybox
chmod 4755 /system/bin/busybox
mount -o remount,ro /dev/block/mtdblock3 /system
Click to expand...
Click to collapse
tx for your info and the extracted busybox bin. It worked without any problem.
Do you have tried to use busybox install and export the path ?
enlightener said:
download the attachment (busybox taken from cyanogen's rom), extract busybox and copy it to sdcard, then (if you have root):
Code:
adb shell
su
mount -o remount,rw /dev/block/mtdblock3 /system
dd if=/sdcard/busybox of=/system/bin/busybox
chmod 4755 /system/bin/busybox
mount -o remount,ro /dev/block/mtdblock3 /system
Click to expand...
Click to collapse
when i type adb shell it says
adb permission denied..
Help please
Yeah, I could google it but I'll just ask here instead, busybox - what's it good for?
It provides a lot of the standard Linux/Unix utilities - such as cp, rm, df, ls, ps, grep, etc. The toolbox program provided in the HTC ROM is a "crippled" replacement for busybox and doesn't have some of the functionality. For example, Market Enabler doesn't work with the stock ROM because toolbox doesn't provide the grep utility.
BlueHawk said:
It provides a lot of the standard Linux/Unix utilities - such as cp, rm, df, ls, ps, grep, etc. The toolbox program provided in the HTC ROM is a "crippled" replacement for busybox and doesn't have some of the functionality. For example, Market Enabler doesn't work with the stock ROM because toolbox doesn't provide the grep utility.
Click to expand...
Click to collapse
Oh, I see. Well explained, sir!
Busybox 1.15.3 for android for anyone interrested:
Code:
[URL="http://www.mediafire.com/?wcknmnhtin0"]http://www.mediafire.com/?wcknmnhtin0[/URL]
Does anybody know what version of Busybox is in the original post?
And if I want to upgrade, should I just follow the instructions over again with the newer version?
enlightener said:
download the attachment (busybox taken from cyanogen's rom), extract busybox and copy it to sdcard, then (if you have root):
Code:
adb shell
su
mount -o remount,rw /dev/block/mtdblock3 /system
dd if=/sdcard/busybox of=/system/bin/busybox
chmod 4755 /system/bin/busybox
mount -o remount,ro /dev/block/mtdblock3 /system
Click to expand...
Click to collapse
Sorry for the newb question but... where do I type this stuff?
jpmi23 said:
Sorry for the newb question but... where do I type this stuff?
Click to expand...
Click to collapse
on a command line on your pc. this is not the right place to start for you, get a guide on how to setup adb on your pc first.
Wow. "abd". That's a new term now isn't it.
Ok. I'll skip it. Just looking to control my Samsung Moment on my PC like I was able to with my WM phones.
I'll keep looking around. Thanks for the help.

[Q] problems modifying apks?

hey guys,
ive just started to learn how to modify apks and use adb.
my problem is that after i pull the file, i modify the icon i want to change, re-sign it and push it back to the phone. after i reinstall, the icons have not changed :S i re-pulled it, and the icons in the drawable_hdpi file are the one i wanted.
also, completely unrelated to that.... in adb when i try to run adb remount, it says permission denied, but im rooted and i even tried running the shell root beforehand aswell.
i ran a search and followed the various instructions from the different threads and forums but im just stuck at that point
thanks guys
kylec said:
also, completely unrelated to that.... in adb when i try to run adb remount, it says permission denied, but im rooted and i even tried running the shell root beforehand aswell.
Click to expand...
Click to collapse
If you're getting permission denied how have you pushed it back?
XperiaX10iUser said:
If you're getting permission denied how have you pushed it back?
Click to expand...
Click to collapse
i push it to the sdcard lol because it wont let me push to the system/app folder nor the data/app folder. i check my screen and a pop up appears saying that superuser granted access, so i have that.
kylec said:
i push it to the sdcard lol because it wont let me push to the system/app folder nor the data/app folder.
Click to expand...
Click to collapse
Then it's no wonder your icons haven't changed if you haven't installed it to the phone.
Try, but keep your phones screen on whilst you try it...
adb shell (enter)
su (enter)
...allow super user access on phone...
mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system
XperiaX10iUser said:
Then it's no wonder your icons haven't changed if you haven't installed it to the phone.
Try, but keep your phones screen on whilst you try it...
adb shell (enter)
su (enter)
...allow super user access on phone...
mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system
Click to expand...
Click to collapse
ok i just tried that. when i typed su, it echoed and on my phone it said "unknown has been grandted superuser permissions" so i didnt need to click allow or anything.
then i typed the mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system and got mount: operation not permitted
any ideas?
kylec said:
any ideas?
Click to expand...
Click to collapse
Try...
cd C:\android-sdk-windows\tools
adb shell
su
chmod 4755 /system/bin/sh
mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system
...and report back.
XperiaX10iUser said:
Try...
cd C:\android-sdk-windows\tools
adb shell
su
chmod 4755 /system/bin/sh
mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system
...and report back.
Click to expand...
Click to collapse
yup that worked, i got an echo without errors
EDIT: ok after that i then tried to push the apk to the system/app and also the data/app folders, but i got a different error this time.
it said failed to copy .apk permission denied
kylec said:
it said failed to copy .apk permission denied
Click to expand...
Click to collapse
Try, in a terminal on the phone...
su
chmod 4755 /system/bin/sh
I always struggle trying to get permissions after I've first rooted but can never remember the exact sequence, but do know it's a combination of what I've suggested.
XperiaX10iUser said:
Try, in a terminal on the phone...
su
chmod 4755 /system/bin/sh
I always struggle trying to get permissions after I've first rooted but can never remember the exact sequence, but do know it's a combination of what I've suggested.
Click to expand...
Click to collapse
ill give it a try after uni lol. thanks for all the help mate, its awesome having a place to get advice and help
EDIT: finally got it working... i pushed the file to sdcard then used the terminal emulator and used:
su
mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system
cd sdcard
cat x.apk /data/app/x.apk
and that worked perfectly lol

[Q] 2.1 Permanent Shell Root?

Is there a way of doing this yet?
Or do we have to shell root after each reboot?
Bump...
Someone gotta know this?
arkedk said:
Is there a way of doing this yet?
Or do we have to shell root after each reboot?
Click to expand...
Click to collapse
Since I starting using Z4Root never had to do a shell root. Done flash, push apps with AC-SWM and the optimizer. Also used ADB method to change build.prop.
Before that used SuperOneClick to root and shell root, sometimes took MANY interations to get to take.
Try using Chewitt's Installer.
Or in your prompt, write:
Code:
adb shell
su
mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system
chmod 4755 /system/bin/sh

[TUT] How to root teh X10 Mini (e10i).

I know there has been a lot of tutorials how to root the Xperia X10 mini. But almost a lot of them don't work (for me). But there is one way to root it.
It is very simple, you need to follow the instructions, then it will be easy.
1.) We need to download Android SDK, link: http://developer.android.com/sdk/index.html
2.) We need to download SuperOneClick.rar, link: http://shortfuse.org/
3.) Unzip the SuperOneClick .zip and pull out the su-v3, busybox, Superuser.apk, psneuter, and GingerBreak files, and rename the su-v3 into su, and place all the files in adt-bundle-windows-x86-20130219/sdk/platform-tools. I recommend changing the "adt-bundle-windows-x86-20130219" to something simple like "Android SDK".
4.) Now, you have to use CMD, open it, and type the location of your files, type like this, cd C:/Users/Me/Desktop/Android SDK/sdk/platform-tools.
5.) Now plug in your phone, and make sure your debugging and unknown sources are on.
6.) Now write all the following commands, one at a time!
adb devices
adb push psneuter /data/local/tmp
adb shell
$ cd /data/local/tmp
$ chmod 777 psneuter
$ ./psneuter
adb kill-server
adb devices
adb shell
# mount -o remount,rw -t rfs /dev/block/st19 /system
# exit
adb push busybox /system/bin
adb push su /system/bin
adb install Superuser.apk
adb shell
# chmod 4755 /system/bin/busybox
# chmod 4755 /system/bin/su
# mount -o remount,ro -t rfs /dev/block/st19 /system
# exit
adb reboot
And now u are all done! Your phone will reboot, then download Root Checker, and check if you are rooted.
If you write "adb shell" and you don't get "#" in the ending (not the beginning) but "$" then you have done something wrong, check everything that I wrote. If u have some problems, don't be shy to tell me.
Thanks a bunch, this tutorial was the only one that worked for me. What's more, I saw the procedure step-by-step so I saw exactly what was going on.

shell root

any way to shell root any android device to get root access "#" , may be this might have been discussed many times .. I tried lot of ways but none works ..
stiphen said:
any way to shell root any android device to get root access "#" , may be this might have been discussed many times .. I tried lot of ways but none works ..
Click to expand...
Click to collapse
Rooting Android Wear?
jellycoder said:
Rooting Android Wear?
Click to expand...
Click to collapse
i just want to get # instead of $
stiphen said:
i just want to get # instead of $
Click to expand...
Click to collapse
I don't understand what you are trying to say. Kindly define your problem.
stiphen said:
any way to shell root any android device to get root access "#" , may be this might have been discussed many times .. I tried lot of ways but none works ..
Click to expand...
Click to collapse
Sure it's called root, To get full time shell root you unpack your boot.img change the default.prop to insecure repack and flash.
Just like below.
Code:
[email protected]:~/Desktop$ adb shell
[email protected]:/ #
jellycoder said:
I don't understand what you are trying to say. Kindly define your problem.
Click to expand...
Click to collapse
i tried below commands , superuser.apk gets installed and even devices reboots but i still not get root access "#"
Code:
adb devices
adb push psneuter /data/local/tmp
adb shell
$ cd /data/local/tmp
$ chmod 777 psneuter
$ ./psneuter
adb kill-server
adb devices
adb shell
# mount -o remount,rw -t rfs /dev/block/st19 /system
# exit
adb push busybox /system/bin
adb push su /system/bin
adb install Superuser.apk
adb shell
# chmod 4755 /system/bin/busybox
# chmod 4755 /system/bin/su
# mount -o remount,ro -t rfs /dev/block/st19 /system
# exit
adb reboot
stiphen said:
i tried below commands , superuser.apk gets installed and even devices reboots but i still not get root access "#"
Code:
adb devices
adb push psneuter /data/local/tmp
adb shell
$ cd /data/local/tmp
$ chmod 777 psneuter
$ ./psneuter
adb kill-server
adb devices
adb shell
# mount -o remount,rw -t rfs /dev/block/st19 /system
# exit
adb push busybox /system/bin
adb push su /system/bin
adb install Superuser.apk
adb shell
# chmod 4755 /system/bin/busybox
# chmod 4755 /system/bin/su
# mount -o remount,ro -t rfs /dev/block/st19 /system
# exit
adb reboot
Click to expand...
Click to collapse
Try
adb shell
su
vampirefo said:
Try
adb shell
su
Click to expand...
Click to collapse
/system/bin/sh: su: not found
stiphen said:
/system/bin/sh: su: not found
Click to expand...
Click to collapse
you have to have su for # to work.
vampirefo said:
you have to have su for # to work.
Click to expand...
Click to collapse
ok thanks i rooted my device with Impactor
stiphen said:
ok thanks i rooted my device with Impactor
Click to expand...
Click to collapse
Adbd insecure app also works. In your shell, just type SU and accept the SuperSU/SuperUser prompt

Categories

Resources