yashsingh1/xdaforums huggingface dataset:
[XPERIA X10 Android Development] leobg:
as for 1) you got it right -difference is firmware version only. 2) extra backup method is always good. Google sync is good enough anyways. 3) you need to remove the line that has permission setting for sh command near the bottom of the RootXa_v1.cmd file. It looks like this:

adb shell chmod 0755 /system/bin/sh

either comment it (rem) or remove it completely and you will retain the right to run privileged commands using adb without requesting root first (su).

You can always alter the permissions to secure/unsecure state by setting suid bit (sticky bit) on the sh command - "chmod 4755 /system/bin/sh" to switch to unsecure and "chmod 0755 /system/bin/sh" to switch to secure mode. For that you will need terminal app installed on the phone (or adb shell), you must request root (su) first, then you must mount /system directory in rw mode before you can set permissions for sh (mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system

).
[XPERIA X10 Android Development] karthigan:
Thanks..

Thanks for my answering my 3 questions.

Since I won't have the HTC Touch (HTC IME) keyboard, will the procedure have the original SE keyboard?

I just have to download the HTC IME latest version to my SD Card, and run it thru a file manager program, right? To Install it?

What regions are installed? Thus, I only want U.S. English Keyboard, no need for Chinese, Japanese, Korean, etc. keyboard layouts.
[XPERIA X10 Android Development] Grospolina:
Thank you leobg for helping out.

Yes, you'll have the original SE keyboard. For HTC IME, you can do that, or you can use adb. The command is:

adb install jonasl.ime.apk

adb install com.htc.clicker.apk

You can add the path and use "adb install" on any APK. For instance:

adb install C:\Root\step3\app\SetCPU.apk

As long as you set the setuid bit with "chmod 4755 /system/bin/sh", you can run cleanup.cmd from the original root package.

Google sync is okay for backing up contacts, but since your phone is already rooted, you can back up contacts, SMS, apps (including Market links!) and system settings if you download Titanium Backup from the Market. I thought the UI was a little intimidating at first, but it's not bad at all. Just press the Menu button, go to "Batch" and click "Backup all user apps + system data". Then just select what you want to keep. I basically uncheck all the red ones.

You can also uninstall system apps using Titanium Backup.
[XPERIA X10 Android Development] quangnhut123:
I /> Preparation:

First you load the re-compile exploid be here on your computer and unzip:

And the driver for X10Mini/Mini Pro at:

II /> Implementation:

- Install Sony Ericsson PC Companion.

- Select USB mode when connected to your computer is Charge only to deny the computer to read data from memory card when connected by USB

- Enable debugging USB device by going to Settings> Applications> Development and then connect your phone to your computer by USB.

- Add Power Control widgets in the widgets used in the device by going to Menu> Edit widgets> Add power control, to quickly enable or disable the wifi phone. (This step is to do or hok optional but recommended for quick and convenient way while hack)

- Copy the directory unpacked from exploid_x10mini was preparing to step on drive C: \ computer.

- On the Run> type cmd> Enter> to continue in the environment to the command line, type the following commands (each line is a command)

Right after typing the following command, you need to disable and enable wi-fi using the Power Control add widgets to this question was on the phone. Here is the need to type the next command:

After you type in to disable wifi command:

It will ask you to fill in password rootnow

If successful login from this step you have full root access right at this prompt will change to the #. Unfinished work we need to make a few more steps to decentralize the system again. Next type the following commands:

To check everything you did do the following:

- Type abd shell cmd command line on right side window has action h

- Type the command su, Superuser.apk at this file will run on the phone and asks whether to allow root access or not. If so then you have successfully hacked the phone 100% X10 Sony Mini / Mini Pro then that.

Wish you success! TUT made by quangnhut123

TUT have some reference materials on foreign linux and android!
[XPERIA X10 Android Development] Grospolina:
I don't mean to offend you, but this is exactly the same as the instructions in the original link, except that yours is much harder to read.

Also, this is the X10 forum, and your instructions are for the X10 mini (pro). There's a separate forum for that. The difference is that the "Power Control" widget is called "Quick Settings" on the X10.
[XPERIA X10 Android Development] leobg:
Grospolina, your script is almost perfect. Just tried it on my X10a. The only thing that did not work was the reboot at the end due to permissions, but that's because sh permissions are already changed to secure mode when you attempt reboot (that's after market fix). I would recommend you instead of struggle with the issue, instruct people to manually reboot the phone at this point.

