Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,731,116 Members 48,154 Now Online
XDA Developers Android and Mobile Development Forum

[Q] keep kitkat email app, no 5mb limit?

Tip us?
 
toth42
Old
#1  
Member - OP
Thanks Meter 1
Posts: 77
Join Date: Aug 2009
Default [Q] keep kitkat email app, no 5mb limit?

I like 4.4, and I like the brushed up email. I use it for My work exchange. At work, I often snap pics of samples etc, and email to colleagues. I cant do it anymore, the app limits me to 5mb, just 2 pics! Any workaround, or is 3rdP-app my only option?
 
toth42
Old
#2  
Member - OP
Thanks Meter 1
Posts: 77
Join Date: Aug 2009
Shameless bump. Really noone else out there using the default app and expiriencing this? Can I roll back the email-app to 4.2.2 version somehow?
 
JohnRieser
Old
#3  
Junior Member
Thanks Meter 1
Posts: 8
Join Date: Dec 2013
Default kitkat email 5mb limit

Hello,

I modified "AttachmentInfo.java" and "AttachmentUtilities.java" from

android 4.4 source code, then I rebuild the "Email.apk" application.

The problem is that after all those source code modifications, the 5MB attachment restriction it is still there.

What other files need to be modified?
 
carm01
Old
#4  
carm01's Avatar
Senior Member
Thanks Meter 152
Posts: 374
Join Date: Jun 2011
Location: Ohio - land of the boring
Quote:
Originally Posted by JohnRieser View Post
Hello,

I modified "AttachmentInfo.java" and "AttachmentUtilities.java" from

android 4.4 source code, then I rebuild the "Email.apk" application.

The problem is that after all those source code modifications, the 5MB attachment restriction it is still there.

What other files need to be modified?
Do you have the email apk. is this 4.4.2 google/nexus email perhaps?


Remember to push the THANKS button if i helped!
 
JohnRieser
Old
#5  
Junior Member
Thanks Meter 1
Posts: 8
Join Date: Dec 2013
I did not want to decompile someone elses Email.apk because I wanted to be sure that it is malware clean (after all, I give it access to my email accounts), so I downloaded Android 4.4 source code (yes, 14GB of data downloaded only to compile my email app!)

So, the steps until today:

- Install all required software packages in my Debian linux partition to compile the WHOLE Android OS
- Download Android 4.4 source code (it has the Email app too in it)
- Modify Email app source code and make a lot of tests to see if the problem was solved
- Compile Email app and test the apk in my phone (it compiles and runs succesfull on my device)

- Still no success bypassing the 5MB limit...!!!

There are many places in Email source code wich refers to the message size limit, but I could not find the magic place wich is actually triggered.

The search continue...
 
carm01
Old
#6  
carm01's Avatar
Senior Member
Thanks Meter 152
Posts: 374
Join Date: Jun 2011
Location: Ohio - land of the boring
Quote:
Originally Posted by JohnRieser View Post
I did not want to decompile someone elses Email.apk because I wanted to be sure that it is malware clean (after all, I give it access to my email accounts), so I downloaded Android 4.4 source code (yes, 14GB of data downloaded only to compile my email app!)

So, the steps until today:

- Install all required software packages in my Debian linux partition to compile the WHOLE Android OS
- Download Android 4.4 source code (it has the Email app too in it)
- Modify Email app source code and make a lot of tests to see if the problem was solved
- Compile Email app and test the apk in my phone (it compiles and runs succesfull on my device)

- Still no success bypassing the 5MB limit...!!!

There are many places in Email source code wich refers to the message size limit, but I could not find the magic place wich is actually triggered.

The search continue...
can you attach it and post what you are using in this thread?


Remember to push the THANKS button if i helped!
 
JohnRieser
Old
#7  
Junior Member
Thanks Meter 1
Posts: 8
Join Date: Dec 2013
I attached both source codes:
- original Email source code from Google
- the above source code, but with my modification (unsuccesful. the file limit is still NOT BYPASSED).

I modified the following files mainly: AttachmentInfo.java, AttachmentUtilities.java and VendorPolicyLoader.java

Best regards.
 
carm01
Old
#8  
carm01's Avatar
Senior Member
Thanks Meter 152
Posts: 374
Join Date: Jun 2011
Location: Ohio - land of the boring
Quote:
Originally Posted by JohnRieser View Post
I attached both source codes:
- original Email source code from Google
- the above source code, but with my modification (unsuccesful. the file limit is still NOT BYPASSED).

I modified the following files mainly: AttachmentInfo.java, AttachmentUtilities.java and VendorPolicyLoader.java

Best regards.
I need them in .apk format please not the source code as i never compiled it, nor have even tried.

Thanks


Remember to push the THANKS button if i helped!
 
JohnRieser
Old
#9  
Junior Member
Thanks Meter 1
Posts: 8
Join Date: Dec 2013
Here I attached the apk build from the above posted original sources (not with my modification) Email app.

The Email is from Android version 4.4.2
Attached Files
File Type: zip Email.zip - [Click for QR Code] (4.52 MB, 55 views)
 
carm01
Old
#10  
carm01's Avatar
Senior Member
Thanks Meter 152
Posts: 374
Join Date: Jun 2011
Location: Ohio - land of the boring
Quote:
Originally Posted by JohnRieser View Post
Here I attached the apk build from the above posted original sources (not with my modification) Email app.

The Email is from Android version 4.4.2
ok, i dont have the proper framework to deodex these files, and that is where wee need to be as i need the classes.dex file out of the deodex apk

Do you know how to deodex this file?


Remember to push the THANKS button if i helped!

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes