yashsingh1/xdaforums huggingface dataset:
[XPERIA X8 Android Development] CtrlAltDelIrl:
I never managed that.. Had 70MB free though. What script did you use?
[XPERIA X8 Android Development] pilu1978:
If you can odex this rom, it will be better. :) Much more free space on /data because not need to store the code from system apps in the dalvik-cache. ;)

Another way to make this rom to significant smaller: remove the unwanted languages. :) It will be 23MB additional free space. :) If you too lazy to download the code/set up the building environment, you can make it with decompile the apps -> remove the languages ->recompile the apps. Not elegant method, but working. ;) You can gain another 5-6MB if you remove the redundant/unwanted resources from the app (mipmap files in different resolutions, forgotten hi-res images, etc...) ;) If you want to use trebuchet, you can remove the hi-res wallpapers from the app, and get another 10MB additional free space. ;)
[XPERIA X8 Android Development] ElmirBuljubasic:
R: [DEV] miniCM10 debug only thread (shakira, robyn and mimmi) 28/02/13

Pilluuu is baaacckk xD nice to see you

Sent from my Nexus 4
[XPERIA X8 Android Development] matmutant:
if you have time, could you please make a short tuto about it?

that would be great to add it on first page ;)

thx :)
[XPERIA X8 Android Development] pilu1978:
Re: [DEV] miniCM10 debug only thread (shakira, robyn and mimmi) 28/02/13

Yes, I can make a short tutorial. ;)
[XPERIA X8 Android Development] drfr:
Alright, I know that I´m gaining space in /data by odexing framework and system apps, which is always useful. But I´m still not sure if that means some gain in performance, that´s what counts in the first place. Removing languages and other useless resources? I´m all for it, but is it worth the hassle?

---------- Post added at 10:47 PM ---------- Previous post was at 10:16 PM ----------

If you´re interested I can post the script for odexing but it´s just for framework jars. I don´t remember where did I get it from, but I had to tweak it because the original version had some problems with system apps. (Odexing just some of them and then exiting with a error message.)
[XPERIA X8 Android Development] pilu1978:
Re: [DEV] miniCM10 debug only thread (shakira, robyn and mimmi) 28/02/13

The odexing not give any performance boost. :( Removing useless resources is also not give more performance. :( If you remove the languages, the apps start a little bit faster, because the resource.arsc files will be significant smaller in some apps (for example: the resource.arsc is around 6MB in settings.apk with all language, and only 700kb with 2 language). Smaller file inside the apk (what is a zip archive) = faster extraction = less cpu usage and less i/o operation. :) But true, the performance boost is small. :( But if you have enough space on /data you not need to use a2sd, int2ext or any other method to get free space (these methods can slowdown the phone with slow sdcard). :)
[XPERIA X8 Android Development] drfr:
Sorry :p but you will need windows for this.

The workflow is like this:

1. reboot to recovery, mount /system and /data

2. connect to pc

3. extract the rar to pc

4. run odex.cmd
[XPERIA X8 Android Development] drfr:
That´s exactly what I was aiming at. If someone is desperately in need of bigger data space he can always increase it with sd-ext options AND be aware of possible slowdowns. If it´s OK to have just a couple of essential apps, you might consider odexing because the starting time of the apps is theoretically a bit shorter. But there are still too much possible bottlenecks for various scenarios ...
[XPERIA X8 Android Development] Groot:
btw... the latest nightly zip is the 20130328?
[XPERIA X8 Android Development] matmutant:
yes :)
[XPERIA X8 Android Development] drfr:
Maybe you don´t have win driver for your phone. Look in device manager /in pc/.

If you don´t have it, grab it here: http://developer.sonymobile.com/downloads/drivers/sony-ericsson-x10-mini-drivers/
[XPERIA X8 Android Development] matmutant:
perfect :)

will thk you and quote to first page ASAP ;)
[XPERIA X8 Android Development] pilu1978:
Re: [DEV] miniCM10 debug only thread (shakira, robyn and mimmi) 28/02/13

I just try to make something useful ;)

After the first look inside this rom I saw: ohhh, this rom is good, but filled with trash... We can reduce the size with 60-70MB WITHOUT DELETING ANYTHING!!! :D Without the unwanted languages we get 22-23MB, with a cleaned trebuchet and latinime we get another 25-30MB, without the unwanted tts languages we get +5MB and we can remove approx 5-10MB free space after removing the redundant resources (tutorial about how to remove redundancies soon ;)).

And finally: everyone can remove apks from the rom (themes, wallpapers, apps) depends on the personal usage style.

Instead of using hacked scripts to get free space on the ext partition, I prefer to clean the /data partition to get enough space for user apps. :)

I made this method with minicm7, because I recently lost the ext partition (with various cm7 and a2sd versions), and after cleaning the rom, I shrink the /system and got 300MB for /data, and not needed to use ext partition... ;)
[XPERIA X8 Android Development] pilu1978:
Re: [DEV] miniCM10 debug only thread (shakira, robyn and mimmi) 28/02/13

Yes, you are right. :)

Removed all unwanted stuff from the rom, include all third-party apps into /system/app what I use, and recompile the kernel with new partition parameters. :) With minicm7 got 300MB free on /data (of course: the daily apps (opera, trillian, rootexplorer, xda app) was included in the /system/app folder. The dalvik-cache was small (due the full odexed system), and the more than 250MB free space for user apps was more than enough, and not need to use any a2sd script (what have lot of disadvantages).

With minicm10 not tested what is the max size for /data, but I think possible to get around 200MB free for user apps. ;)
[XPERIA X8 Android Development] matmutant:
i finally simply linked your post in the OP, so that you can directly get the thanks you deserves ;)
[XPERIA X8 Android Development] ApriliaM3:
Please try and keep things on-topic here guys... I've had a cleanup (as requested) and I'd prefer not to have to return for the same thing.

Thanks :)
[XPERIA X8 Android Development] CtrlAltDelIrl:
Guys,

JFI - I've went back to 4.1.0 from the latest nightly. I wasn't getting the same performance at all.

Anyone else notice this?
[XPERIA X8 Android Development] DanielFran:
Yes, I rollback too!

In nightly I had some freezes, not so smooth...
[XPERIA X8 Android Development] CtrlAltDelIrl:
Thanks for the confirmation DanielFran :)
[XPERIA X8 Android Development] drfr:
Just an addition to my previous post about odexing framework with a script -

here´s a handy solution for system apps:

https://play.google.com/store/apps/details?id=com.SystemCleanup.Inteks.org&hl=en
[XPERIA X8 Android Development] pilu1978:
Yes, this is a good app. :) Can make .odex files, can integrate the updated apps into the system apps, can remove lot of trash (for example: forgotten files in dalvik cache what is not related to any app), can set the apps autorun status, etc, etc... Must have app. :)
[XPERIA X8 Android Development] domy_xda:
Who can fix ANT+ service in miniCM10

cm7 and cm9 support this feature, but can`t start service on CM10.

To devs: no need to have ANT+ device to check, just install ANT Radio Service and ANT+ Demo from googleplay

in ANT+ Demo continiusly "Enabling ANT...." message shows
[XPERIA X8 Android Development] drfr:
You mean performance as checked with antutu or just by feeling?

Here on mimmi no probs with the nightly.
[XPERIA X8 Android Development] CtrlAltDelIrl:
Antutu dropped about 200 - 300 points over 5 runs and I did notice it just wasn't as responsive..

I didn't have any issues with it though apart from that - overall it was still great.

---------- Post added at 07:41 PM ---------- Previous post was at 07:38 PM ----------

I wasn't able to odex both system apps and framework though. Did you manage?

Stuck on boot logo when I tried - twice..

I used your previous posting for the framework and then the above app for system apps.
[XPERIA X8 Android Development] pilu1978:
@CAD: look the logcat while the phone boot, and tell why not boot with odexed apps (I'm now on cm7, can't check)
[XPERIA X8 Android Development] CtrlAltDelIrl:
You know what? I didn't even think of that - just went straight to restore.

But being the eternal optimist :) I'll give another go!
[XPERIA X8 Android Development] drfr:
Yes I did. I don ´t understand where exactly you had a failure. After odexing framework with the script or system apps with the systemcleanup?
[XPERIA X8 Android Development] CtrlAltDelIrl:
After odexing framework.. I already had system done..

Must've been me lmao..
[XPERIA X8 Android Development] pilu1978:
@CAD: use qtadb, this app have realtime logcat options, the best way to discover bootloops.
[XPERIA X8 Android Development] drfr:
Check if BOOTCLASSPATH in your ROM is the same like in reodex_win.mod2.

Do

adb shell script

and compare if it´s EXACTLY the same. If not, edit reodex_win.mod2.
[XPERIA X8 Android Development] CtrlAltDelIrl:
Cheers both of you.. I'm doing a friend's ST15i atm so i'll try after that!

Nice wee phone the ST15i..
[XPERIA X8 Android Development] xelyt:
Disable Scrolling Cache

Hey guys

This is the framework.jar with disabled scrolling cache. I didn't had time to test it yet so i don't know if it will change something in performance or not.

Framework was taken from MiniCM10 4.1.0

stable

so it will probably not work with nightlies. If you want to try with a nightly build you could follow this guide

Make a backup before flashing this mod
[XPERIA X8 Android Development] matmutant:
limiting background processes drawback

i was using the possibility of limiting background processes via build.prop (sys.mem.max_hidden_apps= ; i was using 8 as value)

the result is a bad battery drain, using WIFI mostly; i didn't find it out before since i forgot i did this tweak :silly:... reverting it made the phone not drain a single % over night with WIFI ON :)

so ... what did You experienced with it ?
[XPERIA X8 Android Development] pumiddu:
Hi to all developers. I have been a CM7 user for a long time, but since sometime the phone is slow, I decided to try the CM10. I'm testing it on my tiny X8 and I'm very surprised for the performance and battery consuption, but I'm very sorry that the ANT+ features doesn't work. As domy_xda wrote , developers can test the ANT+ on CM10 just installing the ANT radio service and the ANT+ demo app. I believe that the ANT radio service in not working but I don't know why. How can help you developers to debug it?

Thanks

Vito
[XPERIA X8 Android Development] xelyt:
I'm using sys.mem.max_hidden_apps=10 (i also tried using 5 instead of 10) and i didn't noticed any difference in battery usage. I really don't know what could be the relationship between limited background processes and battery drain on wifi but you could try setting a higher value like 10 and see how it goes
[XPERIA X8 Android Development] pilu1978:
I used with various values (between 4 and 10) but not saw any significant difference in battery life.
[XPERIA X8 Android Development] Groot:
^same as here, using that build.prop tweak hadn't affected my battery life :)
[XPERIA X8 Android Development] matmutant:
i also thought it shouldn't be related, that's why i was asking you :) thk you !
[XPERIA X8 Android Development] matmutant:
post #3 updated :)
[XPERIA X8 Android Development] matmutant:
testing greenify

as you may have seen (on my screen shots) i use greenify

the aim was to hibernate twitter, AppyGeek and many other apps that would run in background to seek for updates, new tweets ...

seems it also free up some ram, and improve smoothness

i also disabled zram ...

for now the experience is extremely positive, anyone wanting to try and report ?
[XPERIA X8 Android Development] afi1982:
i'm using this app from the first day it was released and ohh my god this is the best app out there.
[XPERIA X8 Android Development] Groot:
been using greenify a week now and I can report that it really is a must for our low ram device

Swyped via Tapatalk 2
[Sony Xperia S, Acro S, Ion] Phantasm4489:
JunThis little tool should work on all CM9/10 builds so far and may work on other ROM releases based on FXP's CM.

IF YOU HAVE ALREADY INSTALLED A PATCH FROM THE FIRST RELEASE MAKE SURE YOU REVERT BACK TO STOCK FRAMEWORK.JAR BEFORE USING v0.2

I have consolidated the two files into one batch file for both CM9 and CM10. You can choose between them when you start the batch file.

There are now two modes of operation. Simply running smsfix.bat will work as per the previous versions. The framework.jar will be pulled from your phone, modified

and then pushed back. You need JAVA runtime and ADB installed for this to work.

The second mode you can extract the framework.jar from your phone manually and drag the file onto the smsfix.bat (or run smsfix.bat and add the filename as a parameter) and it will make the necessary patches and provide you with a flashable zip that will be copied to your desktop.

This should keep us going until a real sms fix is released.

Let me know how you get on with this.

Release history

08 - Oct - 2012 - v0.5 - Support for the new RIL in builds FXP141 onwards (both CM9/10 - Select option 3)

01 - Oct - 2012 - v0.4 - Added more heap space for java calls as the script fails with latest builds (fxp 140 onwards). Added more error checking to ensure it fails cleanly.

18 - Sep - 2012 - v0.3 - Consolidate to a single batch file for both CM9 and CM10 and added a flashable zip mode. The patch itself has not changed in this release so no need to update from previous versions.

14 - Sep - 2012 - v0.2 - Added version for CM10 too.

13 - Sep - 2012 - v0.2 - Should now work with messages of >2 parts - based on a Smali rough implementation of this fix (http://review.cyanogenmod.com/#/c/2...droid/internal/telephony/SonyQualcommRIL.java)

11 - Sep - 2012 - v0.1 - very hacky fix that didnt work with >2 messages and was not thread safe.

Thanks to whooper90 for the adb remount and thanks to the Samsung CM dev team who did the fix that v0.2 is based upon.
[Sony Xperia S, Acro S, Ion] Static-Noise:
Thank you for your contribution to the community.

Is there any way you can post the actual files/code here that we can patch manually? I'm on a Mac, for example, and would still like to use this application.
[Sony Xperia S, Acro S, Ion] Phantasm4489:
the files that it patches are all included. if you can drive apktool you should be able to decompile and copy the patched files over and recompile without too much difficulty

just use the mac apktool files from here

http://code.google.com/p/android-apktool/

and manually run the steps from the batch file
[Sony Xperia S, Acro S, Ion] Static-Noise:
That's great. That suits perfectly, so thank you very much. I'll try it out and report back in the morning.
[Sony Xperia S, Acro S, Ion] jerwaz:
"Installation aborded" ...
[Sony Xperia S, Acro S, Ion] fareeed:
It's not a flashable zip, extract the folder to anywhere on your PC then run "smsfix.bat" from the folder you just extracted. This should work providing you have the correct drivers and have read the instrcutions in the OP :)
[Sony Xperia S, Acro S, Ion] dreamz0r:
Nice, good job!
[Sony Xperia S, Acro S, Ion] jerwaz:
Ohhhh right sry ^^'

Working perfectly =)

Edit: working for a 320 character long message but not for more than 320 character ....
[Sony Xperia S, Acro S, Ion] championswimmer:
which lines on the smali are actually getting changed ??
[Sony Xperia S, Acro S, Ion] dthomasen:
Hi!

Thanks for the fix!

I've had an issue with the bat script when it was pushing the edited file. Seems like you've forgot an adb remount.

Here's the (I believe) fixed bat script.

EDIT: I can only send messages of 1 or 2 messages.. 3 messages fail.. :( Thanks anyway! huge improvement :)

@echo off
echo Pulling framework.jar from phone...
md working
adb pull /system/framework/framework.jar working
echo Decompiling and patching files
java -jar apktool.jar d working\framework.jar working\framework.jar.out
copy /y ril.smali working\framework.jar.out\smali\com\android\internal\telephony\
copy /y GsmSMSDispatcher.smali working\framework.jar.out\smali\com\android\internal\telephony\gsm\
copy /y CdmaSMSDispatcher.smali working\framework.jar.out\smali\com\android\internal\telephony\cdma\
java -jar apktool.jar b working\framework.jar.out working\fw.jar
7za -oworking x working\fw.jar classes.dex
cd working
..\7za u framework.jar classes.dex
echo Ready to push and reboot
..\adb remount
Pause
..\adb push framework.jar /system/framework/framework.jar
..\adb shell chmod 644 /system/framework/framework.jar
..\adb reboot
echo Cleaning up
cd..
rd /q /s working
echo Operation complete
Pause
[Sony Xperia S, Acro S, Ion] Phantasm4489:
i was basically adding a public static field to the RIL class that is picked up when sending a message and setting it to SEND_SMS or SEND_SMS_EXPECT_MORE from the SMSDispatcher.

Very dirty hack. The new version is much nicer and is a rough implementation of this fix:

http://review.cyanogenmod.com/#/c/2...droid/internal/telephony/SonyQualcommRIL.java

i'm missing some of the niceties of this fix above but im new to dalvik/smali and i couldnt quite get the exception handling to work. :(
[Sony Xperia S, Acro S, Ion] lahirukkk:
thnx it worked.. :good::good: btw i can send sms more than 320 characters :confused: any way thnx :D
[Sony Xperia S, Acro S, Ion] dying_sun:
Didn't worked for me :(

I receive an error about classes.dex

FXP137 for Xperia S
[Sony Xperia S, Acro S, Ion] Phantasm4489:
it would help if you could provide information about exactly what error you got
[Sony Xperia S, Acro S, Ion] lahirukkk:
I also got that first time when i'm trying to install. What i did is install java run time environment 1.7 on my pc. Then it worked with out giving error msg.
[Sony Xperia S, Acro S, Ion] dying_sun:
Thanks a lot, I installed Java about two weeks ago (for Jdownloader) so I think I didn't needed this, but downloading JRE 1.7.0.7 everything goes ok. Thanks again ;)

Flavio
[Sony Xperia S, Acro S, Ion] lahirukkk:
Glad to hear that you slove the problem. :)
[Sony Xperia S, Acro S, Ion] tooktang:
A question

It works for me! Thank you very much! :laugh:

But I am wondering that, if I upgrade from FXP136 to FXP137 by flashing zip file, should I patch it again? Or should I keep my patched "framework.jar" unreplaced?
[Sony Xperia S, Acro S, Ion] Phantasm4489:
Just apply again whenever you flash a new release
[Sony Xperia S, Acro S, Ion] Felimenta97:
This will work on AOKP too?

Sent from my LT26i with Tapatalk 2
[Sony Xperia S, Acro S, Ion] jerwaz:
Working perfectly for me Now ! (CM9.1)

Thx !
[Sony Xperia S, Acro S, Ion] Phantasm4489:
Probably yes, just take a backup and give it a try
[Sony Xperia S, Acro S, Ion] seburton:
+1?
[Sony Xperia S, Acro S, Ion] stefabax73:
Linux

Please could you provide also a Linux script? ;)
[Sony Xperia S, Acro S, Ion] Lucio25m:
Hi guys,

It's possible to have this fix as an zip file I can flash trough recovery. For some reason the methode described are the beginning does work.

Thanks in advance
[Sony Xperia S, Acro S, Ion] Phantasm4489:
because the changes are only to a small part of the framework.jar the app pulls the existing framework.jar from your phone and modifies it. I did it this way so that I would not need to release a new version of this mod each time a new build of cm is released. It is possible to make a flashable zip but it would most likely only work for one specific build.
[Sony Xperia S, Acro S, Ion] Lucio25m:
Thanks for the replay man. I'll try to get this done.

Verstuurd van mijn Xperia S met Tapatalk
[Sony Xperia S, Acro S, Ion] Phantasm4489:
ive come up with a solution for this now. You can extract the framework.jar manually from your phone and drag the file onto the smsfix.bat file and it will create you a flashable update.zip.

Make sure you dont try to apply this update.zip to the wrong release though as it will probably give you a nice bootloop.
[Sony Xperia S, Acro S, Ion] dthomasen:
Made a linux version of this script.

It doesn't create an update.zip but it's working on linux ;)

Pulling framework.jar, making the modifications and pushing it back.

Tested on latest CM10.

USAGE:

Unpack zip file

run smsfix.sh (by going to the folder via terminal and running "./smsfix.sh" (without the quotes))

Download:

daimi.au.dk/~whooper/CM-SMS-FIX.zip

Feel free to add it to the first post :)

If anyone is interested, here's the script:

showMenu () {
echo "Please select your CM version (press enter after choice)"
echo "1) CM9 or 9.1"
echo "2) CM10"
echo "3) Quit"
}

go () {
echo "Pulling framework.jar from phone..."
mkdir working
./adb pull /system/framework/framework.jar working
echo "Decompiling and patching files"
java -jar baksmali-1.3.3.jar -o working/framework.jar.out working/framework.jar
if [ $1 == "CM9" ]
then
cp -rf cm9SonyQualcommRIL.smali working/framework.jar.out/com/android/internal/telephony/SonyQualcommRIL.smali
elif [ $1 == "CM10" ]
then
cp -rf cm10SonyQualcommRIL.smali working/framework.jar.out/com/android/internal/telephony/SonyQualcommRIL.smali
fi
java -jar smali-1.3.3.jar -o working/classes.dex working/framework.jar.out
cd working
zip -u framework.jar classes.dex
echo "ready to push and reboot"
../adb remount
../adb push framework.jar /system/framework/framework.jar
../adb shell chmod 644 /system/framework/framework.jar
../adb reboot
echo "cleaning up"
cd ..
rm -r working
echo "Operation complete"
break
}

while [ 1 ]
do
showMenu
read CHOICE
case "$CHOICE" in
"1")
echo "You've choosen CM9 or 9.1"
go "CM9"
;;
"2")
echo "You've choosen CM10"
go "CM10"
;;
"3")
exit
;;
esac
done

Can be found on github, if anyone's interested: https://github.com/whooper90/Cyanogenmod-SMS-fix
[Sony Xperia S, Acro S, Ion] MasterLinuxer:
Weird thing happened. This fixed my problem (running cm9.1) but now my phone shows that my battery is 1 percent (which is not true)... Tried to wipe battery stats and fix permission without luck...

Any ideas?

EDIT: the problem was fixed after wiping cache partition :)
[Sony Xperia S, Acro S, Ion] Phantasm4489:
Hi. It would be nice if you credited my and others work done on this fix that is used by your script.
[Sony Xperia S, Acro S, Ion] dthomasen:
Oh ofc..

Haven't even thought about it, since I've only posted it here..

Adding it to the readme right away :)

EDIT:

Credits added :)
[Sony Xperia S, Acro S, Ion] oojjii:
Excellent job ! Thank you so much for this i needed so bad.. I would donate if i could :)

BTW You should write first post;

If you get some error about classes.dex.

You should install java run time environment 1.7 .

I got the same error and installed jrt. Then, it worked like a charm :)

Thank you so much for this !
[Sony Xperia S, Acro S, Ion] songsong69:
to use smsfix, do i have to connect my phone to pc in fastboot mode or just connect as a usb storage ?
[Sony Xperia S, Acro S, Ion] dthomasen:
Just connect the phone when it's turned on. No fastboot.

Be sure that USB debugging is on.
[Sony Xperia S, Acro S, Ion] Soheil_rf:
No signal in CM9.1( FXP141)

please fix it
[Sony Xperia S, Acro S, Ion] scook94:
I get the following error using v0.4 with CM9.1 "Nightly", v0.2 works fine though. Any idea why?

EDIT: Except it seems to break radio, as mentioned in the above post. :(

SMS 160 character limit framework patcher v0.4

Please select one of the following...

1) CM9 or 9.1
2) CM10

Selection:1
Pulling framework.jar from phone...
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
2873 KB/s (4045234 bytes in 1.375s)
Decompiling and patching files
1 file(s) copied.

UNEXPECTED TOP-LEVEL ERROR:
java.lang.OutOfMemoryError: Java heap space
at org.jf.dexlib.Util.ByteArrayAnnotatedOutput.toByteArray(ByteArrayAnno
tatedOutput.java:140)
at org.jf.smali.main.main(main.java:233)

Failed to decompile/recompile framework.jar - cannot continue
Press any key to continue . . .
[Sony Xperia S, Acro S, Ion] Phantasm4489:
v0.5 released with support for FXP141 updated RIL.
[Sony Xperia S, Acro S, Ion] scook94:
Many thanks, script working with the latest "nightly".