yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] Shahali:
FOR Android 4.3 -

I FORGOT WHAT I DID - So read my old instructions and modified it to work with ANDROID 4.3

On STOCK 4.3 Rooted

1) Root Device - See plenty of guides on how to.

2) I then transferred the modded ZIP file to the Root (By plugging in nexus to PC and dropping in to the main root folder,

3) DELETE ALL EXCHANGE EMAILs by deleting your account.

4) Use Root Explorer and RENAME (Easier incase you mess up) the files exchange2google.apk and gmail.apk and their relevant .Odex files. I renamed then to something like exchange2google.apk.bk so i can re-undo it if needed.

5) Reboot into TWRP and select install zip and locate the file on the nexus device.

6) After install Wipe the Cache/Dalvik cache and then reboot.

6b) NEW STEP: Rename the transferred files as EXCHANGE2.APK to exchange2google.apk and Email2.APK to EmailGoogle.APK

7) From the app drawer re-install your exchange details. I will ask you to set up and give it admin permission and just agree to all.

VOILA - all done. Now when you lock you can use the FACE UNLOCK or PIN BUT ALSO have access to other lockscreens an camera.

---------- Post added at 05:58 PM ---------- Previous post was at 05:48 PM ----------

Even easier:

Just copy the files in the Zip into the system/app folder. then

1) Use Root Explorer and RENAME (Easier incase you mess up) the files exchange2google.apk and emailgoogle.apk and their relevant .Odex files. I renamed then to something like exchange2google.apk.bk so i can re-undo it if needed.

2)Rename the transferred files as EXCHANGE2.APK to exchange2google.apk and Email2.APK to EmailGoogle.APK

7) From the app drawer re-install your exchange details. I will ask you to set up and give it admin permission and just agree to all.
[Android Apps and Games] craigacgomez:
Update github source with CM-10.2 (Android 4.3) changes... (branch cm-10.2)... https://github.com/craigacgomez/android_email_policy_patch

New release for Android 4.3 soon...
[Android Apps and Games] craigacgomez:
Updated release 4.0 for Android 4.3 in OP
[Android Apps and Games] xHausx:
Thread moved to Android Apps & Games.
[Android Apps and Games] themichael:
Has anyone tried this on a 4.1.2 touchwiz based ROM? I don't mind that its the aosp version of email as long as it gets rid of the security requirements :)
[Android Apps and Games] sulx:
Thanks for this. Worked perfectly on CM 10.1 / Galaxy S4. Keep up the good work!
[Android Apps and Games] sheffx0r:
Does anyone have the original, unmodified APKs from 4.2.2? Trying to update to 4.2 via the OTA zip but the modified exchange APK's are causing me some trouble.

Thanks!
[Android Apps and Games] priyam1309:
Worked like a charm..
[Android Apps and Games] daniello8:
Will this mod allow me to enable/disable PIN screen lock without having to remove the administrator i.e. re-setup my secure outlook profile?

I used it a while ago but I can't remember if this worked. I would like to set up a location based profile that activates/deactivates PIN screen lock.

edit: tried it and it works. have it running on my samsung tw rom now.
[Android Apps and Games] ptmuldoon:
Will this work on a Stock Rooted Samsung Galaxy Note 2? I tried to install the Stock 4.1 zip file with TRWP, but was told it failed.
[Android Apps and Games] eseregin:
You need to run AOSP based ROMS

Not CrapWiz from Sammy 8-)
[Android Apps and Games] daniello8:
This is not true.
[Android Apps and Games] Haul:
I installed v3.1 for 4.2 on a stock/unlocked/rooted VZW Galaxy Nexus. I then wiped cache and dalvik cache, but when I try to add my Office 365 account, it still prompts me to setup Device Administrator. Is this expected behavior? I'm fairly certain that I installed the .zip properly since I now see Email2.apk and Exchange2.apk in /system/app instead of the stock EmailGoogle.apk/odex and Exchange2Google.apk/odex.
[Android Apps and Games] matt68000:
You may still get prompted to setup Device Administrator. In my experience, simply entering the device admin view, then hitting the back button eliminates the prompt and still allows you to check your exchange based email. Are you finding this not to be the case?

Cheers,

panZ
[Android Apps and Games] Haul:
Hi, I just tried again to be triple sure, but this doesn't work for me. My understanding is that the back button trick is dependent on your Exchange server's policy, and whether it works or doesn't work won't be changed by this mod. But it's always possible that my understanding is wrong!
[Android Apps and Games] damnostix:
Please help this noob....I'm using GNote2 Android 4.1.2 stock rooted....when i opened path: device/system/app using ES File Explorer i found SecEmail.apk, SecEmail.odex, SecExchange.apk, SecExchange.odex....

The questions are :

- which mod should i download?

- if i want to push that mod files via ES File Explorer, than what should i do?

Please explain it step by step....thx
[Android Apps and Games] NegativeOne:
How did you test remote wipe?
[Android Apps and Games] daniello8:
Something bad has happened to my 3.1 installation. Sync doesn't work anymore and if I delete the account I get "connection to server cannot be opened". But if I use another exchange client it works though. Could you please look into this as it seems to be a problem specific to this app.

edit: started from scratch and now it works again .. maybe something in my rom was messed up .. I don't really know.
[Android Apps and Games] dirtynbl:
Does this work for Google Apps?

My new company is running Google Apps, but I had to download the "Google Apps Device Policy" app which wants me to have the five digit pin and encryption and etc. I really don't care about anything but the pin which is hella annoying every time I want into my phone.

Is it the same process as this or is there another way to do it? Anyone have any ideas?
[Android Apps and Games] Credrili:
My company uses an exchange server, I can log on and select remote wipe which it successfully wiped it... only way to avoid this, as far as I know so far, is to dish out $20 for Touchdown.

They are the only ones that have developed an M$ exchange app that doesn't wipe your phone - only the app data itself when you click "remote wipe". That's all I needed. My company doesn't require a PIN unlock.
[Android Apps and Games] sachinss:
Works great on my new Nexus 4 with JB 4.3! Thanks a lot!

~S
[Android Apps and Games] Beefmeister:
That may have been true of the older versions when you posted, but I don't think it holds true for the newer versions.

v3.1 and v4 do initially ask for administrator rights, but when you click to Accept this it doesn't actually add email as an administrator under the security settings.

I haven't actually tried to test the remote wipe yet, but I am pretty sure that it won't work now.
[Android Apps and Games] phija:
Grafics error in 4.3 (Jellybam 10.0.0 based on CyanogenMod 10.2)

Hello,

I have been using this App Mod in my i9100 for quite a while and it's been doing a great job - thank you very much for that!

Now I used it on Jellybam 10.0.0 (as on many Jellybam releases before) and it's not displaying correctly, in the single mail view right after opening the email only the message text window is shown, after half a second the sender bar right above the text shows up, but the top and bottom button rows are completely black, only if I press the home button and restart Email the menu buttons are displayed in the single email view.

Here are some screenshots (name pixeled manually):

[Unfortunately as until now all my questions were answered by just reading, so now I am not allowed to post outide links in my first ten posts, if you let me know how to post screenshots despite this regulation I would be happy to...]

I would be very happy for some advice.

Thank you and greetings

phija
[Android Apps and Games] Amon_RA:
It doesn't seem to work on rooted Android Stock 4.3.

Every time I select a user certificate I'm forced to use Android's credential storage which forces me to set a lock screen PIN or password :(

Steps to reproduce :

1. Remove all Email accounts

2. Delete ExchangeGoogle.apk, ExchangeGoogle.odex, Exchange2Google.apk, Exchange2Google.odex from system/app and replace them with the modded v4.0 versions.

3. Wipe dalvik-cache in recovery

4. Boot

5. Open Email app

6. Enter account email and password

7. Select Manual Setup

8. Select Exchange

9. Choose a Client certificate by pressing the Select button

10. Select Install

11. Enter the password of the certificate

12. Select OK

-> Notice the message that you'll need to set a lock screen PIN or password before you can use credential storage...
[Android Apps and Games] Oleschuldad:
Error 6 when flashing

Newest patch when trying to flash on Slim 4.3 Beta 2........error 6 ?
[Android Apps and Games] Oleschuldad:
*******UPDATE********

As info...I found another patch here on XDA that was able to successfully flash and disable the exchange pin code on Slim 4.3 rom even though its for 4.2..

http://xdaforums.com/showthread.php?t=2291151
[Android Apps and Games] tjsooley:
Thanks
[Android Apps and Games] PirateNL:
I get an error while installing the 4.3 version:

Error in /sdcard/ExchangeNoPIN-4.3.x-v4.0.zip

(Status 0)

Installation aborted

Already tried:

- Download it again

- Other recovery

But that doesnt seem to work

Any help please?

EDIT: Pushed the 2 APK files with ADB and it's working now... still havent got a clue why I cannot flash the ZIP file
[Android Apps and Games] sandro123:
Hi

I have exactly the same issue as you, any Ideas ?

Ciao

Sandro
[Android Apps and Games] pradeepb:
deleted
[Android Apps and Games] daniello8:
how did you fix it? I have exactly the same problem you explained before you deleted your post.
[Android Apps and Games] pradeepb:
I had kept sync option in normal settings to off.. That's the reason it was gibing error to me..

Hope it helps to u :)
[Android Apps and Games] daniello8:
No ... but I think it's the rom I use. Thanks anyway!
[Android Apps and Games] pradeepb:
Just try remove account, wipe dalvik cache n and try adding account..
[Android Apps and Games] daniello8:
Tried that .. it only displays "Waiting for Synchronization" and "your emails will be displayed shortly" .. but the working animation never stops and nothing is displayed. Authentication worked fine .. just like in your case.

