Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
jerwaz
Old
#21  
jerwaz's Avatar
Member
Thanks Meter 9
Posts: 42
Join Date: Oct 2010
Location: Montmeyran
Working perfectly for me Now ! (CM9.1)
Thx !
 
Phantasm4489
Old
#22  
Senior Member - OP
Thanks Meter 169
Posts: 238
Join Date: Apr 2010
Probably yes, just take a backup and give it a try

Sent from my Xperia S using xda app-developers app
 
seburton
Old
#23  
Senior Member
Thanks Meter 68
Posts: 160
Join Date: Apr 2011
Quote:
Originally Posted by Felimenta97 View Post
This will work on AOKP too?

Sent from my LT26i with Tapatalk 2
+1?
 
stefabax73
Old
#24  
Junior Member
Thanks Meter 3
Posts: 17
Join Date: Oct 2007
Tutorial Linux

Please could you provide also a Linux script?
 
Lucio25m
Old
#25  
Member
Thanks Meter 8
Posts: 90
Join Date: Sep 2005
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
 
Phantasm4489
Old
#26  
Senior Member - OP
Thanks Meter 169
Posts: 238
Join Date: Apr 2010
Quote:
Originally Posted by Lucio25m View Post
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
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.
 
Lucio25m
Old
#27  
Member
Thanks Meter 8
Posts: 90
Join Date: Sep 2005
Quote:
Originally Posted by Phantasm4489 View Post
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.
Thanks for the replay man. I'll try to get this done.

Verstuurd van mijn Xperia S met Tapatalk
 
Phantasm4489
Old
#28  
Senior Member - OP
Thanks Meter 169
Posts: 238
Join Date: Apr 2010
Quote:
Originally Posted by Lucio25m View Post
Thanks for the replay man. I'll try to get this done.

Verstuurd van mijn Xperia S met Tapatalk
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.
 
whooper90
Old
(Last edited by whooper90; 18th September 2012 at 08:16 PM.)
#29  
whooper90's Avatar
Senior Member
Thanks Meter 41
Posts: 302
Join Date: Dec 2007
Location: Aarhus
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:

Code:
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
Regards Dennis Aka. Whooper
Computer Science @ University of Aarhus
The Following 2 Users Say Thank You to whooper90 For This Useful Post: [ Click to Expand ]
 
MasterLinuxer
Old
(Last edited by MasterLinuxer; 21st September 2012 at 11:38 PM.)
#30  
Senior Member
Thanks Meter 42
Posts: 255
Join Date: Jun 2011
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?

Sent from my Xperia S using xda app-developers app

EDIT: the problem was fixed after wiping cache partition
Sent from my Xperia S

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...