yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Themes and Apps] Dexter_nlb:
I just installed the Samsung SM-N9005 Lollipop unofficial release, and used the apply-patch.cmd mod, and all works fine , if you point to the SecEmail_K/SecEmail_K.apk , and let it reboot once, and you are ready with no policy applied when you add your exchange account.

This seems to be important to use this time, since i am hit by a secret PIN code, which i really never set, and cannot get rid off, when i connect to the exchange system and get restrictions applied, the PIN code to encrypt my device is really unknown, and i cannot continue. So this patch made it all work.

Thanks!
[Galaxy S II Themes and Apps] rafsi:
not sure if this is success or error ?

Is this an error or did the patch do its magic? Your help is much appreciated...

BTW, i am trying this on a Nexus 6 running Lollipop 5.0.1.

Can't find Email app. Enter the name of your Email apk or press <Enter> to exit: PrebuiltGmail/Prebu

iltGmail

Can't find Exchange app. Enter the name of your Exchange apk or press <Enter> to continue: PrebuiltE

xchange3Google/PrebuiltExchange3Google

Pulling libs ...

Decompiling PrebuiltGmail/PrebuiltGmail.apk ...

java.lang.reflect.InvocationTargetException

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at jpatch.emailPolicy.Run.runIsolated(Run.java:922)

at jpatch.emailPolicy.Run.applyPatch(Run.java:551)

at jpatch.emailPolicy.Run.main(Run.java:700)

Caused by: org.jf.dexlib2.DexFileFactory$NoClassesDexException: zip file PrebuiltGmail.apk does not

contain a classes.dex file

at org.jf.dexlib2.DexFileFactory.loadDexFile(DexFileFactory.java:68)

at org.jf.dexlib2.DexFileFactory.loadDexFile(DexFileFactory.java:54)

at org.jf.baksmali.main.main(main.java:247)

... 7 more

Debug log written to debug.log

Press any key to continue . . .
[Galaxy S II Themes and Apps] Kun2210:
Well, I think something went wrong, you should not get such a long list of errors.

Try omitting .apk when specifying the app location.
[Galaxy S II Themes and Apps] rafsi:
Thanks again for your response... see the first 2 lines, i did not specify .apk at the end... i just typed PrebuiltGmail/Prebu

iltGmail for email and PrebuiltExchange3Google/PrebuiltExchange3Google for the exchange...
[Galaxy S II Themes and Apps] Kun2210:
Well then, you probably have odexed version - see http://xdaforums.com/showpost.php?p=57231247&postcount=1434

[MENTION=3270640]rafsi[/MENTION]

You can try (make a backup before the operation!) to replace your apk of Exchange services with this: https://dl.dropboxusercontent.com/u/32221459/PrebuiltExchange3Google.apk this is the one I'm using on my 5.0.2 ROM, but can't really guarantee it will work on N6 :E
[Galaxy S II Themes and Apps] rafsi:
yes you are correct sir... that's what i have... just straight out factory image, which i only rooted...

let me load up a custom rom and give this a try... Thanks for your advice and time!
[Galaxy S II Themes and Apps] Rithina:
Samsung Note Edge

It works for my Samsung edge 4.4.4 but I can no longer set my unlock screen to others option as it is disabled. (Currently only stay with swipe which was setup before the mod).

One more thing I discovered is I can't save my email attachment as it says it is full. Any idea how to use my phone storage for those email attachment?

Thank you
[Galaxy S II Themes and Apps] MohElShafei:
Dear All,

I just had installed the Lollipop 5.02 and I was facing the problem of locating the email app to disable the security policy. I tried many ways, and hence I got to solve the issue finally by applying these steps:

1. I pulled out the Lollipop 5.02 email apps (Email.apk and Exchange2.apk) and place them in the root directory of the System/app.

2. I run the Patch CMD and let it do all the required steps to patch it. This is the only way to make the CMD Patch do the work, as it always search on the Root folder, and the Lollipop 5.02 placed these apps in folders instead.

3. After the phone restarts, I took the patched files back to their folders Email and Exchange2 on the same directory. I had to remove the old apps first. And place the patched ones in their locations.

4. Resatrted the phone, and voila, the app is not asking for pin anymore :D :D

I have attached the patched version of the Lollipop 5.02 (Email.apk and Exchange2.apk) with the post, so that you can replace them with the app you have directly :) :)

Note: Do not use the attached files as a flash recovery zip file. It is only zip file you extract to replace the apps manually using ES File explorer or any File Management software.

Best of luck.

Sincerely,

Mohamed ElShafei
[Galaxy S II Themes and Apps] blyndfyre:
I'll give these files a try on both my Nexus 7 (Flo) and my Moto x 2014.

EDIT: Not working, I decided to go with a free third party app, see my next post below.
[Galaxy S II Themes and Apps] blyndfyre:
For everyone having trouble getting this to work I suggest you try this app:

https://play.google.com/store/apps/details?id=com.syntomo.email&hl=en

Be sure to read this FAQ to enable Exchange Security Bypass:

http://mail-wise.com/faq/#bypass
[Galaxy S II Themes and Apps] MohElShafei:
Do not use my files, you can do the same steps on yours and give it a shoot. I'm sure it will work.
[Galaxy S II Themes and Apps] mcfisch:
As stated before multiple times already you have to enter the full path relative to "/system/app" when the patch scripts asks for the location of the files on a device operating Lollipop 5.0 or higher.

It has also stated a few times that you'll need to change from "push" to an intervall based fetch of your emails, if you apply this patch to a LP system.
[Galaxy S II Themes and Apps] rhodry999:
Is there a way to patch the APK's downloaded from eg apk mirror in order to patch them before install? My device can't be rooted that why. But I can install the apk's. (Lollipop)
[Galaxy S II Themes and Apps] sanioclement:
Simple alternative to Bypass

Why can't you guys simply use this app from Playstore (free)

https://play.google.com/store/apps/details?id=com.syntomo.email&hl=en

check out the Description to use bypass
[Galaxy S II Themes and Apps] Kun2210:
Simply because we prefer Gmail over 3rd party apps, that's why.

Sent from my GT-N7100
[Galaxy S II Themes and Apps] sanioclement:
Is this works in lollipop as well ?
[Galaxy S II Themes and Apps] Kun2210:
Few pages back I've wrote instructions on how to patch this on lollipop - some of the actions have to be done manually, but it's no rocket science and works flawlessly.

Sent from my GT-N7100
[Galaxy S II Themes and Apps] sanioclement:
I will try that. Thanks
[Galaxy S II Themes and Apps] mohammedismail08:
This hack is not working for One Plus One after today's OTA update, please can you check ! I reinstalled the patch after updating, but the Email app does not open now.
[Galaxy S II Themes and Apps] InfinitiGuy:
Installed this on my Nexus 6 and it works great. Thanks.
[Galaxy S II Themes and Apps] pocaropa:
working for me thanks
[Galaxy S II Themes and Apps] alien0101:
I am using GMAIL and Gmail/ASOP exchange app to connect to exchange account on 4.4.2 MIUI .Is it possible to apply this patch on this ROM.

I tried but not able to do that...Any suggestions..
[Galaxy S II Themes and Apps] dr.mz:
plz i need help

i am using note 3 ( tweaked ported stock note4 lollipop tw rom) prerooted

tried many ways

last of

cleared email data and then took secemail_k and secexchange to system/app

then applied patch, says patched

then i tried to add exchange accont

but it keeps saying ( checking incoming server settings... ) then Unable to connect to server

any suggestions plz??

edit:

it woooorked , thank you everyone

​
[Galaxy S II Themes and Apps] Rithina:
Cleaning up ...

Downloading adb...

Waiting for USB connection...

Checking device...

Model: SM-N915G, build LRX22C.N915GXXU1BOB7, android 5.0.1 (API Level 15)

/system mounted on /dev/block/platform/msm_sdcc.1/by-name/system, mode ro

checking root access. root uid: 0, secure: yes, busybox: yes

Can't detect boot class path. Using defaults...

Pulling app(s) ...

Can't find Email app. Enter the name of your Email apk or press <Enter> to exit:

/SecEmail_K/SecEmail_K.apk

Can't find Exchange app. Enter the name of your Exchange apk or press <Enter> to

continue: /SecExchange/SecExchange.apk

Pulling libs ...

java.io.FileNotFoundException: I:\email-policy-patch-4.

3\work\SecEmail_K\SecEmail_K.apk (The system cannot find the path specified)

