Images too compressed?

Search This thread

slickdealers

Senior Member
Nov 1, 2012
158
41
I've noticed that when I'm trying to send a picture through text, the phone compresses the picture to the point where it gets pixelated. It looks awful!

Has anyone had this problem? I'm using the stock camera app.

Sent from my SM-G900P using Tapatalk
 

slickdealers

Senior Member
Nov 1, 2012
158
41
8sms! You can chose how big the picture is also allows MMS over wifi!

Sent from a Galaxy 5 light years away

Great find! Where do I change to allow MMS over WiFi? Is that the messaging limit?

Found the setting, but it still is compressing the image :(

Sent from my SM-G900P using Tapatalk
 
Last edited:

slickdealers

Senior Member
Nov 1, 2012
158
41
Yeah ive notice this too. On my s3 there was a mod that sended the pictures uncompressed. Hopefully we get that on this phone.

Sent from my SM-G900P using XDA Free mobile app

What was that mod called for the s3? I'd like to follow the thread in case the developer decides to make one for this phone.

Sent from my SM-G900P using Tapatalk
 

zune70

Senior Member

bryanu

Senior Member
Dec 1, 2010
194
50
So after having the same complaint myself and even from people I send messages to I decided to make the switch and try this out.

Works great with only 2 complaints.

1) Lock screen no longer shows a message preview?

2) No theme/alt. color for messages.

I can deal with number 2 but I really am use to having the first option and used it a lot to just quickly turn on screen to read a message without wanting to respond etc.

Is it just me or is it indeed broken on S5 with third-party messengers?

I'm actually happy with the stock one if it had a darn option to set mms sizes.
My old HTC use to have 500KB or 1MB, this thing has neither and it's keeping all my images under 350K it seems like.

All providers support 1024KB, it's stupid they compress them so much. AT&T was 600KB but I just sent myself a 1.2MB message and got it fine even oddly.
I just want 1MB without scaling bahh.
 

fergie716

Senior Member
May 14, 2011
4,053
3,788
36
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:
<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 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:
<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:
 <MessageSize>1m</MessageSize>
          <ImageResizeResolution>uxga</ImageResizeResolution>

Ill see if editing this, along with the mms_config edits add up to anything
 
Last edited:
  • Like
Reactions: DEATHWISH .500

bryanu

Senior Member
Dec 1, 2010
194
50
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:
<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:
 <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

Senior Member
May 14, 2011
4,053
3,788
36
Buffalo, NY
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

Senior Member
Feb 12, 2010
66
26
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 :confused: I also made the CSC edits in customer.xml.
 

vinman12

Senior Member
Dec 28, 2011
3,430
4,395
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
 

DEATHWISH .500

Senior Member
Feb 12, 2010
66
26
Minnesota
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 :confused: 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
 

Does_It_Matter

Senior Member
Dec 25, 2009
288
47
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.
 

DEATHWISH .500

Senior Member
Feb 12, 2010
66
26
Minnesota
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.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    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
    1
    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:
    <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 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:
    <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:
     <MessageSize>1m</MessageSize>
              <ImageResizeResolution>uxga</ImageResizeResolution>

    Ill see if editing this, along with the mms_config edits add up to anything