Or Continue to Thread: [Q] Opeing Zip files in email
Find Your Device:
18th May 2012, 11:40 PM   |  #18  
Senior Member
Thanks Meter: 64
 
111 posts
Join Date:Joined: Apr 2011
More
apktool
Decompile with apktool
Code:
apktool d -r Email.apk
edit the file Email\smali\com\android\emailcommon\utility\Attach mentUtilities.smali

delete the code between
Code:
.line 94
and
Code:
sput-object v0, Lcom/android/emailcommon/utility/AttachmentUtilities;->UNACCEPTABLE_ATTACHMENT_EXTENSIONS:[Ljava/lang/String;
and replace it with
Code:
new-array v0, v3, [Ljava/lang/String;
and finally recompile with apktool
Code:
apktool b Email Email.apk
The change basically modifies the string which holds the 'malicions' extensions to be an empty string.

inspired by looking at the source code here http://grepcode.com/file/repository....ENT_EXTENSIONS

This worked for me on CM9 Samsung Galaxy SII
I also wiped cache and dalvik-cache before replacing the Email.apk from CWM