PORTING GUIDE By kD
Disclaimer : I'm not responsible for any damage caused to your phone due to this guide or me! if you will point over me. I will simply laugh at you!
This isn't gonna make fully functional rom port for you! it is just the start!
Prerequisites :
1.You need one ROM of LG P350 and Other ROM from the device you want to port it
2. ADB [ Please google for that! it is Universal android package ]
3. Little Mind
Now Let's start the Port
First of all
EXTRACT Both ROMS ZIP One should be P350 ROM and Other should be the ROM you want to port!
Name P350 ROM as BASE and Other Device ROM as PORT
CHANGE KERNEL:
1. Open both BASE and PORT Folders
2. Copy & Replace Boot.img file from BASE TO PORT
3. You're Done
Click to expand...
Click to collapse
NOTE NOW BELOW DONE ALL THE FOLDERS ARE LOCATED IN SYSTEM FOLDER
CHANGE BIN FILES
1. Open BASE AND PORT Bin Folders
2. Copy the below written bin files from BASE TO PORT
Code:
am
ami304d
bmgr
brcm_patchram_plus
hci_attach
fix_permissions
ime
input
monkey
pm
port-bridge
rild
servicemanager
vold
3. You're done
Click to expand...
Click to collapse
CHANGE ETC FILES:
1. Open ETC Folder in
2. Now Delete the Below written etc files from PORT
3. Now Get these etc files from BASE and Copy them to PORT
Code:
bluetooth
dhcpd
firmware
permissions
ppp
wifi
wl
apns-conf.xml
dbus.conf
gps.conf
hosts
media-profiles.xml
resolv.conf
vold.fstab
4. You're done
Click to expand...
Click to collapse
CHANGE LIBS:
1. Open lib folder in Both PORT and BASE
2. Delete the below written libs from PORT
3. Now Copy ALL the Folders and libs which are written below from BASE TO PORT
Code:
hw
egl
libauth.so
libcm.so
libbluedroid
libbluetooth
libbluetoothd
libcamera
libcameraservice
libdiag.so
libdbus.so
libdss.so
libdsm.so
libdll
libgsl.so
libgstk_exp.so
libmiscta.so
libmmgsdilib.so
libmmipl.so
libmmjpeg.so
liblog
libnv.so
libinput.so [ it is only needed for ics and above based roms ]
liboem_rapi.so
liboemcamera.so
libhardware_legacy
liboncrpc.so
libpbmlib.so
libqmi.so
libqueue.so
libril.so
libril-qc-1.so
libsensorservice
libwebcore
libwms.so
libwmsts.so
4. Yeah! You're done!
Click to expand...
Click to collapse
CHANGE USR Files
1. Open USR folder in both PORT and BASE
2. Now Change the below given folders from BASE to PORT
Code:
keylayout
keychars
3. You're done!
Click to expand...
Click to collapse
CHANGE XBIN FILES
1. Open xbin folder in both PORT AND BASE
2. Change below given xbin files from BASE TO PORT
Code:
HCIDUMP
HCITOOL
HCICONFIG
3. You're done
Click to expand...
Click to collapse
CHANGE BUILD.PROP File
1. Open both Build.prop file with Notepad of PORT AND BASE
2. Now change the below given lines from BASE TO PORT
Code:
ro.product.board=
ro.product.model=
ro.product.brand=
ro.product.name=
ro.product.device=
ro.product.manufacturer=
ro.build.product=
ro.sf.lcd_density=120
ro.sf.hw_lcd_density=120
3. You're done
Click to expand...
Click to collapse
Now Just make zip of PORT Folder contents! Now you need to sign it!
You can sign your rom with [TOOL] RegawMOD Zip Signer v1.0 | 9-28-2010 - xda-developers
If you don't sign your rom you can disable signature verification in recovery!
Now you've finished porting your first rom! I'm not 100 % that it will boot but most likely it should boot up! if it don't boots! Adb logcat is still there!
Hit thanks if you liked my work!
nc tutorials..
but i think you have to give links.
for the roms?
and put some pics and videos for complete tutorials.
bcoz for a newbies like me. its to complicated to understand.
but thanks anyway
Will do that soon thanks for recommdation :d
And yeah don't say thanks press thanks is sexy
rom2maru said:
And yeah don't say thanks press thanks is sexy
Click to expand...
Click to collapse
LOL. i already press it. sory for that .
Sent from my LG-P350 using xda premium
Anyway plz have a try porting with this menthdod :d
rom2maru said:
Anyway plz have a try porting with this menthdod :d
Click to expand...
Click to collapse
i will try it later. for now im too busy with my work.
Sent from my LG-P350 using xda premium
ohh ok no problem ;D
n1ck018 said:
nc tutorials..
but i think you have to give links.
for the roms?
and put some pics and videos for complete tutorials.
bcoz for a newbies like me. its to complicated to understand.
but thanks anyway
Click to expand...
Click to collapse
yes please, some pics and links
pd: may pass this rom to p350?: http://forum.xda-developers.com/show....php?t=1836116
rom2maru said:
THIS IS THE PORTING GUIDE FOR YOU ALL. SO GUYS YOU CAN ALSO BE ANDROID DEVELOPER.....
NOTE : THIS GUIDE IS FOR PORTING P500 ROMS TO P350 BUT ONLY OLD BASEBAND. YOU CAN TRY WITH VARIOUS DEVICES LIKE GT540 BUT P500 IS BEST FOR PORTING..
IMPORTANT : I'M NOT RESPONSIBLE FOR ANY HARM CAUSE TO YOUR PHONE. IT WILL NOT DO ANY HARM BUT THEN ALSO SAFETY IS NECCESSARY...
'''''''''''''''''''''''''''''''''''THIS WILL NOT MAKE A FULLY FUNCTIONAL ROM'''''''''''''''''''''''''''''''''''''
Code:
FIRST OF DOWNLOAD The Rom You Want to Port and One Rom For Base
NOW COPY BOTH THE ROMS SOMEWHERE
NOW EXTRACT BOTH THE ROMS
''''''''''''''''''''''''''''''''''''SO NOW THE PORTING STARTS'''''''''''''''''''''''''''''''''''''''''''' '''''''''''''''
Code:
OPEN BOTH THE FOLDERS
NOW RENAME BOTH THE FOLDER AS The rom you want port AS PORT
AND The ROM Which u take as base AS BASE
NOW OPEN BOTH PORT AND BASE FOLDER
SO GUYS NOW PORTING STARTS :
Code:
first copy this boot.img from base folder to port folder. boot.img is main
NOW OPEN THE SYSTEM > BIN FODLDER AND COPY THIS FILES FROM BASE TO PORT
Code:
am
ami304d
bmgr
brcm_patchram_plus
hci_attach
fix_permissions
ime
input
monkey
pm
port-bridge
rild
servicemanager
vold
NOW OPEN SYSTEM > ETC FOLDER AND COPY THE FOLLOWING FILES FROM BASE TO PORT BUT FIRST DELETE THIS FILES FROM PORT
Code:
bluetooth
dhcpd
firmware
permissions
ppp
wifi
wl
apns-conf.xml
dbus.conf
gps.conf
hosts
media-profiles.xml
resolv.conf
vold.fstab
THIS WERE THE ETC FOLDER FILES NOW GO TO SYSTEM > LIB FOLDER AND COPY THIS FILES FROM BASE TO PORT. BUT FIRST DELETE THAT FILES FROM PORT
Code:
modules
hw
egl
THIS THREE WERE FOLDER NOW THE LIBS. COPY IT FROM BASE TO PORT
Code:
libauth.so
libcm.so
libbluedroid
libbluetooth
libbluetoothd
libcamera
libcameraservice
libdiag.so
libdbus.so
libdss.so
libdsm.so
libdll
libgsl.so
libgstk_exp.so
libmiscta.so
libmmgsdilib.so
libmmipl.so
libmmjpeg.so
liblog
libnv.so
liboem_rapi.so
liboemcamera.so
libhardware_legacy
liboncrpc.so
libpbmlib.so
libqmi.so
libqueue.so
libril.so
libril-qc-1.so
libsensorservice
libwebcore
libwms.so
libwmsts.so
THIS WERE THE LIBS THAT WERE NEEDED FOR PORTING
NOW OPEN THE SYSTEM > USR FOLDER NOW COPY THE TWO FOLDERS FROM BASE TO PORT BUT FIRST DELETE THAT FOLD FROM PORT
Code:
keychars
keylayout
THIS WERE THE USR FILES NEEDED FOR PORT
NOW OPEN THE SYSTEM > XBIN FOLDER AND COPY THE THREE FILES FROM BASE TO PORT
Code:
HCIDUMP
HCITOOL
HCICONFIG
SO GUYS NOW THE LAST PART OF PORTING THAT IS BUILD.PROP. OPEN THE BUILD.PROP FROM SYSTEM > BUILD.PROP OPEN IT USING NOTEPAD. OPEN BOTH BASE ND PORT BOTH BUILD.PROP
NOW U NEED TO CHANGE THE FOLLOWING FROM BASE TO PORT
SO GUYS JUST CHANGE THIS FIELDS FROM BASE TO PORT AND ADD ONE LINE AT THE END
SO GUYS SAVE IT AND CLOSE BOTH THE FOLDERS. NOW YOU JUST NEED TO CREATE ZIP OF IT (DONT MAKE FOLDER ZIP MAKE CONTENTS ZIP)
AND GUYS FOR SIGNING DOWNLOAD ZIP SIGNER FROM HERE AND SIGN IT
[TOOL] RegawMOD Zip Signer v1.0 | 9-28-2010 - xda-developers
IF NOT SIGNED THEN AT THE TIME OF FLASHING TURN OFF ZIP VERIFICATION. SO GUYS YOU HAD GOT UR OWN ROM. NOW YOU ARE ANDROID DEVELOPER
Enjoy Porting !
Click to expand...
Click to collapse
your tutorials are always awesome :good:
i want to ask that can i port cm 10 of p500 to our device using cm 7 or cm 9 of our device????????????????????
if yes then.....
i tried with cm 9 but when flashing got error like getprop ro.product.name == p500 and unknown commands so what can be cause??????
pkprasanna said:
i want to ask that can i port cm 10 of p500 to our device using cm 7 or cm 9 of our device????????????????????
if yes then.....
i tried with cm 9 but when flashing got error like getprop ro.product.name == p500 and unknown commands so what can be cause??????
Click to expand...
Click to collapse
I had this error when porting a rom CM9 from p500 to p350, but I exclude this part of the update script, and the rom installed, however it is not on the screen starts Penguin.
Re: ICS
gabripop said:
I had this error when porting a rom CM9 from p500 to p350, but I exclude this part of the update script, and the rom installed, however it is not on the screen starts Penguin.
Click to expand...
Click to collapse
I have the same problem ...
prachetas13 said:
I have the same problem ...
Click to expand...
Click to collapse
I do not think there is a kernel that works legally in the CM9 p350 must be why the system does not start ...
Its a problem of updater-script.
There is a line starting with assert(getprop(.....
Delete this line...
If you find any other line starting with this then delete them also.
And you can only port roms only with same version . Like if the port rom is cm9 than base should also be cm9.
I will try this. I have bad exeperience whith another thread, only get kernel pannic and don't boot.
But your thread look s with more details.
Sent from my LG-P350 using xda app-developers app
Sir can i port
Sir Can i port CM9 From P500 or AOKP or Slim based I mean any ics based rom ? to p350 from gt540 or p500 ? If yes i would surely like to try ;D
Hi man, I use your guide and it works, only whith 2 of P500, but i have a trouble, I can't see the status bar and the screen on calls. any tip????
Thank's for all.
Porting Rom's whith you guide.
Your_girlfriend_cheats_us said:
Hi man, I use your guide and it works, only whith 2 of P500, but i have a trouble, I can't see the status bar and the screen on calls. any tip????
Thank's for all.
Click to expand...
Click to collapse
View attachment 1457794
View attachment 1457795
this are the logcat s of both Roms, I hope not being abussing you.
Thanks for all man, U R cool.
LuisAkira2301 told me that I must add libs:
libui
libsurfarcefinger
And it really works. So, It's fixed now, Thanks man, you too.
So Release it !!!!!!!!!! Man !! and Don't Forgot to Add Credits
Related
Original thread here: (thank to capez
http://forum.xda-developers.com/showthread.php?t=1342117
Click to expand...
Click to collapse
I think this tut is for advance users. But others can try
1. Get your "framework-res.apk" in /system/framework
2. Use apktool to decomplie that file. (I recommend apktool becoz I often use it )
- Command to decomplie: apktool d framework-res.apk framework-res
3. Download source file here:
http://www.mediafire.com/?4u6y6udecy60dei
Click to expand...
Click to collapse
4. In extracted folder which u get from "framework-res.apk", find "anim" folder in \res
5. Extract source file in step 3, u will get 2 folder:
- anims
- other_files
6. Copy files from both folders in step 5 into "anim" folder in step 4
7. Open "integers.xml" in /res/value and find this line:
<integer name="config_shortAnimTime">150</integer>
Click to expand...
Click to collapse
then add the following lines after it:
<integer name="config_activityShortDur">150</integer>
<integer name="config_activityDefaultDur">220</integer>
Click to expand...
Click to collapse
8. Complie your "framework-res.apk" with command: apktool b framework-res new.apk
9. You will get a file "new.apk" but dont use it. Open extracted folder which u get in step 2, u will find a folder "build" and a file is "resource.arsc" inside
10. Now you need to use 7zip. Right click on that resource file, choose 7zip > add to archive and select original framework-res.apk with type is zip.
11. Open "new.apk" in step 8 and original "framework-res.apk" with 7zip. Drag and drop "anim" and xml folders in "new.apk" to "framework-res.apk"
12. It's finished. U can use the file "framework-res.apk" now and see the transition.
Have fun! If u have question, just ask and I will answer
Example of ICS transition:
http://www.youtube.com/watch?v=vf1U_30Ngfk
Click to expand...
Click to collapse
Actually i have the easier way to apply the animation but it will only work on CyanogenMod... I call this easy patcher by Achep.... For Samsung Stock ROM (Rooted!), please give me ur framework-res.apk as i can work something for the intergers.xml...
Link: http://forum.xda-developers.com/showpost.php?p=19285951&postcount=41
Use it on the PC!
1. Put ur framework-res.apk to res/framework
2. When ur ready, press Patcher.exe
3. Then press Enter
4. Once done patching, put the patchers (flashable zip) to ur phone and flash it!
Remember this is only for the CyanogenMod 7 or other stock AOSP, for Stock ROMs, please pm me the framework-res.apk...
Sent from my Nexus One using Tapatalk
I'm writing tut for stock samsung roms
devilsking said:
I'm writing tut for stock samsung roms
Click to expand...
Click to collapse
Good, i have whole stack patchers for other phones
-LG Optimus One
-Nexus One
-Desire
-Galaxy S2
-Nexus S
And many many more! Works on MIUI, Cyanogen and Stock HTC Roms... Havent tested on Samsung Stocks...
Sent from my Nexus One using Tapatalk
"java" is not recognised . :/
Edit: Fixed my problem
EmoBoiix3 said:
"java" is not recognised . :/
Click to expand...
Click to collapse
Have u install Java??
Sent from my Nexus One using Tapatalk
DaxElectro said:
Have u install Java??
Sent from my Nexus One using Tapatalk
Click to expand...
Click to collapse
he solved )
It's done, working perfectly
Ohh *like* devilsking work ^^ ...
Well can any one help me do for general user like meh?? ....
M NT advanced ^^
Sent from Wherever I was last using XDA :]
Aadigoku13 said:
Ohh *like* devilsking work ^^ ...
Well can any one help me do for general user like meh?? ....
M NT advanced ^^
Sent from Wherever I was last using XDA :]
Click to expand...
Click to collapse
Yes, framework???
Sent from my Nexus One using Tapatalk
could someone do this mod with my framework.apk? I tried few times and always bootloops, FCs or nothing changed.
here's my framework:
http://www.megaupload.com/?d=9DD6XC30
I didnt manage to install the apktool
Can someone help telling me how to install it and get it working?
DaxElectro said:
Actually i have the easier way to apply the animation but it will only work on CyanogenMod... I call this easy patcher by Achep.... For Samsung Stock ROM (Rooted!), please give me ur framework-res.apk as i can work something for the intergers.xml...
Click to expand...
Click to collapse
Worked fine for me by using your tool, thanks.
Got a bootloop when I install the patcher from recovery :/, already tried two times
alcachofita said:
Got a bootloop when I install the patcher from recovery :/, already tried two times
Click to expand...
Click to collapse
Hi alcachofita,
You have just PM me about the framework-res.apk bootloop, maybe you havent tried my patcher yet but nevermind, here you go and others who are running CM7-KANG-cooper like his, u can use this patch...
Dax
Im stucked in the step of signning the apk
DaxElectro said:
Hi alcachofita,
You have just PM me about the framework-res.apk bootloop, maybe you havent tried my patcher yet but nevermind, here you go and others who are running CM7-KANG-cooper like his, u can use this patch...
Dax
Click to expand...
Click to collapse
Thank you sir! (Pressed thanks button too)
The patch is working.
not working for me :/
@ alchaforta, killmyself
Last try, one of them already claim its working...
Sent from my Nexus One using Tapatalk
DaxElectro said:
Actually i have the easier way to apply the animation but it will only work on CyanogenMod... I call this easy patcher by Achep.... For Samsung Stock ROM (Rooted!), please give me ur framework-res.apk as i can work something for the intergers.xml...
Link: http://forum.xda-developers.com/showpost.php?p=19285951&postcount=41
Use it on the PC!
1. Put ur framework-res.apk to res/framework
2. When ur ready, press Patcher.exe
3. Then press Enter
4. Once done patching, put the patchers (flashable zip) to ur phone and flash it!
Remember this is only for the CyanogenMod 7 or other stock AOSP, for Stock ROMs, please pm me the framework-res.apk...
Sent from my Nexus One using Tapatalk
Click to expand...
Click to collapse
thanks, working well on nims's sonygenmod.
I will be releasing the fix on my rom sometimes next week , and I will not compile this for every set up / theme / rom out there but if you know what you are doing this is pretty easy fix
Here is how the fix works :
Our present kernel source is 2.3.4 and we are running 2.3.6 base . So I looked at what was different in the wifi files from 2.3.4 to 2.3.6 and there you go .
Files attached at the end of the post are 2.3.4 JVQ (already modified for JVU)
(fyi these files come from apk manager just rename your jar files to apk to decompile them then copy the files attached at the end of the post in there respective places )
_framework.jar :
delete: \android\net\wifi\WifiStateTracker$1.smali
and copy paste the files attached and recompile
_services.jar :
copy paste the files attached and recompile
_'etc' folder copy paste into your /system folder in your rom/Phone
(not 100% sure its needed but better use them anyways)
IF you are not on JVU you need to change the ids manually , the names of the values are written in the smali so that will make it easier to port to other versions .
Tested on Belkin router (the worst of them all) and on public wifi with no dhcp assigned . after an hour no disconnect flawless victory
For beginers here is a guide by pantrif13 : http://forum.xda-developers.com/showpost.php?p=22032781&postcount=16
Credits to Shoman94 for pointing me in the right direction and providing files to help me diff(and being insistent about it )
suprstar for testing
and gtg465x who achieved this first on the SGS2
Will this fix the adhoc problem too ?
You are the master.
Sent from my GT-I9000 using xda premium
HSaber said:
Will this fix the adhoc problem too ?
Click to expand...
Click to collapse
well this fix the current wifi bug , rule of thumb if it was wokring back on JVQ for you , and it stopped after that , now it works .
try and tell us
I'm using it in my rom thank you!
Can some1 please explain me how to recompile...
Sent from my GT-I9000 using XDA App
burakgon said:
I'm using it in my rom thank you!
Click to expand...
Click to collapse
Pleasure.. Spam my thx button ?
Little mention on your credits maybe
To others if you don't know how to use apkmanager this mid is not for you
Tell your favorite rom dev about it it takes a few minutes to apply this
I could have kept this to my rom but I put it out there for all rom to use
This fix really works
DAGr8 said:
Pleasure.. Spam my thx button ?
Little mention on your credits maybe
To others if you don't know how to use apkmanager this mid is not for you
Tell your favorite rom dev about it it takes a few minutes to apply this
I could have kept this to my rom but I put it out there for all rom to use
This fix really works
Click to expand...
Click to collapse
Bootloop when I try it on odexed rom. (Deodexed applied odexed) JVU
burakgon said:
Bootloop when I try it on odexed rom. (Deodexed applied odexed) JVU
Click to expand...
Click to collapse
well use odex jvq ..
(fyi these files come from apk manager just rename your jar files to apk to decompile them then copy the files attached at the end of the post in there respective places )
_framework.jar :
delete: \android\net\wifi\WifiStateTracker$1.smali
and copy paste the files attached and recompile
_services.jar :
copy paste the files attached and recompile
_'etc' folder copy paste into your /system folder in your rom/Phone
(not 100% sure its needed but better use them anyways)
Click to expand...
Click to collapse
cant get the instrucstion newbie here..how can i use this one pls can u use much more clearer instructions for newbies..thank you very much in advance
Great work!
Thx for your time.
titaempoy said:
cant get the instrucstion newbie here..how can i use this one pls can u use much more clearer instructions for newbies..thank you very much in advance
Click to expand...
Click to collapse
As said in OP, until built for any ROM version: Be your own developer!
Adb pull the system .jar files, decompile with dependency, edit, compile, rename, adb push result.
are a beginner and I did not understand anything ,more clear PLEASE if you can, thanks!...I think your work is useful
I think many people could do with a step by step guide for this if anyone has the time to do it
Please note our desires about this topic...declared above..thanks!
romyo said:
Please note our desires about this topic...declared above..thanks!
Click to expand...
Click to collapse
I think that dagr8 explain very clear what needs to be done (but you need to have some experience with decompiling and compiling).
Here what you need to do in case you are on jvu:
1) First off all you need the latest JDK and JRE installed on your system.
2) Then go here to learn how to set up apktool.
3) After the setup of apktool pull the services.jar (services.odex if you have odex rom) and framework.jar (framework.odex in case of odex rom) and put it in your apktool folder
4)
a. If you are on deodex rom you only need to run these commands from the folder of apktool (go to apktool folder and press ctrl and shift -open command window here)
Code:
apktool d framework.jar
apktool d services.jar
You will find two new folders (servicesout and frameworkout)
Then do what dagr8 said in op.
b. if you are on odex rom: get the latest baksmali from here
then pull all your system/framework to your pc and put baksmali.jar there.
Open commant window and write:
for sevices:
Code:
java -jar baksmali.jar -c :core.jar:bouncycastle.jar:ext.jar:framework.jar:android.policy.jar:services.jar:core-junit.jar -xa 10 services.odex -o services.jar.out
for framework:
Code:
java -jar baksmali.jar -c :core.jar:bouncycastle.jar:ext.jar:framework.jar:android.policy.jar:services.jar:core-junit.jar -xa 10 framework.odex -o framework.jar.out
Then do what dagr8 said.
5)Both deodex odex: get the latest smali from here
Put it in the folder with out folders and write:
for services:
Code:
java -jar smali.jar sevices.jar.out -o classes.dex
you will find a new classes.dex file.Open services.jar with winrar and drag and drop (overwrite) there.
Then for framework:
Code:
java -jar smali.jar framework.jar.out -o classes.dex
Same here (open the jar with winrar and drag and drop)
5) if you are on deodex rom you finished just push the new services and framework to the system along with the files which provide dagr8 for etc folder.
6) if you are on odex...go here and follow the guide from the part odexing back...
I hope i helped!
Thanks a lot dagr8 for this!!
can dev provide the public.xml that this was made with for comparison of ids?
Thanks for your time and explanations given pantrif13 and dagr8, expecting something more simple ... you can install the CWM (example) ... so (who knows it's easy anyway)...expect other solutions!!!to solve the problem with wifi...
Great job. Thanks
i m on jw1 deodex jetpack custom rom 8.2 and i am using the jvt modem...
will you provide fix for jw1 rom next days? thank you !!!
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.
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.
Static-Noise said:
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.
Click to expand...
Click to collapse
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
That's great. That suits perfectly, so thank you very much. I'll try it out and report back in the morning.
"Installation aborded" ...
jerwaz said:
"Installation aborded" ...
Click to expand...
Click to collapse
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
Nice, good job!
Sent from my Xperia S using xda premium
fareeed said:
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
Click to expand...
Click to collapse
Ohhhh right sry ^^'
Working perfectly =)
Edit: working for a 320 character long message but not for more than 320 character ....
which lines on the smali are actually getting changed ??
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
Code:
@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
championswimmer said:
which lines on the smali are actually getting changed ??
Click to expand...
Click to collapse
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.
thnx it worked.. :good::good: btw i can send sms more than 320 characters any way thnx
lahirukkk said:
thnx it worked.. :good::good: btw i can send sms more than 320 characters any way thnx
Click to expand...
Click to collapse
Didn't worked for me
I receive an error about classes.dex
FXP137 for Xperia S
dying_sun said:
Didn't worked for me
I receive an error about classes.dex
FXP137 for Xperia S
Click to expand...
Click to collapse
it would help if you could provide information about exactly what error you got
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.
Sent from my Xperia S using xda app-developers app
lahirukkk said:
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.
Sent from my Xperia S using xda app-developers app
Click to expand...
Click to collapse
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
Glad to hear that you slove the problem.
Sent from my Xperia S using xda app-developers app
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?
Just apply again whenever you flash a new release
Sent from my Xperia S using xda app-developers app
This will work on AOKP too?
Sent from my LT26i with Tapatalk 2
Hi,
this is a thread with guide for porting ROMs from Galaxy Ace to Galaxy Y.
Step 1: Extract SGY Stock ROM to BASE folder (I used XXMB1 stock ROM)
Step 2: Extract SGA ROM what you want to port to PORT folder (I used Simplicity V5)
Step 3: Remove boot.img from PORT folder (if exist)
Step 4: Remove this lines from PORT updater-script: assert(package_extract_file("boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "boot"),
delete("/tmp/boot.img"));
Step 5: Go to PORT build.prop and replace this lines with stock:
ro.product.name=GT-S5360
ro.product.device=GT-S5360
ro.product.model=GT-S5360
ro.sf.lcd_density=120
Step 6: Go to PORT folder system/lib and replace these files with files from stock ROM:
libcamera.so
libcamera_client.so
libcameraservice.so
libsensorservice.so
Step 7: Go to PORT folder system/lib/hw and replace this files with files from stock ROM:
sensors.goldgish.so
sensors.cooperve.so to sensors.default.so
Step 8: Go to PORT folder system/app and replace DialerTabActivity.apk with file from stock ROM
Step 9: ZIP the PORT ROM and flash it on your phone
It will boot, but you will have some Apps FC, to fix it, resize them for LDPI.
Thanks
Will try
Nice Guide! Working...
EDIT: Can you refer me a tool for Resizing Apps :good:
A N D Y said:
Nice Guide! Working...
EDIT: Can you refer me a tool for Resizing Apps :good:
Click to expand...
Click to collapse
Nvm! For resizing use GIMP but it will create weird black lines at the outer side of the pic you need to be careful
i am using idiot! it has some problems!! >_<
A N D Y said:
i am using idiot! it has some problems!! >_<
Click to expand...
Click to collapse
Firstly, Mind your language! Secondly, We people here are not for spoonfeeding! Try, try and try then ask for help
nolinuxnoparty said:
Firstly, Mind your language! Secondly, We people here are not for spoonfeeding! Try, try and try then ask for help
Click to expand...
Click to collapse
IDIOT is a theming tool!!
EDIT: IDIOT= http://forum.xda-developers.com/showthread.php?t=1005862
A N D Y said:
IDIOT is a theming tool!!
EDIT: IDIOT= http://forum.xda-developers.com/showthread.php?t=1005862
Click to expand...
Click to collapse
LOL xD HahahahhahHaha Obiviously I think you are idioting someone.
Sent from my GT-S5360 using xda app-developers app
Can you port CM7 using this method?
TrojanHorses said:
Can you port CM7 using this method?
Click to expand...
Click to collapse
Porting CM7 Based roms is very easy their is a guide by rishabh.raj37 in the Misc Android Dev Section, its a sticky
nolinuxnoparty said:
Porting CM7 Based roms is very easy their is a guide by rishabh.raj37 in the Misc Android Dev Section, its a sticky
Click to expand...
Click to collapse
But I've heard that CM based roms are crawling with bugs, why is that?
TrojanHorses said:
But I've heard that CM based roms are crawling with bugs, why is that?
Click to expand...
Click to collapse
Because of no correct drivers for our phone
Hello everyone
I create my rom (the name is zenitude) and it work very good !!
But i will want deodex the rom ..The folder system/app system/priv-app and system/framework
I deodex all this folder and after i flash the rom..In twrp i don't have any error and after i reboot the phone but my rom won't boot i wait 30minutes and my phone won't boot and it is all time in the boot animation ...Why please?
Thanks for the answer and look my picture for information
quadeur06 said:
Hello everyone
I create my rom (the name is zenitude) and it work very good !!
But i will want deodex the rom ..The folder system/app system/priv-app and system/framework
I deodex all this folder and after i flash the rom..In twrp i don't have any error and after i reboot the phone but my rom won't boot i wait 30minutes and my phone won't boot and it is all time in the boot animation ...Why please?
Thanks for the answer and look my picture for information
Click to expand...
Click to collapse
Good day,
How did you deodex? Did you let the kitchen do the work for you? Because judging by the file stamps, unless you have a very fast PC (all re-packaged in a minute or two), looks to me like the odex files were just plain deleted, and thus all your .apk's and .jar's are broken.
Also, which Kitchen are you using? I am only aware of two...one works in Windows (via cygwin) but is now obsolete and unmaintained (dsixda), the other is Linux only (Archi).
joel.maxuel said:
Good day,
How did you deodex? Did you let the kitchen do the work for you? Because judging by the file stamps, unless you have a very fast PC (all re-packaged in a minute or two), looks to me like the odex files were just plain deleted, and thus all your .apk's and .jar's are broken.
Also, which Kitchen are you using? I am only aware of two...one works in Windows (via cygwin) but is now obsolete and unmaintained (dsixda), the other is Linux only (Archi).
Click to expand...
Click to collapse
Hello thank for the answer i use Universal Deodexer V5
For exemple i place the folder system app with the odex and the apk and after i launch the universal deodexer and after in the folder "done" i found the odex files and i put that in my rom ! Is that?
I use just kitchen (cygwin) for compil my rom !! And i can't use Archi because i don't have linux !
Thank for you futur answer
quadeur06 said:
Hello thank for the answer i use Universal Deodexer V5
For exemple i place the folder system app with the odex and the apk and after i launch the universal deodexer and after in the folder "done" i found the odex files and i put that in my rom ! Is that?
I use just kitchen (cygwin) for compil my rom !! And i can't use Archi because i don't have linux !
Thank for you futur answer
Click to expand...
Click to collapse
Would be "found the apk/jar files", but that that would be it.
Looking at the changelog for the current version...
Code:
V5
-->Re-wrote the entire tool from scratch (improved code, more efficient and professional code)
-->Added KitKat support
Nothing is said about Lollipop, except in yesterday's post, same project thread.
So that would be your reason. Lollipop support just isn't there for that program.
Also, just curious ... did you have a successful ROM build previous to attempting deodex with cygwin kitchen?
joel.maxuel said:
Would be "found the apk/jar files", but that that would be it.
Looking at the changelog for the current version...
Code:
V5
-->Re-wrote the entire tool from scratch (improved code, more efficient and professional code)
-->Added KitKat support
Nothing is said about Lollipop, except in yesterday's post, same project thread.
So that would be your reason. Lollipop support just isn't there for that program.
Also, just curious ... did you have a successful ROM build previous to attempting deodex with cygwin kitchen?
Click to expand...
Click to collapse
Thank for the answer
i dont answer your question..can you explain with other formulation please ?
quadeur06 said:
Thank for the answer
i dont answer your question..can you explain with other formulation please ?
Click to expand...
Click to collapse
I think I see my answer anyway...
quadeur06 said:
I create my rom (the name is zenitude) and it work very good !!
Click to expand...
Click to collapse
I am assuming you got the kitchen to work for you before, since you do have a (previous) successful build of Zenitude?
quadeur06 said:
Hello thank for the answer i use Universal Deodexer V5
For exemple i place the folder system app with the odex and the apk and after i launch the universal deodexer and after in the folder "done" i found the odex files and i put that in my rom ! Is that?
I use just kitchen (cygwin) for compil my rom !! And i can't use Archi because i don't have linux !
Thank for you futur answer
Click to expand...
Click to collapse
You have to rename all folders "x86" to "arm" (including the x86 folder in system / framework). I worked out great
cieffe54 said:
You have to rename all folders "x86" to "arm" (including the x86 folder in system / framework). I worked out great
Click to expand...
Click to collapse
Thank
joel.maxuel said:
I think I see my answer anyway...
I am assuming you got the kitchen to work for you before, since you do have a (previous) successful build of Zenitude?
Click to expand...
Click to collapse
Yeah i have the v1.0 and the v1.1