Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

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

OP TRF-Inferno

22nd October 2012, 12:00 AM   |  #1  
TRF-Inferno's Avatar
OP Senior Member
Flag Carrollton, TX
Thanks Meter: 42
 
169 posts
Join Date:Joined: Dec 2008
More
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, 130 views)
File Type: apk ICS_Exchange.apk - [Click for QR Code] (558.5 KB, 94 views)
File Type: apk JB_Email.apk - [Click for QR Code] (2.79 MB, 364 views)
File Type: apk JB_Exchange2.apk - [Click for QR Code] (879.6 KB, 294 views)
Last edited by TRF-Inferno; 11th January 2013 at 05:10 AM.
The Following 2 Users Say Thank You to TRF-Inferno For This Useful Post: [ View ]
22nd October 2012, 04:32 AM   |  #2  
Hobbes2099's Avatar
Senior Member
Flag Mexico City
Thanks Meter: 11
 
180 posts
Join Date:Joined: Nov 2010
More
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
22nd October 2012, 02:59 PM   |  #3  
TRF-Inferno's Avatar
OP Senior Member
Flag Carrollton, TX
Thanks Meter: 42
 
169 posts
Join Date:Joined: Dec 2008
More
Quote:
Originally Posted by Hobbes2099

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.
23rd October 2012, 01:25 AM   |  #4  
Junior Member
Thanks Meter: 0
 
13 posts
Join Date:Joined: Jun 2009
Worked great on my Droid Razr Maxx - thanks!
26th October 2012, 08:43 AM   |  #5  
Junior Member
Flag İzmir
Thanks Meter: 2
 
13 posts
Join Date:Joined: Oct 2012
More
Thankss
26th October 2012, 09:34 AM   |  #6  
Member
Flag new york NY
Thanks Meter: 3
 
36 posts
Join Date:Joined: Sep 2011
More
Anybody try this on the RAZR Max HD with vrz

Sent from my DROID RAZR HD using Tapatalk 2
29th October 2012, 06:09 AM   |  #7  
Stories's Avatar
Member
Flag Bethesda, MD
Thanks Meter: 18
 
89 posts
Join Date:Joined: Jul 2010
More
This is awesome. Thanks for posting this info. Works great on Bionic ICS.
31st October 2012, 09:17 AM   |  #8  
Junior Member
Thanks Meter: 0
 
7 posts
Join Date:Joined: May 2008
Is this the black version?

Sent from my XT910 using xda app-developers app
1st November 2012, 02:56 AM   |  #9  
Member
Thanks Meter: 2
 
36 posts
Join Date:Joined: Feb 2007
Does this disable the exchange security?
1st November 2012, 05:01 AM   |  #10  
TRF-Inferno's Avatar
OP Senior Member
Flag Carrollton, TX
Thanks Meter: 42
 
169 posts
Join Date:Joined: Dec 2008
More
Quote:
Originally Posted by mikeymax

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

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.

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes