hello guys,
i wanted to know if there's a simple way to disable the sms conversion to mms when you type more than 3 msgs. i am on XEUKH2, 2.3.4 with PDA XWKI4 and PHONE XXK1, build of 14 sept 2011.
would this mod work?
mod <int name="smsToMmsTextThreshold">4</int> to <int name="smsToMmsTextThreshold">100</int> in mms.apk/res/xml/mms_config.xml
i have root access..
thanks!
It should work. I did the mod on my stock KI3.
11768 said:
It should work. I did the mod on my stock KI3.
Click to expand...
Click to collapse
i will try later, i tried to edit the .xml file on the fly from the phone with the txt editor and there's a weird bunch of code, do i need to decompile it with the PC right?
any program you recommend?
tnx
gabrio
xml files are just plain text files, but they're in a specific format. If you're unsure what you're doing then post the file here and let someone modify it for you as it's quite easy to break xml by simply not closing a tag, or changing the wrong thing.
seems that i will give a go tonite at APK Manager
on a different note, latest upgrade i did via Kies which went to 2.3.4, removed the number of photos left with the camera.
tested it and when you are closer to the capacity of the SD card like 20%?, it will display how many you have left..it may make sense, samsung said, why you need to see how many you can do when there's loads of space, but when capacity gets small, then we display that number...in video mode, is always shown remaining time instead..
i was wondering, what if i wanna to always display the number of photos i can? it used to display it with 2.3.3
gab
how did you do?
Related
I've "fixed" the MIUI Mms.apk so that it will receive MMS' that are larger instead of the tiny MMS' that a lot of users are reporting.
I've tested this on my Nexus One (T-Mobile US) and have had good results (From 3kb imgs to 200kb+ imgs).
*** I'm not responsible for anything that happens to your phone. Use at your own risk! ***
http://www.mediafire.com/?se22rea1jfk0r63 - 1.7.8
http://www.mediafire.com/?bay8smx687lnlaj - 1.7.15
How to Install:
Code:
adb remount
adb push signedBetterMms.apk /system/app/Mms.apk
adb reboot
Donate if you're feeling generous.
If you don't use the Miui gallery and use the regular gallery the MMS will look fine it's only the Miui gallery thats messed up just make the regular gallery your default.
hughey2k2 said:
If you don't use the Miui gallery and use the regular gallery the MMS will look fine it's only the Miui gallery thats messed up just make the regular gallery your default.
Click to expand...
Click to collapse
If I opened the received MMS in QuickPic and in the MIUI Gallery App the image quality was identical (very small). With my mod the image quality is MUCH greater.
So I'm assuming you set the useragent to a different phone? If so, what kind?
For the most part, I've just always grabbed the Cyanogen mod MMS.apk and pushed it to system which always worked.
mudrock1000 said:
So I'm assuming you set the useragent to a different phone? If so, what kind?
For the most part, I've just always grabbed the Cyanogen mod MMS.apk and pushed it to system which always worked.
Click to expand...
Click to collapse
Sony Ericsson w800i (as this is what worked best for me when I used CM). When I pushed the CM Mms.apk I got constant force closes. Thus this was born.
difrnt said:
Sony Ericsson w800i (as this is what worked best for me when I used CM). When I pushed the CM Mms.apk I got constant force closes. Thus this was born.
Click to expand...
Click to collapse
Thanks a bunch. Will test this out and get back later. Much appreciated.....
I'm running CM 7.0.3 on T-mobile USA and the fix for me was to go to the "stock" Messaging app, Settings, Custom User Agent, Custom..., and enter Android-Mms/2.0 and hit OK. From then on out the MMS pics started coming in fine.
NOTE: I use Handcent, but the change was made in the Messaging app, and then they started to work in Handcent.
vzontini said:
I'm running CM 7.0.3 on T-mobile USA and the fix for me was to go to the "stock" Messaging app, Settings, Custom User Agent, Custom..., and enter Android-Mms/2.0 and hit OK. From then on out the MMS pics started coming in fine.
NOTE: I use Handcent, but the change was made in the Messaging app, and then they started to work in Handcent.
Click to expand...
Click to collapse
+1 Using Handcent. Using IPhone user agent.
Thanks dude, it worked!
For those who are/were having trouble using adb to get this working (like myself), I just used Root Explorer to rename the files and make sure the permissions were the same for the new file:
1) Copy "signedBetterMms.apk" from 1st post to /system/app/ on your phone
2) Rename the "Mms.apk" file that's ALREADY in there to "bakMms.apk" (I only did this as a precaution, just in case the new MMS file wouldn't work)
3) Rename "signedBetterMms.apk" to "Mms.apk"
4) Check permissions for original file, and make sure they're the same on the one you just renamed
5) Restart phone
6) Test Mms!
I updated the original post to support the 1.7.15 apk.
Please reupdate it with 1.7.1 I didn't get a chance to download it, and whenever I try to open a thread, it crashes.
I wasn't able to get a 1.7.1 MMS in english, here is a Chinese one if you'd like.
http://www.mediafire.com/?c3fx8wocebbtog9
Ah how depressing haha. I'll just wait until XJ's rom is updated and then I'll switch off of the Cyanogenmod one.
Why not upgrade to 1.7.15?
difrnt said:
Why not upgrade to 1.7.15?
Click to expand...
Click to collapse
Because, I haven't found any ROM's with a D2W script in them and that's currently what I'm accustomed to, and XJ's doesn't update often.
If you could, it'd be really swell of you to update one for 1.7.22. I highly support this project. I'm tired of the boring Cyanogenmod MMS.
difrnt said:
I've "fixed" the MIUI Mms.apk so that it will receive MMS' that are larger instead of the tiny MMS' that a lot of users are reporting.
I've tested this on my Nexus One (T-Mobile US) and have had good results (From 3kb imgs to 200kb+ imgs).
*** I'm not responsible for anything that happens to your phone. Use at your own risk! ***
http://www.mediafire.com/?se22rea1jfk0r63 - 1.7.8
http://www.mediafire.com/?bay8smx687lnlaj - 1.7.15
How to Install:
Code:
adb remount
adb push signedBetterMms.apk /system/app/Mms.apk
adb reboot
Donate if you're feeling generous.
Click to expand...
Click to collapse
So, can we expect a new version for the 7.29? If not, do you think you can tell me how you did it so I could do it. Really hate having to change this everytime I update now. MIUI didn't always do this. grrr.
aujbman said:
So, can we expect a new version for the 7.29? If not, do you think you can tell me how you did it so I could do it. Really hate having to change this everytime I update now. MIUI didn't always do this. grrr.
Click to expand...
Click to collapse
this was posted on the MIUI forums by LiLaZnBoI5582:
1.7.29 MMS FIX
http://www.mediafire.com/?5rx6x43v8av7ea6
I use apk manager 4.9 to pull the current apk from /system/app/Mms.apk
Decompiled it, then navigated to /res/xml/mms_config.xml from the apk you just decompiled.
replaced the whole thing with:
<?xml version="1.0" encoding="UTF-8"?>
<mms_config version="4">
<bool name="enabledMMS">true</bool>
<int name="maxMessageSize">2073600</int>
<int name="maxImageHeight">1080</int>
<int name="maxImageWidth">1920</int>
<int name="defaultSMSMessagesPerThread">200</int>
<int name="defaultMMSMessagesPerThread">20</int>
<int name="minMessageCountPerThread">10</int>
<int name="maxMessageCountPerThread">5000</int>
<string name="uaProfUrl">http://nds1.nds.nokia.com/uaprof/NN95-1r100.xml</string>
<string name="uaProfUrl">http://www.htcmms.com.tw/Android/Common/nexusone/ua-profile.xml</string>
<int name="recipientLimit">-1</int>
<int name="smsToMmsTextThreshold">4</int>
<bool name="enableMultipartSMS">true</bool>
<bool name="enableSlideDuration">true</bool>
</mms_config>
Saved it. compiled it and pushed it back to the Phone.
I been using this same config for awhile. And sorry difrnt for hijacking your thread xD.
Last edited by LiLaZnBoI5582; Yesterday at 04:12 PM.
thatguyzx said:
this was posted on the MIUI forums by LiLaZnBoI5582:
1.7.29 MMS FIX
http://www.mediafire.com/?5rx6x43v8av7ea6
Click to expand...
Click to collapse
Is this file the 'fixed' file that we need to push or just the MMS pulled from the ROM?
aujbman said:
Is this file the 'fixed' file that we need to push or just the MMS pulled from the ROM?
Click to expand...
Click to collapse
should be the fix as on the miui forum he was replying to someone requesting the latest fixed MMS.apk.
Really do hope you have one coming for 1.8.5. I tried doign it myself but I could not get it right and it wouldn't open...
Ok, got a bit of a problem here... I need to change the default homepage of the browser in a Rom I'm cooking... that means the homepage you get after a full factory reset, not that you set in the menu.... Please don't tell me how to set it in the browser menu....
A bit of background... I'm using a leaked Rom to build from. It was leaked from a Tracfone "LG-L95G" which is identical in every way to the LG-P999 aka T-Mobile G2X. Everything is working 100%. The only problem left from the "porting" is removing Tracfone as the default browser homepage.
This has turned out to be harder than I expected.
What I have done:
Browser.apk - the xml lists Google as the homepage. The word "tracfone" appears NOWHERE in the entire structure of the decompiled xml or values or even in the smali code.
SystemUI & framework-res - I've seen suggestions the homepage hides here. Can't find anything suggesting a setting to "tracfone"
flexdb - I really thought I had it kicked here. /system/etc/flex.db listed m.tracfone.com as the homepage for T-Mobile US. I changed all occurrences here to about:blank. I have also tried simply copying the flex.db from a P999 itself. Ie, removed ALL references to tracfone service and made it identical to a P999 in every way.
Ran grep -R tracfone * on the entire ROM.
Dug through tons of files by hand looking for any clue.
Unfortunately, even with all of that, do a wipe, open the browser, and you GET M.TRACFONE.COM again!
The word "tracfone" does not appear in build.prop, it does not appear in any init scripts, not even in the kernel scripts! Yet it comes back like Christine...
Does anyone have a clue where I could look next? Or failing that, even some way from an init.d script that I can overwrite the setting myself?
EDIT
Okay, I hate giving myself clues like this, but maybe this will help others (if I'm on the right track)...
Instead of doing a grep on the ROM from my PC, pre-install, I decided to actually hit up the RUNNING copy... so from adb into a Bash prompt on the phone itself, I ran a grep -r tracfone * and got the following result:
Code:
data/data/com.android.browser/databases/browser.db:Web page not availablehttp://m.tracfone.com/
data/data/com.android.browser/shared_prefs/com.android.browser_preferences.xml:<string name="homepage">http://m.tracfone.com</string>
data/data/com.lge.providers.flex/databases/flex.db:M77BRW_SETTINGDB_CURRENT_HOME_URL_Ihttp://m.tracfone.comhttp://m.tracfone.comI#
data/data/com.lge.providers.flex/databases/flex.db:=77BRW_SETTINGDB_HOME_URL_Ihttp://m.tracfone.comhttp://m.tracfone.como"
data/data/com.lge.providers.flex/databases/flex.db:=;;DATACOM_ACCOUNT_MMSC_0_Ihttp://mms.tracfone.comhttp://[email protected]
data/data/com.lge.providers.flex/databases/flex.db:;%%DATACOM_ACCOUNT_APN_0_Iwap.tracfonewap.tracfone:?
data/data/com.lge.providers.flex/databases/flex.db:M77BRW_SETTINGDB_CURRENT_HOME_URL_Ihttp://m.tracfone.comhttp://m.tracfone.comI
data/data/com.lge.providers.flex/databases/flex.db:=77BRW_SETTINGDB_HOME_URL_Ihttp://m.tracfone.comhttp://m.tracfone.como
data/data/com.lge.providers.flex/databases/flex.db:=;;DATACOM_ACCOUNT_MMSC_0_Ihttp://mms.tracfone.comhttp://mms.tracfone.com6%
data/data/com.lge.providers.flex/databases/flex.db:;%%DATACOM_ACCOUNT_APN_0_Iwap.tracfonewap.tracfone:$
Which is very odd.... considering that is NOT the content of the actual flex.db that was flashed to the phone. That leads to 1 question: Why isn't the phone respecting the flex.db? I've noticed other edits to the file (such as bookmarks) do not apply either. So it is being ignored at somepoint. FlexProvider.apk maybe? Or is something in the ROM still identifying the phone to T-Mobile as an MVNO device and they're pushing out an OTA flex update?
EDIT 2:
AHA! There's a flex.db *INSIDE* the FlexProvider.apk file! So it *IS* ignoring the one placed in /system/etc/flex/! Editing this should solve it - but I'm going to test test test to make sure.
lotherius said:
Ok, got a bit of a problem here... I need to change the default homepage of the browser in a Rom I'm cooking... that means the homepage you get after a full factory reset, not that you set in the menu.... Please don't tell me how to set it in the browser menu....
Click to expand...
Click to collapse
firstly to say interesting question!!
but I think it it not possible to change programmatically default homepage
this is a system app so will be signed by your provider let us suppose you find homepage location in code (could by result of a script parsing) by modifying source of that apk package how to solve signature problem ?!
if in .db file ...this file is created after flashing as a result of script parsing
not framework-res.apk better browser-res.apk if you have one
ruscan.calin said:
firstly to say interesting question!!
but I think it it not possible to change programmatically default homepage
this is a system app so will be signed by your provider let us suppose you find homepage location in code (could by result of a script parsing) by modifying source of that apk package how to solve signature problem ?!
if in .db file ...this file is created after flashing as a result of script parsing
not framework-res.apk better browser-res.apk if you have one
Click to expand...
Click to collapse
man use a ... editor...I can show you for fifty bucks
I was just curious about this tricky change (from your post) so thinking about Google motto don't be bad finally I have found but should recognize that I am bad at this time
here is solution
Actually, you can use an sqlite editor to change the values in the flex.db file... the problem I was having in the OP is that on an LG phone (maybe others?) the flex.db file is ignored and the one inside FlexProvider is used instead, so you have to edit both. You can add new locales the same way. No need to use a hex editor, as that would be much more difficult.
lotherius said:
Actually, you can use an sqlite editor to change the values in the flex.db file... the problem I was having in the OP is that on an LG phone (maybe others?) the flex.db file is ignored and the one inside FlexProvider is used instead, so you have to edit both. You can add new locales the same way. No need to use a hex editor, as that would be much more difficult.
Click to expand...
Click to collapse
maybe you are right regarding your phone... but also I prepare a custom rom for Alcatel ot-908 also to change default homepage was a problem for me but I did and simply works !
When I flash a new ICS build, the contacts(synced) dont have high quality pictures. And I have to edit each one. Any way to get the NEEDED file in order not to edit every contact every time I flash a new ICS rom?
I have started playing with custom icons recently an was curious, where can one find the stock icon.png file? I have a lot of apps on my phone like DrexelOne (for my college) which no one has made customs of, because of this I need the stock image to use as a base for my custom one. Other unpacking the .apk and removing the the icon.png is there a way to reach these?
Thanks ahead of time, I think this will help many more rookies than just me!
GingerSmurf said:
I have started playing with custom icons recently an was curious, where can one find the stock icon.png file? I have a lot of apps on my phone like DrexelOne (for my college) which no one has made customs of, because of this I need the stock image to use as a base for my custom one. Other unpacking the .apk and removing the the icon.png is there a way to reach these?
Thanks ahead of time, I think this will help many more rookies than just me!
Click to expand...
Click to collapse
Are you asking where that default icon is that only shows up when the app has no specified icon? That would be either in framework.res or com.htc.resources. Both of those apks are in /system/framework.
No I'm asking in general is there a way to take an application's icon and use it as the base for a custom one? For example: Can I somehow get the SuperUser icon .pgn file so that I can take it into paint and edit it, then use ApexLauncher to edit the icon shown on my home screen?
Maybe I'm simplifying the steps to much, but can't you make 72x72pixel .pgn and use ApexLauncher to to make that new icon the icon the shows up?
I currently use a HTC HD Mini (Photon) running the SCREAM ROM by Ling Gan. It has a few bugs for most of which there is either a workaround or fix but there is the one problem which has remained unsolved: the default wallpaper on everything BUT the home and lockscreens cannot be changed. It is of a tree in a meadow under a blue sky and when rotated to landscape changes to some smiling chinese lady in the "settings" submenu. Doesn't hamper use much but it is quite annoying.
I have tried a number of solutions some of which resulted in my having to reflash and others did nothing. I post this here because I think it is a CM7 issue. The ROM developers have so far been unable to post a solution within the thread and I am aware that a fix for similar problems on CM9 ROMs exists using ADB to edit framework-res.apk. I felt it was time the problem was tackled by the wider XDA fam. Used google translate to look on the chinese site where the ROM is native to (mobile-kon) but found no help as well. Any help would be greatly appreciated.
i think ur problem lays in the framework-res.apk it contains the look of the rom and the transition effects
you can mod apk with the apkmanager tool for ur computer in the frameworkresapk you should find the images u want to change replace them witch a black picture or something like that
if never done this befoure exept from changing some transition effects and i had a couple of errors among this
the easier way seems to search for the rom on another page cus the images ure stating are not standart in the cm7
SOLVED!
jiffer1991 said:
i think ur problem lays in the framework-res.apk it contains the look of the rom and the transition effects
you can mod apk with the apkmanager tool for ur computer in the frameworkresapk you should find the images u want to change replace them witch a black picture or something like that
if never done this befoure exept from changing some transition effects and i had a couple of errors among this
the easier way seems to search for the rom on another page cus the images ure stating are not standart in the cm7
Click to expand...
Click to collapse
Many thanks!
I started off looking through the "res" folder in framwork-res.apk using Root Explorer to identify the images for the wallpaper. They were
Res/drawable-land-mdpi/screen-background-dark-transparent.png
And
Res/drawable-mdpi/screen-background-dark-transparent.png
I then created a copy of framework-res.apk on my SD card and copied it onto my pc. I created new wallpapers to replace the ones I just mentioned, one in portrait, the other in landscape. They were 320x480 and 480x320 respectively. Using 7zip on the pc, I placed them in the corresponding folders (/drawable-mdpi for protrait and /drawable-land-mdpi for landscape).
I copied framework-res.apk back to my sdcard and then fired up terminal emulator to run the following commands
su
sys -rw
busybox cp /sdcard/framework-res.apk /system/framework
sys -rw
You might get error messages from running apps after this but ignore them and reboot. The idea is to replace the framework-res.apk in system/framework with the one you just edited.
After the reboot, you should have your newly created wallpaper showing up in settings in both landscape and portrait modes.
Please hit "thanks" for both jiffer1991 and I if this was helpful. Big ups to jiffer1991for pushing me in the right direction.
Hi,
i did something wrong.
So my Phone didn´t run.
He show me the Bootsceen and the Animation.
But the he will run again and again and again.
Can i handle my Phone via USB so i can restore the framework.resp.apk on my System? Or i have to reinstall Android again?
I have no backup and i don´t want to erase my system settings.
Thanks
Felix
obstgarten said:
Hi,
i did something wrong.
So my Phone didn´t run.
He show me the Bootsceen and the Animation.
But the he will run again and again and again.
Can i handle my Phone via USB so i can restore the framework.resp.apk on my System? Or i have to reinstall Android again?
I have no backup and i don´t want to erase my system settings.
Thanks
Felix
Click to expand...
Click to collapse
hm u got stuck in a bootloop thats what i meant when i mentioned errors =)
you could make a zip with the old framework res apk or reflash the cm rom
if u dont whipe data/cash ure setting will be safed
read some tutorials how to mod the framework res apk
I have an .zip file on the sd card.
Can i copy it to the Android system somehow?
Felix
P.S. can i zip the framework and remove the ".zip" to ".apk"?
It is most likely that the zip file you have is the ROM image from which you flashed in the first place. Changing the extension to apk is NOT what you want to do. I suggest you create a backup in CWM of you present configuration and after reflashing, you can then do a partial restore of your user data. But its like Jiffer1991 said, read up on CWM, theres an exhaustive guide on xda somewhere.
Thanks,
i installed my modified cm rom without wipe caches data or something.
And now i have my old datas back, with the new Background.