FORUMS

OnePlus 2 Forums: Discuss Everything About The OP2!

Now that the OnePlus 2 has been officially unveiled and that we have had close-up … more

Intel & Micron Announce “Revolutionary” Storage Tech

Intel & Micron have announced 3D Xpoint technology—”the … more

Google Now Interfaces With Third-Party Messaging Apps

Google has announced that Ok Google voice commands can now be used to send … more

Make Your Lockscreen More Productive With Widgets

Are you running Android Lollipop? Do you miss the ability to add widgets to your lock … more

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

169 posts
Thanks Meter: 42
 
By TRF-Inferno, Senior Member on 21st October 2012, 11:00 PM
Post Reply Subscribe to Thread Email Thread
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, 146 views)
File Type: apk ICS_Exchange.apk - [Click for QR Code] (558.5 KB, 102 views)
File Type: apk JB_Email.apk - [Click for QR Code] (2.79 MB, 378 views)
File Type: apk JB_Exchange2.apk - [Click for QR Code] (879.6 KB, 302 views)
Last edited by TRF-Inferno; 11th January 2013 at 04:10 AM.
The Following 2 Users Say Thank You to TRF-Inferno For This Useful Post: [ View ]
 
 
22nd October 2012, 03:32 AM |#2  
Hobbes2099's Avatar
Senior Member
Flag Mexico City
Thanks Meter: 13
 
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, 01:59 PM |#3  
TRF-Inferno's Avatar
OP Senior Member
Flag Carrollton, TX
Thanks Meter: 42
 
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, 12:25 AM |#4  
Junior Member
Thanks Meter: 0
 
More
Worked great on my Droid Razr Maxx - thanks!
26th October 2012, 07:43 AM |#5  
Junior Member
Flag İzmir
Thanks Meter: 2
 
More
Thankss
26th October 2012, 08:34 AM |#6  
Member
Flag new york NY
Thanks Meter: 3
 
More
Anybody try this on the RAZR Max HD with vrz

Sent from my DROID RAZR HD using Tapatalk 2
29th October 2012, 05:09 AM |#7  
Stories's Avatar
Senior Member
Flag Los Angeles
Thanks Meter: 23
 
More
This is awesome. Thanks for posting this info. Works great on Bionic ICS.
31st October 2012, 08:17 AM |#8  
Junior Member
Thanks Meter: 0
 
More
Is this the black version?

Sent from my XT910 using xda app-developers app
1st November 2012, 01:56 AM |#9  
Member
Thanks Meter: 2
 
More
Does this disable the exchange security?
1st November 2012, 04:01 AM |#10  
TRF-Inferno's Avatar
OP Senior Member
Flag Carrollton, TX
Thanks Meter: 42
 
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.
4th November 2012, 05:52 AM |#11  
Senior Member
Thanks Meter: 102
 
More
anyone able to get these or actual AOSP JB Email apks to work with the JB leak?

Ive tried these ICS apk and some JB apks I found. No luck on either.

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

Advanced Search
Display Modes