Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
musheercmr
Old
#881  
musheercmr's Avatar
Member
Thanks Meter 3
Posts: 65
Join Date: Sep 2011
Location: Qatar
Quote:
Originally Posted by amchandr View Post
Hi , Can you please give me step by step instruction to apply this on galaxy note 2
download latest policy patch (v.3.3) and install latest Samsung USB driver or Kies. then enable USB debugging from settings. then plug device in PC, then just run the patch

REMEMBER: You should have root access while you run this patch.
Regards
---------------------------------------------------------------------------------------
Samsung Galaxy Note 2(GT-N7100) & LG G-Slate (V900)
 
L00L00
Old
#882  
Junior Member
Thanks Meter 0
Posts: 8
Join Date: Jun 2012
Thumbs up THANKS

Quote:
Originally Posted by L00L00 View Post
Hello,

Just had my I9505 rooted and want to apply this patch.

I'm a little confused with all replies, for any device, without knowing wich version of patch is used...
Do I have to modify something before launching script ?
Do I have to rename/copy something manually after the script ended ?

thank you for your support
Sorry, Just find out how !

a reminder for who v3.3 in i9505 :
launched apply-patch.cmd
script doesn't found Email.apk so I provided the good one : SecEmail_J.apk
Let the script continue until it finished with message :
* All shortcuts to the Email app will disappear and will need to be re-created.
The Email app will appear on the last page of the application drawer.

good work for this patch !
 
kika1992
Old
#883  
Junior Member
Thanks Meter 0
Posts: 3
Join Date: Jan 2011
Default ACER A700 fail

Hi,
I was trying to install the patch to a rooted ACER A700 but igot following error message:

checking root access. root uid: 0, secure: yes, busybox: no
Pulling app(s) ...
Pulling libs ...
Decompiling Email.odex ...


Error occured while loading boot class path files. Aborting.
org.jf.dexlib.Util.ExceptionWithContext: Cannot locate boot class path file com.
softwareimaging.acer.jar
at org.jf.dexlib.Code.Analysis.ClassPath.loadBootClas sPath(ClassPath.jav
a:207)
at org.jf.dexlib.Code.Analysis.ClassPath.initClassPat h(ClassPath.java:14
1)
at org.jf.dexlib.Code.Analysis.ClassPath.InitializeCl assPathFromOdex(Cla
ssPath.java:103)
at org.jf.baksmali.baksmali.disassembleDexFile(baksma li.java:94)
at org.jf.baksmali.main.main(main.java:297)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at jpatch.emailPolicy.Run.runIsolated(Run.java:791)
at jpatch.emailPolicy.Run.applyPatch(Run.java:432)
at jpatch.emailPolicy.Run.main(Run.java:581)


Drücken Sie eine beliebige Taste . . .

Can anyone help me with this? Thanks a lot in advance...
 
kika1992
Old
#884  
Junior Member
Thanks Meter 0
Posts: 3
Join Date: Jan 2011
Default Solved!

Issue is solved, It seems like the tablet hadn't full root access. After flashing vorbeth's iconian ROM everything worked fine.

Great Hack!

Thanks a lot.
 
h4rr0d
Old
(Last edited by h4rr0d; 16th May 2013 at 12:56 PM.)
#885  
Junior Member
Thanks Meter 3
Posts: 10
Join Date: Aug 2011
Ok, so after hacking around my SGS2 for about an hour I managed to get it done. Here's full step by step how to on latest (as of 16.5.2013) stock ROM from http://forum.xda-developers.com/show....php?t=1544487

0) Flash the 4.1.2 Stock ROM
1) Root using method 1 here: http://forum.xda-developers.com/show....php?t=1746794 (I used Root_Superuser_3.1.3_Busybox_1.20.2-Update1-signed.zip)
2) start command line in the folder where you extracted this hack.
Connect to phone with USB debugging enabled (see OP)
3) lib\adb kill-server
4) lib\adb wait-for-device
Now you should be connected to your phone (you can verify it by typing 'lib\adb shell ls' without the quotes. If it works, list of items should appear on the console)
We need to change the file systems from read only to write enabled

5) lib\adb shell
6) su
7) mount -o rw,remount -t yaffs2 /dev/block/mmcblk0p9 /system
8) mount -o rw,remount -t yaffs2 /dev/block/mmcblk0p12 /preload
9) exit
10) exit (now you should be out of the shell, back in the command prompt)
Now you need to download all the files needed for patching from phone
11) mkdir work (unless the work is already there)
12) cd work
13) ..\lib\adb pull /preload/symlink/system/app/SecEmail.apk
14) ..\lib\adb pull /preload/symlink/system/app/SecEmail.odex
15) ..\lib\adb pull /preload/symlink/system/app/SecExchange.apk
16) ..\lib\adb pull /system/app/SecExchange.odex
17) ..\lib\adb pull /system.framework/
(optional: you might want to backup the apk and odex files for possible restoration)
18) cd ..
And run the patch
19) patch-manual.cmd work 16 SecEmail.apk SecExchange.apk
Push the modified apks to mobile (not to their final destination yet)
20) cd work
21) ..\lib\adb push SecEmail.apk /sdcard/SecEmail.apk
22) ..\lib\adb push SecExchange.apk /sdcard/SecExchange.apk
Now you will delete old files from your phone
23) ..\lib\adb shell
24) su
25) rm /preload/symlink/system/app/SecEmail.apk
26) rm /preload/symlink/system/app/SecEmail.odex
27) rm /preload/symlink/system/app/SecExchange.apk
28) rm /system/app/SecExchange.odex
Finally put the modified files to where they belong
29) dd if=/sdcard/SecEmail.apk of=/preload/symlink/system/app/SecEmail.apk
30) dd if=/sdcard/SecExchange.apk of=/preload/symlink/system/app/SecExchange.apk

And you are done. Just need to reboot your phone and you should have security policy free email app. I did remove and add back my Exchange account, but I'm not sure that is required.
The Following 2 Users Say Thank You to h4rr0d For This Useful Post: [ Click to Expand ]
 
pharaohseti
Old
(Last edited by pharaohseti; 20th May 2013 at 09:33 AM.) Reason: Worked
#886  
Junior Member
Thanks Meter 0
Posts: 6
Join Date: May 2008
Quote:
Originally Posted by h4rr0d View Post
...
And you are done. Just need to reboot your phone and you should have security policy free email app. I did remove and add back my Exchange account, but I'm not sure that is required.
Nope, this didn't work for me also. Hacking is fine. But after restarting the phone and removing adding back the Exchange account it gets stuck in "getting account information" step.

Update: It worked after putting the new SecEmail.apk and SecExchange.apk files into system/app via FX. It did not work with adb. Thanks for step by step guide and for this great fix.
 
likeicare
Old
#887  
Junior Member
Thanks Meter 0
Posts: 3
Join Date: May 2013
Hey can anybody help me? Trying to get this to work on my Sgs2 with 4.1.2. I have rooted the phone. When i run the patch it comes to a point where it says:
Cleaning up ...
Waiting for USB connection...
Checking device...
Model: GT-I9100, build JZO54K.I9100XWLSD, android 4.1.2 (API Level 16)
/system mounted on /dev/block/mmcblk0p9, mode ro
checking root access. root uid: 0, secure: no, busybox: yes
Pulling app(s) ...
Can't find Email app. Enter the name of your Email apk or press <Enter> to exit:


When i enter SecEmail.apk and SecExchange.apk for email app and exchange app then it says:

cant find .apk or something like that.

But i looked in the system folder and the two apks are there!

plz help!

---------- Post added at 03:44 PM ---------- Previous post was at 03:01 PM ----------

Ok now i did all this:

pharaohseti
Quote:
Originally Posted by h4rr0d View Post
...
And you are done. Just need to reboot your phone and you should have security policy free email app. I did remove and add back my Exchange account, but I'm not sure that is required.
Nope, this didn't work for me also. Hacking is fine. But after restarting the phone and removing adding back the Exchange account it gets stuck in "getting account information" step.

Update: It worked after putting the new SecEmail.apk and SecExchange.apk files into system/app via FX. It did not work with adb. Thanks for step by step guide and for this great fix.
16th May 2013 12:26 PM
h4rr0d Ok, so after hacking around my SGS2 for about an hour I managed to get it done. Here's full step by step how to on latest (as of 16.5.2013) stock ROM from http://forum.xda-developers.com/show....php?t=1544487

0) Flash the 4.1.2 Stock ROM
1) Root using method 1 here: http://forum.xda-developers.com/show....php?t=1746794 (I used Root_Superuser_3.1.3_Busybox_1.20.2-Update1-signed.zip)
2) start command line in the folder where you extracted this hack.
Connect to phone with USB debugging enabled (see OP)
3) lib\adb kill-server
4) lib\adb wait-for-device
Now you should be connected to your phone (you can verify it by typing 'lib\adb shell ls' without the quotes. If it works, list of items should appear on the console)
We need to change the file systems from read only to write enabled
5) lib\adb shell
6) su
7) mount -o rw,remount -t yaffs2 /dev/block/mmcblk0p9 /system
8) mount -o rw,remount -t yaffs2 /dev/block/mmcblk0p12 /preload
9) exit
10) exit (now you should be out of the shell, back in the command prompt)
Now you need to download all the files needed for patching from phone
11) mkdir work (unless the work is already there)
12) cd work
13) ..\lib\adb pull /preload/symlink/system/app/SecEmail.apk
14) ..\lib\adb pull /preload/symlink/system/app/SecEmail.odex
15) ..\lib\adb pull /preload/symlink/system/app/SecExchange.apk
16) ..\lib\adb pull /system/app/SecExchange.odex
17) ..\lib\adb pull /system.framework/
(optional: you might want to backup the apk and odex files for possible restoration)
18) cd ..
And run the patch
19) patch-manual.cmd work 16 SecEmail.apk SecExchange.apk
Push the modified apks to mobile (not to their final destination yet)
20) cd work
21) ..\lib\adb push SecEmail.apk /sdcard/SecEmail.apk
22) ..\lib\adb push SecExchange.apk /sdcard/SecExchange.apk
Now you will delete old files from your phone
23) ..\lib\adb shell
24) su
25) rm /preload/symlink/system/app/SecEmail.apk
26) rm /preload/symlink/system/app/SecEmail.odex
27) rm /preload/symlink/system/app/SecExchange.apk
28) rm /system/app/SecExchange.odex
Finally put the modified files to where they belong
29) dd if=/sdcard/SecEmail.apk of=/preload/symlink/system/app/SecEmail.apk
30) dd if=/sdcard/SecExchange.apk of=/preload/symlink/system/app/SecExchange.apk

And you are done. Just need to reboot your phone and you should have security policy free email app. I did remove and add back my Exchange account, but I'm not sure that is required.



But now my phone also is stuck at getting account information =((( what can i do?
 
likeicare
Old
(Last edited by likeicare; Yesterday at 09:22 AM.)
#888  
Junior Member
Thanks Meter 0
Posts: 3
Join Date: May 2013
Ok now i managed to get it to work, there somehow was not enough space in the system/apps/ folder so it didnt copy the whole file. There is no pin enforced too, yay!

But i cant sync any emails now even not with a normal email account not even using exchange!! No emails will be transmitted =(
 
SjoerdvN
Old
(Last edited by SjoerdvN; Yesterday at 01:12 PM.) Reason: fix typo
#889  
Junior Member
Thanks Meter 1
Posts: 18
Join Date: Sep 2010
Location: Nijmegen area
Confirmed working on i9300 ME3 leak (WanamLite 7.0)
The stock email app was supposed to be patched in the ROM, PIN lock was deactivated but SD card encryption not

Happy now, Thanks!
 
likeicare
Old
#890  
Junior Member
Thanks Meter 0
Posts: 3
Join Date: May 2013
Finally got it to work completely!!! Flashed Neat_Lite_v4.7 custom rom using philz kernel.

Then followed h4rr0d instuctions!

Thanks h4rr0d u are a cmd god ;D

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...