Add mod to ROM building - Android Q&A, Help & Troubleshooting

To start with, I've been searching around looking for an answer, but haven't found anything useful.
I have started playing around with my really first ROM. I have a stock Rom for my Xperia Z as base. But I wanted to add some nice mods for this rom.
When I open a flashable mod zip there is two folders, the META INF and system. But how do I add the mod to be installed with my rom?
Thanks a lot!
/Jimmy

MinnesotaVikings1961 said:
To start with, I've been searching around looking for an answer, but haven't found anything useful.
I have started playing around with my really first ROM. I have a stock Rom for my Xperia Z as base. But I wanted to add some nice mods for this rom.
When I open a flashable mod zip there is two folders, the META INF and system. But how do I add the mod to be installed with my rom?
Thanks a lot!
/Jimmy
Click to expand...
Click to collapse
Hi,
To add mods, first download the mod and merge the system folder of the mod with the system folder of the base rom. Then, open the updater-scipt of the mod and copy all lines which are related to setting permissions like set_perm(..); and even symlinks. Paste all these lines at the end of your updater-script of the base rom, but before you unmount all the partitions.
Good luck:good:

MinnesotaVikings1961 said:
To start with, I've been searching around looking for an answer, but haven't found anything useful.
I have started playing around with my really first ROM. I have a stock Rom for my Xperia Z as base. But I wanted to add some nice mods for this rom.
When I open a flashable mod zip there is two folders, the META INF and system. But how do I add the mod to be installed with my rom?
Thanks a lot!
/Jimmy
Click to expand...
Click to collapse
I'm about to start a thread w/a guide on how to take your favorite root tweaks/mods and build them into the settings, if you don't already have it, download and install virtuous-ten studio for your pc to get a head-start :good:

Related

Things to do in a custom ROM

So i asked many people but didnt get much help but i finally figured out how to get system.img and boot.img and unpacked them too.
Now i want to ask, what are the things that a custom ROM should have? Things we should add or remove? will removing apk's and adding a few kernels be enough? How can i change the theme?
hfbvm said:
So i asked many people but didnt get much help but i finally figured out how to get system.img and boot.img and unpacked them too.
Now i want to ask, what are the things that a custom ROM should have? Things we should add or remove? will removing apk's and adding a few kernels be enough? How can i change the theme?
Click to expand...
Click to collapse
First, always new kernel.
Second, CM theming is easy. For the rest of the roms yiu can use apktool.
You should make two versions: lite and full.
Lite is stripped down full w/o GAPPS.
Supercharger and Turbocahrger scripts are nice. For the rest: google is your best friend!
Greets!
I remove all of the apps that draw alot of memory,mostly carrier crap(bloatware)then i add all of the free apps from the market that i use alot,then i go to UOT kitchen and set a theme for my new rom,i also use 7-zip and macromedia fireworks to customize the rosie,wallpapers,splash screen,boot animations,etc,i also add a few tweaks for the build.prop,you can also edit the text in the updater-script.Like the guy above said,google is your best friend.

[REQ][UI][GB/ICS/JB] Xperia Pro Stock UI

