Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,741,351 Members 41,279 Now Online
XDA Developers Android and Mobile Development Forum

Images too compressed?

Tip us?
 
fergie716
Old
(Last edited by fergie716; 5th July 2014 at 03:51 AM.)
#11  
fergie716's Avatar
Senior Member
Thanks Meter 3594
Posts: 3,902
Join Date: May 2011
Location: Buffalo, NY
I think I found a fix for this (maybe). If you decompile SecMms_Blue.apk and look @ the mms_config.xml these lines are there (stock)

Code:
Select Code
<int name="maxMessageSize">307200</int>
    <int name="mmsHeaderSize">5120</int>
    <int name="maxImageHeight">480</int>
    <int name="maxImageWidth">640</int>
Maybe increasing the values would result in less compression?

---------- Post added at 10:31 PM ---------- Previous post was at 10:01 PM ----------

Quote:
Originally Posted by fergie716 View Post
I think I found a fix for this (maybe). If you decompile SecMms_Blue.apk and look @ the mms_config.xml these lines are there (stock)

Code:
Select Code
<int name="maxMessageSize">307200</int>
    <int name="mmsHeaderSize">5120</int>
    <int name="maxImageHeight">480</int>
    <int name="maxImageWidth">640</int>
Maybe increasing the values would result in less compression?
I made an apk and tried this, didn't work. Did unlock a few settings I found in that xml though


EDIT AGAIN

- I found this line in the customer.xml in csc/SPR/system/csc

Code:
Select Code
 <MessageSize>1m</MessageSize>
          <ImageResizeResolution>uxga</ImageResizeResolution>
Ill see if editing this, along with the mms_config edits add up to anything
The Following User Says Thank You to fergie716 For This Useful Post: [ Click to Expand ]
 
bryanu
Old
#12  
Senior Member
Thanks Meter 29
Posts: 148
Join Date: Dec 2010
Quote:
Originally Posted by fergie716 View Post
I think I found a fix for this (maybe). If you decompile SecMms_Blue.apk and look @ the mms_config.xml these lines are there (stock)

Code:
Select Code
<int name="maxMessageSize">307200</int>
    <int name="mmsHeaderSize">5120</int>
    <int name="maxImageHeight">480</int>
    <int name="maxImageWidth">640</int>
Maybe increasing the values would result in less compression?

---------- Post added at 10:31 PM ---------- Previous post was at 10:01 PM ----------


I made an apk and tried this, didn't work. Did unlock a few settings I found in that xml though


EDIT AGAIN

- I found this line in the customer.xml in csc/SPR/system/csc

Code:
Select Code
 <MessageSize>1m</MessageSize>
          <ImageResizeResolution>uxga</ImageResizeResolution>
Ill see if editing this, along with the mms_config edits add up to anything
Odd, those first things you found are what I would expect to be the issue.

When you changed them and tested I take it you rebooted and tested it with a different MMS image?
I noticed if I send an MMS and go to send the same one again it seems to re-use the compressed version it made the first time, maybe try testing again with a different image to make sure?

Hopefully someone figures it out. I actually don't mind the stock app beyond this annoyance.
Thanks for looking/trying though.
 
fergie716
Old
#13  
fergie716's Avatar
Senior Member
Thanks Meter 3594
Posts: 3,902
Join Date: May 2011
Location: Buffalo, NY
Quote:
Originally Posted by bryanu View Post
Odd, those first things you found are what I would expect to be the issue.

When you changed them and tested I take it you rebooted and tested it with a different MMS image?
I noticed if I send an MMS and go to send the same one again it seems to re-use the compressed version it made the first time, maybe try testing again with a different image to make sure?

Hopefully someone figures it out. I actually don't mind the stock app beyond this annoyance.
Thanks for looking/trying though.
I've tried multiple things including some smali edits but I'm on stock odex. If you're on a deodexed system upload your SecMms_Blue.apk from /system/priv-app/ and I'll make the same edits for you to see if they stick
 
DEATHWISH .500
Old
#14  
Member
Thanks Meter 23
Posts: 65
Join Date: Feb 2010
Location: Minnesota
I also decompiled the messaging app and made some changes like upping the max size to 2mb (2097152 bytes) and the height and width the same as 2.4 mp. I sent myself a picture that was ~700 kb and the resolution was 2.4 mp and the app still scaled it way down to something like 1600 X 900 I also made the CSC edits in customer.xml.
Sanyo MM-9000 > HTC Hero > HTC EVO Shift 4G > Samsung Epic 4G Touch > Samsung Galaxy S3 > Samsung Galaxy S5
 
vinman12
Old
#15  
vinman12's Avatar
Recognized Themer
Thanks Meter 1025
Posts: 1,819
Join Date: Dec 2011

 
DONATE TO ME
in the past the edits that fixed this was in the ImageModel.smali

search for this line

# direct methods
.method static constructor <clinit>()V

in here is where the goods are
I love Deving.
Don't Forget to say thanks!

Current Phone Samsung Galaxy S5, Running My Own Private Build

Past Phones
Htc,M8,M7,OneX,3vo,OG

Latest OG Radio PC36IMG_Supersonic_Radio_2.15.00.01.15.zip - 9.17 MB
My Builds.
KitKat4.4.2http://forum.xda-developers.com/show....php?t=2713296
Elousions2http://forum.xda-developers.com/show....php?t=2122890
Elousions3http://forum.xda-developers.com/show....php?t=2156492
Elousional_Chaoshttp://forum.xda-developers.com/show....php?t=2515504
My Group http://forum.xda-developers.com/group.php?groupid=966
ask me I just might help you.

