Lewa ROM/OS Porting Guide [4.1.x,4.2.x] - Micromax A110

LEWA ROM/OS PORTING GUIDE​Hello Everyone,
As U All Having Very Much Craze About The New Lewa OS. According To My Observation U All Loves Lewa ROM's Looks,Styles & Features
So Here's The Very Simple & Useful Guide To Port Lewa ROM/OS [4.1.x,4.2.x] Hope U All Like It-:
Some Tools/Utilities Required-:
ADB- This Will Help You Out In Deadly Conditions
WinRAR - For Opening Zip Files
Notepad++ - For Editing Text
ROMS Needed-:
Base ROM : MiUi ROM For Your Device
LewaOS ROM : Get It From Official Site or Take The One For Other Device Like A116 or A210.
Here Are The Steps-:​1. Open both ROMs using winRAR in two windows..No Need To Extract
2. Go to '/system' and delete '/system/app', '/system/framework' and '/system/media' folder from Base ROM (CM7)
3. Copy '/system/app' , '/system/framework' and '/system/media' folder from LewaOS to Base ROM.
Copying can be done by simply drag and drop between the winRAR windows
4. Go To '/system/bin' of Base ROM
--Copy all files present in '/system/bin' to LewaROM.
--Now from LewaROM copy all files from '/system/bin' folder to '/system/bin' of Base ROM
--This replaces all existing files of same name and adds missing files
5. Go To '/system/etc' of Base ROM
--Copy all files (except the folders) from '/system/etc' of BaseROM to '/system/etc' of LewaROM
--Now from LewaROM copy all files from '/system/etc' folder to '/system/etc' of Base ROM
--This also replaces all existing files of same name and adds missing files
6. Go To '/system/etc/init.d' of Base ROM
--Copy all files '/system/etc/init.d' of LewaROM to '/system/etc/init.s' of BaseROM
7. Go To '/system/etc/permissions' of Base ROM
--Copy all files from '/system/etc/permissions' of BaseROM to '/system/etc/permissions' of LewaROM
--Now from LewaROM copy all files from '/system/etc/permissions' folder to '/system/etc/permissions' of Base ROM
8. Go To '/system/lib' of Base ROM
--Copy all '*.so' from '/system/lib' of BaseROM to '/system/lib' of LewaROM
--Now from LewaROM copy all files from '/system/lib' folder to '/system/lib' of Base ROM
9. Go To /system/xbin of Base ROM
--Copy all files present in '/system/xbin' folder to '/system/xbin' of LewaROM.
--Now from LewaROM copy all files from '/system/xbin' folder to '/system/xbin' of Base ROM
10. Open 'build.prop' from both ROM using Notepad++
Add these lines below 'ro.cm.device=YOUR_DEVICE_NAME'
ro.lewa.version=YOUR_ROM_NAME
ro.lewa.device=YOUR_DEVICE_NAME
Add these lines in # ADDITIONAL_BUILD_PROPERTIES below 'ro.com.android.dataroaming='
ro.compcache.default=0
ro.lewa.swapper.part_path=/dev/block/mmcblk1p3
ro.lewa.swapper.flash_swappiness=99
ro.lewa.swapper.sd_swappiness=60
ro.error.receiver.system.apps=com.lewa.fc
ro.error.receiver.default=com.lewa.fc
persist.sys.notif-speaker=1
persist.sys.ring-speaker=1
persist.sys.alarm-speaker=1
Remove the following lines
ro.config.ringtone=Playa.ogg
ro.config.notification_sound=regulus.ogg
ro.config.alarm_alert=Alarm_Beep_03.ogg
persist.sys.themeId=Cyanbread
persist.sys.themePackageName=com.tmobile.theme.Cyanbread
Finally, It is Not At All My Guide or My Work. All The Credits of The Above Guide Goes To @blindndumb​

Please Try To Port
@SuperDroid-BOND @sagarwep @khan_frd2002 @pratikmore @Akhilendra Gadde @mufti.arfan & All Others Please Try To Port New LEWA OS/ROM By The Above Method.
I Was Myself Trying The Above Method But I Can't Due To Lack of My Time. So I Posted It Here So That U All Can Have A Look & Give It A Try.

