yashsingh1/xdaforums huggingface dataset:
[Sony Tablet S] WonderEkin:
The first part of logcat is missing

Run "adba logcat > log.txt" and post again
[Sony Tablet S] TypoCorrecto:
I've closed everything down...I'll try again tomorrow, I'm tired...

Thanks for your assistance...
[Sony Tablet S] WonderEkin:
You don't have write access yet.

Try reboot the tablet and retry the first steps
[Sony Tablet S] excentra:
thanks ill give it another try now

---------- Post added at 05:16 AM ---------- Previous post was at 04:57 AM ----------

i got now to another issue here thanks you so much for patience

c:\Sony>adb shell am start -n com.android.vpndialogs/.Term

Starting: Intent { cmp=com.android.vpndialogs/.Term }

Error type 3

Error: Activity class {com.android.vpndialogs/com.android.vpndialogs.Term} does

not exist.
[Sony Tablet S] papacarla:
So, the problem maybe is about drivers?

If it is, I could not get the access to tablet's memory in window's explorer, but I can.

Did anyone meet such prob?
[Sony Tablet S] WonderEkin:
Can you execute "adb logcat > log.txt" and upload the log.txt?

And which firmware are you using? US firmware?
[Sony Tablet S] WonderEkin:
MTP device(you tablet memory) and adb interface are different.

Can you find any unrecognized device in the device manager?
[Sony Tablet S] _kyo_:
Many thanks, my Tablet is now rooted :good:.

just follow the commands step by step
[Sony Tablet S] gordo79:
Having similar issues I can't get restore settings. ab to work
[Sony Tablet S] hellolee:
Does it support 4.0.3 release1a? How about just release1?
[Sony Tablet S] Tikki Pon:
Maaaaaan

Im too stuck in this part,i cant injected the terminal emulator to sony tablet s...someone heeeeeeeeeeeelp meeeeeeeeeeeee

PLZZZZZZZZZ
[Sony Tablet S] hecko:
same problem

i´m not able to start injectet emulator

id report is in ATTACH FILE

please help me...
[Sony Tablet S] WonderEkin:
For those Tablet S firmware version is not US version, or got the error after execute "adb shell am start -n com.android.vpndialogs/.Term"

adb shell am start -n com.android.vpndialogs/.Term
[COLOR="DarkGreen"]Starting: Intent { cmp=com.android.vpndialogs/.Term }
Error type 3
Error: Activity class {com.android.vpndialogs/com.android.vpndialogs.Term} does not exist.[/COLOR]

The VpnFaker.apk is needed to be resign.

Here's the resign method: (Sorry that I don't have my Tablet S on hand today...)

Install "ZipSigner 2" to your tablet. link

On your PC, open VpnFaker.apk by 7zip, delete folder "META-INF"

copy the VpnFaker.apk to /sdcard, rename it

adb push VpnFaker.apk /sdcard/VpnFaker_unsign.apk

Open "ZipSigner 2" on your tablet.

Press the "Input" button and browse /sdcard/VpnFaker_unsign.apk

Press the "Output" button and save it as /sdcard/VpnFaker.apk

Key/mode select "platform"

Press "Sign the file"

copy the resigned apk back to you PC

adb pull /sdcard/VpnFaker.apk

For those who has already tried to inject the VpnFaker.apk, please rollback by the following command. Otherwise, skip this part.

adb shell
cd /data
mv system system3
mv system- system
mv app app3
mv app- app

Redo the process again.
[Sony Tablet S] rrlu21:
How to type "id" in the terminal emulator?

I pressed "Toggle soft keyboard" but no response =(
[Sony Tablet S] rrlu21:
Hi WonderEkin

I followed each step of your instruction and stuck at "mv system system-" as pic attached shown:

Please kindly give your advice, thanks!

PS: After I pressed "Restore" and reboot, all my app data was wiped out, my tab was reset to factory status.........

======================

update

after use your rollback code, it's okay now

I'm in the terminal emulator phase.
[Sony Tablet S] papacarla:
There is an android adb interface in windows hardware. But adb does not see any attached devices :(
[Sony Tablet S] Bazoocaze:
ro.product.model=SGPT111US/S

Signed the VpnFaker apk like you said, but no luck.

C:\Dados\ADB>adb shell am start -n com.android.vpndialogs/.Term
Starting: Intent { cmp=com.android.vpndialogs/.Term }
Error type 3
Error: Activity class {com.android.vpndialogs/com.android.vpndialogs.Term} does not exist.

Interesting entries in logcat:

I/installd( 102): new connection
I/Installer( 164): connecting...
I/PackageManager( 164): /data/app/VpnFaker.apk changed; collecting certs
W/PackageManager( 164): Application package com.android.vpndialogs already installed. Skipping duplicate.
W/PackageManager( 164): replace old version
I/PackageManager( 164): Time to scan packages: 2.797 seconds

After reboot, the entry "updated" for vpndialogs in packages.xml vanishes, and the entry "package" was automatically changed to the /system apk:

C:\Dados\ADB>adb shell
shell@android:/ $ /data/local/tmp/busybox grep vpndialogs /data/system/packages.xml
pndialogs /data/system/packages.xml <
<package name="com.android.vpndialogs" codePath="/system/app/VpnDialogs.apk" nativeLibraryPath="/data/data/com.android.v
pndialogs/lib" flags="1" ft="139a36b35e0" it="13697e97fe0" ut="139a36b35e0" version="15" sharedUserId="1000">
shell@android:/ $
[Sony Tablet S] papacarla:
Try to reinstall drivers.

I've got the worked adb.

But I've got another prob. Like that:

C:\...\ADB>adb shell am start -n com.android.vpndialogs/.Term
Starting: Intent { cmp=com.android.vpndialogs/.Term }
Error type 3
Error: Activity class {com.android.vpndialogs/com.android.vpndialogs.Term} does not exist.

So, I've signed VPNFake.apk a few times but I have not luck:crying:
[Sony Tablet S] gordo79:
Ok got adb working properly,what is the correct command that follows rm -r a
[Sony Tablet S] fishman8:
I also get the error (.Term does not exist) with my Sony Tablet P 4.0.3 :crying:
[Sony Tablet S] TomaHawk93:
I had also the "system2 - access denied" problem, but i solved it after i tried it a second time. This time i made every step more carefull then the last time, et voila -> ROOT!

So if you also get this, just try it again (maybe with a partner who checks every step a second time) and your problem should be solved.

PS: If you are using Win 8 like me, try to do it in Testmode and make sure you run cmd with admin rights ;)
[Sony Tablet S] WonderEkin:
Strange, I only got that error when I use other tools to resign the Vpnfaker.apk...
[Sony Tablet S] papacarla:
I have such permissions when I check the datetime

-rw-rw-rw- shell shell 200436 2012-08-27 00:00 VpnFaker.apk
shell@android:/data $

Is it correct?
[Sony Tablet S] WonderEkin:
It's ok, please go ahead
[Sony Tablet S] _kyo_:
in my case terminal emulator was already installed in my tablet,

install terminal emulator from market and try again, MAY BE this time it will works
[Sony Tablet S] papacarla:
When I make a double check I'm getting this:

shell@android:/data $ /data/local/tmp/busybox sed -f /data/local/tmp/packages.xm
l.sed system-/packages.xml > system/packages.xml
tem-/packages.xml > system/packages.xml <
shell@android:/data $ /data/local/tmp/busybox grep vpndialogs system/packages.xm
l
vpndialogs system/packages.xml <
<updated-package name="com.android.vpndialogs" codePath="/system/app/VpnDialogs.
apk" nativeLibraryPath="/data/data/com.android.vpndialogs/lib" flags="1" ft="138
eca45cd8" it="138eca45cd8" ut="138eca45cd8" version="15" sharedUserId="1000">
<package name="com.android.vpndialogs" codePath="/data/app/VpnFaker.apk" nativeL
ibraryPath="/data/data/com.android.vpndialogs/lib" flags="1" ft="1396560b400" it
="1396560b400" ut="1396560b400" version="45" sharedUserId="1000">
shell@android:/data $

After that, when i make :

C:\Users\Buk\Documents\Разное\AndroidSoft\Tablet_S_Rootkit>adb reboot

C:\Users\Buk\Documents\Разное\AndroidSoft\Tablet_S_Rootkit>adb shell am start -n
com.android.vpndialogs/.Term
Starting: Intent { cmp=com.android.vpndialogs/.Term }
Error type 3
Error: Activity class {com.android.vpndialogs/com.android.vpndialogs.Term} does
not exist.

And after when i try the rollback i'm getting this:silly:

C:\Users\Buk\Documents\Разное\AndroidSoft\Tablet_S_Rootkit>adb shell
shell@android:/ $ cd /data
cd /data
shell@android:/data $ mv system system3
mv system system3
failed on 'system' - Permission denied
255|shell@android:/data $ mv system- system
mv system- system
failed on 'system-' - Permission denied
255|shell@android:/data $ mv app app3
mv app app3
failed on 'app' - Permission denied
255|shell@android:/data $ mv app- app
mv app- app
failed on 'app-' - Permission denied
255|shell@android:/data $

What I'm doing wrong?:confused:
[Sony Tablet S] WonderEkin:
Get the/data access first

adb restore settings.ab

Check the result

adb shell ls -ld /data/data/com.android.settings/a
[I][COLOR="DarkGreen"]drwxrwxrwx system system a[/COLOR][/I]

And continue, ignore the "rm -r a" permission denied error

adb shell
cd /data/data/com.android.settings
rm -r a
while : ; do ln -s /data a/file99; done

While the loop is running, open another cmd console and run

adb restore settings.ab

Once the restore process is completed, you can press CTRL+C on the 1st cmd console to break the loop
[Sony Tablet S] papacarla:
I've did already, and All is working
[Sony Tablet S] excentra:
i have hit a dead end after a adb reboot "Once the restore process is completed, you can press CTRL+C on the 1st cmd console to break the loop

Check the /data permission" "link failed File exists

link failed File exists

^C

c:\Sony>adb shell ls -ld /data

drwxrwx--x system system 2012-09-15 08:57 data"

i have repeated several times but i just keep getting the same error
[Sony Tablet S] gordo79:
Sweet as I have root,dont know what the issue was just worked third try
[Sony Tablet S] TypoCorrecto:
I was getting this:

adb shell am start -n com.android.vpndialogs/.Term

Starting: Intent { cmp=com.android.vpndialogs/.Term }

Error type 3

Error: Activity class {com.android.vpndialogs/com.android.vpndialogs.Term} does not exist.

I have a Tablet S, US Tablet, US Firmware, what am I suppose to do with the VpnFaker.apk?

"For those who are no using the US firmware, the attached VpnFaker.apk may not suitable for your tablet.

Please follow this steps(click me) to resign the VpnFaker.apk. Thanks."

Not clear to me...
[Sony Tablet S] Tikki Pon:
Ok...its android terminal emulator (blue) or terminal emulator (black)?

Cause i install the android terminal emulator from market but it dont works
[Sony Tablet S] TypoCorrecto:
Still no luck...

Tried it both ways, followed instructions and I still end up here:

adb shell am start -n com.android.vpndialogs/.Term

Starting: Intent { cmp=com.android.vpndialogs/.Term }

Error type 3

Error: Activity class {com.android.vpndialogs/com.android.vpndialogs.Term} does not exist.

US old Tablet S, US Firmware...Is there anyone with a US tablet that has been able to root this way?
[Sony Tablet S] _kyo_:
its blue :)

but chek the first post

have you a US firmware ?
[Sony Tablet S] daniel910821:
HI, i'm having the error o the injecto comand, i've used the vpn provided on the post, and the one i signed by myself, this is my logcat.

Thanks in advance for your help

Update:

When i try to generate the xml i get this differente from tut:

<updated-package name="com.android.vpndialogs" codePath="/system/app/VpnDialogs.apk" nativeLibraryPath="/data/data/com.android.vpndialogs/lib" flags="1" ft="[B]13908d9b100[/B]" it="[B]13908d9b100[/B]" ut="[B]13908d9b100[/B]" version="15" sharedUserId="1000">
<package name="com.android.vpndialogs" codePath="/data/app/VpnFaker.apk" nativeLibraryPath="/data/data/com.android.vpndialogs/lib" flags="1" ft="[B]1396560b400[/B]" it="[B]1396560b400[/B]" ut="[B]1396560b400[/B]" version="45" sharedUserId="1000">
[Sony Tablet S] drigerott:
EDIT

don't work
[Sony Tablet S] Tikki Pon:
Yes i have us firmware but my tablet is from México
[Sony Tablet S] excentra:
got my error fix now im just suck with the terminal emu wont start
[Sony Tablet S] excentra:
I am stuck once again !

i have attached the file with what i have done so far on cmd if some can check for me it starts after loop
[Sony Tablet S] shinnan:
unroot how ? please talk for me
[Sony Tablet S] drigerott:
i'm rooted...

followed the op..

tablet s ITA 4.0.3r2a

nice guide!!!!!!!!

now we want cm10 hahahaha

joking hihihihi great find
[Sony Tablet S] Cat McGowan:
In my case, I would use Condi's ALLinONE tool and from its main menu select 2 Unroot device.
[Sony Tablet S] ud.gennady:
Android version - "4.0.3 release 1a"???

I also could not run on version "4.0.3", then I upgraded to "release 1a", perform hard reset with the removal of user data and try again.

it worked.

2 WonderEkin - Thank you! :cool:
[Sony Tablet S] txiangyang:
Me too, I am driven crazy
[Sony Tablet S] TypoCorrecto:
Yes...my Android version shows: 4.0.3 (release1a)...

Still no luck...Any ideas?
[Sony Tablet S] Tikki Pon:
Ok,then i need do hard reset in my ics 4.0.3 r1a to it will work?
[Sony Tablet S] daniel910821:
You can try it, but in my case didn't worked, so i advice you to make a full backup before the hard reset.

Enviado desde mi Sony Tablet S usando XDA Premium HD app
[Sony Tablet S] ptexas:
Did you check the box to delete internal USB Memory or did you only reset account, system and app data?

I still get stuck at starting the injected terminal .. :crying:
[Sony Tablet S] papacarla:
I've found the way to start the terminal without the command line: Install it before you rooting the tablet from play market, move it on usb. then you'll be able to start when you need it

But It gives me nothing because when I started the terminal and type "id" I get uid=10080(app_80) when i should get uid=1000(system).

---------- Post added at 12:15 PM ---------- Previous post was at 11:28 AM ----------

I did like you said and rollback commands was executing well. What process I have to redo?

UPD: I've got root:laugh: I've did again procedure after rollback and it work

UPD2: We have to inform the dev, who made this method about this
[Sony Tablet S] stanton578:
Thank papacarla! After installed the android terminal and move it to usb storage, everything goes well. And now my tablet (CN firmwork)

have been rooted.
[Sony Tablet S] hyperstj:
I'm also using CN firmwork here, but I can't get VpnDialog installed : (

I tried to resigned the package, but it says "an existing package by the same name with a conflicting signature is already installed"

Any ideas?
[Sony Tablet S] WonderEkin:
Hi,

Seems some files in /data/system are locked by some installed apps.

Maybe you should back your files and wipe the tablet before you root it.
[Sony Tablet S] stanton578:
I have no problem at the resigature step. Maybe you should check the names of input and output files are different.

Perhaps my signed file could help.
[Sony Tablet S] shri_chanakya:
I too got it rooted. Was stuck at first step then realised I hadn't unzipped all the files.

Second was stuck at terminal injection step. So install terminal emulator (the blue one) from the market. And moved it to usb. Still had problem so started the rollback step. Completed them and immediately started from step 1 and vola it is rooted. Also had to do a hard reset without usb data format at some point don't recal it. Thanks.
[Sony Tablet S] papacarla:
Try to WonderEkin's rollback

But you have to do it without stopping process, after your unlucky trying of Terminal Emulator starting.

You have to repeat first steps of process like WonderEkin said. Just put the commands of rollback and start all process from beginning with your existing resigned VpnFaker.apk
[Sony Tablet S] Tikki Pon:
How do you move the app to usb for work?
[Sony Tablet S] excentra:
im still bummed out i cant start terminal ..... i reset tablet, re signed apk and still not luck here i guess im gonna restore again and try to install terminal before beginning the root process as papacarla mention

---------- Post added at 09:13 AM ---------- Previous post was at 08:55 AM ----------

im traying to figure that out too. i cant seam to figure it out:confused:

---------- Post added at 09:30 AM ---------- Previous post was at 09:13 AM ----------

nope i could not figure it out i resigned the VpnFaker.ap but still cant get terminal to run :crying:
[Sony Tablet S] stifilz:
worked only after installing terminal app first :)

thanks to all

stifilz
[Sony Tablet S] Tikki Pon:
Btw after i put the rollback what process i redo again,all or...? Plz help me...or just upload ur adb logcat
[Sony Tablet S] stifilz:
Sorry deleted cmd :(

After:

adb shell

cd /data

/data/local/tmp/busybox cp -r system system2

#Pls ignore "cp: can't open 'system/xxxxxxx': Permission denied"

/data/local/tmp/busybox find system2 -type f -exec chmod 666 {} \;

/data/local/tmp/busybox find system2 -type d -exec chmod 777 {} \;

I tried the next line but gave me an error, so I used the lines for the rollback before going ahead.

I also enabled "Allow mock locations", under settings, developement.

^^ Not sure if that mattered but seemed to work.

Goo luck, it took me a few goes but done now.

P.S Some awesome person should 'automagic' this :)

Chur

Stifilz
[Sony Tablet S] stanton578:
I installed the terminal first, and then move it to the usb storage in "Setting->App".
[Sony Tablet S] SWFlyerUK:
Would someone make a batch file for this please?

It's not that I can't be bothered, i'm just getting errors constantly and not sure if it's just me or what.

Run's fine until:

adb shell
cd /data
/data/local/tmp/busybox cp -r system system2
#Pls ignore "cp: can't open 'system/xxxxxxx': Permission denied"
/data/local/tmp/busybox find system2 -type f -exec chmod 666 {} \;
/data/local/tmp/busybox find system2 -type d -exec chmod 777 {} \;
mv system system-
mv system2 system

mv app app-
mkdir app

I just get permissions denied and failed to find system etc...
[Sony Tablet S] stifilz:
Roll back before mv system. See prev page and post 42 for rollback
[Sony Tablet S] SWFlyerUK:
Hmm, but on:

/data/local/tmp/busybox cp -r system system2

I'm getting; cp: can't createdirectory 'system2': Permission Denied.
[Sony Tablet S] Bin4ry:
Hi all,

i made a script for Xperia S and other devices to root. Some people pointed me here so i integrated the method to my script.

Maybe it helps some of you guys who are not so awesome with the shell itself ;)

Please ppl try it and give me feedback, i dont own the tablet myself so i cannot test it.

Regards
[Sony Tablet S] drigerott:
Hi Bin4ry,

was me hihiih in the other 3d..

i will try you new bat on the other tablet s i will report tonight ^^
[Sony Tablet S] SWFlyerUK:
Thanks for doing the script, this is what it looks like for me.
[Sony Tablet S] stifilz:
Here is what worked for me (twice now, finally got the hang of it :P)

My Method

Factory Reset >> You will loose some of your stuff anyway

Install Terminal >> Move to USB storage (if you don't it will get deleted and you will have to start again)

Enable USB Debugging, Unknown Sources and Mock Locations (not sure if all are needed)

The system will say "Updating" when you reboot

If you have any troubles go back to the start.

Enjoy

Stifilz
[Sony Tablet S] Bin4ry:
Thanks for test, here comes another version.
[Sony Tablet S] SWFlyerUK:
Another screenshot.
[Sony Tablet S] Bin4ry:
Hehe ok, another one :)

Regards
[Sony Tablet S] leochen679:
I tried them , but they didn't work on my tablet s .:(
[Sony Tablet S] ptexas:
Rooted !!

At last it worked .. here how I proceeded

1. Reset Tablet to factory settings

2. Enable "Unknown locations", "USB Debugging" and "Leave active"

3 Install File Manager HD and Terminal Emulator and move to USB (in settings / Apps)

4. Follow the Instructions of post 1 (ignore error messages at "rm -r a" and "busybox cp -r system system2")

5 As I got stuck at starting the injected terminal I did a rollback

- first get permissions for system and data (Step 1- 5)

- execute the rollback commands

- continue at instructions step 6 (adb push busybox ..)

6. This time Android updated at reboot and terminal started

7. Continue Instuctions with Terminal

- ignore the error msgs while executing scripts in teminal window

8 At the end of the instructions reboot tablet

The only trouble I had was that Play Store disappeared and I had to install it manually (download apk and execute it with File Mnager HD)

Then install Superuser and Root Explorer app and grant root permissions to apps

Now I'm looking for a way to add my 32G SD Card to my 16G internal memory
[Sony Tablet S] SWFlyerUK:
Still no luck i'm afraid! lol
[Sony Tablet S] Bin4ry:
Seems your device does not set the settings from symlink. I am afraid i dont have idea gow to test myself without device, maybe the thread creator can check it for you guys and then i will ahve it included.

Regards
[Sony Tablet S] SWFlyerUK:
Could you please explain what's meant by the rollback commands?
[Sony Tablet S] ptexas:
Hi

It is described in post #42

http://xdaforums.com/showpost.php?p=31582941&postcount=42

adb shell

cd /data

mv system system3

mv system- system

mv app app3

mv app- app

Regards
[Sony Tablet S] fishman8:
Thanks for everyone, finally my Sony Tablet P was also rooted !

My Sony Tablet P is upgraded the latest ROM, Android version is 4.0.3, baseband version R3B01, kernel version 2.6.39.4 integ-build@build6 #1.

Even I don't factory setting it, it also worked.

Steps:

1) Install Android Terminal Emulator from Google Play.

2) In Android Setting function, move the terminal into SD card.

3) I had set 'Unknown source', 'USB debugging' and 'Don't keep activities' (But I think the last I set, it don't needed)

4) Following the step until the step that you reboot your tablet

5) Do the steps again from step1, and until steps to reboot your tablet. Since we repeat "mv system system-" and "mv app app-", this time, use "mv system system--" and "mv app app--" to instead of.

6) After second reboot, I finally saw the "Android is updating" when the tablet boot to the desktop.

7) Following the remaining command, and the tablet was rooted ! And my previous app also come back afte move app- & system - back and reboot again.

Thanks, I really need to root my Sony Tablet P :good:

---------- Post added at 12:54 AM ---------- Previous post was at 12:49 AM ----------

I forgot to say, if you don't factory reset, when you reboot in fist time, you will see many force closed. Just press OK to let it go.
[Sony Tablet S] excentra:
i think i and doing this wrong ... once i get to look and bring up the restore on tablet if i dont hit reset on tablet before i end loop i dont get access am i doing that right ?
[Sony Tablet S] gordo79:
Yeah sounds like your problem, in your cmd window issue the command.

while : ; do ln -s /data a/file99; done

that window will loop, open a new cmd window and issue the command.

Adb restore settings.ab

Press restore on tab

in first cmd window press ctrl c to break the loop and follow the rest of the commands
[Sony Tablet S] hecko:
it is not ending

When i try to backup system

Code:

dd if=/dev/block/mmcblk0p3 of=/mnt/sdcard/system.ext4 bs=128K

Then the cmd will stay on this point.

I have been waiting there for over 5 min but it goes nit on.

Then i stop on this point and do a reset.

Can someone help me please.

One qestion more....

How can i protect my tablet from bricking.

Now after the cmd "freezes" i'm very interestet to do everything that is possible to protect first.

Sorry for bad english
[Sony Tablet S] dinos87:
Any news on an aio tool for this ?
[Sony Tablet S] SWFlyerUK:
I can't get this to work, lets hope someone can make a tool.

If the Xperia Tab is rooted hopefully it would gain some dev support but also do better than the old generation.
[Sony Tablet S] J_B204:
well like others I was having a really tough time implimenting this root...however, here is my experience:

Running UK Tablet S 16Gb with US firmware 4.0.3

Was getting stuck when trying to start up the terminal emulator on the tablet, went back to the beginning (after a full factory reset)

Found that my vpnfaker.apk was the culprit so followed the OP instructions to sign it myself.

Then installed Terminal Emulator on the tablet and moved to USB.

Carefully followed the instructions in post 1 and voila it worked!!

Good luck to those who are trying...it has only taken me 5hrs non-stop ;) now if only we had some custom roms to install ;)