thank you for all donations they will go towards helping
keep our phones alive.
The Following 2 Users Say Thank You to vinman12 For This Useful Post: [ Click to Expand ]
 
DEATHWISH .500
Old
#16  
Member
Thanks Meter 23
Posts: 65
Join Date: Feb 2010
Location: Minnesota
Quote:
Originally Posted by vinman12 View Post
in the past the edits that fixed this was in the ImageModel.smali

search for this line

# direct methods
.method static constructor <clinit>()V

in here is where the goods are
Ok I found this line in ImageModel.smali. I know nothing about editing smali and I'm not sure what I'm looking for This is copied directly from Notepad++

# direct methods
.method static constructor <clinit>()V
.locals 2

const/high16 v0, 0x434b0000

invoke-static {v0}, Lcom/android/mms/util/UIUtils;->dp2Pixels(F)I

move-result v0

sput v0, Lcom/android/mms/model/ImageModel;->THUMBNAIL_BOUNDS_LIMIT:I

invoke-static {}, Lcom/android/mms/ui/MessageUtils;->getScreenHeight()I

move-result v0

invoke-static {}, Lcom/android/mms/ui/MessageUtils;->getScreenWidth()I

move-result v1

if-le v0, v1, :cond_0

invoke-static {}, Lcom/android/mms/ui/MessageUtils;->getScreenWidth()I

move-result v0

mul-int/lit8 v0, v0, 0x2

:goto_0
sput v0, Lcom/android/mms/model/ImageModel;->SLIDESHOW_BOUNDS_LIMIT:I

invoke-static {}, Lcom/android/mms/MmsApp;->getApplication()Lcom/android/mms/MmsApp;

move-result-object v0

invoke-virtual {v0}, Landroid/content/ContextWrapper;->getResources()Landroid/content/res/Resources;

move-result-object v0

const v1, 0x7f0a004b

invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDimension(I)F

move-result v0

float-to-int v0, v0

sput v0, Lcom/android/mms/model/ImageModel;->THUMBNAIL_MAX_SHORT:I

invoke-static {}, Lcom/android/mms/MmsApp;->getApplication()Lcom/android/mms/MmsApp;

move-result-object v0

invoke-virtual {v0}, Landroid/content/ContextWrapper;->getResources()Landroid/content/res/Resources;

move-result-object v0

const v1, 0x7f0a004c

invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDimension(I)F

move-result v0

float-to-int v0, v0

sput v0, Lcom/android/mms/model/ImageModel;->THUMBNAIL_MAX_LONG:I

return-void

:cond_0
invoke-static {}, Lcom/android/mms/ui/MessageUtils;->getScreenHeight()I

move-result v0

mul-int/lit8 v0, v0, 0x2

goto :goto_0
.end method
Sanyo MM-9000 > HTC Hero > HTC EVO Shift 4G > Samsung Epic 4G Touch > Samsung Galaxy S3 > Samsung Galaxy S5
 
slickdealers
Old
#17  
slickdealers's Avatar
Member - OP
Thanks Meter 18
Posts: 92
Join Date: Nov 2012
Any progress update? 8sms is still compressing the images like the stock messaging app.
 
Does_It_Matter
Old
#18  
Senior Member
Thanks Meter 9
Posts: 235
Join Date: Dec 2009
Ditto - can someone most a modded SecMMS_Blue.APK for NE5 ?

Would like to get the max MMS size bumped up to 5 or 10 MB

From browsing Sprint forums - sending MMS to Sprint phones has no limit max but most other carriers have a 1-2mb limit for MMS

I tried decompiling and editing, couldn't get it to work

tried decompressing and editing, then re-compressing the apk - apk kept force-closing

I'm probably missing something basic but can't figure out what it is.
Soylent Green Is People
Sprint - Samsung Galaxy S5 --- Rooted, Tweaked, & Obfuscated --- Knox 0x0
Stock Rooted NE5 ROM -- Some Bloat removed -- Stock Kernel - Stock Recovery
 
DEATHWISH .500
Old
#19  
Member
Thanks Meter 23
Posts: 65
Join Date: Feb 2010
Location: Minnesota
Quote:
Originally Posted by Does_It_Matter View Post
Ditto - can someone most a modded SecMMS_Blue.APK for NE5 ?

Would like to get the max MMS size bumped up to 5 or 10 MB

From browsing Sprint forums - sending MMS to Sprint phones has no limit max but most other carriers have a 1-2mb limit for MMS

I tried decompiling and editing, couldn't get it to work

tried decompressing and editing, then re-compressing the apk - apk kept force-closing

I'm probably missing something basic but can't figure out what it is.
Did you zipalign the apk ? Sac23 posted a modded SecMms_Blue in the MOAR thread.
Sanyo MM-9000 > HTC Hero > HTC EVO Shift 4G > Samsung Epic 4G Touch > Samsung Galaxy S3 > Samsung Galaxy S5

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


XDA PORTAL POSTS

Mod Lets You Have Stereo Speakers on Your Sony Xperia Z1 (Sort Of)

The stereo speakers onthe Sony Xperia Z2areprobably a relatively large … more

Give Your Screen Some Color with HexaTime Live Wallpaper

We don’t often cover very many live wallpapers here on the XDA Portal. You may … more

Android Wear App Review: Command Google Now with Commandr – XDA Developer TV

OK Google. Make Me a sandwich. How many times have you … more

Play Your Hits and Learn the Lyrics with NextGen Music Player

There are plenty of music players for Android available in Play Store. They … more