If lewa is from same chipset which you want to port, nothing needs to be changed, apart from camera libs, WiFi libs and some firmware files and of course the kernel.
If I had a working computer I would have had done it despite this that I sold my device.
P.S It's very easy to do porting at times.
Sent from my potato chamber using xda app-developers app

No need to follow this long procedure ....just use lewa porting tools.....but need some patchings for bugs
Sent from my A110 using XDA Premium 4 mobile app

srinath2912 said:
No need to follow this long procedure ....just use lewa porting tools.....but need some patchings for bugs
Sent from my A110 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Can U Do That & Port 4.2.x.
Sent from my GT-I9500 using XDA Premium 4 mobile app

Is language gonna change itself? because as far I know. LeWa is in Chinese language.

If I want to port 4.2.x ROM then what android version of base rom needed...4.2.x or 4.1.x
Sent from my Micromax A110

Miui does not have ro.cm.version so where do I copy the files?

I cant find init.d..help plz!!

Related

[Q] (Guide required)Help REgardING poRTing Rom

hi....everyone....galaxy fit users have many reasons to be happy as many new roms are being ported by aspire,feras.rehman,noob.android.dev....so i would like to request them or neother member to give me a guide regarding poring roms as i hv many fav in diif phones,,,,if ne 1 canhelp me,,regarding this ,,,plz dont give links to other threads ,,,plz give a proper explanation here,,,i would be really thnkful to the helpers,,,,,,Step by step guide or nethng......
PLz CliCk ThnKz If I heLPeD​
I'll try to make a tutorial. No Guarantees though.
Aspire said:
I'll try to make a tutorial. No Guarantees though.
Click to expand...
Click to collapse
plz try your best...
I think there is already one made by asad007 / ankkdroid / feras.rehman...
will try and find it...
a.cid said:
I think there is already one made by asad007 / ankkdroid / feras.rehman...
will try and find it...
Click to expand...
Click to collapse
hey can u tell me that if we make ne custom rom can we add ne app from android market which is free
yes you can...but there is a limit, since our phone doesnt have unlimited resources...
and here is the thread by asad007: http://forum.xda-developers.com/showthread.php?t=1403851
there was one more, posted originally by feras in our fb group, which ankkdroid posted here...
a.cid said:
yes you can...but there is a limit, since our phone doesnt have unlimited resources...
and here is the thread by asad007: http://forum.xda-developers.com/showthread.php?t=1403851
there was one more, posted originally by feras in our fb group, which ankkdroid posted here...
Click to expand...
Click to collapse
but how can we go par the limit ne way...can i create a flashable packet ofthe apps or somehow addit to the rom and after installing the rom it moves to sd
a.cid said:
yes you can...but there is a limit, since our phone doesnt have unlimited resources...
and here is the thread by asad007: http://forum.xda-developers.com/showthread.php?t=1403851
there was one more, posted originally by feras in our fb group, which ankkdroid posted here...
Click to expand...
Click to collapse
The guide which i posted on fb, is just useless... And the one by Asad is also useless. That can port roms like Based on gb nly... I'll try to make a new guide on how to port roms manually..
And this is for porting roms from equivalent ldpi devices!!
Set up dsixda kitchen first ! To set up follow these: http://forum.xda-developers.com/showthread.php?t=633246
Then open kitchen using cygwin or linux! Put the base rom and the rom you wanna port in original update folder!
1.Then type 0 and enter!
2.Then 19 ie. Porting Tools
3.Choose a then enter!
4.Choose the base rom !
5.Then choose the rom you wanna port!
6.It'll take some time!
7. " Now type 99 ie. build rom from working folder " !
8. The built rom will be in output_zip!
9. Now flash ur ported rom through cwm!
10. Enjoy!
And I forgot to tell a thing that camera wont work unless you replace the lib folder in system/lib ..
And for a complete pictorial guide check here : http://www.mediafire.com/?t4eet10vst13f5l
Way do I mean by equivalent? Way abut mdpi
Sent from my GT-S5570 using xda premium
mdpi is a little complicated... you need to decompile many apks and resize the resources.
the lcd density needs to be adjusted.
in short, it takes a lot more hardwork.
PoKerF said:
And this is for porting roms from equivalent ldpi devices!!
Set up dsixda kitchen first ! To set up follow these: http://forum.xda-developers.com/showthread.php?t=633246
Then open kitchen using cygwin or linux! Put the base rom and the rom you wanna port in original update folder!
1.Then type 0 and enter!
2.Then 19 ie. Porting Tools
3.Choose a then enter!
4.Choose the base rom !
5.Then choose the rom you wanna port!
6.It'll take some time!
7. " Now type 99 ie. build rom from working folder " !
8. The built rom will be in output_zip!
9. Now flash ur ported rom through cwm!
10. Enjoy!
And I forgot to tell a thing that camera wont work unless you replace the lib folder in system/lib ..
And for a complete pictorial guide check here : http://www.mediafire.com/?t4eet10vst13f5l
Click to expand...
Click to collapse
lol this is feras' guide...but I think it works, hai na abdul??
PoKerF said:
And this is for porting roms from equivalent ldpi devices!!
Set up dsixda kitchen first ! To set up follow these: http://forum.xda-developers.com/showthread.php?t=633246
Then open kitchen using cygwin or linux! Put the base rom and the rom you wanna port in original update folder!
1.Then type 0 and enter!
2.Then 19 ie. Porting Tools
3.Choose a then enter!
4.Choose the base rom !
5.Then choose the rom you wanna port!
6.It'll take some time!
7. " Now type 99 ie. build rom from working folder " !
8. The built rom will be in output_zip!
9. Now flash ur ported rom through cwm!
10. Enjoy!
And I forgot to tell a thing that camera wont work unless you replace the lib folder in system/lib ..
And for a complete pictorial guide check here : http://www.mediafire.com/?t4eet10vst13f5l
Click to expand...
Click to collapse
LoL its my tutorial... This wont work anyways... This will work only for roms like minimodX... And u like copying very much right!?
Feras.Rehman said:
LoL its my tutorial... This wont work anyways... This will work only for roms like minimodX... And u like copying very much right!?
Click to expand...
Click to collapse
ya it isnt working....
A help
Feras.Rehman said:
LoL its my tutorial... This wont work anyways... This will work only for roms like minimodX... And u like copying very much right!?
Click to expand...
Click to collapse
Sir, In porting we shd only delete files like keylayout and replace it with yours na?
Yep. Libs for camera accelerometer keyboard etc need to be replaced.
Sent from my GT-S5670 using xda premium