Script is well done. Very fast and easy root! I would recommend it to anyone.
[XPERIA X10 Android Development] wiedz:
The thing i like most about this method is i can do it on my mac.
[XPERIA X10 Android Development] Grospolina:
Thanks for trying it out and reporting back! I really appreciate it.

I won't reboot after removing setui? I never would've guessed that. I have some changes planned - I just need to find some time. For now I'll update my previous post.
[XPERIA X10 Android Development] MarylandCookie:
If you plan on making changes you may aswell update the Market Fix file for x10i:

http://xdaforums.com/showpost.php?p=7442642&postcount=34

It has some minor tweaks to keep it inline with r2ba026 :)
[XPERIA X10 Android Development] Grospolina:
Thanks, I'll do that.
[XPERIA X10 Android Development] beerhugger:
trying to flash to R2BA026 i have windows 7 64bit and have folled the java fix but keep getting this pop up and cant seem to find out why. can someone help please.

Press any key to continue . . .

'java' is not recognized as an internal or external command,

operable program or batch file.

Press any key to continue . . .
[XPERIA X10 Android Development] somebloke:
Seriously why would you post that here ? What has that go to do with this new root method ?

Geez.. It gets so tiring reading people moaning about irrelevant threads but some people just don't open their eyes.

If you post in the correct thread you'll get some help.. although all the help you need is there as I've followed the instructions on w64 and it works fine.

Just to keep this OnTopic, I've now rooted 3 other phones with this method - using that excellent batch file. Soo easy to take a branded fw16 X10, do the SEUS Swap trick to 26 then root with this method. Awesome!
[XPERIA X10 Android Development] karthigan:
Flashed & Rooted Sucessfully...

Hi All!

I got my Rogers X10a successfully rooted & flashed to the R2BA026...thanks for the help...
[XPERIA X10 Android Development] Grospolina:
It's not completely irrelevant. My root package (above) uses X10Flash.jar to flash R2BA026 instead of SEUS, and that uses Java.

However, the question has been answered many times. The error means that Windows can't find Java. Either you need to add the path to your PATH environment variable, or you added it wrong.
[XPERIA X10 Android Development] ddewbofh:
I'm kind of curious. Why do people even bother with the old method any more? I know the new one works on a 026 updated stock X10i and by the looks of it older versions as well as the X10a. Why bother with a more complex and riskier procedure when you can just do three commands and root your phone with exactly zero chance of failure or brickage?
[XPERIA X10 Android Development] yn0724:
Absolutely agree with ddewbofh post #84.
[XPERIA X10 Android Development] Grospolina:
I think most people don't know that this thread has a new root method in it. The title makes people think that this is a root for X10 Mini/Pro. They don't realize that it also works on the X10. I think the OP should change the title.
[XPERIA X10 Android Development] zdzihu:
This topic needs to be stickied. There is no reason to use old method anymore.
[XPERIA X10 Android Development] SXUsr:
I've just reflashed and rooted using this method, but am stuck with pulling and pushing files now:confused: Can some list the commands now needed to change the framework-res, phonebook ect, as I just keep getting "adb not found". I have read an earlier post about the su command, but still can't figure it out.
[XPERIA X10 Android Development] MarylandCookie:
Have you set the correct permissions for shell to use the old scripts?

Try this:

chmod 4755 /system/bin/sh

and then you should be good to go :)

When your finished:

chmod 0755 /system/bin/sh to secure it back.
[XPERIA X10 Android Development] zdzihu:
Are you sure you're launching ADB from command line/terminal and NOT from the root console? Because the only way I can reproduce this error message is actually to attempt to start adb while connected to shell
[XPERIA X10 Android Development] Mano1982:
You guys should write a complete guide to root with this method in 1st post. It will help many specially noobs like me
[XPERIA X10 Android Development] IxXxI:
adb shell

su

rm /system/app/mox*

and each other ...

:)
[XPERIA X10 Android Development] SXUsr:
Not sure, I've just tried what I used to, example...

cd C:\android-sdk-windows\tools

adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system

adb pull /system/app/Mms.apk Mms.apk

adb push Mms.apk /sdcard/Mms.apk

adb shell dd if=/sdcard/Mms.apk of=/system/app/Mms.apk

...so I'm not sure where I should be adding your commands?
[XPERIA X10 Android Development] instigator008:
How do turn root access on again, from within the phone (terminal emulator), once you've run chmod 0755? I can't get su to run chmod 4755!
[XPERIA X10 Android Development] zdzihu:
I was right, according to picture attached, you're trying to run adb from within adb shell :)

