How to build a Pie ROM - Android Q&A, Help & Troubleshooting

Hey all. I'd like to know how to build a Pie ROM for my phone (Nexus 6P) I'm trying to build Havoc but I dunno how to proceed. I searched everywhere and there are no guides available for Pie. I can download the Source and then the Device and Kernel and Vendor Trees that have already been made by another Developer for another ROM. However if I try to Brunch, my device doesn't appear in the Menu. I don't know what to do beyond this point. Any and all help will be appreciated. Someone told me that I have to edit the Device Tree to make Compatible with the ROM source but I have no Idea how. So if anyone could help me I would greatly appreciate it. Thanks.

Related

[ROM][Porting] guide to cm11

Hello everybody. i serached the net a bit and found this guide on how to port CM11 to our devices
http://wiki.cyanogenmod.org/w/Doc:_porting_intro
my phone is still on service (two weeks now )
but i thought before i get it back if someone wanted to try to make it happen.
i wouldnt say im that much of a developer so i think theres people out there that can make this happen faster than me.
anyway i thought to start this thread so people can try it out and talk about what we have to do and help people out with the progression.
Help appreciate
invaderjohn said:
guide on how to port CM11 to our devices
http://wiki.cyanogenmod.org/w/Doc:_porting_intro
if someone wanted to try to make it happen.
i wouldnt say im that much of a developer
Click to expand...
Click to collapse
Any help is greatly appreciated!
I have set up a ubuntu box and got the cm sources.
I followed the instructions to build the device files from boot.img
Tweaked the BoardConfig.mk and can build recoverys from source now using the stock kernel.
Only problem with this is the 'dtb' part of the recovery.img.
I use Android Image Kitchen to copy the original recovery dtb to the ones i have build.
[Q]Can anyone tell me how to build dtb in the recovery at build time?
I have downloaded the android and kernel source from LG for D620.
Source from LG
[Q] Can anyone tell me how to merge them with the CM source?
In general i need some help to build the kernel from source, the instructions in the LG source don't work for me.
Zaaap
Zaaap72 said:
Any help is greatly appreciated!
I have set up a ubuntu box and got the cm sources.
I followed the instructions to build the device files from boot.img
Tweaked the BoardConfig.mk and can build recoverys from source now using the stock kernel.
Only problem with this is the 'dtb' part of the recovery.img.
I use Android Image Kitchen to copy the original recovery dtb to the ones i have build.
[Q]Can anyone tell me how to build dtb in the recovery at build time?
I have downloaded the android and kernel source from LG for D620.
https://www.lg.com/global/support/opensource/opensourceList?types=NAME&search=d620
[Q] Can anyone tell me how to merge them with the CM source?
In general i need some help to build the kernel from source, the instructions in the LG source don't work for me.
Zaaap
Click to expand...
Click to collapse
is this any help for you?
http://forum.xda-developers.com/showthread.php?t=1748297
and perhaps you can find a solution on the dtb here?
http://forum.xda-developers.com/showthread.php?t=2428117
Hi guys,
I bought this device a week ago, highly impressed with it.I'm not interested in tweeking it yet as I'm trying to get my lg o3d also a working cm11.I do follow this forum all the time and also leading as I mess around with my old phone, but if I know something I would try to help. To add sources to cm try this guide, its most recent and very helpful.
http://forum.xda-developers.com/showthread.php?t=2814763
:thumbup:
Sent from my GT-i8190 using XDA Free mobile app

Newbie wants help to develope

Hello all,
I wanted to compile my own AOSP ROM for my LG K7 (which still doesn't have a custom rom for it made yet). I read through some tutorials, with most saying to build with the device tree. Where is the device tree for a device, and how would I build on it to make a rom for the device?
Thanks for tolerating my newbiness
You will need to start with Cyanogenmod's tutorial on building/porting ROMs. It's probably the best resource I've found so far on porting a ROM to a device that has no custom ROM yet.
wiki (dot) cyanogenmod (dot) org/w/Doc:_porting_intro
I've been trying to work on it with what little time I have but I keep getting stuck. Hope you'll have better luck than me.

How to build aosp from source for mido?

Hey there devs.
I'm looking forward to build a pure aosp rom based on oreo 8.1 for mido.
So far I've tried and successfully built los 14.1 and rr 5.8.5 from source, but I want to build aosp source so as to create a vanilla aosp rom. I've looked on the internet and asked a couple of devs here in the forum and they told me to merge caf patches. I totally understand the point of caf but then i don't know how to do it. Also I'm pretty sure that some patches (caf maybe) need to be added to source since the compilation always gives an error related to board config, when i followed the official guide at android website. (But then I don't understand what overlays i have to apply or even what they are)
Edit : i use gcloud to build.
If anyone can guide me as to how i can build aosp, it would be really helpful:fingers-crossed:
But then any help is appreciated.:good:
Thanks in advance!
i've no knowledge on building rom but im waiting for your vanilla for sure, hopefully you made it from Note 4X as base since all 8.1 rom i have tried are giving me various app are stopping after using it for sometime. i hope i can help you in some way though i have limitation in helping. thank you for your spirit!
groovepeppy said:
i've no knowledge on building rom but im waiting for your vanilla for sure, hopefully you made it from Note 4X as base since all 8.1 rom i have tried are giving me various app are stopping after using it for sometime. i hope i can help you in some way though i have limitation in helping. thank you for your spirit!
Click to expand...
Click to collapse
Don't worry man, I'll find out some way to build it. I'm Waiting for los 15.1 to get official so that the kernel source and other sources are out which i can use. But still I'm trying to learn and build.:laugh:

Build ROM from scratch

I would like to develop a custom ROM for my device. I read some guides and obtained some basic knowledge, but still don't know how to start. So I would like to ask some questions to test my knowledge and expand them.
My device: Wiko View
My Android version (actually installed): 7.1.2 almost pure Android (just some third-party apps)
Desired Android version: AOSP 9.0 (maybe?)
So as far as I know I need these things:
AOSP Source Code (9.0)
Kernel
Vendor (tree or blobs?)
Device tree
So for the AOSP: I can get it from the repo hosted by Google. How should it look once downloaded?
For the kernel: should I use that from my actual ROM, or the most recent one? And how to include it in my ROM before compiling?
For the Vendor: As far as I read, with project treble I shouldn't edit this. But since I'm not developing a treble ROM, I'm in troubles, right? In older ROMs (before Oreo and Treble), they're stored in /system/vendor. Is just that folder or are there more? Do I need to update something? Where do I need to put this folder?
For the device tree: I read some guides that explains how to extract it from ROM (only from 5.0 and up, since mine is 7.1 no problems, I hope). Is this right or are there other ways? Or do I need to write it myself?
I'm going to thanks anyone in advance. I know there are plenty of questions, but I hope this thread will be a place for begginer (like me) to know more about compiling from source a ROM. Have a great day!

Question Where to start building a working twrp and/or roms for moto g power 2021 (borneo)?

Hello all, where would I start in making a working twrp for this phone?
Does anyone know if Motorola has released the device tree/source code for this phone so we can make the roms? LineageOS would be ideal.
Well, I have the same phone. Couldn't find ROMs for it.
thebestofall007 said:
Hello all, where would I start in making a working twrp for this phone?
Click to expand...
Click to collapse
look in this forum here, there are a couple floating around for it, I've made one, that I was able to fully flash to mine and has touch (Android 10. there's another that is 11 on here too by another poster), but as there are multiple display options out there it seems for how they were made, that is the sticking point, as not all will behave properly when booted into a recovery like mode it seems. I have tried installing it over bootloader and it will have touch then, but when flashed to recovery the touch never activates properly. So it all likely comes to that, as we'll need combine them in, properly applying proper checks for each display type and having it use the proper driver files, since can't load them all at once or it breaks things.
Working shrp for Borneo
thebestofall007 said:
Hello all, where would I start in making a working twrp for this phone?
Does anyone know if Motorola has released the device tree/source code for this phone so we can make the roms? LineageOS would be ideal.
Click to expand...
Click to collapse
First place to start: twrpdtgen
Read the "readme"
Also check out:
[DEV]How to compile TWRP touch recovery​
Device tree made from A10. Should still be relevant for A11.
Kernel for A10. Unfortunately I don't think Moto released the one for A11 yet. You can ask on their GitHub and devs might consider your request.
TWRP for A11. Touch is working.
Edit : here's a link for the device tree (in text) from A11
maybe this will work
thebestofall007 said:
Hello all, where would I start in making a working twrp for this phone?
Does anyone know if Motorola has released the device tree/source code for this phone so we can make the roms? LineageOS would be ideal.
Click to expand...
Click to collapse
maybe this will help probably https://github.com/MotorolaMobilityLLC/kernel-msm
UPDATE: I have a telegram account where we are discussing how to make a custom lineage OS. I'm at the gathering stage and in the process of porting a device tree. For starters I want to start with lineage OS 18 because its the same android version the stock OS is, to be on the safe side, and that I've never done ROMS before.
Moto G Power 2021
I now have a device tree with the help of AOSPdtgen from the stock ROM from mirrors.lolinet: https://github.com/thebestofall007/android_device_motorola_borneo
I have started the build and got the first error:
https://imgur.com/a/XZoqy8B
I've looked this error up and they say it's because of the ram, but the error recurs at the same point. I have 16gb of swap, too.
thebestofall007 said:
I have started the build and got the first error:
https://imgur.com/a/XZoqy8B
I've looked this error up and they say it's because of the ram, but the error recurs at the same point. I have 16gb of swap, too.
Click to expand...
Click to collapse
you need alot of ram to build a rom for android 36GB of RAM or more will be beater to it wont crash
KILLFIREY1389 said:
you need alot of ram to build a rom for android 36GB of RAM or more will be beater to it wont crash
Click to expand...
Click to collapse
The error turned out to be entries in the proprietary-files.text file that needed to be deleted.
@thebestofall007 If you'll suceed. please take in consideration to build \e\ (aka deGoogled Lineage) too.
Here's a couple of interesting links that may help:
https://doc.e.foundation/support-topics/build-e
https://community.e.foundation/t/howto-building-e-roms-a-beginners-guide/26371
Last but not least, we've also suggested them (check here) to setup a "build (V)Machine" by modding this colab notebook to made it device agnostic:
https://github.com/viam1-dev/colab_lineage_build
Hope can "inspire" you.
Thanks in advance.
Does anyone have a complete list of sources so far? I have some experience in the past building ROMs for Android 5 and I wouldn't mind trying. I have a lot of computer resources to dedicate to building as well.
Device tree: https://github.com/thebestofall007/android_device_motorola_borneo-old
Does anyone know if there is a kernel source? I looked on the Moto github and couldn't find one. Is everyone using prebuilt for the time being? Also, do we need a vendor tree?
Thanks

Categories

Resources