[Q] Wallpaper

From where Can I fetch default Rom Wallpaper ...?
Present Rom : JANA 6.5
JatinSoni said:
From where Can I fetch default Rom Wallpaper ...?
Present Rom : JANA 6.5
Click to expand...
Click to collapse
In framework-res.apk in system/framework folder
it will be in res/drawable-ldpi folder
In case you don't know to decompile an apk..just open it using winrar and navigate to that picture and extract it..

[GUIDE] How to Port ROM's to the HTC Explorer

I know there are many Guides out there but most of them don't work for Pico!
so i decided to make one myself...
Things you will need installed on your PC
Notepad++
Winzip/Winrar
Q) What device should i port from?
A)These Devices are the Best!
Xperia S
HTC Sensation
HTC Sensation XL
HTC Desire
HTC Desire HD
Feel Free to try other devices
Base ROM and PORT ROM
Base ROM is what is Developed For Pico
Port ROM is what ROM you want to port for pico
Note: If you are porting a CM(PORT) which is ICS the BASE should Be cm9... same for JB
Now Let's start Porting!
Extract the BASE ROM to a Folder named Base
Extract the PORT ROM to a Folder named Port
Open Base ROM and go to system folder
DELETE "app,fonts,framework,media"
Open Port ROM and go to system folder
COPY "app,fonts,framework,media"
and paste it in System folder of the Base ROM
Open Port ROM and go to etc folder
Open Permissions Folder copy everything EXCEPT handheld_core_hardware.xml and platform
and paste it in the etc folder of the BASE ROM
Open Base ROM and go to system/etc/init.d folder
DELETE all files except 00banner
Open Port ROM and go to system/etc/init.d Folder
COPY everything Except 00banner
and paste it in the init.d folder of the BASE ROM
Now open build.prop And edit
ro.build.display.id=add what you want here
ro.modversion=add what you want here
Now open build.prop of PORT ROM and find
ro.config.ringtone=
ro.config.notification_sound=
ro.config.alarm_alert=
COPY there 3 lines and replace them in the BASE ROM's build.prop
Now Open updater-script
scroll down and find the lines starting with set_perm (there will be lots of them!)
Copy only those lines From PORT ROM's updater-script to BASE ROM's updater-script
If You find any extra file or folder in system folder of PORT rom than copy them to your base rom system folder.
Open updater-script from PORT ROM and copy all the set_perm lines and replace them with the lines in BASE ROM
To prevent bootloop copy
libandroid_runtime.so
libandroid_servers.so
libmedia_jni.so
from system/lib in PORT ROM and REPLACE it with the files in system/lib of BASE ROM
Now ZIP the ROM and flash it
If you have a error read second and third post
Thanks
Status error 7 : Remove some apk's from system/app
NOTE: Zip should be below 145 MB to flash!!
Set_perm error : check recovery log and you will get your answer I'm serious
symlinks failed error : clean install ROM - wipe dalvik cache**
reserved
Good
Well done.. good work
but many other same guides are available on the forum so why did you did so much effort..
artistaditya said:
Well done.. good work
but many other same guides are available on the forum so why did you did so much effort..
Click to expand...
Click to collapse
60 % of them did not work 4 me!
shouldnt ideal devices be: Htc wildfire S, HTC desire C, Samsung Galaxy mini,gio and ace?
good job in explaining about what causes the errors and how to fix them!:thumbup:
This tut worked for me very well!
codexblack said:
shouldnt ideal devices be: Htc wildfire S, HTC desire C, Samsung Galaxy mini,gio and ace?
good job in explaining about what causes the errors and how to fix them!:thumbup:
This tut worked for me very well!
Click to expand...
Click to collapse
^^
You are too fast codexblack
Sent from my HTC Explorer A310e using xda app-developers app
Personally.. Porting for me is :
Code:
adb logcat
Sad there is no mention of it.
Ps : Unpacked ROM should be less than 235 mb.. Zip size may vary.. but ultimately unpacked size is what we care about..
There is no particular method afaik. All "methods" fail at some point or the other. Nothing is foolproof.
Anywho :good:
Explain
How this guide is different from
Rishabhraj and dance off guide of porting rom ???
No disrespect intended !!!!!
Sent from my HTC Explorer A310e using xda premium
Thread Closed​
As requested by OP​

