Need help making new device tree - Android Q&A, Help & Troubleshooting

So some background on what im trying to do. I recently got a Huawei Honor 7 and its my first droid in a few years (i used to have a iphone 5). I really want a AOSP rom (either stock or cyanogen) but my device does not have a working device tree and there are not many devs working on it. I cant find a tutorial anywhere online on how to make a device tree from scratch and im completely lost EMUI (the stock rom for my device) is becoming annoying and id really just like to make a tree so i can make a AOSP port for the H7 and so the few devs working on it can make their own roms.

Related

How to build rom

I know Its pretty dumb to ask after seeing a lot of tutorial here, But I really can't understand! My Device is a huawei ascend y300. I have lots of custom rom on various forums. So I wanna built one myself! One of the developer built cm 11 from source and he is rolling out nightly on a daily basis. My interest is to build the cm11 too on my own computer based on his device specific changes he has done. and he has done a lots of changes for our device. Also if I can make any other rom from its source based of his work like mokee rom, or slimbeam etc. ANy help is appriciated. thnk you

Building a custom ROM with AOSP

Hello,
I'm new to Android modding and I already read many guides, tutorials, etc. But every time people build a new ROM they don't use the AOSP but the CM source. So I like to build a clean, not modified ROM from the AOSP sources but when I tried the first time, I didn't know what I need to do because Google's guide only tells about how to build the ROM for a Nexus device and not for mine (I'm using the Motorola Moto G 2014 as primary device).
So first of all, is it possible to build the AOSP for my device or do I have to make any modifications in sources (or it is for one person just not possible to port the AOSP to my device) ?
If it is possible, what do I have to do? Is there any guide or tutorial how to build the AOSP for a non Google phone in general?
Thanks for responses
firefligher

Android development for a new device w/o any other custom roms based on cm/aosp

Hi, I just got hands on LeTV x900 source code, and figured i would like to build ANY custom rom for it, im not sure it is even working (i have never EVER buildt anything android related in my life)
So basically i just got the source from opensource.le.com whitch says it should be the source of this device (Le Max version: CHXOSOP5501405221S) which should be my device in this story.
im currently rocking builduntu (a pre-configured ubuntu vbox OVA) with all the things needed to develop a rom (at least is says so)
i have been developing some PHP durring som years now so Ubuntu isn't something new to me.
So i havn't got any sources except for the device it self at the moment, for an easy start what do i want? AOSP or CM sources and how do i get them (i have a ok network connection at the moment (250 Mbit's down and 10 Mbit's up) any help in my situation would be greatfully regarded since im new in this stage. Thanks! :angel:

PORT Sense to another phone

Hello , i have 1 question can it be work if i port a Sense rom to my honor 8 ?
beacouse i love the Sense ui and the look i will be great if i see a sene rom for my phone
When you know the HTC HD2 and they have done to make a windows phone to an android phone with a lot of roms like Sense,Miui,AOKP, or PAC man rom then
at can be done with another one
The problem is, that it is really hard to build ROMs for devices with Kirin Chipset, because Huawei won't release any helpful source code. We can be lucky that they released some Kernel sources for several devices. Some honor and Huawei devices are nearly the same and ROMs that are build for one device, work on others with the same Chipset as well, so go and look if you find any, I think the OpenKirin released something for the honor 8/ the Huawei version. Just search your Chipset here on xda, you should find something. But there won't be a Sense ROM, I'm pretty sure.
EDIT: There is RROS available for your device!
You have to follow every single instruction, or some features won't work. That's probably everything you will get for that device.
Here is the link: https://forum.xda-developers.com/honor-8/development/rom-t3606257
GAMEthe said:
Hello , i have 1 question can it be work if i port a Sense rom to my honor 8 ?
beacouse i love the Sense ui and the look i will be great if i see a sene rom for my phone
When you know the HTC HD2 and they have done to make a windows phone to an android phone with a lot of roms like Sense,Miui,AOKP, or PAC man rom then
at can be done with another one
Click to expand...
Click to collapse
Simple answer is no. Sense like TouchWiz and all other oem distros rely on their own frameworks files that are closed Sourced and only compatible with their devices.
As for the HD 2. That was the last great device of its kind with a really open bootloader.

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