[Q] Update custom rom - General Questions and Answers

Hi, i'm new at the forum and i'm customizing a cyanogenmod rom from source for Galaxy S4. To test new functionalities, i'm building each modified module with mm, but when i'd like to release a rom zip file, i have to rebuild the entire source. Does any one know if is there a way to just repackage the rom zip? (when i use brunch, it build every thing, it's not even differential).
Thanks.

Related

Porting Lollipop 5.0 to our HTC One S

I've attempted to port a nexus 5 lollipop ROM to our beloved device using android kitchen. It ported successfully but I can't get it to flash. Any seasoned developers wanna give it a shot? Let's work together and bring lollipop our way!!!
Here's the android kitchen post but is no longer supported by developer... http://forum.xda-developers.com/showthread.php?t=633246
Here is the rom i ported:
http://goo.gl/I3Durt
I have another updated build I will be uploading soon
Gapps are included..
Won't let me edit op anymore... But here's the original thread I took the ROM I ported from
http://forum.xda-developers.com/showthread.php?t=2840901
Bad.Fish said:
I've attempted to port a nexus 5 lollipop ROM to our beloved device using android kitchen. It ported successfully but I can't get it to flash. Any seasoned developers wanna give it a shot? Let's work together and bring lollipop our way!!!
Here's the android kitchen post but is no longer supported by developer... http://forum.xda-developers.com/showthread.php?t=633246
Here is the rom i ported:
http://goo.gl/I3Durt
I have another updated build I will be uploading soon
Gapps are included..
Click to expand...
Click to collapse
Seeing that there is no kernel source, you need to build your own kernel, look at the HTC One (M7) L Preview rom and you will see that a heavily modified kernel was used to make it boot. Anyway, you would have been better off building it from source generally, AOSP. If a kernel dev was to help me with a working kernel, then I would gladly build Lollipop for the One S
dd98 said:
Seeing that there is no kernel source, you need to build your own kernel, look at the HTC One (M7) L Preview rom and you will see that a heavily modified kernel was used to make it boot. Anyway, you would have been better off building it from source generally, AOSP. If a kernel dev was to help me with a working kernel, then I would gladly build Lollipop for the One S
Click to expand...
Click to collapse
Can you post the link of the lollipop preview you mentioned? I can't seem to locate it
Bad.Fish said:
Can you post the link of the lollipop preview you mentioned? I can't seem to locate it
Click to expand...
Click to collapse
[PORT] [ROM] Android L Developer Preview for HTC One [ALPHA 2]

[Q] Building stable rom with kernel sources

Hi, may I ask somebody experienced with ROM building, if it is possible to build fully functional and stable build from AOSP sources if i have kernel sources for my device from vendor?
Nigfire said:
Hi, may I ask somebody experienced with ROM building, if it is possible to build fully functional and stable build from AOSP sources if i have kernel sources for my device from vendor?
Click to expand...
Click to collapse
Hi, yes. I've compiled lollipop nexus4 from aosp in ubuntu 14.04.1 x64 in vmware.
I've downloaded the source, included the proprietary files, and compiled android, compiled with make and make otapackage to generate the zip.
After that i've rooted the device, installed twrp.
Finally, i've downloaded the source kernel and compiled to generate the .img. I've flashed this to the device with fastboot, and
yeeeeeeh perfect!!!
obviously, after this, i've downloaded the gapps and installed.
But, which version would you compile? And which device? All the sources are available and open source?
i wana make AOSP build for Huawei Ascend G6, I have only kernel sources from vendor... I suppose that kernel will work with any version of android or not?
Nigfire said:
i wana make AOSP build for Huawei Ascend G6, I have only kernel sources from vendor... I suppose that kernel will work with any version of android or not?
Click to expand...
Click to collapse
Ok, you have the sources, very good.
mmm, i'm not sure that every kernel + android combinations work perfectly together.
For example, on my nexus4 i've kernel 3.4 and lollipop. Now, if android lollipop requires some modules/functionalities/"other magic stuff" to work properly from the kernel, and you install kernel 2.x.x without this feature, probably you'll have problems.
I mean, i'm not sure, but is only a logic hypothesis.
You can solve this problem using the latest official version of android from Huawei and your compiled kernel from Huawei sources. If this works, try to update android to another version with a custom rom. It works? Perfect!, It not works? Damn, restore the backup and use another older android version
To build android/kernel you must transform into a researcher :laugh:

[Q] Are Cyanogen devices tree compatible with AOSP ?

Hi all,
I've a question for you guys.
I've a SG3 (i9300), I'd like to know if using the cyanogen device tree for my device (located here) is possible to build AOSP source code.
if yes, then it looks like that would be possible to compile Lollipop AOSP for my device.. am I right ?
Thank you very much.
Cyanogen IS AOSP... Lol. Its AOSP with added features. If that's not an Android 5.0 lollipop kernel source, then it won't boot out of the box. Your best bet would be to get some Android 4.4 kernel source and do ramdisk edits and what not needed to get an Android 5.0 ROM booting. Alternatively, if your device is CM supported, I know they were talking about releasing CM12 soon, you could just hold out to see if your device is supported. Outside of CM, many custom ROMs (AOKP, Pacman, etc.) Take it upon themselves to release ROMs as well. Example: PACman had a 4.4 custom ROM out and in circulation, even before cyanogenmod, so u never know!
mingolianbeef said:
Cyanogen IS AOSP... Lol. Its AOSP with added features. If that's not an Android 5.0 lollipop kernel source, then it won't boot out of the box. Your best bet would be to get some Android 4.4 kernel source and do ramdisk edits and what not needed to get an Android 5.0 ROM booting. Alternatively, if your device is CM supported, I know they were talking about releasing CM12 soon, you could just hold out to see if your device is supported. Outside of CM, many custom ROMs (AOKP, Pacman, etc.) Take it upon themselves to release ROMs as well. Example: PACman had a 4.4 custom ROM out and in circulation, even before cyanogenmod, so u never know!
Click to expand...
Click to collapse
Hello, thanks for your answer.
I'd like to know this only for learning purpose, I'm not going to compile the AOSP
What I don't understand, is why adding the device tree to the lollipop AOSP is not sufficient to boot out of the box, can you please explain this in details ? Many thanks.

[Q] Building first ROM from AOSP non Nexus, a couple of questions

Hi all,
I want to build my first rom. I'm a software developer (Java and Web), but my Linux knowledge is somewhat intermediate.
I have a Moto G4 Plus laying around. Here's what I have done so far:
1. Downloaded the AOSP source from Google for android-7.0.0_r15 (Nougat)
2. Found the Kernel Source for the Moto G4 Plus (Nougat)
I'm stuck at adding the device's kernel source to the AOSP source. How do I combine the two?
Here's the link for the kernel source: https://github.com/MotorolaMobilityLLC/kernel-msm/releases/tag/MMI-NPJS25.93-14-10
I've tried looking this up online but the results are very limited.
As far as I understand this kernel source provides everything I need to make the ROM compatible with my device, right?
Could someone point me to the right direction?
Much appreciated.

How do custom rom makers make custom rom for different android version?

I heard that custom ROM makers build ROMs on top of a stock ROM and modify it, but how does a custom ROM developer make a custom ROM for Android 6 on an android 4 device where only android 4 is available. At what level is there a difference between the Android versions? Is it at kernel level, Application level?
Suppose I wanted to make an Android 6 custom ROM for and android 4 device, what tools do I use?
sprotz said:
I heard that custom ROM makers build ROMs on top of a stock ROM and modify it, but how does a custom ROM developer make a custom ROM for Android 6 on an android 4 device where only android 4 is available. At what level is there a difference between the Android versions? Is it at kernel level, Application level?
Suppose I wanted to make an Android 6 custom ROM for and android 4 device, what tools do I use?
Click to expand...
Click to collapse
Devs that build ROM use directly the Android source code, that every OEM use to build their own OSfor a specific phone.
They can build at any Android version because they don't use the original ROM from the phone, they use AOSP, then modify AOSP to add those sweet features.
The only thing that they use from the phone is its kernel, and OEM post the Kernel's source code on GitHub or another platform to let developers (like ROM devs) work with the phone more deeply.
So to answer your question, Android version are different because features are added and the code modified, every custom ROM for every phone is based on the same Android source code (AOSP). The difference between the phones is at the Kernel level.

Categories

Resources