Hi guys!
I need stock ui's (frameworks) mod of Xperia Pro. These ui's can be GB, ICS or JB. I want these ui's for the Keyboard letter case visibles. All custom roms ui's don't have case view, only stock roms ui's have this.
I can't make own ui. If you can not give me these ui's flashable zip file, show me how to export ui from stock firmwares....
Sorry for my English.
It's under /system/apps/SystemUI.apk
僕のLT18iから送られてきた
popthosegaskets said:
It's under /system/apps/SystemUI.apk
僕のLT18iから送られてきた
Click to expand...
Click to collapse
Not working any custom rom.
Grab SystemUI.apk from /system/app... That is your System UI.
僕のLT18iから送られてきた
popthosegaskets said:
Grab SystemUI.apk from /system/app... That is your System UI.
僕のLT18iから送られてきた
Click to expand...
Click to collapse
I tried this, and not worked in Gin2JellyBean Rom. Maybe other files needed?
Edit: I took stock GB's SystemUI.apk file.
SystemUI.apk is just the status bar not the whole OS UI
framework-res.apk holds the thing you want
Oops... Looks like I read the thread wrongly.
Framework-res.apk can be found in /system/framework
僕のLT18iから送られてきた
Thanks guys! I will try it.
I tried with as:
First, copied framework-res.apk from official Xperia Pro's ICS firmware to my desktop.
Than I downloaded this rom: http://forum.xda-developers.com/showthread.php?t=2147958, and opened zip with 7-zip and replaced rom's framework-res.apk file with stock file.
After than, flashed modified rom's zip, everything completed successfully.
After flashing, I rebooted my phone. After reboot, the animated boot logo not gone for 10 minitues. So my phone not booted successfully.
The result is fail
It will not work because you are trying to use ICS framework on JB :silly:
The two are not compatible with one another.
僕のLT18iから送られてきた
popthosegaskets said:
It will not work because you are trying to use ICS framework on JB :silly:
The two are not compatible with one another.
僕のLT18iから送られてきた
Click to expand...
Click to collapse
You're right, I will try it on another ICS-based Rom

p760 to p769 porting

someone needs to make a guide because i can boot p760 roms but screen is reversed and with different kernel's i get instant reboot on lg logo.
thasilenthacker said:
someone needs to make a guide because i can boot p760 roms but screen is reversed and with different kernel's i get instant reboot on lg logo.
Click to expand...
Click to collapse
The easiest way is
1. Replace kernel with working P769 kernel.
2. Replace all propeitrary files with P769 version. (You can have these files list from CM)
3. Add some more libraries (I don't know which files. I got brightness config doesn't working problem but I cannot solve it.)
I think that's all. Then you can add some customize to the rom. I used to port MIUI to P769 and that is what I did. But you may have some problem with some hardware library which is not in propreitary files list. It's an trial and error process but you need to have P769 to test it.
@artit do you think you could list the exact files please?
I was trying to figure out how to get jellybean on p769 but I haven't figured it out lol. I tried building from aosp and got some error I couldn't figure out. I was trying to build aosp, and using Anton X sources.
Sent from my Nexus 4 using Tapatalk
thasilenthacker said:
@artit do you think you could list the exact files please?
Click to expand...
Click to collapse
You better use AntonX repo https://github.com/AntonX/android_vendor_lge_p769
Juanito216 said:
I was trying to figure out how to get jellybean on p769 but I haven't figured it out lol. I tried building from aosp and got some error I couldn't figure out. I was trying to build aosp, and using Anton X sources.
Sent from my Nexus 4 using Tapatalk
Click to expand...
Click to collapse
I also tried to build AOSP but cannot boot it up. We already have L9 device tree, it's easier to build CM, AOKP, PAC or AOSPA than AOSP.
artit said:
You better use AntonX repo https://github.com/AntonX/android_vendor_lge_p769
I also tried to build AOSP but cannot boot it up. We already have L9 device tree, it's easier to build CM, AOKP, PAC or AOSPA than AOSP.
Click to expand...
Click to collapse
I attempted before CM 11 sources came out. I haven't tried again since then. I might have another go but this time with CM 11. AOSP might be difficult but not impossible. Then again, I want my tweaks. At the same time though, it would be nice to have a clean, Nexus type of ROM, like a "Google Edition L9"
Sent from my LG-P769 using Tapatalk
ok im using propeitrary files this time im gonna test if it works
@artit by any chance if if's not any trouble for you, I was hoping I could ask how to create an Aroma version of a ROM installer. Any help is greatly appreciated, also thanks for MIUI
leolawliet said:
@artit by any chance if if's not any trouble for you, I was hoping I could ask how to create an Aroma version of a ROM installer. Any help is greatly appreciated, also thanks for MIUI
Click to expand...
Click to collapse
I also start using aroma by examine other dev works. These is what you have to do to use aroma installer.
1. Download it from http://forum.xda-developers.com/devdb/project/?id=330#downloads
2. Downloaded file is an example of aroma. Boot in to recovery and install it, you will see a lot of aroma features. You can create your own test file by copy some config from that file or maybe aroma file in my ROM.
3. Aroma script files are in /META-INF/com/google/android/
- aroma-config -> You use this config to create all dialog and pages in aroma
- updater-script -> Normal updater-script file. You can get aroma options and use it as conditional parameter
- update-binary -> this is aroma program
- update-binary-installer -> this is an original update-binary. If you want to use update-binary from CM or others rom please replace it with this file.
- aroma -> this folder contains resources. I use changelog.txt in this folder.
4. To add aroma to your rom
- In your rom, rename /META-INF/com/google/android/update-binary to update-binary-installer
- copy all aroma files to /META-INF/com/google/android/ (except update-binary-installer and updater-script)
- create you own aroma-config
- customize your updater-script to use options from aroma prop
5. If something go wrong while installing, aroma has an option to save install log to sdcard. You can review what is the problem in that log.
That's all. It's not hard to use aroma.
---------- Post added at 06:09 PM ---------- Previous post was at 06:00 PM ----------
Juanito216 said:
I attempted before CM 11 sources came out. I haven't tried again since then. I might have another go but this time with CM 11. AOSP might be difficult but not impossible. Then again, I want my tweaks. At the same time though, it would be nice to have a clean, Nexus type of ROM, like a "Google Edition L9"
Sent from my LG-P769 using Tapatalk
Click to expand...
Click to collapse
Nice try, I've tried to build AOSP 2 or more times but not success
I can build AOSP but it doesn't boot up. In logcat there're something wrong with display initialzation. I also try to use CM / AOKP build platform to build AOSP. But it has some libs conflict that I cannot solve.
i kept getting failed flashing zip, i was trying to port chameleon os for p760
keeps saying error in updater-binary
thasilenthacker said:
i kept getting failed flashing zip, i was trying to port chameleon os for p760
Click to expand...
Click to collapse
Some command in update-script is wrong or misplaced. It's hard to correct that. For me, I add some ui_print() to see what's the last step script run into and try to see what is the problem.
ok i found my problem at setting permissions
i used cm set_perm and still same thing its says " ste_perm: some changes failed
artit said:
I also start using aroma by examine other dev works. These is what you have to do to use aroma installer.
1. Download it from http://forum.xda-developers.com/devdb/project/?id=330#downloads
2. Downloaded file is an example of aroma. Boot in to recovery and install it, you will see a lot of aroma features. You can create your own test file by copy some config from that file or maybe aroma file in my ROM.
3. Aroma script files are in /META-INF/com/google/android/
- aroma-config -> You use this config to create all dialog and pages in aroma
- updater-script -> Normal updater-script file. You can get aroma options and use it as conditional parameter
- update-binary -> this is aroma program
- update-binary-installer -> this is an original update-binary. If you want to use update-binary from CM or others rom please replace it with this file.
- aroma -> this folder contains resources. I use changelog.txt in this folder.
4. To add aroma to your rom
- In your rom, rename /META-INF/com/google/android/update-binary to update-binary-installer
- copy all aroma files to /META-INF/com/google/android/ (except update-binary-installer and updater-script)
- create you own aroma-config
- customize your updater-script to use options from aroma prop
5. If something go wrong while installing, aroma has an option to save install log to sdcard. You can review what is the problem in that log.
That's all. It's not hard to use aroma.
---------- Post added at 06:09 PM ---------- Previous post was at 06:00 PM ----------
Nice try, I've tried to build AOSP 2 or more times but not success
I can build AOSP but it doesn't boot up. In logcat there're something wrong with display initialzation. I also try to use CM / AOKP build platform to build AOSP. But it has some libs conflict that I cannot solve.
Click to expand...
Click to collapse
Thanks, it's more simple than I thought it would be
Thank god I'm familiar with updater scripts
still cant get it to work. @artit you think you could modify this to run on our p769's?
http://forum.xda-developers.com/showthread.php?t=2508699
thasilenthacker said:
still cant get it to work. @artit you think you could modify this to run on our p769's?
http://forum.xda-developers.com/showthread.php?t=2508699
Click to expand...
Click to collapse
It's easier to port it to P768 because all I need to change is a firmware file. But for P769 you need to replace kernel so there maybe some incompatible issues. In AOSPA rom I also had problem when I replaced P760 kernel with P768 (from other rom). But when I build new P768 kernel for that rom it works.
I don't have P769 for testing so it's hard for me to port it to P769. Just wait for CM11 or maybe other ROM (AOKP/AOSPA). Most of its dev have paid a lot afford to new 4.4 version.
i am willing to be a tester if youd work on it, im online everyday
artit said:
The easiest way is
1. Replace kernel with working P769 kernel.
2. Replace all propeitrary files with P769 version. (You can have these files list from CM)
3. Add some more libraries (I don't know which files. I got brightness config doesn't working problem but I cannot solve it.)
I think that's all. Then you can add some customize to the rom. I used to port MIUI to P769 and that is what I did. But you may have some problem with some hardware library which is not in propreitary files list. It's an trial and error process but you need to have P769 to test it.
Click to expand...
Click to collapse
Has the brightness thing been solved yet? I am having this issue with a ROM that was "ported" but is incomplete because it completely lacks brightness control.

HOW TO BUILD/PORT SLIMSYSTEM(Optima Team)

THIS GUIDE IS UNDER CONSTRUCTION
BUILDONG SLIMSYSTEM THE NOOB TUTORIAL
REQUIRMENTS
Port Tool(https://mega.co.nz/#!qoRBCJzR!yBVNs8WYHRdW0DhRV-LMjw8CMJiphLYJF0SXogJWHBE)
Base System(https://mega.co.nz/#!7l4WRQwS!iJm3TdG29LY-eF7OlnUulUGK5xDhRMjdRNGSOEMWuXo)
Universal Deodexer(http://forum.xda-developers.com/showthread.php?t=2213235) download V4
Android Multitool(http://forum.xda-developers.com/showthread.php?t=2326604)
A Brain
PREBUILD KNOWLEDGE
First off we need to know what dpi our phone is.
to do this we do a bit of research. head over to gsmarena.com and search for your device.
in my case my devices resolution is 800x480 so i know its hdpi
once we know what dpi we are using head over to
http://forum.xda-developers.com/showthread.php?t=2236937
and download the appropriate launcher zip and put it one side
USING THE PORT TOOL
1. Place The AutoPort.exe on your desktop
2.Turn on debugging mode
3. make sure you have the correct drivers installed for your phone
4. plug your phone in
5. make sure you have root access with adb
6. Run The exe
7. when the pop up appears place the L5Aroma.zip in the port folder.
8. Done
the program will replace the files in the L5Aroma.zip with stock files pulled from your device.
the purpose of this is so that you should be able to pretty much flash the new zip without any errors.
this will not fully port the rom. things like systemui tweaks, theme chooser and multi user will have to be done manually.
NOT WORKING AT THE MOMENT
SystemUI Mods
Theme Chooser
Multi User
Samsung Launcher
build.prop Tweaks
SAMSUNG LAUNCHER
1. extract the S4_launcher-***.zip that you downloaded earlyer
2. open the /system/app folder
3. rename the SecLauncher2.apk to LGHome3a.apk
4. open the new L5Aroma.zip that you created with the AutoPort tool using winrar.
5. navigate to /choices/1.home/samsung/system/app
6. you should have the same files as you have in the S4_launcher-***.zip
7. replace the ones from the L5Aroma.zip with those from S4_launcher
8. do the same with etc, framework and lib(this is not nessacery but do it anyway).
and now you have fixed the Samsung Launcher.
NOT WORKING AT THE MOMENT
SystemUI Mods
Theme Chooser
Multi User
build.prop Tweaks
Reserved 1
For Editing Build.prop
editing using apktool
Reserved 2
adding Quick Launch
and other status bar tweaks
Reserved 3
Modding Settings
Reserved 4
Rebuilding
Repackaging
Great idea :good:
there isn't more information???
Concerns and Wish to collaborate.
Will this port successfully to Lg L3 E425g?
Will I be the first?
Do I get listed as a beta tester?
I'm willing to provide feedback.
I'm starting to learn programming.
Can I be provided with a stock .kdz if it goes wrong?
There is no ldpi download at the forum post.
Using modded SEC4 without TouchWiz instead....
I'm currently downloading the files to port it.
Will any issues arise because of the launcher?
CAN this be ported to ldpi?
If it can't maybe that's why the s4 launcher isn't there?
I'll be flashing this maybe tommorow or sunday?
Any feedback will be needed soon.
I will provided detailed info about the results.
and if you wish, and it goes smoothly a nandroid backup file for the l3ii.
If it works, then i will do some manual mod editing based on the things not available because of it being ported.
If I get them to work, maybe you may want me to help you?
If they don't work then perhaps I can find a work around or something similar.
You may want that?
If I am not allowed to collaborate, then may I publish a version with those features working, using and quoting this as base?
MTO
Signing out...
PS: Sorry for my English, I'm a Honduran.
and if you wish, and it goes smoothly a nandroid backup file for the l3ii.
If it works, then i will do some manual mod editing based on the things not available because of it being ported.
Click to expand...
Click to collapse
I just finished porting it.
About to flash.
Wish me luck.
Tell me if you want the port!
MY_TONGUE_OUT.dev said:
I just finished porting it.
About to flash.
Wish me luck.
Tell me if you want the port!
Click to expand...
Click to collapse
It works ok.
My odexed apps cause a brightness glitch with this rom.
I'm trying to deodex them.
Home button not working on first install.
Trying second install.
---------- Post added at 01:46 AM ---------- Previous post was at 01:22 AM ----------
MY_TONGUE_OUT.dev said:
It works ok.
My odexed apps cause a brightness glitch with this rom.
I'm trying to deodex them.
Home button not working on first install.
Trying second install.
Click to expand...
Click to collapse
I understand why the home button doesn't work.
The autoport.exe extracts the files for e435f instead of e425g.
I'm modding the stock rom and attempting re-port.
---------- Post added at 02:44 AM ---------- Previous post was at 01:46 AM ----------
I understand why the home button doesn't work.
The autoport.exe extracts the files for e435f instead of e425g.
I'm modding the stock rom and attempting re-port.
Click to expand...
Click to collapse
I changed some things around in the stock build.prop and re-flashed.
ONLY INSTALL WITH THEMER
Multi-User and Other Launchers NOT WORKING
The rest works fine.
It doesn't work with any other home.
I'm awaiting approval to upload my port.
Thank you

[Q] alliance rom

Im looking to customize my phone even more than the already made themes for this rom.
it says create a zip of the custom setting theme, but to be honest I have no idea how to
make a custom zip of a theme, I realize this is probably a stupid question
If some one could help me out.
Thanks!
rom found here: http://forum.xda-developers.com/showthread.php?t=2748569
holt3113 said:
Im looking to customize my phone even more than the already made themes for this rom.
it says create a zip of the custom setting theme, but to be honest I have no idea how to
make a custom zip of a theme, I realize this is probably a stupid question
If some one could help me out.
Thanks!
rom found here: http://forum.xda-developers.com/showthread.php?t=2748569
Click to expand...
Click to collapse
You have to have some knowledge of theme work to be able to create your own. There is a massive amount threads that can give you that information. The option you're talking about just makes a zip file of the settings you're using.

Categories

Resources