• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root Can anyone try porting the lewa rom?

Try to use some libs from cm7 if its a gb based rom

If that doesn't work I need to edit the build.prop, and if that doesn't work I have to decompile the framework.jar and the services.jar in apktool and edit the telephony/cdma/ smali files which is a pain.
 
you know you guys are awesome!...yea i agree with Jartriumph...calling/texting and it's my new daily! thx guys for making it happen!
 
I don't know how to do that tho :( sorry

It's pretty easy. Basically open the lewa zip, and a cm7 zip and copy over some libs from cm7 to lewa. The directories which control the libs you need to work on are the following

-=PHONE LIBRARIES=-
/system/lib/libril.so
/system/lib/libril-qc-1.so
/system/lib/libreference-ril.so
/system/lib/libril-qcril-hook-oem.so
/system/lib/libril-qc-1.so
/system/lib/libril-qc-qmi-1.so

-=CAMERA LIBRARIES=-
/system/lib/libcamera.so
/system/lib/liboemcamera.so
/system/lib/libmmjpeg.so
/system/lib/libmmipl.so

-=AUDIO LIBRARIES=-
/system/lib/libaudioalsa.so
/system/lib/libaudioeq.so
/system/lib/liba2dp.so

-=VIDEO LIBRAIES=-
/system/lib/egl/libEGL_adreno200.so
/system/lib/egl/libGLESv1_CM_adreno200.so
/system/lib/egl/libGLESv2_adreno200.so
/system/lib/egl/libq3dtools_adreno200.so
/system/lib/libgsl.so

-=WIFI=-
/system/lib/modules/libra.ko
/system/lib/modules/librasdioif.ko

After you make those changes you will want to look at the build.prop which is located in /system and open it with a text editor. Here are some of the key things you need to look at from the system.prop which is the file that gets used in compiling the CM7 source code that needs to be merged into the build.prop.

My suggestion is take your time and document all changes you do, try and be very systematic about it. That way if you mess up you can go back to different revision. While working on the 2.3.4 GB ROM I took the stock rom and called it v1.zip and would make like 2-3 changes and document it, then flash the ROM. If things worked and didn't break I would make a copy of that rom and rename it to v2.zip and then make more changes to it document and reflash. If it fixed more stuff then I would copy v2 and paste it and call it v3.zip and make more changes and continue on. If for some reason some of my changes broke I could always go back to the previous version.

It's really trial and error, it's not hard to do but is some what time consuming. Once you get to a point with data and voice not working that is when you need to decompile the service.jar frameworks.jar and such which becomes a little more intensive but hopefully this basic info will get the ball rolling for you for some of the basic stuff.
 
It's pretty easy. Basically open the lewa zip, and a cm7 zip and copy over some libs from cm7 to lewa. The directories which control the libs you need to work on are the following

-=PHONE LIBRARIES=-
/system/lib/libril.so
/system/lib/libril-qc-1.so
/system/lib/libreference-ril.so
/system/lib/libril-qcril-hook-oem.so
/system/lib/libril-qc-1.so
/system/lib/libril-qc-qmi-1.so

-=CAMERA LIBRARIES=-
/system/lib/libcamera.so
/system/lib/liboemcamera.so
/system/lib/libmmjpeg.so
/system/lib/libmmipl.so

-=AUDIO LIBRARIES=-
/system/lib/libaudioalsa.so
/system/lib/libaudioeq.so
/system/lib/liba2dp.so

-=VIDEO LIBRAIES=-
/system/lib/egl/libEGL_adreno200.so
/system/lib/egl/libGLESv1_CM_adreno200.so
/system/lib/egl/libGLESv2_adreno200.so
/system/lib/egl/libq3dtools_adreno200.so
/system/lib/libgsl.so

-=WIFI=-
/system/lib/modules/libra.ko
/system/lib/modules/librasdioif.ko

After you make those changes you will want to look at the build.prop which is located in /system and open it with a text editor. Here are some of the key things you need to look at from the system.prop which is the file that gets used in compiling the CM7 source code that needs to be merged into the build.prop.

My suggestion is take your time and document all changes you do, try and be very systematic about it. That way if you mess up you can go back to different revision. While working on the 2.3.4 GB ROM I took the stock rom and called it v1.zip and would make like 2-3 changes and document it, then flash the ROM. If things worked and didn't break I would make a copy of that rom and rename it to v2.zip and then make more changes to it document and reflash. If it fixed more stuff then I would copy v2 and paste it and call it v3.zip and make more changes and continue on. If for some reason some of my changes broke I could always go back to the previous version.