[QUERY] How to change ROM name

I have made my new Custom Rom for Sony Xperia C but its base is "Xperia-Z-Ized","Dark Xperia Z2", "ME Rom" roms. I have edited a lot inside their compilation and have created a new rom having their all special properties and Also i have added many features inside it from my side. Can someone please tell me how can i change the Rom Name as displayed inside Settings>>>About Phone. I have extracted "settings.apk" using 7-zip and found that about phone text is present inside "resources.arsc"..... Also i tried to edit this file using "notepad ++" but after placing this kind of edited apk Settings is not opening in my Rom. please tell me how can i change Rom Name
iSiddharth said:
I have made my new Custom Rom for Sony Xperia C but its base is "Xperia-Z-Ized","Dark Xperia Z2", "ME Rom" roms. I have edited a lot inside their compilation and have created a new rom having their all special properties and Also i have added many features inside it from my side. Can someone please tell me how can i change the Rom Name as displayed inside Settings>>>About Phone. I have extracted "settings.apk" using 7-zip and found that about phone text is present inside "resources.arsc"..... Also i tried to edit this file using "notepad ++" but after placing this kind of edited apk Settings is not opening in my Rom. please tell me how can i change Rom Name
Click to expand...
Click to collapse
you can't edit any files inside apk by using 7zip. to edit you have decompile the apk's.
use Advance apk tool which is made for xperia. Search on xda u will find it
That Worked
Thank you "Xenon1978" for helping me. The way was successful and I have changed the ROM NAME.... Yipeee thank you once again.

[Guide] Android Theming and Porting UI apps

