Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,730,983 Members 46,037 Now Online
XDA Developers Android and Mobile Development Forum

[APP] ICS/JB AOSP Email Client for Motorola RAZR HD.

Tip us?
 
TRF-Inferno
Old
(Last edited by TRF-Inferno; 11th January 2013 at 04:10 AM.)
#1  
TRF-Inferno's Avatar
Senior Member - OP
Thanks Meter 42
Posts: 169
Join Date: Dec 2008
Location: Carrollton, TX
Default [APP] ICS/JB AOSP Email Client for Motorola RAZR HD.

So while I am quite satisfied with the factory firmware on the XT925/926 as-is, the email client is rather clunky and I prefer the AOSP version. Good news guys, the factory firmware can use the AOSP Email.apk!

Credit goes to kabadisha for the original, easy to follow instructions.

Before You Start...
  • [RECOMMENDED] Titanium Backup for backing up and removing the stock Motorola Email client. If you want to save these files, do this before proceeding to the instructions below. The APK files you need to backup/remove are MotoEmail.apk and MotoEmailConfig.apk.

Quote:
Instruction for ADB Users
  • Connect the phone to the computer.
  • Download the corresponding Email.apk and Exchange.apk in the attachment section at the end of this post. Get the ones with the prefix 'ICS_' if you are on 4.04 Ice Cream Sandwich firmware, OR 'JB_' if you are on the 4.1.2 Jellybean firmware. DO NOT mix them or use the wrong ones, as they may not work correctly. Rename them to Email.apk and Exchange.apk respectively and place them in the root directory of your phone's internal SD card.
  • Go to the directory where you put your ADB executable. Hold SHIFT key, right-click anywhere in the window in this directory and select 'Open Command Prompt Here'.
  • Type the following in the command prompt and press Enter:
Code:
adb shell
  • If the Motorola driver is installed correctly and the phone is plugged to the PC, it should change the prompt to 'shell@vanquish'. Type the following and press Enter, and the prompt should change to 'root@vanquish':
Code:
su
  • Now you're ready to actually do the work of getting the AOSP Email client on the phone. First, we need to set the /system partition to allow us to read/write to that directory, and remount it to make sure the permissions are updated. Type the following and press Enter:
Code:
mount -o rw,remount /system
  • ...Let's change the current active directory to where all of the phone's installed apps are kept. Type the following in the command prompt and press Enter:
Code:
cd /system/app
  • Type the following in the command prompt and press Enter to copy the Email.apk that you downloaded earlier into this directory:
Code:
cp /sdcard/Email.apk /system/app/Email.apk
  • Type the following in the command prompt and press Enter to copy the Exchange.apk that you downloaded earlier into this directory:
Code:
cp /sdcard/Exchange.apk /system/app/Exchange.apk
  • Almost there! The last thing we need to do is change the permissions of these copied files so the OS can handle them properly. Type the following and press enter:
Code:
chmod 744 Email.apk
Code:
chmod 744 Exchange.apk
  • *Thanks to vrus1 for pointing this out*
Code:
Go to Settings > Manage App > Email and select 'Clear Data'.
  • Reboot the phone. Do this the ol' fashion way by directly interfacing with the device or enter the following in the prompt:
Code:
exit
Code:
exit
Code:
adb reboot
Quote:
Instruction for Terminal Emulator Users
  • Connect the phone to the computer.
  • Download the corresponding Email.apk and Exchange.apk in the attachment section at the end of this post. Get the ones with the prefix 'ICS_' if you are on 4.04 Ice Cream Sandwich firmware, OR 'JB_' if you are on the 4.1.2 Jellybean firmware. DO NOT mix them or use the wrong ones, as they may not work correctly. Rename them to Email.apk and Exchange.apk respectively and place them in the root directory of your phone's internal SD card.
  • Open the Terminal Emulator app. Type the following in the command prompt and press Enter:
Code:
su
  • Now you're ready to actually do the work of getting the AOSP Email client on the phone. First, we need to set the /system partition to allow us to read/write to that directory, and remount it to make sure the permissions are updated. Type the following and press Enter:
Code:
mount -o rw,remount /system
  • ...Let's change the current active directory to where all of the phone's installed apps are kept. Type the following in the command prompt and press Enter:
Code:
cd /system/app
  • Type the following in the command prompt and press Enter to copy the Email.apk that you downloaded earlier into this directory:
Code:
cp /sdcard/Email.apk /system/app/Email.apk
  • Type the following in the command prompt and press Enter to copy the Exchange.apk that you downloaded earlier into this directory:
Code:
cp /sdcard/Exchange.apk /system/app/Exchange.apk
  • Almost there! The last thing we need to do is change the permissions of these copied files so the OS can handle them properly. Type the following and press enter:
Code:
chmod 744 Email.apk
Code:
chmod 744 Exchange.apk
  • *Thanks to vrus1 for pointing this out*
Code:
Go to Settings > Manage App > Email and select 'Clear Data'.
  • Reboot the phone.
Once the phone has been rebooted, you should now have the AOSP Email Client in the application menu. Set it up as normal and you should be ready to roll. So far I have not run into any sync issues or anything out of the ordinary. If you are experiencing otherwise, please let us know!

Closing Notes
  • If you encounter any issues following these steps, please let me know so I can correct it.
  • Other Motorola ICS/JB device users: This should work for your devices as well as the firmwares between our devices are nearly identical.
  • Using the AOSP Email client will now allow you to use the Exchange Security Policy Bypass script that is not compatible with the Motorola client. Please be aware that by doing this, you may be violating your company's security policies which may place you under severe disciplinary actions or job termination at your company's discretion. Others that have provided the tools and instructions to perform this, including myself, cannot be held responsible if the worse case scenario occurs. You have been warned.
Attached Files
File Type: apk ICS_Email.apk - [Click for QR Code] (1.45 MB, 121 views)
File Type: apk ICS_Exchange.apk - [Click for QR Code] (558.5 KB, 90 views)
File Type: apk JB_Email.apk - [Click for QR Code] (2.79 MB, 346 views)
File Type: apk JB_Exchange2.apk - [Click for QR Code] (879.6 KB, 279 views)
The Following 2 Users Say Thank You to TRF-Inferno For This Useful Post: [ Click to Expand ]
 
Hobbes2099
Old
#2  
Hobbes2099's Avatar
Senior Member
Thanks Meter 9
Posts: 159
Join Date: Nov 2010
Location: Mexico City
Sorry to bother.
Could these files be used for ICS 4.0.4 Samsung Galaxy SIII?
I've been trying like crazy to get the AOSP Email apk working.
Thanks for any feedback or recommendation.

Sent from my Nexus 7 using Tapatalk 2
Sony Z1 (C6906)
Rooted, 4.2.2, 14.1.G

Nexus 7 16GB (ME370T)
Paranoid Android 3.57
considering franco Kernel.
 
TRF-Inferno
Old
#3  
TRF-Inferno's Avatar
Senior Member - OP
Thanks Meter 42
Posts: 169
Join Date: Dec 2008
Location: Carrollton, TX
Quote:
Originally Posted by Hobbes2099 View Post
Sorry to bother.
Could these files be used for ICS 4.0.4 Samsung Galaxy SIII?
I've been trying like crazy to get the AOSP Email apk working.
Thanks for any feedback or recommendation.

Sent from my Nexus 7 using Tapatalk 2
No guarantees. While this method uses generic Unix commands that all Android devices will understand, it all depends on how the manufacturer has their firmware setup since some may have the Email client integrated into their launcher framework for notification counters, widgets, etc. You can attempt this and see if it works, and worst case scenario, simply delete the two files from \system\app to reverse the process.

For the Galaxy S III, I believe your Email client is SecEmail.apk and Exchange.apk. Backup and remove those before using the files in the attachment.
 
wjanowski
Old
#4  
Junior Member
Thanks Meter 0
Posts: 13
Join Date: Jun 2009
Worked great on my Droid Razr Maxx - thanks!
 
ForceHawk_7z
Old
#5  
Junior Member
Thanks Meter 2
Posts: 13
Join Date: Oct 2012
Location: İzmir
Thankss
 
mikeymax
Old
#6  
Member
Thanks Meter 3
Posts: 36
Join Date: Sep 2011
Location: new york NY
Anybody try this on the RAZR Max HD with vrz

Sent from my DROID RAZR HD using Tapatalk 2
 
Stories
Old
#7  
Stories's Avatar
Member
Thanks Meter 17
Posts: 83
Join Date: Jul 2010
Location: Bethesda, MD
This is awesome. Thanks for posting this info. Works great on Bionic ICS.
 
Bollocks
Old
#8  
Junior Member
Thanks Meter 0
Posts: 7
Join Date: May 2008
Is this the black version?

Sent from my XT910 using xda app-developers app
 
zhzaen
Old
#9  
Member
Thanks Meter 1
Posts: 32
Join Date: Feb 2007
Does this disable the exchange security?
 
TRF-Inferno
Old
#10  
TRF-Inferno's Avatar
Senior Member - OP
Thanks Meter 42
Posts: 169
Join Date: Dec 2008
Location: Carrollton, TX
Quote:
Originally Posted by mikeymax View Post
Anybody try this on the RAZR Max HD with vrz

Sent from my DROID RAZR HD using Tapatalk 2
Yes, this procedure was done successfully on a RAZR MAXX HD.

Quote:
Originally Posted by zhzaen View Post
Does this disable the exchange security?
No, it takes you halfway there -- getting the AOSP Email client on your phone, which is compatible with the email-policy-patch script that can modify these APKs. You cannot disable the exchange security on the stock Email that comes on your Motorola phones because it is custom.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


XDA PORTAL POSTS

Blast Those Flags with Knock the Flags

Lately, we have seen a rather drastic shift in the world of mobile device gaming. The infamous Angry … more

Hide Numbers on Your SMS and Call Logs with Reflection

How many times have you given your device to someone else in order to show them a … more

Implement Split View in Your LG G2 KitKat Rom with Automated Installer

Some of you may have remembered a story on the Portal a few weeks back … more