After chmod 755 /system/bin/su you need to exit out of "su" and shell. Just follow with:

[...]

chmod 755 /system/bin/su

exit

exit

adb push Mms.apk /sdcard/Mms.apk

[...]
[XPERIA X10 Android Development] HunteronX:
For adb push, you need to put the whole directory path, and filename - like this:

e.g.

adb push C:\theme\Mms.apk /sdcard/Mms.apk

or if you have spaces in the directory path or filename, do this:

adb push "C:\theme folder with spaces\Mms.apk" /sdcard/Mms.apk
[XPERIA X10 Android Development] SXUsr:
I'm getting "permission" denied errors now:confused: I think I'll just reroot using the old method as that is simpler than trying to figure this out. :rolleyes:

Starting with cd C:\android-sdk-windows\tools, what exactly do I need to enter? What is simple to you isn't to me.

14:00 - Going back to the old method.
[XPERIA X10 Android Development] instigator008:
Its already as simple as it can be! Just copy and paste the commands!
[XPERIA X10 Android Development] ardf69:
If someone wants I did an application to root directly on the X10. It use the method of this thread. Maybe today or tomorrow I'll post the app with the sources.

Ciao Angelo
[XPERIA X10 Android Development] MarylandCookie:
Just trust me...

Do what i said and you will have the same setup as before.

Just dont secure it back with chmod 0755.

Or if you have rootexplorer, navigate to /system/bin/sh mount as r/w and long press to select permissions and change to: rwsr-xr-x

By the way i put the wrong info in my last post.. should be "chmod 4755 /system/bin/sh"
[XPERIA X10 Android Development] norberto_:
That would be nice! Pls upload the app.
[XPERIA X10 Android Development] Grospolina:
I've added a new script called Toggle_secure_shell.cmd. It basically tells you exactly what commands to enter in order to secure or unsecure 'sh'. Unfortunately, it can't do it for you (or else you wouldn't need it, obviously). It also shows you the permissions of 'sh' afterwards, so you can see if it's correct or not.

It's the ultimate hand-holding experience! ;)

http://xdaforums.com/showthread.php?p=7490733#post7490733

I'll upload the standalone script a little later. Right now, it's included in the exploid packages.

:eek: I just thought of something. For the securing part, I could make it do it automatically. It's just UNsecuring where you need to type it in yourself. I'll change it later.

EDIT: Updated and uploaded!
[XPERIA X10 Android Development] pietropizzi:
That's important

:)

I accidently made a chmod 0755 /system/bin/su before (not because of you) and I was locked out.

no adb shell --> su

no more superuser popup

rootexplorer was also denied now even it was granted before

so I ran the exploit again, did rootshell and only set permission for su again

Any other easy solution for people that lock themselves out or only just reroot (it's easy too)? THX
[XPERIA X10 Android Development] instigator008:
Good question, I am in the same situation but at work with no access to adb. Anything I can do from the phone only to get root back? I have the files on my SD card.
[XPERIA X10 Android Development] Grospolina:
I think you can do it if you have a terminal program like Better Terminal. I'm assuming that you have busybox installed. You're just doing the root exploit over again:

$ cd /sqlite_stmt_journals

$ ls (lists the files)

If exploid is missing and you need to copy it from your SD card:

$ busybox cp /sdcard/exploid /sqlite_stmt_journals/exploid

(modify the path to exploid if you copied it somewhere else e.g. /sdcard/rootstuff/exploid)

$ chmod 755 exploid

$ ./exploid

Turn Wi-Fi on and off.

$ rootshell

Password (echoed): rootnow

# chmod 4755 /system/bin/su

# exit

$ exit
[XPERIA X10 Android Development] leobg:
Do you notice you are in terminal (adb shell) already? You can't call adb program within terminal. Exit to Windows shell first then run adb whatever. Once you are running on device shell (# or $) you cannot use adb command - it is windows command!
[XPERIA X10 Android Development] karthigan:
Thanks...

Definitely, I recommend this procedure, it is the easiest to the date.

Plus, the commands are simple and very easy to follow-thru.

I am using Windows 7 64 bit & got the Java installed sucessfully. Plus, I am a bit expert with Linux style of OS, root functions / super user makes sense.
[XPERIA X10 Android Development] Sighx:
That would be great. Even with this simple way. i still think its too hard.

I can't even find that cmd window? lol .. I'm a total noob yea.. so that app would definitely be great ):
[XPERIA X10 Android Development] ardf69:
First version of the app

Here there is the first version of the app. Let me know if it works. I'll provide the sources tomorrow... I hope.

Ciao Angelo
[XPERIA X10 Android Development] cvchetan:
nice tht you put an apk to make it easy fr al..

i used this exploit with the latest(v 2.2) superuser.apk b'cos the exploid.zip has the old one(v 2.1).

so if you want you can update ur apk with the new files.

superuser.apk and su attached as single zip file

chetan
[XPERIA X10 Android Development] arizhasan:
Try this, use the start menu to find "cmd". When it does, right click on it and chose "run as administrator" then you'll have to get to the directory where the program is, and execute it. It won't flash and vanish anymore.
[XPERIA X10 Android Development] tuxStyle:
Pity they will fix this in 2.1 :)
[XPERIA X10 Android Development] instigator008:
Works great! Nice job!
[XPERIA X10 Android Development] Sighx:
So how would I use this? Sorry for the noobish question.

I installed the original 26 UK Generic on my x10a.

So I'm currently on x10i lol. But everything works fine.

How would I go of usin gthat apk. file?
[XPERIA X10 Android Development] instigator008:
The first thing you should do is decide if you really need root. Read up on what it is and what damage you can do i.e. messing with your file system etc.

If you still want it, download and install like any other app! Really is the most fool proof root method ever. Just make sure you have checked settings/applications/unknown sources to run non market apps like this.
[XPERIA X10 Android Development] gavin24:
Can anybody tell me if market fix is added in the root and if not how to get it

Thanks
[XPERIA X10 Android Development] Sighx:
Ha! If that's the case then I am good to go :D

Thanks :)
[XPERIA X10 Android Development] andyx8:
perfectly working on R2BA026. very nice...
[XPERIA X10 Android Development] Grospolina:
Yes. It's here:

Market fix for X10a/X10i R2BA026
[XPERIA X10 Android Development] charmz2k2:
hmm...

I have to say that I just tried it on my Orange branded handset one 020, and it says rooted, but then I tried to install a theme (Dark theme) and it wouldn't allow it... so it suggests that it's not worked?

Any way to confirm?
[XPERIA X10 Android Development] andyx8:
bad for you.
[XPERIA X10 Android Development] cvchetan:
connect phone in usb debug mode.

open cmd in win

type -->adb shell

then -->su

phone will ask super user permission

then type -->busybox whoami

answer should be unknown UID 0
[XPERIA X10 Android Development] charmz2k2:
Thanks for the constructive help CVChetan!!

I'll give this a try :)

EDIT

Just tried and it says

adb is not recognised as an internal or external command, operable program or batch file

.... What to do now??
[XPERIA X10 Android Development] cvchetan:
go to the sdk/tools(the folder where u dnloaded ur android sfk) folder and then try

or download android terminal emulator from the market

open it

type su

it will ask superuser permission

then type busybox whoami

should give UID 0

chetan
[XPERIA X10 Android Development] wai_lai416:
what's the latest fw on rogers?? i'm on R2BA020?? i thought it should be 024 or 026 =\
[XPERIA X10 Android Development] charmz2k2:
Hi CVChetan!

Android Terminal Emulator worked :)

It gave me UID 0..

But I still can't do anything with the dark theme or with cleaning the apps :(

But thank you so much for your help :)
[XPERIA X10 Android Development] gavin24:
Thanks but I still have 024, when I get the upgrade to 026 i'll try the market fix.

Thanks again
[XPERIA X10 Android Development] MxCraft:
Thanks for this exploid.

I have used the Exploid Root Packages. I have to launch the market fix but, and it works like a charm now.
[XPERIA X10 Android Development] ardf69:
X10Root 1.0.2

This is the new version of my apk of root.

Changelog:

- UI resizable for X10mini (I hope)

- Superuser.apk version 2.2.2

Let me know if it works.

Ciao Angelo

PS: the copying of the files is quite slow... be patient
[XPERIA X10 Android Development] norberto_:
Confirmed!!

Works great on X10 and X10Mini!

Thanks my friend!!

Best Regards!

Norberto
[XPERIA X10 Android Development] ardf69:
Version 1.0.3

Changelog:

- removed the debug option

- disabled rotation

Ciao Angelo
[XPERIA X10 Android Development] ardf69:
TODO