at java.io.FileInputStream.open(Native Method)

at java.io.FileInputStream.<init>(Unknown Source)

at jpatch.util.FileUtils.readFile(FileUtils.java:31)

at jpatch.emailPolicy.Run.getExtraLibs(Run.java:525)

at jpatch.emailPolicy.Run.buildClassPath(Run.java:503)

at jpatch.emailPolicy.Run.applyPatch(Run.java:544)

at jpatch.emailPolicy.Run.main(Run.java:700)

Debug log written to debug.log

Press any key to continue . . .

Anyone know what went wrong? I have been using it without any issue on 4.4.4 till I upgraded to Lollipop 5.0.1...

Currently using Samsung Galaxy Note Edge N915G..
[Galaxy S II Themes and Apps] solar666:
It can't find the apks. Go back a few pages there is good explanation by someone to use this mod in lollipop
[Galaxy S II Themes and Apps] Rithina:
Thanks Solar666. The script manage to find the apk which i have input the manual path "/system/SecEmail_K/SecEmail_K.apk". But compiling it generate some errors. Lillipop store all apk under the folder unlike the previous version.
[Galaxy S II Themes and Apps] KUmike:
I am getting the same error. I wonder if there is an update to the apk that is causing this. It worked on the same ROM 2 weeks ago
[Galaxy S II Themes and Apps] DorForce:
Error Decopiling SecExchange.apk

I'm getting this ****...

anyone knows why?
[Galaxy S II Themes and Apps] Kun2210:
You need to be deodexed, google for more info on this.
[Galaxy S II Themes and Apps] amolin32:
It is funtional on Note 4 stock rom 4.4.4 touchwiz with root? What is Steps to install?
[Galaxy S II Themes and Apps] rhodry999:
Just wanted to share that my Nexus 5 with Google Android 5.1

Confirmed Email policy patch still works.
[Galaxy S II Themes and Apps] starbucks2010:
Which patch did you applied for Lollipop: email-policy-patch-4.2 or email-policy-patch-4.3?

Thank you.
[Galaxy S II Themes and Apps] aftershocks:
Help!

Hi All,

I ran the patch and it was successful.. It said it patched it... Great... But it didn't reboot my phone...

I checked the /system/app folder and I have a SecExchange.apk and SecEmail_K.apk..

What do I do next???? I tried clicking on both those apk files to install but it won't work... (browsing through explorer)

Someone please help..

Thanks!

---------- Post added at 01:00 AM ---------- Previous post was at 12:40 AM ----------

Nevermind. I got it! I had to patch SecEmai_K.apk...

Thanks for the great patch and your hard work!!!
[Galaxy S II Themes and Apps] greatg:
Getting the same thing. I'm on a Note 4 5.01 custom Rom (Arcadia) its deoxed?
[Galaxy S II Themes and Apps] degsyh:
I've managed to get this up and running (eventually) on my Z1 Lollipop. There's just one policy that seems to be slipping through the net - "Disable installation from unknown sources". It disables the toggle for sideloading apk's. I'm not quite sure why this policy would change between KitKat and Lollipop but I cant find any info on overwriting it. Anyone got any ideas??
[Galaxy S II Themes and Apps] mmalka:
So, currently there is no hope for Galaxy S4 users running the AT&T stock Lollipop ROM?
[Galaxy S II Themes and Apps] RedSkyRoad:
Hi,

What is the latest version of the file PrebuiltExchange3Google.apk and where can I get it?

PS: Apart from adding this file to the /system/app folder, is there a more recent/better way to bypass the gmail app's exchange security?
[Galaxy S II Themes and Apps] solar666:
Use xposed, there is a module for bypassing security. working great here
[Galaxy S II Themes and Apps] greatg:
Exposed does not work under Lollipop (Touch wiz)
[Galaxy S II Themes and Apps] solar666:
He did not mention the use of touch wizard Samsung ROM.
[Galaxy S II Themes and Apps] musicfreak190:
anyone try this on an odexed custom rom on the Verizon Galaxy S6 yet?

I remember Odexed Email working I believe.... I should just be able to point it to the right folders and kill my policy.
[Galaxy S II Themes and Apps] kt82:
I get this patch work for CM12.1:

The name of Email and Exchange APKs have to be:

Email/Email.apk

Exchange2/Exchange2.apk

So everything works fine.
[Galaxy S II Themes and Apps] dr.mz:
Which app do u mean?

Because I just installed cm 12.1, 5.1.1 on note 3 and I got gmail app only

thank you
[Galaxy S II Themes and Apps] doudouhightech:
I got a Zenfone 2, and I only find one apk which is called asusemail.apk but no other "exchange.apk" or something like that. Have you got any idea if it's possible to use the patch and how it can be done ?

Thanks in advance.
[Galaxy S II Themes and Apps] Masteryoda_:
Hi can you find a solution for zenfone. Also I have same problem.
[Galaxy S II Themes and Apps] pankajvg:
Nexus 6

Can someone help me for nexus 6 5.1.1
[Galaxy S II Themes and Apps] best98:
Hi

For Android 5.1, I used the Exposed Framework hack.. that works perfectly !

Pierrick
[Galaxy S II Themes and Apps] pankajvg:
can you give me link of the same and if possible steps please
[Galaxy S II Themes and Apps] best98:
Xposed .. : http://xdaforums.com/xposed/official-xposed-lollipop-t3030118 - could be one way.. ;)
[Galaxy S II Themes and Apps] greatg:
I just upgraded to Emporia V2 Rom (5.01) and I cannot get the patch to work. Has anyone had any success? If so, I would really appreciate some help...
[Galaxy S II Themes and Apps] Marshall07:
Please, ignore SmartLock restrictions, too!

I confirm it works on Nexus 5 with stock Android 5.1.1 using the following when it asks for Email and Exchange path:

PrebuiltGmail/PrebuiltGmail

PrebuiltExchange3Google/PrebuiltExchange3Google

I have one request:

I noticed that this patch disables keyguard only for the PIN request.

I don't mind using PIN as long as I can use Smart Lock

, but my exchange policies disable it! Is there any way to mod the patch in order to ignore also Smart Lock restrictions?

One more question: has anyone tried it on Android 6 Marshmallow?

Regards

Marshall
[Galaxy S II Themes and Apps] joejun:
thank you!
[Galaxy S II Themes and Apps] Marshall07:
Not working on Nexus 5 w/ Android 6 Marshmallow

I tried it on my Nexus 5 with Android 6 and it doesn't work:

[SIZE="2"]Downloading adb...
Waiting for USB connection...
Checking device...
Model: Nexus 5, build MRA58K, android 6.0 (API Level 15)
/system mounted on /dev/block/platform/msm_sdcc.1/by-name/system, mode ro
checking root access. root uid: 0, secure: yes, busybox: yes
Can't detect boot class path. Using defaults...
Pulling app(s) ...
Can't find Email app. Enter the name of your Email apk or press <Enter> to exit: PrebuiltGmail/PrebuiltGmail
Can't find Exchange app. Enter the name of your Exchange apk or press <Enter> to continue: PrebuiltExchange3Google/PrebuiltExchange3Google
Pulling libs ...
Decompiling PrebuiltGmail/PrebuiltGmail.apk ...
Applying patch ...
Unable to apply patch. Code to patch not found.
Decompiling PrebuiltExchange3Google/PrebuiltExchange3Google.apk ...
Applying patch ...
[B][COLOR="Red"]Unable to apply patch. Code to patch not found.[/COLOR][/B]

*** Patch aborted.[/SIZE]

Bye

Marshall
[Galaxy S II Themes and Apps] sharklaser:
Samsung Note 4, 5.1.1

Does anybody what files to patch on Note 4. The files i have are:

# ls /system/priv-app/*Email*
SecEmailComposer.apk
SecEmailProvider.apk
SecEmailSync.apk
SecEmailUI.apk
ic_launcher_email.qmg
SecEmailWidget.apk

There is no *Exchange* apk on the device.

---------- Post added at 05:18 PM ---------- Previous post was at 05:14 PM ----------

Which xposed module did you use?
[Galaxy S II Themes and Apps] sharklaser:
Which xposed module did you use?
[Galaxy S II Themes and Apps] Jeroen1024:
request

Hi!

Thanks for all the work!

Do you mind sharing the sources of version 4.4 with us?

BG,