In the account it displays as "synchronization off" and if I say "sync all there" it takes a second an the last synced time updates.

Nevertheless I see no mails and I don't find a toggle to switch "synchronization on" there.

Rom is ParanoidAndroid 3.99 (Android 4.3) on old version Nexus 7 3G.
[Android Apps and Games] jarekjd:
I had exactly the same issue. Any ideas how to solve it?

My rom is SGP311_10.1.C.0.370 DE_Unbranded on Xperia Z tablet.

i have wiped all email data/ cache/ dalvik.
[Android Apps and Games] Marhey:
I am using this mod on the PacRom 4.3 for the Galaxy S4 on Verizon. It works until a reboot (or some other variable that I can't figure it.) I'm happy to get logcats or anything needed if it'll help.
[Android Apps and Games] _imac_:
Completely the same. But on a stock ROM.
[Android Apps and Games] Grompy:
I'm on CM10.2 Android 4.3, I couldn't get it to work via flashing in recovery. I had to manually push the .apks using adb. It works great though after pushing them. Thanks for this!

If I tried to add my exchange account it'd just hang after entering my exchange information. I opened my file explorer after flashing in recovery and the date on Exchange2.apk was new, but the Email.apk wasn't updated for whatever reason. I tried deleting them then going to recovery and reflashing, but didn't help either. Pushing via adb correctly overwrote the existing Email.apk and works! :)

Grompy
[Android Apps and Games] Qevinator:
Hi everybody,

I would

really

like to have this mod for my HTC One X with Android 4.2.2 and build-number 4.18.401.2. I've searched everywhere, but can't find it. Does anybody know if this mod exists for my phone?
[Android Apps and Games] fabyloso:
Will the 4.2.x file work on a stock rooted phone (LG G2) running 4.2.2? I know it says you must/should be on a AOSP ROM but there isn't one available yet on my phone.
[Android Apps and Games] force70:
It worked on my stock rooted s4 if that helps.

sent from Canada via my S3,S4 or Note2
[Android Apps and Games] fabyloso:
It worked, thanks for your reply. Although, it didn't remove the stock email app, so I had to make sure I signed in using the new email app.
[Android Apps and Games] _imac_:
Anyone tried this on MIUI v5???

Mine is not working!
[Android Apps and Games] HTC-Gunge:
are the links working for everyone else? I cant seem to get any of them, is there any other mirrors?

Edit: Ok seems DevHost is down and they are working on it: https://twitter.com/DevHostOrg
[Android Apps and Games] ntquartex:
It works well on my stock rooted htc one x 4.2.2 with sense 5.But i think htc email application was more useful. Is it possible to adapt this method on htc email app?

Sent by Tapatalk 4 on HTC OneX...
[Android Apps and Games] prabhjots:
Finished trying this on CM 10.2 (4.3) on my Samsung Galaxy SIII GT-I9300. I'm not sure if this is supposed to work on CM10.2, but I used the "Android 4.3" version in the first post.

I tested using the "Wipe" feature present in the Outlook Web Access portal..

The patch appears to have worked initially, since it didn't add the device administrator. When I hit "Wipe" it showed "New security policies need to be applied", instead of wiping. Irrespective of whether I click accept or cancel, On the OWA, it shows "Device Wiped Successfully".

So far, so good.

The problem lies now, if we accept the new security policies, then email app IS made the device administrator and the device proceeds to be wiped.

This is not the only problem here. Exchange is configured in such a manner that once a device wipe is issued, it will continue to wipe and rewipe the device if it tries to connect again, unless it is manually removed from Outlook web access. (NOT sure what can be done in this case, since effectively the device will not sync once a wipe has been issued.)

In effect, we are notified when a wipe is issued by a notification about "new security policies". I removed my account from the phone, without accepting the new security policies. However, even after removing, the notification keeps recurring until and unless we accept it. (Then, the device wipe proceeds.)

Any help in this regard will be appreciated. Thanks in advance !! :)
[Android Apps and Games] JohnnyEpic:
Wish I had found this prior to buying 4 copies of Enhanced Email app which does this. Ugh!
[Android Apps and Games] albert88rules:
Lotus

This app here seems great from the description. I can't find something like this for Lotus traveller. The earlier versions of Cynagenmod(v7) had a feature where we could disable the pin lockscreen that traveller had. Unfortunately, now that it sets up as a device admin, not sure how to bypass that. What makes things sick is that their implementation of it is faulty. So it locks the screen with the pin lock even if the timeout is set to a longer period. :eek: Can something like your app be devised for Lotus traveller? :D
[Android Apps and Games] dfyxda:
Can you pl check wether before setting up the account(may be delete the current account) ,enable auto-sync option and set it up.

I also lost atleast 5 to 6hrs on doing same and resolved by this modification.

Ironically the stack Email works with out the auto sync also.Hence I never thought of making it explicity on.
[Android Apps and Games] daniello8:
Another user gave me hint but the option I had to activate was too hidden for me to find it so it needed a second attempt.

Fixed by: Settings -> Data usage -> Options: AutoSyncData -> Reboot
[Android Apps and Games] prabhjots:
Works only till restart of the phone. After that, starts asking for device admin (and installs it) on latest cm 10.2 nightly 02 oct
[Android Apps and Games] go4desperado:
something convinient

Our Lotus admin had set rules for devices to enfore "Strong passwords" :mad::mad:

This makes me get rid of password thingy, & i m back to my pattern/pin of my choosing :)

Hats off :):good::good::highfive:
[Android Apps and Games] Grompy:
Try manually pushing it via adb.
[Android Apps and Games] bomberb17:
Is there any way to load all the messages and keep them saved in the app when I'm connecting to an IMAP server?
[Android Apps and Games] pp.parthiban:
Perfect

DOWNLOAD (Android 4.3.x):

ExchangeNoPIN-4.3.x.zip (v4.0)

Working Perfect. Thank you..!:good:
[Android Apps and Games] el5arsawi:
Thank you works perfect ... i had the waiting for sync issue all i did is clearing its data then removed it used TB and flashed the zip .. enabled auto sync frkm settings and set up my account and it worked perfect

Sent from the great N7000 using P.A.C MAN 4.3 rom
[Android Apps and Games] blewis540:
can't seem to get this to work on the note 3 tw 4.3

Any reason why?
[Android Apps and Games] luke1404:
Well a little more info than I cannot get it to work may help?

Are you receiving errors, sat waiting to sync? What exactly is the problem?
[Android Apps and Games] blewis540:
Installs fine but doesn't remove security

Installed using twrp

maybe the touch wiz rom has a different email version than asop?
[Android Apps and Games] wirelessness:
Any ideas on how to get around this Status 6 Error?
[Android Apps and Games] CaspaTheGhost:
Try this combo, I'm using it with an MCR custom bake. Exchange will FC twice on setup but then work flawlessly...

I add it to the ROM before flashing but using root explorer or the like works fine also...

http://db.tt/MwRFuGfE (its not a CWM zip!)

Sent from my Galaxy Nexus
[Android Apps and Games] craigacgomez:
Updated with patched AOSP 4.1.1 JRO03C modded files... also updated the ROM update script to be more generic...
[Android Apps and Games] ober37:
I can't seem to get this to work. I removed my exchange account and booted into CWM. I installed it without error. When I rebooted, exchange service and email immediate reported that they stopped.

