Tablet S 4.0.3 r1a rooted

WonderEkin

Senior Member
Jul 7, 2007
162
306
0
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"
Code:
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...)
  1. Install "ZipSigner 2" to your tablet. link
  2. On your PC, open VpnFaker.apk by 7zip, delete folder "META-INF"
  3. copy the VpnFaker.apk to /sdcard, rename it
    Code:
    adb push VpnFaker.apk /sdcard/VpnFaker_unsign.apk
  4. 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"
  5. copy the resigned apk back to you PC
    Code:
    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.
Code:
adb shell
	cd /data
	mv system system3
	mv system- system
	mv app app3
	mv app- app
Redo the process again.
 

Attachments

rrlu21

Member
Aug 11, 2012
16
5
0
Shanghai
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.
 

Attachments

Last edited:

Bazoocaze

Senior Member
Aug 13, 2011
371
857
0
Porto Alegre
ro.product.model=SGPT111US/S

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

Code:
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:

Code:
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:

Code:
C:\Dados\ADB>adb shell
[email protected]:/ $ /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">
[email protected]:/ $
 

Attachments

Last edited:

papacarla

Senior Member
Mar 21, 2012
161
49
0
Irkutsk
Having similar issues I can't get restore settings. ab to work

Sent from my Desire S using xda app-developers app
Try to reinstall drivers.

I've got the worked adb.

But I've got another prob. Like that:
HTML:
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:
 
Last edited:
  • Like
Reactions: WonderEkin

gordo79

Senior Member
Oct 29, 2011
230
50
0
Ok got adb working properly,what is the correct command that follows rm -r a

Sent from my Desire S using xda app-developers app
 

fishman8

Member
Aug 4, 2010
36
3
0
New Taipei City
Try to reinstall drivers.

I've got the worked adb.

But I've got another prob. Like that:
HTML:
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.

I also get the error (.Term does not exist) with my Sony Tablet P 4.0.3 :crying:
 

TomaHawk93

Senior Member
Feb 22, 2011
66
7
0
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 ;)
 
  • Like
Reactions: Gigamac

WonderEkin

Senior Member
Jul 7, 2007
162
306
0
ro.product.model=SGPT111US/S

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

Code:
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:

Code:
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:

Code:
C:\Dados\ADB>adb shell
[email protected]:/ $ /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">
[email protected]:/ $
Strange, I only got that error when I use other tools to resign the Vpnfaker.apk...
 

_kyo_

Senior Member
Aug 16, 2011
60
32
0
Maaaaaan
Im too stuck in this part,i cant injected the terminal emulator to sony tablet s...someone heeeeeeeeeeeelp meeeeeeeeeeeee
PLZZZZZZZZZ
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
 

papacarla

Senior Member
Mar 21, 2012
161
49
0
Irkutsk
It's ok, please go ahead
When I make a double check I'm getting this:
HTML:
[email protected]:/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                                       <
[email protected]:/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">
[email protected]:/data $
After that, when i make :

HTML:
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:
HTML:
C:\Users\Buk\Documents\Разное\AndroidSoft\Tablet_S_Rootkit>adb shell
[email protected]:/ $ cd /data
cd /data
[email protected]:/data $ mv system system3
mv system system3
failed on 'system' - Permission denied
255|[email protected]:/data $ mv system- system
mv system- system
failed on 'system-' - Permission denied
255|[email protected]:/data $ mv app app3
mv app app3
failed on 'app' - Permission denied
255|[email protected]:/data $ mv app- app
mv app- app
failed on 'app-' - Permission denied
255|[email protected]:/data $
What I'm doing wrong?:confused:
 

WonderEkin

Senior Member
Jul 7, 2007
162
306
0
When I make a double check I'm getting this:
HTML:
[email protected]:/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                                       <
[email protected]:/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">
[email protected]:/data $
After that, when i make :

HTML:
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:
HTML:
C:\Users\Buk\Documents\Разное\AndroidSoft\Tablet_S_Rootkit>adb shell
[email protected]:/ $ cd /data
cd /data
[email protected]:/data $ mv system system3
mv system system3
failed on 'system' - Permission denied
255|[email protected]:/data $ mv system- system
mv system- system
failed on 'system-' - Permission denied
255|[email protected]:/data $ mv app app3
mv app app3
failed on 'app' - Permission denied
255|[email protected]:/data $ mv app- app
mv app- app
failed on 'app-' - Permission denied
255|[email protected]:/data $
What I'm doing wrong?:confused:
Get the/data access first
Code:
adb restore settings.ab
Check the result
Code:
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
Code:
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
Code:
adb restore settings.ab
Once the restore process is completed, you can press CTRL+C on the 1st cmd console to break the loop
 
  • Like
Reactions: papacarla

excentra

Member
Dec 20, 2007
44
3
0
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
 

gordo79

Senior Member
Oct 29, 2011
230
50
0
Sweet as I have root,dont know what the issue was just worked third try

Sent from my Sony Tablet S using xda app-developers app
 

TypoCorrecto

Senior Member
Mar 26, 2010
264
41
58
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...
 
Last edited: