i am trying to install the htc mail.apk. i am currently running shadowrom. i tried doing an adb push. it said it copied to \system\app but when i go in there with astro the .apk is nowhere to be found. Is it possible to run this with shadowrom? the reason i am trying to use this one instead of the email.apk one that came with the rom is because my cheap ass companies server is not compatible with the email.apk. with the htc mail.apk i was able to enter all the stuff and when it failed to check the settings i was able to just save them and it would work. with the email.apk i am unable to save them it just keeps telling me to edit the details. any help with this would greatly be appreciated. adb seems to be functioning properly to me. i just learned how to use it about two hours ago. but i tell it adb push mail.apk \system\app. it says it copied it but it doesn't show up. Thanks in advance
Are pushing the .apks when you are in recovery?
Sent from my Incredible using XDA App
It was in recovery. I tried with system mounted and without.
try it using root explorer..just drop the file in..restart
or try k9 Mail. I love that program. It seemed very similar to HTC's
qmartman711 said:
try it using root explorer..just drop the file in..restart
or try k9 Mail. I love that program. It seemed very similar to HTC's
Click to expand...
Click to collapse
i tried using root explorer.... didnt work lol. i did hook up k9 mail and now i am sending work emails across the company from my phone. now i don't have to go into the office everyday. Thanks for all the help. i wish i had known about the k9 mail awhile ago. now i can flash a different rom.
Try ROM Manager
In ROM Manager, go to Download ROM>Ihtfp69>Goodies fro 2.2+>HTC Mail.
Let it install, see if that works.
facepunch said:
i am trying to install the htc mail.apk. i am currently running shadowrom.
Click to expand...
Click to collapse
ShadowROM is an AOSP ROM. I do not believe the HTC mail program will work as there is no Sense in ShadowROM.
There are several kinds of ROMs for the Incredible. HTC Sense based ones. HTC Vanilla ROMs which are ROMs that have most of the extra bloat removed but still have the underslying Sense dependencies (SkyRaider Vanilla is an example). Finally, AOSP ROMs which are Android Open Source Platform ROMs. These are what the phone manufacturers get from Google and embed their interfaces/applications/tweak in to. HTC has Sense. Motorola has Blur. These are all based on AOSP. It is one of the reasons internal storage was broken for a while on ShadowROM and Cyanogen. Why? Because Google doesn't program for every phone and every phone doesn't have it so the AOSP didn't support it. It's a vendor added feature. Likewise a Sense kernel typically does not work with an AOSP ROM as well.
ruggar said:
ShadowROM is an AOSP ROM. I do not believe the HTC mail program will work as there is no Sense in ShadowROM.
There are several kinds of ROMs for the Incredible. HTC Sense based ones. HTC Vanilla ROMs which are ROMs that have most of the extra bloat removed but still have the underslying Sense dependencies (SkyRaider Vanilla is an example). Finally, AOSP ROMs which are Android Open Source Platform ROMs. These are what the phone manufacturers get from Google and embed their interfaces/applications/tweak in to. HTC has Sense. Motorola has Blur. These are all based on AOSP. It is one of the reasons internal storage was broken for a while on ShadowROM and Cyanogen. Why? Because Google doesn't program for every phone and every phone doesn't have it so the AOSP didn't support it. It's a vendor added feature. Likewise a Sense kernel typically does not work with an AOSP ROM as well.
Click to expand...
Click to collapse
I learn so much here.
This patch was originally created for Samsung Galaxy S II and Galaxy S III, but it might work for other devices* running Android 2.3 or 4.x because it patches the Email application that you have on your phone. This is not a pre-patched Email.apk.
* Motorola Blur (Droid), LG G2 and HTC Sense - based ROMs are not supported!
What does it do?
It will make the Email app ignore Exchange-pushed policy on your device, including things like mandatory pin lock (a.k.a. keyguard), minimum password length, encryption, etc.
How to apply this patch?
Root your phone. Your phone must be rooted. It is impossible to apply this patch without root access. You need root to proceed.
Get Java (Java SE JRE v7 or later)
Get USB ADB drivers (for Samsung, install Samsung USB Drivers). Most likely you already have this because of step 1.
Note - ADB via Wi-Fi is also supported. In that case no USB drivers are needed.
Enable USB debugging on the phone (Settings->Applications->Development->USB debugging)
* For CM9 users, also go to Settings > Developer Options > Root access, and select ADB.
Download and unzip attached patch
Run apply-patch.cmd or apply-patch.sh
Note 1: Although the Email app will prompt you for device admin access, it won't actually enforce any policy on your device. Let the app install the device admin!
Note 2: any shortcuts to the Email app as well as any Exchange accounts will disappear and will need to be re-created.
Note 3: The patch will reboot your phone, this is needed for the changes to take effect.
Note 4: If you already installed another Email application and it doesn't work, first restore your original Email application before applying this patch.
A Special Note to those experiencing performance issues! This is not an issue of my patch. This is an issue in the Email app itself. Sometimes calendar sync can't finish properly, causing battery drain. It often happens after you just added a new exchange account. A reboot usually solves this issue. Again, this is not my issue!
Change Log
4.6 - Added basic lollipop support (generic AOSP and CM, no Samsung, alpha, untested)
4.5 - More fixes for Android 4.3 and 4.4
4.4 - Minor release with fixes for KitKat 4.4
4.3 - Bugfix release (adb path errors)
4.2 - ...
4.2 - Bugfix release (IOException)
4.1 - Bugfix release (connection timeout bug fix)
4.0 - Improved ADB support for Mac and Linux (beta)
3.4 - JB 4.3 support (improved boot class path detection)
3.3 - JB 4.2 support (updated adb)
3.2 - Improved Jelly Bean support
3.1 - Added Jelly Bean support (alpha, do not use), minor optimization and cleanup
3.0 - Added Galaxy S III support
2.4 - Bugfix release
2.3 - Will now patch both Email.apk and Exchange.apk, added patch for ProvisionP****r.hasSupportablePolicy(), courtesy of boost252525
2.2 - added ICS isSupported() patch
2.1 - added support for EmailGoogle.apk
2.0 - New patch method based on patching SecurityPolicy's isActive() and isActiveAdmin()
1.1 - Fixed a bug with /system remounting
1.0 - Initial revision based on patching SecurityPolicy.PolicySet <init>
Did the patch work for you? Donations are welcome!
Already patch Email.apk
Your "How to install this patch "is a little to difficult for me.
Is it possible for you to supply an already patched Email.apk ?
In advance thanks
For those who are interested in the source code of this patch, here it is.
https://github.com/rustyx/email-policy-patch
Thanks you
I use the Email.apk with the how to you supply, and All work like a charm.
I want to thanks you very much.
Thank You
Thanks so much for your effort. just want to get one thing clear, since you provided the patched Email.apk can i just install it directly, or do i need to be in recovery mode for example. because in your note you mentioned not to install!
Thanks again
Root explorer will also work! no ADB required!
1) Put Email.apk on your sdcard
2) Go to /system/app and press mount rw
3) remove Email.apk and Email.odex
4) move Email.apk from /sdcard/ to /system/app/
Then you need to setup your email again!
I had to clear the data also in applications -> email
Edit1:
your Email.apk is weird. When i reboot i get the notification that i need to set extra security. But when i press it nothing happends.
And after the email.apk the phone doesn't feel as smooth.. weird
Edit: removed Email.apk (modified) and wen't back to stock! phone is smooth again and works fine
May I ask why u use const/16 ?
const/4 goes from -8 to 8 (2^4) and should be preferred for small constants I think
Fr4gg0r said:
May I ask why u use const/16 ?
const/4 goes from -8 to 8 (2^4) and should be preferred for small constants I think
Click to expand...
Click to collapse
const/4 has also a limited range of destination register numbers, and with the p-format in smali the mapping of p-registers to actual v-registers depends on the number of v-registers. It may happen that in the future more v-register are added, and an existing p-register does not fit in const/4 anymore. Using const/16 is thus more or less future proof.
This is awesome, it woks great
I am on KF1 and it works flawless push with no lag or so
I wonder what happened when we deleted the Email.odex and didn't replace it? we only replace the Email.apk
At first to all, I used tool "FroyoMailUnlocker" to generate my new mail.apk and it worked fine for SGSII on 2.2.3 and also on GT7100 on Honeycomb 3.0.1.
Only problem is that after flashing new OS it need to be installed again.
Does anybody what settings should/can be saved to have an easier restore of the mailbox setup (for my exchange and hotmail accounts)?
Frank
This looks very interesting, but please help me figure out if it will solve my problem:
I have complete security enforced by my work Exchange account.
I need to sync email and calendar with that account.
I want to be able to set a timeout delay to the PIN lock engagement (now it is on immediately as the screen goes black), and it would be nice to use swipe unlock instead of PIN/password.
Will this hack do the trick for me? If so, even with calendar sync?
Thanks!
/Edit: I use the standard email app and calendar om my SGS2
too bad
Hi,
in general I was searching for a long while for this!!!!
Now I have all done as decribed and once I try to create the exchange account it comes back with: "the server requires security settings which your phone dosn't support"
too bad...any ideas?
update:
now it's working...I'd to be patient..
THANK YOU VERY MUCH!!!!
Just to clarify the instructions here (I am noob):
After installing Android SDK, do I unzip the attachement on my PC or phone?
The shell commands, I type them in the adb shell with the phone in recovery mode, or what?
Thanks!
I've been using this hacked app in the past week or so, and it does great what it is supposed to do.
BUT: lately I wanted to see what is draining the battery so fast, and imagine the surprise when I saw that the biggest drainer by far is email.apk, far above the display itself, which is supposed to be the main consumer!!!
Is anyone else seeing this? Do you know about any resolution to this? For now, I just froze the application, but that's not acceptable, since one of the main uses of the phone is to sync up mail, calendar, etc with the corporate one.
catastrat said:
I've been using this hacked app in the past week or so, and it does great what it is supposed to do.
BUT: lately I wanted to see what is draining the battery so fast, and imagine the surprise when I saw that the biggest drainer by far is email.apk, far above the display itself, which is supposed to be the main consumer!!!
Is anyone else seeing this? Do you know about any resolution to this? For now, I just froze the application, but that's not acceptable, since one of the main uses of the phone is to sync up mail, calendar, etc with the corporate one.
Click to expand...
Click to collapse
Do you have push enabled on the account? Try disabling it (setting it to a pull every 15 mins for example).
I had the same issue (without this hack though!) on one of my Exchange accounts, and not using push fixed the issue. It must be an Exchange provider issue, because my work account uses push with no issues.
I don't use push - I have it set for every 1h check during the workday and every 12h for off hours.
I even have disabled all notifications from it...
catastrat said:
I don't use push - I have it set for every 1h check during the workday and every 12h for off hours.
I even have disabled all notifications from it...
Click to expand...
Click to collapse
Hmm I see. Well, if this hack introduces another possible battery draining culprit, I'm not so sure I want to try it. I've spent too much time identifying battery draining apps/processes on my new phone already.
Has anyone else experienced email.apk battery drain after applying this hack?
Me. My phone also slowed down!
There are many factors that may cause a slowdown, which I have no way to reproduce. I can only say that my company's Exchange server is 2003 and that it is the only non-google mail account that I have configured on my phone. I have push enabled. The hack works great with this setup, i.e. no slowdown of the phone, no extra battery drain.
If someone who is experiencing issues can post more details about the version of exchange, sync mode, and any other pop/imap mail accounts configured, I may be able to investigate the issue further.
rustamabd said:
If someone who is experiencing issues can post more details about the version of exchange, sync mode, and any other pop/imap mail accounts configured, I may be able to investigate the issue further.
Click to expand...
Click to collapse
I am running your modded Email.apk in a Galaxy Tab with Gingerbread (Overcome Hermes) and I have no problems with slowdowns or battery drain either. However I am always getting a FC from the mail application when rebooting the Tab. Afterwards it works correctly. I guess it's natural since it is not the native mail application.
I have tried to mod myself the native Gingerbread Email.apk from the Galaxy Tab using your posted code, but it does not work (FC continuously). Although very similar to the Galaxy S II mail application, there must be some differences that make it impossible to just blindingly use your modifications.
Would you be so kind as to have a look at the original Email.apk from the Tab Gingerbread Overcome firmware and suggest a possible mod? Thanks in advance.
Hi,
Can someone please make a Mail.apk without the security policies for exchange servers?
I'm interested in one for stock 4.2.2 2.24.401.1
It was another thread where someone built one for 4.1 and custom firmwares but the developer stopped the support on that thread so therefore I'm opening this one.
someone in the thread made it, based off of 4.2.2:
http://forum.xda-developers.com/showpost.php?p=43541325&postcount=101
confirmation of latest mail.apk:
http://forum.xda-developers.com/showpost.php?p=43569670&postcount=108
Looking for HTC SENSE Mail.APK WITH exchange security to work on Google Edition ROM
ranova said:
someone in the thread made it, based off of 4.2.2:
http://forum.xda-developers.com/showpost.php?p=43541325&postcount=101
confirmation of latest mail.apk:
http://forum.xda-developers.com/showpost.php?p=43569670&postcount=108
Click to expand...
Click to collapse
Hi,
I am looking for HTC SENSE Mail.APK WITH exchange security to work on Google Play Edition ROM. I don't want to mess with exchange security override since I think it is unnecessary and will end up not working with my exchange policies. Does anyone have a stock mail.APK that they know works on the GE Rom?
Ezra
ranova said:
someone in the thread made it, based off of 4.2.2:
http://forum.xda-developers.com/showpost.php?p=43541325&postcount=101
confirmation of latest mail.apk:
http://forum.xda-developers.com/showpost.php?p=43569670&postcount=108
Click to expand...
Click to collapse
I've seen only for modified 4.2.2 firmware.
dinoc said:
I've seen only for modified 4.2.2 firmware.
Click to expand...
Click to collapse
what? if youre rooted, it should work if youre on the latest One firmware
ranova said:
what? if youre rooted, it should work if youre on the latest One firmware
Click to expand...
Click to collapse
I am running the GOOGLE EDITION Rom from this link http://forum.xda-developers.com/showthread.php?t=2358781.
I tried using some of the zips and APKs that I found on the forum.... I was able to successfully get past the first setup page where i entered the server details - which means that it is seeing the server and password etc. is accepted. But after that it fails to create the account giving the message "failed to create the account. please try again later." Now, I know this error is not because of my Exchange Server settings because i get this same app to work any any and all HTC Sense Roms.
ezrabenun said:
I am running the GOOGLE EDITION Rom from this link http://forum.xda-developers.com/showthread.php?t=2358781.
I tried using some of the zips and APKs that I found on the forum.... I was able to successfully get past the first setup page where i entered the server details - which means that it is seeing the server and password etc. is accepted. But after that it fails to create the account giving the message "failed to create the account. please try again later." Now, I know this error is not because of my Exchange Server settings because i get this same app to work any any and all HTC Sense Roms.
Click to expand...
Click to collapse
no, they will not work, you've already made a thread, and replied twice in this thread and its pretty much off topic at this point.
the camera was ported since it the GPE has the sense framework for the camera. I highly doubt the GPE has the framework for the mail. I suggest installing http://forum.xda-developers.com/showthread.php?t=2356512
Hi,
I'm trying to find an exchange security bypass mod for Samsung Galaxy Note 8.0 (3G)
Have tried the following and they all don't seem to be compatible with the stock ROM
XPosed Module - http://forum.xda-developers.com/nex.../xposed-mod-bypass-exchange-security-t2483361
Xposed module - Exchange Security Bypass (No PIN/No Admin) - Android 4.1+ [v6.0] http://forum.xda-developers.com/showthread.php?t=1749921
Any thoughts?
My Device and Software details are
Android version: 4.1.2
Model No: GT-N5100
Kernel version:3.0.31 (KST 2013)
Build number: JZ054K.N5110XXBMD1
consultguru said:
Hi,
I'm trying to find an exchange security bypass mod for Samsung Galaxy Note 8.0 (3G)
Have tried the following and they all don't seem to be compatible with the stock ROM
XPosed Module - http://forum.xda-developers.com/nex.../xposed-mod-bypass-exchange-security-t2483361
Xposed module - Exchange Security Bypass (No PIN/No Admin) - Android 4.1+ [v6.0] http://forum.xda-developers.com/showthread.php?t=1749921
Any thoughts?
My Device and Software details are
Android version: 4.1.2
Model No: GT-N5100
Kernel version:3.0.31 (KST 2013)
Build number: JZ054K.N5110XXBMD1
Click to expand...
Click to collapse
OK, what is doing the hack to accomplish??? Exchange uses security features, so wouldn't that break functionality???
gooberdude said:
OK, what is doing the hack to accomplish??? Exchange uses security features, so wouldn't that break functionality???
Click to expand...
Click to collapse
Trying to check my corporate exchange email w/i being forced to 'always key-in a PIN', encrypted drive etc. I'm OK for all other enforcements that come with the exchange sync (e.g. force data wipe etc). Looking for a convenience factor.
Makes sense?
consultguru said:
Trying to check my corporate exchange email w/i being forced to 'always key-in a PIN', encrypted drive etc. I'm OK for all other enforcements that come with the exchange sync (e.g. force data wipe etc). Looking for a convenience factor.
Makes sense?
Click to expand...
Click to collapse
Ah, OK, I see... Have seen some thing about bypassing PIN for corporate email a few months back. Will look for it again, when I have time Monday. I thought you were disabling it completely or something.
OK, I don't have a corporate setup with exchange so I cannot test.
My xposed module has a security option though it is not enabled and I have no way to test.
Here is a thread on another site... http://mobility.forumsee.com/a/m/s/p12-9290-072026--exchange-security-bypass-no-pin-android.html
I would just unzip the two files and side load them from SD, after doing a complete backup in TI Backup, and removing the two installs associated with the replacement apps.
This way no old settings or double apps will be created.