[Guide] Porting UI Apks
This is a small tutorial showing about porting UI Apps (Theming)
Necessary tools
-Apktool
-Copy-Paste Knowledge
-Root Explorer
-A little respect
Its very easy no need of development skills...
So lets start
Porting SystemUI.apk
Of a rom to another..
At first decompile ur Stock Systemui.apk and custom Systemui.apk which u wanna port.
Now find the folder in custom SystemUI.apk name "res" then open it and search for "drawable-hdpi" open it and you will see a lot of png image replace all them to your stock systemui.apk! If you find any xml file then don't copy them. Then recompile the modded stock SystemUI.apk and replace with original one by root explorer..
Porting framework-res.apk
Your device must be of the same resolution with the custom framework-res device (ex: qhd>qhd) .... If not then u may face dpi bugs.
decompile both stock and custom framework-res.apk.. Same as before find "res" open and find "drawable-hdpi" copy all the png to ur stock framework.. don't copy any xmls.. and recompile the modded stock framework-res.apk and replace with ur original by root explorer..
Written By - Snigdho Hasan
Don't forget to-
HIT A THANKS IF I HAVE HELPED YOU!
Help
Snigdho said:
[Guide] Porting UI Apks
This is a small tutorial showing about porting UI Apps (Theming)
Necessary tools
-Apktool
-Copy-Paste Knowledge
-Root Explorer
-A little respect
Its very easy no need of development skills...
So lets start
Porting SystemUI.apk
Of a rom to another..
At first decompile ur Stock Systemui.apk and custom Systemui.apk which u wanna port.
Now find the folder in custom SystemUI.apk name "res" then open it and search for "drawable-hdpi" open it and you will see a lot of png image replace all them to your stock systemui.apk! If you find any xml file then don't copy them. Then recompile the modded stock SystemUI.apk and replace with original one by root explorer..
Porting framework-res.apk
Your device must be of the same resolution with the custom framework-res device (ex: qhd>qhd) .... If not then u may face dpi bugs.
decompile both stock and custom framework-res.apk.. Same as before find "res" open and find "drawable-hdpi" copy all the png to ur stock framework.. don't copy any xmls.. and recompile the modded stock framework-res.apk and replace with ur original by root explorer..
Written By - Snigdho Hasan
Don't forget to-
HIT A THANKS IF I HAVE HELPED YOU![/QUOTEভাইয়া সিস্টেম ইউয়াই মোডেড টা আমার ওয়ালটন প্রিমো সি ২ তে ইউজ করতে চাই। এর জন্য বাংলা লেখা টিপস চাই। প্লিজ হেল্প।
Click to expand...
Click to collapse
Ok
Saheyd Sik said:
Snigdho said:
[Guide] Porting UI Apks
This is a small tutorial showing about porting UI Apps (Theming)
Necessary tools
-Apktool
-Copy-Paste Knowledge
-Root Explorer
-A little respect
Its very easy no need of development skills...
So lets start
Porting SystemUI.apk
Of a rom to another..
At first decompile ur Stock Systemui.apk and custom Systemui.apk which u wanna port.
Now find the folder in custom SystemUI.apk name "res" then open it and search for "drawable-hdpi" open it and you will see a lot of png image replace all them to your stock systemui.apk! If you find any xml file then don't copy them. Then recompile the modded stock SystemUI.apk and replace with original one by root explorer..
Porting framework-res.apk
Your device must be of the same resolution with the custom framework-res device (ex: qhd>qhd) .... If not then u may face dpi bugs.
decompile both stock and custom framework-res.apk.. Same as before find "res" open and find "drawable-hdpi" copy all the png to ur stock framework.. don't copy any xmls.. and recompile the modded stock framework-res.apk and replace with ur original by root explorer..
Written By - Snigdho Hasan
Don't forget to-
HIT A THANKS IF I HAVE HELPED YOU![/QUOTEভাইয়া সিস্টেম ইউয়াই মোডেড টা আমার ওয়ালটন প্রিমো সি ২ তে ইউজ করতে চাই। এর জন্য বাংলা লেখা টিপস চাই। প্লিজ হেল্প।
Click to expand...
Click to collapse
Ok bro I will try..
Click to expand...
Click to collapse
I want to port full Systemui.apk
Because it got many awesome features
please make a guide for it too

Categories

Resources