[GUIDE] How to Port ROM's to the HTC Explorer - HTC Pico (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​

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

(GUIDE) How to port roms!

As the title speaks, here is a guide on porting roms.
For porting roms from mini,
1.download the rom (obviously)
2.Extract the rom through winrar
3.Go to system folder
4.Go to system/lib/modules. Delete everything there and replace with the ones for our device.
5.Then go to system/lib/hw. delete everything there and replace with yours.
( The "/hw" directory as you can see contains the files which control the sensors and lights such as GPS and the accelerometer. )
6. Then for the soft keys and hard keys to work, go to system/usr/keychars and system/usr/keylayout and replace with yours
7. Now go to system/etc. Then delete these items and replace with the ones meant for our device.
- vold.fstab
- /wifi
- /ppp
If u are porting cm7 from mini, use the boot.img of any cm7 rom here. eg. Vishwanath patil's cm7 boot.img .
For ace,
Do the above things , then resize framework-res.apk, systemui.apk and other apk's like dialertabactivity.apk, phone.apk!
For other devices, (other manufacturers)
(Eg. Cm7)
Extract the cm7 meant for our rom. Then delete app and framework folder. Then go to the rom u wanna port. Copy framework and app folder. And paste it in the cm7 made for our device.
For porting kernels,
unpack the boot.img of the rom u wanna port. Open init.rc and copy the things after bootpath.
repack ur ramdisk!
For camera to work on the ported roms, replace these wid urs,
libarccamera.so
libcamera.so
libcameraservice.so
libcamera_client.so
libCaMotion.so
liboemcamera.so
libseccamera.so
libseccameraadaptor.so
Note: Camera will work, but replace the camera.apk from our device to the ported one for 5 megapixels!
And plz dont spam the development section with ports
Use it for your personal use!
Enjoy Porting!
thanku feras sir
passionalles said:
thanku feras sir
Click to expand...
Click to collapse
You're welcome!
That was great ...I thought port ROM must be something like building a ROM .....thanx bro
haha buggy method ;-)
So not my method xD
DQiB said:
haha buggy method ;-)
So not my method xD
Click to expand...
Click to collapse
Pls give your method then.i have pm you few days ago.
Sent from Apple iPhone 4s
i give none my bugfree method so ;-)
I wont guide how to port roms coz i want to continue my work and not that anyone is so good to port roms ^^
Cheers DQiB
Try this version here but left in mind that not everyone can use ported rom using this method :´D
If u follow my method correctly, it'll wrk! And it wil be bug free! i've ported 2 roms and both are bugfree!
Sent from my GT-S5670 using xda premium
yup but not for others coz i already tryed with my like Sense Port in the past but for some users it is not working correctly
DQiB said:
yup but not for others coz i already tryed with my like Sense Port in the past but for some users it is not working correctly
Click to expand...
Click to collapse
Maybe! I dont knw. But this wrks for porting roms to fit frm mini..
Sent from my GT-S5670 using xda premium
the best
Cool... Great guide feras.... This should work with no bugs ;-)
@dqib: if u could say this method is of buggy y dont u produce urs......
really look for this guide..
i've been waiting too long time for this guide dude...
finally it's come to our fit...hihihihi
btw, bro feras...could you give a guide to resize apk????
i wanna port a rom...
DQiB said:
haha buggy method ;-)
So not my method xD
Click to expand...
Click to collapse
---------- Post added at 08:38 AM ---------- Previous post was at 08:35 AM ----------
As for sir feras, thank you sir for le guide. I sure hope I can use this in the near future. n_n
i ported a rom from Ace it installed also but got stuck on "android" text
What to do ?
avilove4u said:
i ported a rom from Ace it installed also but got stuck on "android" text
What to do ?
Click to expand...
Click to collapse
Format system and then flash and see...
Btw, how big is the resulting flashable zip?
Sent from my Galaxy S III using xda premium (really, I'm not kidding)
a.cid said:
Format system and then flash and see...
Btw, how big is the resulting flashable zip?
Sent from my Galaxy S III using xda premium (really, I'm not kidding)
Click to expand...
Click to collapse
145mb
Using cwm i wl format system ??
DQiB said:
i give none my bugfree method so ;-)
I wont guide how to port roms coz i want to continue my work and not that anyone is so good to port roms ^^
Cheers DQiB
Try this version here but left in mind that not everyone can use ported rom using this method :´D
Click to expand...
Click to collapse
Feras.Rehman said:
As the title speaks, here is a guide on porting roms.
For porting roms from mini,
1.download the rom (obviously)
2.Extract the rom through winrar
3.Go to system folder
4.Go to system/lib/modules. Delete everything there and replace with the ones for our device.
5.Then go to system/lib/hw. delete everything there and replace with yours.
( The "/hw" directory as you can see contains the files which control the sensors and lights such as GPS and the accelerometer. )
6. Then for the soft keys and hard keys to work, go to system/usr/keychars and system/usr/keylayout and replace with yours
7. Now go to system/etc. Then delete these items and replace with the ones meant for our device.
- vold.fstab
- /wifi
- /ppp
If u are porting cm7 from mini, use the boot.img of any cm7 rom here. eg. Vishwanath patil's cm7 boot.img .
For ace,
Do the above things , then resize framework-res.apk, systemui.apk and other apk's like dialertabactivity.apk, phone.apk!
For other devices, (other manufacturers)
(Eg. Cm7)
Extract the cm7 meant for our rom. Then delete app and framework folder. Then go to the rom u wanna port. Copy framework and app folder. And paste it in the cm7 made for our device.
For porting kernels,
unpack the boot.img of the rom u wanna port. Open init.rc and copy the things after bootpath.
repack ur ramdisk!
For camera to work on the ported roms, replace these wid urs,
libarccamera.so
libcamera.so
libcameraservice.so
libcamera_client.so
libCaMotion.so
liboemcamera.so
libseccamera.so
libseccameraadaptor.so
Note: Camera will work, but replace the camera.apk from our device to the ported one for 5 megapixels!
And plz dont spam the development section with ports
Use it for your personal use!
Enjoy Porting!
Click to expand...
Click to collapse
Sir will this method work if i port Sam Galaxy Y Rom?
I've now had to edit two posts because of bad language and personally attacking another member. Needless to say, that is a violation of the rules and has no place in a thread discussing the porting of ROMs.
If you have any issues you want to discuss, PM me rather than cluttering up threads with nonsense. Thanks all for your cooperation.
avilove4u said:
145mb
Using cwm i wl format system ??
Click to expand...
Click to collapse
it will never wor ;-)
Espectially if u want to port CM9

[HOW-TO] Port US S3 ROMs between carriers

Porting TouchWiz ROMs​
This guide is intended to help you port ROMs from AT&T, T-Mobile, and Sprint over to the Verizon S3. The guide will be split into two different parts. Porting CDMA to CDMA and porting CDMA to GSM.
Just so there's no confusion:
CDMA Carriers:
Verizon
Sprint
GSM Carriers:
AT&T
T-Mobile
REMEMBER: If you choose to port a ROM from another carrier, be sure to ask permission to post from the developer.
What you need
7zip
Notepad++ (If on Windows)
A ROM you want to port
A ROM from your carrier/device
Knowledge on how to compile and recompile .jar files (I will not cover this)
Make sure the ROM you want to port and the ROM you are using as a base are the same Android version (e.g. 4.1.2) and have the same chip (e.g. MSM8960). You will be able to determine the chip type from the build.prop​
PORTING CDMA TO CDMA (i.e. SPRINT TO VERIZON)​
Download the ROM you want to port
Download a ROM from your carrier
Unzip both ROMS
In the ROM you want to port - delete /system/etc/apns-conf.xml
Replace the apns-conf.xml you just deleted with the one from the ROM for your carrier
In the ROM you want to port - delete /system/framework/GlobalConfig.jar (This .jar file contains a lot of carrier information)
Replace the GlobalConfig.jar you just deleted with the one from the ROM for your carrier
In the ROM for your carrier, locate the following lib files in system/lib and copy them over to the ROM you want to port
libreference-ril.so
libril.so
libril-qc-qmi-1.so
libril-qcril-hook-oem.so
libsecril-client.so
If your carrier is Verizon and you're porting a Sprint ROM, delete all the apps with "Sprint" in the name including these:
SecContacts.apk
SecPhone.apk
PhoneInfo.apk
Replace SecContacts.apk and SecPhone.apk with the Verizon ones.​
In the ROM you want to port - open up /system/build.prop in Notepad++
Locate every instance of d2att, d2tmo, or d2spr and replace it with d2vzw (Use CTRL+F if you have to)
Save the build.prop after all changes are made
In system/framework/ of BOTH ROMs, decompile framework.jar and framework2.jar
In the framework.jar of the ROM you want to port - delete the following folders:
smali/android/provider
smali/android/telephony
smali/android/server
smali/android/service
smali/com/android/internal/telephony
Replace them with the folders from the ROM for your carrier
In the framework2.jar of the ROM you want to port - delete the following folders:
smali/android/provider
smali/android/telephony
smali/android/server
smali/com/android/internal/telephony
smali/com/google/android/mms
Replace them with the folders from the ROM for your carrier
Build all of the jar files when finished (Please note that replacing the above folders will make the ROM operational to the point where MMS will work, but you may encounter other weird superficial errors. It's just too much work to go into the specifics.)
Re-zip the ROM you want to port
Flash in recovery
PORTING CDMA TO GSM (i.e. VERIZON TO T-MOBILE & ATT / SPRINT TO T-MOBILE & ATT)​
Download the ROM you want to port
Download a ROM from your carrier
Unzip both ROMS
In the ROM you want to port - delete /system/etc/apns-conf.xml
Replace the apns-conf.xml you just deleted with the one from the ROM for your carrier
In the ROM you want to port - delete /system/framework/GlobalConfig.jar (This .jar file contains a lot of carrier information)
Replace the GlobalConfig.jar you just deleted with the one from the ROM for your carrier
In the ROM for your carrier, locate the following lib files in system/lib and copy them over to the ROM you want to port
libreference-ril.so
libril.so
libril-qc-qmi-1.so
libril-qcril-hook-oem.so
libsecril-client.so
Delete the following apps and replace them with the ones from your carrier:
SecContacts.apk
SecPhone.apk
In the ROM you want to port - open up /system/build.prop in Notepad++
Locate every instance of d2att, d2tmo, or d2spr and replace it with d2vzw (Use CTRL+F if you have to)
Save the build.prop after all changes are made
In system/framework/ of BOTH ROMs, decompile android.policy.jar, framework.jar, framework2.jar, and services.jar
You need to go through every smali file in all of the .jars and replace all instances of "Sprint" with "Verizon" or "Verizon" with "Sprint" depending on your carrier
In the framework.jar of the ROM you want to port - delete the following folders:
smali/android/provider
smali/android/telephony
smali/android/server
smali/android/service
smali/com/android/internal/telephony
Replace them with the folders from the ROM for your carrier
In the framework2.jar of the ROM you want to port - delete the following folders:
smali/android/provider
smali/android/telephony
smali/android/server
smali/com/android/internal/telephony
smali/com/google/android/mms
Replace them with the folders from the ROM for your carrier
Build all of the jar files when finished (Please note that replacing the above folders will make the ROM operational to the point where MMS will work, but you may encounter other weird superficial errors. It's just too much work to go into the specifics.)
Navigate to system/framework/ in both ROMs
Open framework-res.apk from both ROMs in 7zip
In framework-res.apk in both ROMs navigate to /res/xml/
Delete eri.xml from the framework-res in the ROM you want to port
Replace the deleted eri.xml with the one from the ROM for your carrier
Save and close the modified framework-res.apk
Re-zip the ROM you want to port
Flash in recovery
Obviously this guide will not work on more difficult ports such as bringing Sense to the S3, but the end result is that we will hopefully see more ROMs in the thread.
Thanks TrevE
Porting AOSP ROMs
================================ START ================================​
What you need
7zip
Notepad++ (If on Windows)
An AOSP ROM you want to port
An AOSP ROM from your carrier/device
Make sure the ROM you want to port and the ROM you are using as a base are the same Android version (e.g. 4.1.1)​
I will do the AOSP porting section with an example. Say I want to port Paranoid Android:
Download Paranoid Android (Android 4.2)
Download CM10.1 (Android 4.2)
Unzip both ROMs
In the CM 10.1 folder delete the following folders/files:
/system/framework
/system/app
/system/lib/libandroid_runtime.so
/system/media (optional)
/system/fonts (optional)
Add the following folders from the PA ROM into the CM10.1 ROM:
/system/framework
/system/app
/system/lib/libandroid_runtime.so
/system/media (only if you deleted from CM10.1)
/system/fonts (only if you deleted from CM10.1)
Only do the following if you are porting from GSM to CDMA or CDMA to GSM (i.e. Porting an AT&T ROM to Verizon)
Navigate to system/framework/ in both ROMs
Open framework-res.apk from both ROMs in 7zip
In framework-res.apk in both ROMs navigate to /res/xml/
Delete eri.xml
Replace the deleted eri.xml with the one from your base ROM
Save and close framework-res.apk
Re-zip and flash in recovery
================================ END ================================​
If the ROM does not boot up, try a different ROM. For example, if you tried to port Paranoid Android 4.2 from AT&T and it didn't work. Try Paranoid Android from T-Mobile or the Galaxy Nexus, etc.
Wicked Sensation: http://www.androidfilehost.com/?fid=9390248398092763137
This ROM is completely based on Sprint's OTA. It will work with KindaCrapMods due to the framework being about 95% similar to the Verizon version. However, the 5% difference may induce abnormal behavior such as irregular lockscreen clock readings. Also, the ROM does not include any tweaks outside of what is present in the original release.
I WILL NOT be maintaining this ROM so if you want to see updates, start a thread for it.
Great writeup pure. Truly an asset to this community
Sent from my SCH-I535 using xda premium
epicroot said:
Great writeup pure. Truly an asset to this community
Sent from my SCH-I535 using xda premium
Click to expand...
Click to collapse
Hopefully we will see more ROMs in the future.
Wicked Sensation is uploaded.
Did you happen to do a test flash? Or just edit, zip and go
Sent from my SCH-I535 using xda premium
epicroot said:
Did you happen to do a test flash? Or just edit, zip and go
Sent from my SCH-I535 using xda premium
Click to expand...
Click to collapse
Flashed it. Booted up. I did a reboot just to test, and then reverted to my ROM to continue development lol.
PureMotive said:
Flashed it. Booted up. I did a reboot just to test, and then reverted to my ROM to continue development lol.
Click to expand...
Click to collapse
Sent from my SCH-I535 using xda premium
Cool deal
---------- Post added at 08:12 AM ---------- Previous post was at 08:02 AM ----------
Tryd flashing.. It failed immediately.. Gonna try redownloading
Sent from my SCH-I535 using xda premium
i just tried this hoping that it would work with this PA rom from AT&T. sadly this didnt work for me. it says update aborted when i try to install it. i was coming from PA 2.52 but it has some BT issues and occasional loose of signal for me so ifigured this would work. Maybe someone would like to try this and get it to work? :angel:
epicroot said:
Sent from my SCH-I535 using xda premium
Cool deal
---------- Post added at 08:12 AM ---------- Previous post was at 08:02 AM ----------
Tryd flashing.. It failed immediately.. Gonna try redownloading
Sent from my SCH-I535 using xda premium
Click to expand...
Click to collapse
Which mirror did you use?!
Sent from my SCH-I535 using xda premium
rossida said:
i just tried this hoping that it would work with this PA rom from AT&T. sadly this didnt work for me. it says update aborted when i try to install it. i was coming from PA 2.52 but it has some BT issues and occasional loose of signal for me so ifigured this would work. Maybe someone would like to try this and get it to work? :angel:
Click to expand...
Click to collapse
It's better to build AOSP from source if you can. In any case I'll update my reserved post with a how-to for AOSP ROMs (may or may not work for you).
EDIT: AOSP guide is up
Pure did you use twrp to flash?!
Menardo said:
Pure did you use twrp to flash?!
Click to expand...
Click to collapse
Yes. I always use TWRP. If you're trying to flash the Wicked Sensation ROM - it takes a long time to boot up.
EDIT: I just saw your post. If the ROM keeps failing I may have had a bad upload. Let me know and then I can correct it orrrrr you can try your hand at porting
PureMotive said:
Porting AOSP ROMs
================================ START ================================​
What you need
7zip
Notepad++ (If on Windows)
An AOSP ROM you want to port
An AOSP ROM from your carrier/device
Make sure the ROM you want to port and the ROM you are using as a base are the same Android version (e.g. 4.1.1) and have the same chip (e.g. MSM8960)​
I will do the AOSP porting section with an example. Say I want to port Paranoid Android:
Download Paranoid Android (Android 4.2)
Download CM10.1 (Android 4.2)
Unzip both ROMs
In the CM 10.1 folder delete the following folders:
/system/framework
/system/app
/system/media (optional)
/system/fonts (optional)
Add the following folders from the PA ROM into the CM10.1 ROM:
/system/framework
/system/app
/system/media (only if you deleted from CM10.1)
/system/fonts (only if you deleted from CM10.1)
Re-zip and flash in recovery
================================ END ================================​
If the ROM does not boot up, try a different ROM. For example, if you tried to port Paranoid Android 4.2 from AT&T and it didn't work. Try Paranoid Android from T-Mobile or the Galaxy Nexus, etc.
Click to expand...
Click to collapse
SO just to clear things up... if i download this and CM10.1 for verizon i just do the guide above and this should work even tho its not the same phone? The PA is coming from Google Nexus and trying to port to VZ GS3
PureMotive said:
Yes. I always use TWRP. If you're trying to flash the Wicked Sensation ROM - it takes a long time to boot up.
EDIT: I just saw your post. If the ROM keeps failing I may have had a bad upload. Let me know and then I can correct it orrrrr you can try your hand at porting
Click to expand...
Click to collapse
I just tried TWRP like 3 days ago... Have to say I'm digging it... Yea I tried to flash from the main server... Just downloaded from a mirror... About to give it another go will let you know...
rossida said:
SO just to clear things up... if i download this and CM10.1 for verizon i just do the guide above and this should work even tho its not the same phone? The PA is coming from Google Nexus and trying to port to VZ GS3
Click to expand...
Click to collapse
Yes, that's correct. However, if it does not work try porting PA from another device like one of the other US S3s.
PureMotive said:
Yes, that's correct. However, if it does not work try porting PA from another device like one of the other US S3s.
Click to expand...
Click to collapse
but the PA from other US devices are not running 4.2.1 which CM10.1 is. All PAs are running 4.1.x on US GS3. So would it not be possible to port them since they are two different JB versions?
Can this help us bring Premium Suite over to us? Want it bad
rossida said:
but the PA from other US devices are not running 4.2.1 which CM10.1 is. All PAs are running 4.1.x on US GS3. So would it not be possible to port them since they are two different JB versions?
Click to expand...
Click to collapse
You don't have to port PA from the US S3s. You can port 4.2 PA from the GNex forums if you want.
TokedUp said:
Can this help us bring Premium Suite over to us? Want it bad
Click to expand...
Click to collapse
Unfortunately not. Porting that is much more complicated than what's described in this thread. I pretty much already ported multi-window and the ink effect so doing the rest doesn't seem too far fetched.
Thinking it's a bad upload... Same immediate failed message...

[GUIDE][TUTORIAL]So, you want to port a rom to the MT4GS?

Ok, porting roms to our device is actually very easy. i am going to put together a guide for those of you who wish to port a rom to this device. This may not be the best method and may not work 100% of the time but it does work. As long as you follow this guide you should not hurt your device. That being said i take no responsibility for your actions you are doing this on your own accord.
To get started you will need to make sure you have a few programs set up on your windows PC:
7zip - http://www.7-zip.org/
notepad++ - http://notepad-plus-plus.org/
ADB - http://forum.xda-developers.com/showthread.php?t=928370
Apktoolv3 - http://forum.xda-developers.com/showpost.php?p=32649311&postcount=4
Also, you will need to know the terminology for this guide:
base rom - the rom already designed for the MT4GS
port rom - the rom you wish to bring over to the MT4GS
First step is to extract (using 7zip) both your base rom and your port rom into seperate folders
In your base rom you need to delete the following folders from system: apps, fonts, framework, and media
in your port rom you need to copy the same folders: apps, fonts, framework, and media; then paste them into your base rom
next open up the bin folder from port rom and copy all; now paste in base rom bin folder. BUT we only want what is not already there so when you use the paste command windows should prompt you that multiple files are already present in that folder. you want to select DO NOT COPY and do that for all the files.
now you need to do the same procedure for the the xbin folder. (you will need to copy the su file from port rom and paste to base rom)
Then you will need to open the etc folder and you will need to do the copy & paste trick with init.d and permissions folders
stay in the etc folder. underneath all the folders you will notice several "loose" files. use the same copy & paste trick so all additional files will be in your base rom.
after that we move on to the lib folder. we will use the same copy & paste trick. when you have the extra libs moved you will need to copy the following libs from port rom and paste them to base rom: libandroid_servers.so and libmedia_jni.so
you will need to open both port rom and base rom build.prop with notepad++. you need to make these following lines match the port rom:
ro.build.id
ro.build.display.id
ro.build.version.incremental
ro.config.ringtone
ro.config.notification_sound
ro.config.alarm_alert
Last zip your rom and flash it. if it boots you will need to move on to the next post. if it doesnt boot you will need to get a logcat to see what the problem is. if you want anyone here to look at make sure you use pastebin.
OK, you got your rom to boot!!! except your keyboards are all jacked up. This is the known fixes for the MT4GS!
you will need the framework-res apk from your booted rom and paste it to the root of your apktoolv3 folder.
you will need to decompile framework-res with the following command:
apktool d framework-res.apk
this will create a folder inside apktool titled "framework-res". open this folder and navigate to res>values
you will need to open bools.xml and integers.xml with notepad++
lets start with bools.xml
<bool name="config_forceDisableHardwareKeyboard">false</bool> change false to true
save bools.xml
in integers.xml you need to make the following changes:
<integer name="config_lidOpenRotation">90</integer>
<integer name="config_lidKeyboardAccessibility">1</integer>
<integer name="config_lidNavigationAccessibility">1</integer>
save integers.xml
run the following command to rebuild framework-res:
apktool b framework-res
your finished product will be in the "dist" folder.
last step is to open your new framework-res.apk and the original with 7zip. (DO NOT extract only open archive)
copy META-INF folder as well as AndroidManifest.xml from the orignal and paste to your new framework-res.
add framework-res.apk to your rom and zip it up.
Points of Reference
http://forum.xda-developers.com/showthread.php?t=1777999
http://forum.xda-developers.com/showthread.php?t=1598713
http://forum.xda-developers.com/showthread.php?t=1957219
http://forum.xda-developers.com/showthread.php?t=2113479
MAN!! That is one AWESOME guide there Bro! Now THAT should be insprirational to anyone that's ever dreamed of pulling over a port! NICE JOB!!!!!:good:
....and unless I overlooked it, you should mention that any extra folders in "system" in your port ROM that don't exist in you base need to be copied over too. (I don't know of the times I've forgotten that one!)
OH....and BTW, I've found that a copy of Winmerge is a HUGE help in comparing the files you need to compare for continuity & content. Namely the build.prop & updater-script files. It will save back to the proper format like Notepad++ will. (thanks Strapped365) :good:
Re: [GUIDE]So, you want to port a rom to the MT4GS?
So is anyone trying this?
Sent from my SGH-T889 using Tapatalk 2
I am, but I don't think I count.
can it be done on a pre-made rom or gotta start from scratch?
Re: [GUIDE]So, you want to port a rom to the MT4GS?
crimedave1987 said:
can it be done on a pre-made rom or gotta start from scratch?
Click to expand...
Click to collapse
This is for AOSP. Its the same guide SWaRM uses for our ports.
Sent From SaberMod using my Nexus 4
Re: [GUIDE]So, you want to port a rom to the MT4GS?
Use any cm or aokp base.
Sent from my SGH-T889 using Tapatalk 2
cool thanks
crimedave1987 said:
cool thanks
Click to expand...
Click to collapse
Good Luck! ....and don't get discouraged!
Re: [GUIDE]So, you want to port a rom to the MT4GS?
Thanks for this guide. I've learned so much with this device & following the development threads from the solid developers we have(had). I truly appreciate your work & willingness to share.
Sent from my KFTT using xda premium
Re: [GUIDE]So, you want to port a rom to the MT4GS?
etom said:
Thanks for this guide. I've learned so much with this device & following the development threads from the solid developers we have(had). I truly appreciate your work & willingness to share.
Sent from my KFTT using xda premium
Click to expand...
Click to collapse
No problem. If you have any issues post them here
Sent from my SGH-T889 using Tapatalk 2
Re: [GUIDE]So, you want to port a rom to the MT4GS?
mattlowry said:
No problem. If you have any issues post them here
Sent from my SGH-T889 using Tapatalk 2
Click to expand...
Click to collapse
Yeah one of us will get him right huh.
*
Has this worked for anyone yet? Or still no attempts
Sent From a Freaked out Nexus 4
strapped365 said:
Yeah one of us will get him right huh.
*
Has this worked for anyone yet? Or still no attempts
Sent From a Freaked out Nexus 4
Click to expand...
Click to collapse
I'll be trying during spring break. No time for me between work and school since the end of the term is creeping up.
strapped365 said:
Yeah one of us will get him right huh.
*
Has this worked for anyone yet? Or still no attempts
Sent From a Freaked out Nexus 4
Click to expand...
Click to collapse
It's given me another NICE one. I just haven't figured out where it recognizing external storage went. Don't I remember you saying you ran across this when you were building XE.....or is that just my "wishful" thinking?
Actually, I would have thunk people would have been all OVER this post!
Re: [GUIDE]So, you want to port a rom to the MT4GS?
I have midwinter break so I'll try this in a couple day just don't know what ROM to port
Sent from my MyTouch Slide 4G using Tapatalk 2
wiswis said:
I have midwinter break so I'll try this in a couple day just don't know what ROM to port
Sent from my MyTouch Slide 4G using Tapatalk 2
Click to expand...
Click to collapse
The very first thing to consider for simplicity's sake is to match one using the same processor. You can do that from HERE.
Secondly, gravitate to one with our screen size. (800x480) That will keep you away from ports that you'll have to resize a bunch of stuff in. You can find those HERE.
Then you just go to those developement threads & start shopping! LOL:laugh:
And GOOD LUCK! :good:
Re: [GUIDE]So, you want to port a rom to the MT4GS?
wiswis said:
I have midwinter break so I'll try this in a couple day just don't know what ROM to port
Sent from my MyTouch Slide 4G using Tapatalk 2
Click to expand...
Click to collapse
Could always try to port a pure Google ROM . I know anything that's Paranoid Android 3+ is based off Google source code as is much more stable than anything CM I've seen yet. It don't have as many tweaks and such BUT its pure
Sent from my Nexus 4 using Tapatalk 2
strapped365 said:
Could always try to port a pure Google ROM . I know anything that's Paranoid Android 3+ is based off Google source code as is much more stable than anything CM I've seen yet. It don't have as many tweaks and such BUT its pure
Sent from my Nexus 4 using Tapatalk 2
Click to expand...
Click to collapse
Would that mean A base CM4.1 or 4.2 ROM or AOKP?

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

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!!

Categories

Resources