I don't know when I'll do but the next versions should do the deletion/backup of some app in system on request (eg Timescape, SemcIME etc) and the unroot on request.

Ciao Angelo
[XPERIA X10 Android Development] UserX10:
Very cool. Thx to all of you.

Rooted my 023 succesfully.

What a pitty that it doesnt work on 2.1.
[XPERIA X10 Android Development] Iglesias21:
Hi guys. Ok I have a problem. I have a debranded x10i with the uk generic 026 fw.

I tried this simple method of rooting and it says my device is now rooted. But I'm not sure if it worked. Titanium Backup says it doesn't have permission and that my device is not rooted. So I clicked on problems and tried downloading the busybox app/apk. whilst downloading it said failed. I searched for busybox in the market and it does not exist. When i use the wifi tethering program, ive followed the instructions, changed the lan configuration. and when i start the connection, it says failed, u must have busybox insalled and that i dont have permission (root access) to do this? What am I doing wrong and what should I do next. Any help will be greatly appreciated :)
[XPERIA X10 Android Development] ghidda:
kill titanium with task killer and try to work

is not solve remove and reinstall TB
[XPERIA X10 Android Development] Mobzter:
Try download busybox from market n c what happens!!
[XPERIA X10 Android Development] Iglesias21:
Busybox is not in the market. I've searched for it a number of times. I mean I'll try and search for the apk on the internet and see if that works for me. But I am really sure that the root didnt happen. I also just repaired my phone using SEUS. Tried the whole process again and still get the same error messages.
[XPERIA X10 Android Development] zdzihu:
Go into the market and search for "stericson", found bbox for me.
[XPERIA X10 Android Development] TechGuru_x10:
Please add Unroot.........
[XPERIA X10 Android Development] Iglesias21:
I searched for stericson. It came up with 5 apps. none of them busybox. so yeah, it's not in the market for me.
[XPERIA X10 Android Development] Iglesias21:
oh and my phone is most definitely not rooted as i did some checks and it came back with not rooted and permission denied. so yes, i've done everything by the book and still have not achieved root even though the app i used says it is rooted. weird :(
[XPERIA X10 Android Development] ardf69:
I think you must enable debug usb in settings >applications>develop in the home menu.

Ciao Angelo
[XPERIA X10 Android Development] vorospokol:
Ok !

I,am a stupid,but how can install app to sdcard to terminal emulator

Sorry :cool:
[XPERIA X10 Android Development] pshdo:
Works fine on my xxx26 firmware (X10i)

This works fine on my xxx26 firmware (X10i)
[XPERIA X10 Android Development] X10 User:
Hi everyone, when I run the root.apk it gets as far as wifi on, then stops.

Is there a way of fixing this?

Thanks
[XPERIA X10 Android Development] Shady.ak:
ive been working on this since yesterday night without any success :(

when im trying to install the application through astro file manager, im getting: X10 ROOT could not be installed on this phone.

Can you help me pls ? :S
[XPERIA X10 Android Development] phanquangkhanh:
I'm on 026 firmware. after rooted my devices with this method, I cannot use ADB to remove apps. It showed "mount : operation not permitted". how can I overcome this ?
[XPERIA X10 Android Development] instigator008:
Do you have debugging enabled?
[XPERIA X10 Android Development] instigator008:
Make sure unknown sources is checked under settings/applications.
[XPERIA X10 Android Development] Shady.ak:
yea it was always checked.

btw when i downloaded the APP file from this thread :http://xdaforums.com/showpost.php?p=7552272&postcount=131

the file was a .php extension (attachment.php)

then i changed the extension to .apk

and here im, i really dont know why im getting this error.

im on R2BA026 - UK GENERIC
[XPERIA X10 Android Development] ddewbofh:
You can't right-click and download, you'll have to click the link. That'll work.
[XPERIA X10 Android Development] phanquangkhanh:
yes, debugging. I tried many times.

just a moment, I used terminal on my phone to remove apps. It worked perfectly. After rebooting, using terminal again, it fail.
[XPERIA X10 Android Development] Shady.ak:
no i didnt right click and download. Im hitting the link and in both my laptop and my phone im getting a 625kb file but an .php extension
[XPERIA X10 Android Development] ddewbofh:
That is very weird. Chances are that the browser, for some reason, thinks that the link is a php file and downloads it as a text file. The problem is that it's a binary file and that's what the apk installer requires.

Can you try another browser? I've used both chrome and firefox to download attachements from here without any problems.