[TOOLKIT][LINUX]MIUI Rom Porter - Android Software Development

MIUI ROM Porter
About the tool:
This tool is based on rishab.raj37's great guide. And makes porting MIUI ROMs in few simple clicks. This is made only for linux.
Click to expand...
Click to collapse
How to use it:
1. Download the tool zip from here.
2. Extract the zip and place the script.sh, build and up file and your ROM zips in the home directory (~/) (home/username).
3. Now open the terminal and type the following:
Code:
./port.sh
In some cases this might not work so try this:
Code:
bash ~/port.sh
4. Now follow the on-screen instructions and done. :good:
5. You can find your ported ROM in ~/PORT/ directory.
6. Enjoy and press THANKS.
Click to expand...
Click to collapse
Note:
If you get stuck on bootloop, try this tool, here.
Click to expand...
Click to collapse
Credits:
rishab.raj37- For such a great guide
ME
Click to expand...
Click to collapse

hey what it exactly do?
I tried to have fun with patchrom but have too old laptop ( has not enough ram ).
So it just copying all the files or also patching frameworks?
You know what I mean. That we need the same manufacturer rom with the same base not?
For example rom is based on cm10 and I want to port to base AOSP. So will this work or not?

lsander said:
hey what it exactly do?
I tried to have fun with patchrom but have too old laptop ( has not enough ram ).
So it just copying all the files or also patching frameworks?
You know what I mean. That we need the same manufacturer rom with the same base not?
For example rom is based on cm10 and I want to port to base AOSP. So will this work or not?
Click to expand...
Click to collapse
Nopes that's the main prob for now...framework editing is not possible through this script thus u will have to urself patch the framework
Press THANKS if I helped,
Best Regards,
AJ
alokbina is now Abhinav2

Abhinav2 said:
Nopes that's the main prob for now...framework editing is not possible through this script thus u will have to urself patch the framework
Press THANKS if I helped,
Best Regards,
AJ
alokbina is now Abhinav2
Click to expand...
Click to collapse
I have the same Q,but THX~
Sent from my EVO using xda premium

Can i use a base rom that works on my i9505 and a i9500 newer miui version to port ?

Related

Need ARABIC rom for flipout

I Need ARABIC rom for flipout PLZ
for more info for this rom :
RUTEM_U3_01.14.6_DEBLUR_ARABIC_SIGNED_USARUTH15ND0 RTINT054.0R_PDS000_USARUTHEARABEMARA_P016_A017_HWp 3_1FF
as i know that flipout and flipside are the same software but different device, i suggest u the CM7 of laxidian, it works really smooth for flipside as it supports arabic as well, if u r interested i can post u a link of the latest one with the gaps and bootloader sbf,,,
Sent from my MB508 using xda app-developers app
Please pm me the link, im interested in checking out the rom. Thanks
DEV Device: MB511 (deodexed)
Current System: MT27i xICS
Long Live: V9 Ferrari Rom
code.google.com/p/motorola-flipout-files
plageran said:
Please pm me the link, im interested in checking out the rom. Thanks
DEV Device: MB511 (deodexed)
Current System: MT27i xICS
Long Live: V9 Ferrari Rom
code.google.com/p/motorola-flipout-files
Click to expand...
Click to collapse
plageran How did you deodexed your flipout ?
Alawey94 said:
plageran How did you deodexed your flipout ?
Click to expand...
Click to collapse
depending on the os you running, I used Cygwin with the Rom Kitchen. that said you need to copy your system folder and framework (I think) over.
Search the forum for it and good luck. will try and find the post when I get a chance.
plageran said:
depending on the os you running, I used Cygwin with the Rom Kitchen. that said you need to copy your system folder and framework (I think) over.
Search the forum for it and good luck. will try and find the post when I get a chance.
Click to expand...
Click to collapse
i acutally watched the thread on how to deodex with cygwin and kitchen, i'll give it a shot
i tried a lot of different ways to deodex, it all failed, except one and when when i push the framework and app some stuff don't work like contacts
i hope the Cygwin way work
Thank u
Alawey94 said:
i acutally watched the thread on how to deodex with cygwin and kitchen, i'll give it a shot
i tried a lot of different ways to deodex, it all failed, except one and when when i push the framework and app some stuff don't work like contacts
i hope the Cygwin way work
Thank u
Click to expand...
Click to collapse
Here's the link:
http://forum.xda-developers.com/showthread.php?t=633246
and check this link out also:
http://code.google.com/p/motorola-f...ail?name=deodexed.tar.gz&can=2&q=#makechanges
be warned doing this will cause force close and a few apps to crash, best to do with adb.:good:
(never forget to say thank you to the ones that help)
plageran said:
Here's the link:
http://forum.xda-developers.com/showthread.php?t=633246
and check this link out also:
http://code.google.com/p/motorola-f...ail?name=deodexed.tar.gz&can=2&q=#makechanges
be warned doing this will cause force close and a few apps to crash, best to do with adb.:good:
(never forget to say thank you to the ones that help)
Click to expand...
Click to collapse
i just deodexed it successfully everything works fine, thanx for your help

[GUIDE] How to port ROMS

I know that there are actually LOTS of "How to port ROMS" in this forum now.. but I would like to share a certain source I found that is actually fool proof
Here it goes!
find a ROM that is designed for the same CPU type and the same phone manufacturer. Any stock Gingerbread, ICS, or CyanogenMod 7/9 ROM should work, but you’ll have to make sure your phone can handle the ROM – no ICS for an HTC Hero, for example. Also, your Port ROM's original Phone should have the same RESOLUTION with that of your phone's.
You will need:
**Notepad++
**a compression program (WinZip or 7zip and etc)
**the ROM you want to port to your phone (let’s call it the "Port ROM")
**a ROM designed for your phone (let’s call it"Base ROM")
Click to expand...
Click to collapse
This guide may mention some files or directories that aren’t present in your particular ROM; don’t worry, just carry on.
On your PC, extract the .ZIP files containing the two ROMs, and navigate to /system/app in your extracted Port ROM and copy stk.apk, vpnservices.apk, camera.apk, and bluetooth.apk into a temporary directory somewhere else on your PC.
Click to expand...
Click to collapse
Now, delete the following folders from your Port ROM and replace them with the ones from your Base ROM: /data, /system/app, /system/framework, /system/fonts and /system/media.
Click to expand...
Click to collapse
From your Base ROM, copy /system/lib/libandroid_runtime.so to the system/lib/ directory of your Port ROM, overwriting the file.
Click to expand...
Click to collapse
Next up, move the .APKs you copied earlier back into the /system/app directory of your Port ROM.
Click to expand...
Click to collapse
Open up /system/lib in your Port ROM and copy all the files and folders. Paste them into the Base’s /system/lib directory, replacing all. Then go back to the Port ROM and delete the /system/lib folder, and replace it with the /system/lib folder from the Base ROM.
Click to expand...
Click to collapse
Next, navigate to the /system/etc/init.d folder in the Port ROM and do the same copy-from-Port, paste-to-Base, delete-from-Port, copy-from-Base, paste-to-Port shuffle as before.
Click to expand...
Click to collapse
Navigate to /system/etc/permissions and do that same copy-paste dance one more time.
Click to expand...
Click to collapse
open system/build.prop from both the port and the base ROM in Notepad++. Update the Base build.prop to match the values for “ro.build.description=” and “ro.build.fingerprint=” from your Port. Now save the Base build.prop, exit Notepad++, and copy the Base build.prop into the Port ROM, overwriting the Port build.prop.
Click to expand...
Click to collapse
In Notepad++, open \META-INF\com\google\android\updater-script from both your base and port ROMs. Edit the Port’s script to be like the Base’s updater-script: specifically, change, edit, or add the sections for permissions, ui_prints, asserts, run_programs, and installing the kernel. Don’t change any of the symlinks. In the Port script, make sure that the ‘format’ values are appropriate for your device (compare them to the Base script).
Click to expand...
Click to collapse
Finally, make sure that your kernel is specifically for your device.
Click to expand...
Click to collapse
Now, if you desire, you can update any apps you require, or add any tools like BusyBox or SuperSU.
And that’s it! Your base ROM is now ready to be zipped and installed on your device via Clockwork Mod!
SOURCE: http://apcmag.com/port-roms-to-your-android-device.htm
ADDITIONAL INFORMATION:
CUSTOM ROM FOLDERS EXPLAINED
List of Resolution for Smartphones
How to change Kernel of ROM Before installation in its zip file.
[GUIDE][How to Make CWM Recovery Flashable Zip file without Computer]
copy - paste, easy made. nice guide, thanks
30adi said:
copy - paste, easy made. nice guide, thanks
Click to expand...
Click to collapse
Yes but i found the source highly confusing i just "cleaned it up"
Sent from my GT-I9300 using xda premium
Very good job, thank you.
ADDED:
[GUIDE][How to Make CWM Recovery Flashable Zip file without Computer]
I port a ROM but I am getting unknown baseband no imei please tell me how to fix
khan_frd2002 said:
I port a ROM but I am getting unknown baseband no imei please tell me how to fix
Click to expand...
Click to collapse
go to build.prop in /system and edit rild.libpath=
rild.libargs=
to match your device and that should fix it
your guide was just copied by a person from One V forums without giving proper credits.
see here: here
1ceb0x said:
your guide was just copied by a person from One V forums without giving proper credits.
see here: here
Click to expand...
Click to collapse
I see.. he should've given proper credits to the website
Sent from my GT-I9300 using xda premium
changing lib path in buildprob
not work
erm hello, can you put the other guides in your OP? some are in your other posts and it would not be easy for others to see..
nice guide and gonna try this when i got time
:good:
kemaro30 said:
erm hello, can you put the other guides in your OP? some are in your other posts and it would not be easy for others to see..
nice guide and gonna try this when i got time
:good:
Click to expand...
Click to collapse
What "other" guides do you mean?
Sent from my GT-I9300 using xda premium
Hello I Wanted to port Cm7 On a New cpu named as - MediaTek 6573 ! it is an armv6 one ... any suggestions from where to start ....etc ?
I will definitely give this a try.
Great guide. Subscribed!!
ChummyDays said:
Okay, question: what is the point of porting a ROM made for a device with the same CPU and same manufacturer?? there is VERY few phones that are made by the same company and the same cpu!
Click to expand...
Click to collapse
Well that is to ensure "safety" when porting a ROM.. the guide i posted was a beginner's guide on how to port.. as you can see, almost 80% of the procedure is just basically copy&paste..
however, if you have a good background now in codes and porting things, i believe you may not follow step-by-step the procedures i stated above.
Sent from my GT-I9300 using xda premium
mandeep1 said:
Hello I Wanted to port Cm7 On a New cpu named as - MediaTek 6573 ! it is an armv6 one ... any suggestions from where to start ....etc ?
Click to expand...
Click to collapse
Search for other phones with similar cpu
Sent from my GT-I9300 using xda premium
What about dual Sim ph?
Does anyone have any idea what would cause a "Modem Crashed Forced Upload Mode" on a port for SGS3?
I can't seem to pinpoint what causes that (I think it's a kernel panic but I could be wrong)
Looks like this would work on International Note 2 and Tmobile Note 2. They have the exact same hardware and everything. I was wondering about the last statement about kernel. Can't I just copy the boot.img from tmobile note 2 to international note 2 ? would that work ? I am not familiar with kernels and stuff. Need advice.
Thanks

[TOOLKIT][WINDOWS/LINUX] Bootloop Remover [N00B FRIENDLY]

Presenting Bootloop Remover
Disclaimer:
Code:
I am just trying to help people here and ease their work but if anything wrong happens which damages your device then I won't be responsible. But will try to help you as much as possible. Thank You
About the tool:
This is a very basic batch script and I haven't changed it to .exe for reference purposes. When you port a ROM most chances are bootloops.:crying: It really makes us sad...so this is a simple tool that will copy a main file libandroid_runtime.so and most chances are the bootloop will be gone by now
Click to expand...
Click to collapse
How to use?
-> Well it's really easy to do. Windows users just click bootloop.bat and follow the on-screen instructions. It won't take long
-> Linux users download the file and keep in /home/username/ (~/) directory. Then open terminal and type :
Code:
./br.sh
In some cases this doesn't seem to work so if that doesn't works then open terminal and type:
Code:
bash ~/br.sh
This will work! :victory: Now follow the on-screen instructions and enjoy :good:
Click to expand...
Click to collapse
DOWNLOAD
FAQ:
Q. Advantages of this over manually doing this?
A. Well, this tool does the same as manual process, but this is an easier automated process. You don't have to search for anything and it's near to one-clickish only. Just let the tool everything and give the name as you prefer and done!
Q. What else do I need other than this tool?
A. Everything is included...no need of anything extra other than a windows or linux os :good:
Q. How can I help?
A. Pressing THANKS button would be helpful!
Click to expand...
Click to collapse
NOTE:
Some basic rules to be followed:
1. Press THANKS if you download this, it is encouraging for the dev.
2. Never quote this whole post.
3. Please be kind when replying. If you'll be rude, i'll be twice.
4. Kindly search everywhere before asking silly questions.:silly:
5. Be proper when posting in this thread.
6. No need to spam my thread by saying +1, thanks, etc.
7. Enjoy!
Click to expand...
Click to collapse
Credits-KINGbabasula(Thanks Sir), Me ​
For have more probabilities add the function that the script copy these files libandroid_servers.so and libmedia_ini.so
Inviato dal mio GT-I9070 con Tapatalk 2
KINGbabasula said:
For have more probabilities add the function that the script copy these files libandroid_servers.so and libmedia_ini.so
Inviato dal mio GT-I9070 con Tapatalk 2
Click to expand...
Click to collapse
Ok sir...will do it asap....thnx
Best Regards,
AJ
alokbina is now Abhinav2
Updated it. Now more probablity of preventing bootloop. Thanks to KINGbabasula....thank him above
Best Regards,
AJ
Do you have plans to make a mac/linux script?
sony xperia ray
ics 4.0.4 rooted
stock rom
matgras said:
Do you have plans to make a mac/linux script?
sony xperia ray
ics 4.0.4 rooted
stock rom
Click to expand...
Click to collapse
Will do it once I have some free time..
Press THANKS if I helped,
Best Regards,
AJ
alokbina is now Abhinav2
Released for linux. Linux users, enjoy :good:
need better instruction i suggest
mizukage said:
need better instruction i suggest
Click to expand...
Click to collapse
Well I thought that the included instructions within the tool were clear enough but if u say then I'll post some more instructions here...
Press THANKS if I helped,
Best Regards,
AJ
alokbina is now Abhinav2
Abhinav2 said:
Released for linux. Linux users, enjoy :good:
Click to expand...
Click to collapse
Thanks, However i hope that i will never going to need to use it
sony xperia ray
ics 4.0.4 rooted
stock rom
Please give another download link!

Help abut android kitchen

Hello everyone
i want to know that if we make a rom through
dsixda's android kitchen
will it work on galaxy y
because the main page says something about a yaffs file system
abhishekr700 said:
Hello everyone
i want to know that if we make a rom through
dsixda's android kitchen
will it work on galaxy y
because the main page says something about a yaffs file system
Click to expand...
Click to collapse
yes it will
all you need to do is change the update binary and updater script with one from our phone in the final rom zip kitchen generates after building
marcussmith2626 said:
yes it will
all you need to do is change the update binary and updater script with one from our phone in the final rom zip kitchen generates after building
Click to expand...
Click to collapse
But I used a stock rom of my device
Not sure if it had update script or updater script
Do I still need another updater script
abhishekr700 said:
But I used a stock rom of my device
Not sure if it had update script or updater script
Do I still need another updater script
Click to expand...
Click to collapse
heres mine unzip attachment for stock based roms - you just need to edit the wording and use the symlinks from the one kitchen generates
there are guides to using kitchen if you need further help
marcussmith2626 said:
heres mine unzip attachment for stock based roms - you just need to edit the wording and use the symlinks from the one kitchen generates
there are guides to using kitchen if you need further help
Click to expand...
Click to collapse
can u pplease give me detailed instructions
and tell me why i cant use the kitchen's update script
marcussmith2626 said:
heres mine unzip attachment for stock based roms - you just need to edit the wording and use the symlinks from the one kitchen generates
there are guides to using kitchen if you need further help
Click to expand...
Click to collapse
can u pplease give me detailed instructions
and tell me why i cant use the kitchen's update script
abhishekr700 said:
can u pplease give me detailed instructions
and tell me why i cant use the kitchen's update script
Click to expand...
Click to collapse
because you will most likely get status 0 error when you flash it in cwm or error 6 or 7
please search for any guides you require
read this for starters
http://forum.xda-developers.com/showthread.php?t=1801690
marcussmith2626 said:
because you will most likely get status 0 error when you flash it in cwm or error 6 or 7
please search for any guides you require
read this for starters
http://forum.xda-developers.com/showthread.php?t=1801690
Click to expand...
Click to collapse
no detail instruction about symlinks
abhishekr700 said:
no detail instruction about symlinks
Click to expand...
Click to collapse
no
detailed instructions about symlinks
abhishekr700 said:
no
detailed instructions about symlinks
Click to expand...
Click to collapse
kitchen creates the symlinks for you
you only have to edit the mount points that are above the symlinks
compare with other updater scripts for this phone
flash it and you will see if it needs to be changed

Ive made a Rom but won't install

Hi guys so I've made a Rom but when I try and install it says ZIP corrupted any ideas why it says that
AndroidTutorials said:
Hi guys so I've made a Rom but when I try and install it says ZIP corrupted any ideas why it says that
Click to expand...
Click to collapse
try to unchek the md5 verification or repack the rom(use 7zip).
vaserbanix said:
try to unchek the md5 verification or repack the rom(use 7zip).
Click to expand...
Click to collapse
Ok how to uncheck md5 ?
AndroidTutorials said:
Ok how to uncheck md5 ?
Click to expand...
Click to collapse
when you install the rom with TWRP have option to check/uncheck md5 verification
before SWIPE the install. uncheck it if it is checked
or repack your rom with 7zip next settings:
Archive---------------------- zip
Compression level-------Normal
Compression method---Deflate
Dictionary sise--- --------32kb
Word size-------------------32
and press OK
vaserbanix said:
when you install the rom with TWRP have option to check/uncheck md5 verification
before SWIPE the install. uncheck it if it is checked
or repack your rom with 7zip next settings:
Archive---------------------- zip
Compression level-------Normal
Compression method---Deflate
Dictionary sise--- --------32kb
Word size-------------------32
and press OK
Click to expand...
Click to collapse
Ok and thank you I will try this ?
AndroidTutorials said:
Ok and thank you I will try this 😀
Click to expand...
Click to collapse
when you pack the ron in zip
dont select the folder of your rom,
opend it and select the files:
Meta-Inf
system
boot.img
etc. ....
and add that in zip
Color OS Galaxy J5
vaserbanix said:
when you pack the ron in zip
dont select the folder of your rom,
opend it and select the files:
Meta-Inf
system
boot.img
etc. ....
and add that in zip
Color OS Galaxy J5
Click to expand...
Click to collapse
Ok so I will select files inside the folder but how to install 7z I have Linux Ubuntu
AndroidTutorials said:
Ok so I will select files inside the folder but how to install 7z I have Linux Ubuntu
Click to expand...
Click to collapse
use your archiver mannager and select the same files
Color OS Galaxy J5
vaserbanix said:
use your archiver mannager and select the same files
Color OS Galaxy J5
Click to expand...
Click to collapse
Ok wI'll do thank you for helping me ? I appreciate it
vaserbanix said:
use your archiver mannager and select the same files
Color OS Galaxy J5
Click to expand...
Click to collapse
The zip worked but now I need to fix it's the wrong Rom it's for another j5 phone lol
AndroidTutorials said:
The zip worked but now I need to fix it's the wrong Rom it's for another j5 phone lol
Click to expand...
Click to collapse
that should be easy!
Color OS Galaxy J5
vaserbanix said:
that should be easy!
Color OS Galaxy J5
Click to expand...
Click to collapse
Yes and thank you once again for helping me I really do appreciate it can I ask u one thing
Does Android android kitchen work with the galaxy j500fn ? And how can I change from j5lte to
AndroidTutorials said:
Yes and thank you once again for helping me I really do appreciate it can I ask u one thing
Does Android android kitchen work with the galaxy j500fn ?
Click to expand...
Click to collapse
i use superrkitchen in linux now!
i tested few time ago(about an year) but i wasnt satisfied by it and i start to port manualy.
Android kitchen was good for me on porting 4.2.2 roms, i did about 30 roms with it
Color OS Galaxy J5
vaserbanix said:
i use superrkitchen in linux now!
i tested few time ago(about an year) but i wasnt satisfied by it and i start to port manualy.
Android kitchen was good for me on porting 4.2.2 roms, i did about 30 roms with it
Color OS Galaxy J5
Click to expand...
Click to collapse
So would superkitchen work with j500fn? I need to somehow Change from j500jnlte to j500lte but I don't know how to I will say you helped me with it because you have been a big help to me ?
AndroidTutorials said:
So would superkitchen work with j500fn?
Click to expand...
Click to collapse
yes it work!
you can use it for 5.1.1, 6.0.1, 7.0, 7.1 rom's
it's a good tool but the porting process must be done manualy on pc or phone
test it and i think you will be satisfied for the option you can get in it
for the porting process are the tutorials!
vaserbanix said:
yes it work!
you can use it for 5.1.1, 6.0.1, 7.0, 7.1 rom's
it's a good tool but the porting process must be done manualy on pc or phone
test it and i think you will be satisfied for the option you can get in it
for the porting process are the tutorials!
Click to expand...
Click to collapse
Thank you my friend you are awesome I did not know about superrkitchen untill just thank you!!! That could be the reason the Rom had this error because I used android kitchen lol and when I post the Rom what's a the (kernel source link)
vaserbanix said:
yes it work!
you can use it for 5.1.1, 6.0.1, 7.0, 7.1 rom's
it's a good tool but the porting process must be done manualy on pc or phone
test it and i think you will be satisfied for the option you can get in it
for the porting process are the tutorials!
Click to expand...
Click to collapse
Hi m8 I've made the Rom it installs but reboots the phone into recovery
AndroidTutorials said:
Hi m8 I've made the Rom it installs but reboots the phone into recovery
Click to expand...
Click to collapse
did you get the bootanimation when you tryed to start the phone?
Color OS Galaxy J5
vaserbanix said:
did you get the bootanimation when you tryed to start the phone?
Color OS Galaxy J5
Click to expand...
Click to collapse
No :/ no animation
AndroidTutorials said:
No :/ no animation
Click to expand...
Click to collapse
that mean your system wasnt writed.
so! install it again, before flash it do an advanced wipe: data, cache, dalvick-cache, system and then flash the rom.
if the rom boot and get bootanimation that mean the system was writed.
if not, reboot it in recovery and try to do a backup, here you will see if the system has some size(xxxMb).
if system is 0 or a very small size that mean it wasn't mounted on instaling process and do the next:
-restore your working rom
- do a wipe data factory reset(not advanced)
reinstall the rom and it should work.
if not again, then you should make a reviev of "updater-script" in Meta-inf folder and correct the mistakes
Color OS Galaxy J5

Categories

Resources