It's really trial and error, it's not hard to do but is some what time consuming. Once you get to a point with data and voice not working that is when you need to decompile the service.jar frameworks.jar and such which becomes a little more intensive but hopefully this basic info will get the ball rolling for you for some of the basic stuff.

Alright I
 
I used CM7 to port this rom. By replacing the /system/app and frameworks folders. So why isn't everything working?
 
*Facepalm*, porting isn't nearly that easy. You have to edit the files as well as doing some smali editing. :p

So replacing isnt the same as editing? Oh and when i run adblogcat at the setupd wizard screen i get Ignoring touch event because phone interface was null
 
So replacing isnt the same as editing? Oh and when i run adblogcat at the setupd wizard screen i get Ignoring touch event because phone interface was null

Not sure what's up with that, but flashing gaaps is useless on this rom, I did the bypass thing Joemossjr posted and none of the google apps were there. Not even the Play Store.
 
Not sure what's up with that, but flashing gaaps is useless on this rom, I did the bypass thing Joemossjr posted and none of the google apps were there. Not even the Play Store.

What about extracting the apps from gapps and placing them in the rom and flashing?
 
Not sure what's up with that, but flashing gaaps is useless on this rom, I did the bypass thing Joemossjr posted and none of the google apps were there. Not even the Play Store.

I used advaced restore and restored cm7 data and the gaaps worked for me.
 
It's pretty easy. Basically open the lewa zip, and a cm7 zip and copy over some libs from cm7 to lewa. The directories which control the libs you need to work on are the following

-=PHONE LIBRARIES=-
/system/lib/libril.so
/system/lib/libril-qc-1.so
/system/lib/libreference-ril.so
/system/lib/libril-qcril-hook-oem.so
/system/lib/libril-qc-1.so
/system/lib/libril-qc-qmi-1.so

-=CAMERA LIBRARIES=-
/system/lib/libcamera.so
/system/lib/liboemcamera.so
/system/lib/libmmjpeg.so
/system/lib/libmmipl.so

-=AUDIO LIBRARIES=-
/system/lib/libaudioalsa.so
/system/lib/libaudioeq.so
/system/lib/liba2dp.so

-=VIDEO LIBRAIES=-
/system/lib/egl/libEGL_adreno200.so
/system/lib/egl/libGLESv1_CM_adreno200.so
/system/lib/egl/libGLESv2_adreno200.so
/system/lib/egl/libq3dtools_adreno200.so
/system/lib/libgsl.so

-=WIFI=-
/system/lib/modules/libra.ko
/system/lib/modules/librasdioif.ko

After you make those changes you will want to look at the build.prop which is located in /system and open it with a text editor. Here are some of the key things you need to look at from the system.prop which is the file that gets used in compiling the CM7 source code that needs to be merged into the build.prop.

My suggestion is take your time and document all changes you do, try and be very systematic about it. That way if you mess up you can go back to different revision. While working on the 2.3.4 GB ROM I took the stock rom and called it v1.zip and would make like 2-3 changes and document it, then flash the ROM. If things worked and didn't break I would make a copy of that rom and rename it to v2.zip and then make more changes to it document and reflash. If it fixed more stuff then I would copy v2 and paste it and call it v3.zip and make more changes and continue on. If for some reason some of my changes broke I could always go back to the previous version.

It's really trial and error, it's not hard to do but is some what time consuming. Once you get to a point with data and voice not working that is when you need to decompile the service.jar frameworks.jar and such which becomes a little more intensive but hopefully this basic info will get the ball rolling for you for some of the basic stuff.

After copying the libs from cm7 the only thing that kinda seemed to work was the video library. The wifi still worked and the camera still worked but the front camera does not allow you to take pics or record a video.
 
After copying the libs from cm7 the only thing that kinda seemed to work was the video library. The wifi still worked and the camera still worked but the front camera does not allow you to take pics or record a video.
*doublefacepalm* the libs were already copied over by oldmanstatic. The whole LeWa.zip already had that done.
 
FrenchToast you coming back today? I want to see if I can fix everything in this ROM(as a side project) that works in CM7 since GB is easier than ICS.
 
Back
Top Bottom