When I attempt to create my exchange account, nothing pops up that allows me to do so (every now and then I'll get another "email has stopped" type of message.

I am running 4.1.1 Vicious V1 with beta 9 faux kernel
[Android Apps and Games] vkennedy:
+1
[Android Apps and Games] kwatch72:
Thank you!

One of the best hacks. Loved this on ICS. Thanks for bring over to Jelly Bean. Works great!
[Android Apps and Games] martinohansen:
Does this work on a odexed?

First of all thanks for this awesome "app mod"

But does it work on a odexed Android 4.1.1 JRO03C?
[Android Apps and Games] ober37:
Any suggestions on how to work around the situation above where it does not allow me to recreate my exchange account. Anyone see this and find a solution?
[Android Apps and Games] sitaramp:
Do I have to remove any apk files under system/ app directory?
[Android Apps and Games] DaSheikh:
This was exactly what I was looking for. However, it didn't work for me.

I've got a takju Stock4.1-JRN84D...

I flashed it in CWM, rebooted, setup the account from scratch (there was no setup before)... no force closes... when it finished setting up it still requested Admin over the device and I had to activate the admin to get e-mails. :crying:
[Android Apps and Games] craigacgomez:
I downloaded Vicious-JB-4.1.1 and found out that the email & exchange apps being used are the ones provided in the OTA/Stock build, not the AOSP build... Use the Stock JRN84D mod instead... but you will have to manually remove Email.apk & Exchange2.apk from /system/app/

I don't have an odexed 4.1.1 ROM yet... Let me see if I can get one and mod it!

Ideally, you shouldn't have to...
[Android Apps and Games] sitaramp:
I am using Modaco Jr2 ROM. After installing the zip file i have two instances of "Email" icons in app drawer.

I guess it is safe to delete the following two files in /system/app dir:

- EmailGoogle.apk

- Exhange2Google.apk

Update: deleting files caused exchange to crash Every few seconds. I had restored the files back.

The trick is to use the right "Email" app(in my case second icon instance)

Update 2: modaco ROM uses ota/stock exchange apk. I installed the stock 4.1 zip from the OP. Every thing is working as expected. Thank you
[Android Apps and Games] ober37:
Thanks!! The fix worked. I used the 4.1 and it seems to be working just fine.
[Android Apps and Games] arrjaytea:
Anyone sort out what the battery life issue is? Mine has been absolutely decimated by this patch. Exchange Services at 60% battery, phone taking ages to charge.
[Android Apps and Games] craigacgomez:
Added stock/ota 4.1.1 JRO03C version... thanks to @psychedel!k from rootz for the original apks.. updated first post... please read new section titled IMPORTANT
[Android Apps and Games] craigacgomez:
The only time I've seen this is when I flashed a new ROM with non-patched versions over the existing ROM after setting up and account with the patch version...
[Android Apps and Games] arrjaytea:
Hmmm, any issues with backups? I've been on the same ROM/theme combo the whole time.

Any fix?
[Android Apps and Games] craigacgomez:
A couple of questions...

1. Did you restore data for Email & Exchange2 from a backup before you applied the mod?

2. Does the theme include Email & Exchange2 apks?
[Android Apps and Games] arrjaytea:
01. No.

02. Yes.
[Android Apps and Games] craigacgomez:
Well, I guess that's your problem... unless you themed the apk yourself or used a metamorph type theme... if it replaces email & exchange apks with themed apks without the mod and you set up your account using the modded apks... it as good as the issue i mentioned earlier...
[Android Apps and Games] jayboyyyy:
you can try pushing it manually. you may also still be using the old app if it didn't actually replace the right email.apk. meaning you may have two email apps now. also, the security prompt still appears and everything it just doesn't force any security protocols after it says it is going to.
[Android Apps and Games] blewis540:
Yeah I know about the prompt... lol except it still does enforce... how would I know if theres two installed? There remains only one email in the application list
[Android Apps and Games] jayboyyyy:
Just do it manually. Its really easy and you don't even need to know how to use adb. Download file. Extract the two apks from it (email and exchange). Connect phone to computer. Put those apks on your phones SD card. Go to your system/app directory in root explorer or es file explorer. Rename your two email apks (and possibly their odex files depending on your device) with a ".bk" at the end so you can easily restore them if needed. Move the new apks to the same directory. Give it permissions of rw-r-r. Then reboot phone and you are good to go. Make sure to delete your email accounts before doing anything.
[Android Apps and Games] blewis540:
I figured it out bored on my flight... Note 3 has secemail.apk and secexchange. Apk I removed them using titanium backup and reapplied the fix in twrp and it now works
[Android Apps and Games] prabhjots:
Can this be refactored to another name, so it doesn't need to be a system app but a user app? That ways it could help on unrooted devices as well. Is this possible?
[Android Apps and Games] zdravke:
It does not work on my Nexus 4 with stock 4.3. Now email and exchange go into force stop.
[Android Apps and Games] pinn___________:
Yeh,,Im getting the same on my N10 running Craig's Flaming Monkey rom. Does it not run on that, Craig? Ta
[Android Apps and Games] TripFlex:
Wanam Xposed has option to disable this

If you're having problems doing this yourself, you can try using Wanam Xposed (must have root) and it should work :)
[Android Apps and Games] pinn___________:
Tried both the modules on Wanam but no go :( Thats why I went with this but now ,just have the apps crashing out
[Android Apps and Games] celltestr:
Can we get the KitKat version please? KitKat Email.apk
[Android Apps and Games] rabbly:
Just ordered the Nexus 5 so I definitely second this!
[Android Apps and Games] BlackFang171:
Need Exchange2Google.apk as well.
[Android Apps and Games] pinn___________:
Try this
[Android Apps and Games] [V]endetta:
same here...really appreciate OP :)