Jeroen.
[Galaxy S II Themes and Apps] rustyx3:
https://github.com/rustyx/email-policy-patch
[Galaxy S II Themes and Apps] rustyx3:
Version 4.5 is released with improved support for latest Galaxy devices!
[Galaxy S II Themes and Apps] EEKNEHC:
Thank you for the update, but still not working for samsung Note 5(N9200) for emails apks is not same as before.

Here is those files may related email in /system/priv-app/SecEmailXXX folders

SecEmailComposer/SecEmailComposer.apk

SecEmailProvider/SecEmailProvider.apk

SecEmailSync/SecEmailSync.apk

SecEmailUI/SecEmailUI.apk

SecEmailWidget/SecEmailWidget.apk

I extract them in below package "email.rar" if you can help.

http://www.mediafire.com/download/r7sjghdu4xx305p/email.rar

This is the basic information from "debug.log"

ro.build.display.id=LMY47X.N9200ZCU2APA1

ro.build.version.incremental=N9200ZCU2APA1

ro.build.version.sdk=22

ro.build.version.codename=REL

ro.build.version.all_codenames=REL

ro.build.version.release=5.1.1

...

ro.product.model=SM-N9200

ro.product.brand=samsung

thank you very much.
[Galaxy S II Themes and Apps] rustyx3:
First alpha Lollipop support

Version 4.6 released with (hopefully) Lollipop support! (Untested)

Since I don't have access to a Lollipop device at the moment could someone please test and PM the debug.log to me?

Note this version will only patch the Email app, it will not touch the new GMail Exchange plugin.
[Galaxy S II Themes and Apps] EEKNEHC:
Thx, no lucky for samsung email like /system/priv-app/SecEmailxxxxx/Secxxxx.apk :(

even no debug.log been generated when failure - compare with 4.5, win32 platform
[Galaxy S II Themes and Apps] rustyx3:
Well that's not good, it looks like Samsung forked the AOSP code and went their own way with regard to Exchange support.

As it is now the patch can't handle this version, as the code seems quite drastically refactored. :mad:
[Galaxy S II Themes and Apps] newyankee:
Some work has been done here http://xdaforums.com/galaxy-s5/development/guide-add-toggle-to-bypass-email-t3129898. It does work on LP so far. But this version is not disabling the forced admin altogether, for example app updates, sideloading and probably some other stuff is not being adressed and still disabled with my corporate server.
[Galaxy S II Themes and Apps] Killa-Bee:
does this patch work with Xiaomi MIUI 7 ROM?

could manage to make this work on my Redmi Note 2
[Galaxy S II Themes and Apps] daniello8:
Hmm, I think I am not the first to ask apply-patch.cmd usually prepends system/app/ to the path when it asks for the location of the files. On my current phones they reside below system/priv-app/ .. is there any way I can apply the complete path to the patch batch?

Edit: I helped myself by shifting the files .. but anyway .. if there is a method please let me know :)
[Galaxy S II Themes and Apps] starmachinery:
patch 4.6 can't find email apk - Lollipop

Hello,

I'm having trouble applying the patch, is anyone able to help?

$ sh apply-patch.sh
Cleaning up ...
Found adb on PATH.
Waiting for ADB connection...
Checking device...
Model: C5503, build 10.7.A.0.228, android 5.1.1 (API Level 16+)
/system mounted on /dev/block/platform/msm_sdcc.1/by-name/system, mode ro
checking root access. root uid: 0, secure: yes, busybox: yes
Can't detect boot class path. Using defaults...
Pulling app(s) ...
Can't find Email app. Enter the name of your Email apk or press <Enter> to exit: /system/app/Gmail2/Gmail2.apk

*** The Email apk was not found.

The same thing happens if I just put /Gmail2/Gmail2.apk - but that's where the email app is on my system. Exchange app is /Exchange3Google/Exchange3Google.apk
[Galaxy S II Themes and Apps] adbiko:
Exchained

Just published a new app for this: Exchained ! Works with native mail clients, including gmail, with no need to root.

Search for "biko exchained" in the Play Store.

Please don't be too harsh if you encounter issues (uninstall within time limit to get refunded and send us feedback) as this is our first app :p
[Galaxy S II Themes and Apps] groumfi:
Hi,

Successfully patched Email client on CM12.1 for Galaxy Note 3.

I had to instruct apply-patch.cmd for location of the Email.apk : Email/Email.apk (using only relative path to /system/app)

Thx!

S.
[Galaxy S II Themes and Apps] X2pacXX:
hallo kann mir jemand bitte in deutsch helfen habe Samsung tab sm t230 Keyguard Test Activity angehalten danach kommt gleich Der vorgang android.process.acore wurde angehalten wie kann ich das beheben

von hier installiert

http://xdaforums.com/tab-4/development/rom-stock-t230-nu-acheron-rom-v1-0-2015-t3000107

Serial NO RF2F50D1SXJ
[Galaxy S II Themes and Apps] blegat:
Hi,

I try your patch v2.1 on my Nexus S 4.0.3 but no luck.

The script stops at Decompiling EmailGoogle.odex...

Cleaning up ...
Waiting for USB connection...
Checking device...
Model: Nexus S, build IML74K, android 4.0.3 (API Level 15)
/system mounted on /dev/block/platform/s3c-sdhci.0/by-name/system, mode ro
checking root access. root uid: 0
Pulling Email app ...
Pulling libs ...
Decompiling EmailGoogle.odex...

Do you have an idea of the problem, what can i do to fix it ?

Thanks.
[Galaxy S II Themes and Apps] rustyx3:
What do you mean stops? Hangs, or quits? Did you wait long enough? Is there a javacore file? You can try this - edit apply-patch.cmd and add -Xmx512m like this:

java [B]-Xmx512m[/B] -cp lib/....
[Galaxy S II Themes and Apps] blegat:
Thanks for your help.

By stops I mean the script exits about 2s after displaying "Decompiling EmailGoogle.odex...". I don't have any javacore file or log.

I try to add -Xmx512m option in apply-patch.cmd but same result !

I don't know if it can help you but I use java version "1.6.0_30".
[Galaxy S II Themes and Apps] CaspaTheGhost:
Sure I remember a .7 version being mentioned earlier in the thread. Can't hurt updating it...
[Galaxy S II Themes and Apps] ArtoD2:
I'm using The Stock XXLP6 ROM:

http://xdaforums.com/showthread.php?t=1463772

And the patch works like a charm!! AWESOME!
[Galaxy S II Themes and Apps] blegat:
Still no luck with java 7 :-(

If it can help you I attach my Email app from the stock 4.0.3 rom:

- EmailGoogle.apk

- EmailGoogle.odex

- ExchangeGoogle.apk

- ExchangeGoogle.odex​

Thanks
[Galaxy S II Themes and Apps] rustyx3:
Well, for most people it works (for me as well). And it works with Java 6 as well as 7. You might want to try with the latest version, 2.2. It has better debugging support.
[Galaxy S II Themes and Apps] DarkDvr:
Patching MIUI Email.apk:

I don't see a post with good explanation of what needs to happen for this to work on MIUI ROM, so here it is:

In MIUI, find the built-in superuser app and enable root

Check to make sure you get adb connection (start - run - "cmd" - "adb devices"). If you don't see an ID, check your USB Mount settings in MIUI

Run the patch. Version 2.2 (or earlier) will say that it's unable to copy the Email.apk to the /system/app. That's fine.

Go to "work" directory (same level as patch batch file)

Copy the Email.apk from there to your /system/app folder on your phone (either use Root Explorer, or adb push, whichever you prefer)

Launch Root Explorer and go to /system/app

Long-tap on the new Email.apk that you've copied over. Tap Permissions.

Check ONLY these boxes: Owner-Read, Group-Read, Others-Read, Owner-Write. So only 4 boxes checked total. Tap OK.

Reboot the phone. Your email.apk will show up on one of the screens (it may create a new one at the very end, look closer).

Enjoy.

If you don't have Root Explorer, you can use adb shell to set permissions with chmod. Refer to adb documentation for specifics.

If this helped you, please click the "Thanks" button :)
[Galaxy S II Themes and Apps] blegat:
with version 2.2 the script works well, It backups EmailGoogle.apk and EmailGoogle.odex and then copy the patched EmailGoogle.apk. The phone reboots as well.

The problem now is that in Email app I don't have the Exchange account type !!! I can only configure POP and IMAP account.

I think your script doesn't care about ExchangeGoogle.apk, I don't know...

Thanks