Help Me To compile AOSP based Rom for my device - General Questions and Answers

hi developers how are you
actually i am from mtk background and only familiar in porting Rom but i got a Mi Max this time and i planned to contribute to that device i got to know that its an open source device so i compiled lineage OS and resurrection remix
mi max or hydrogen is an official device so that wasn't a hard task for me but now i want to compile for some aosp based Rom like unofficial Rom here is what i did in Dirty Unicorns
1.cloned DU sources android N based
2.cloned hydrogen kernel to Kernel/xiaomi/msm8956
3.cloned hydrogen device tree to device xiaomi/hydrogen
4.cloned hydrogen device tree to device xiaomi/msm8956-common
5.renamed linage.mk to du.mk
6.changed in AndroidProduct.mk to du.mk
7.cloned vendors to vendor/xiaomi/hydrogen
8.added lunch combo in vendorsetup.sh
9.i dont know anything about caf but still i cloned all of them media audio ril and others
what else is needed to be done to startup ? can you guys tell me
please help me

Related

Files

Hi guys and girls, my problem is: i'm making a ROM but i can't found the sources like kernel,proprietary vendor files and device configuration source
of KitKat in git format, the github of razrqcom-dev-team only have source of CyanogenMod 11, the sources of cm 11 doesn't work with the ROM i'm doing. Please Help
Itachitops said:
Hi guys and girls, my problem is: i'm making a ROM but i can't found the sources like kernel,proprietary vendor files and device configuration source
of KitKat in git format, the github of razrqcom-dev-team only have source of CyanogenMod 11, the sources of cm 11 doesn't work with the ROM i'm doing. Please Help
Click to expand...
Click to collapse
not released yet afaik
Sent from my phone

How to build Android Oreo Compatible Device tree...?

Hi..,
I am trying to build a Android O based custom rom for my device (Moto X Force /Droid Turbo2 i.e Kinzie) which has very little custom rom support and development support too.. Till now it has only Unofficial LineageOS14.1
Device Tree for Android 7.1 : https://github.com/lineageos-for-kinzie/android_device_motorola_kinzie
Vendor Tree for Android 7.1:
https://github.com/lineageos-for-kinzie/android_vendor_motorola_kinzie
I want to make this Device Tree compatible for Android 8.1 development but doesn't know where to start from.
If anybody can help and give his guidance then please share to this thread
I think it's best to start from the clark phone. LineageOS 15 is already out for clark and they have a very similar device tree.

[ROM][8.1.0][THEA] Unofficial LineageOS 15.1 [ALPHA][UNIFIED]

WARNING: Broken RIL. THIS ROM IS NOT A DAILY DRIVER AND IS TOTALLY OBSOLETE. EMERGENCY CALLS ARE NOT POSSIBLE.
Use gothicVI's ROM which includes a working RIL and the latest O security patches.
If you want a daily driver Oreo ROM, flash LuK1337's LineageOS 15.1, which is the only alternative right now.
Because our thea deserves to be loved too!
LineageOS is a free, community built, aftermarket firmware distribution of Android 8.1 (Oreo), which is designed to increase performance and reliability over stock Android for your device.
LineageOS is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. Linked below is a package that has come from another Android project that restores the Google parts. LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.
All the source code for LineageOS is available in the LineageOS Github repo. And if you would like to contribute to LineageOS, please visit out Gerrit Code Review. You can also view the Changelog for a full list of changes & features.
This is an unofficial LineageOS 15.1 build made from LuK1337 et al's source trees for the Motorola Moto G 2014 LTE, synced to the latest Lineage codebase with some changes. I have to fix a lot of stuff to make it a stable ROM and therefore development help is wanted and welcome. This ROM is a work in progress and it's purpose is to serve as a reliable base to port over other ROMs to the device, or just to be a smooth daily driver for Lineage fans.
Working: Those features are stable.
Boot
Sensors
WiFi
Bluetooth
Media
Camera: Photos
Status & Flash LED
Touchscreen
Broken: Feedback is wanted.
Video Recording
RIL: telephone calls, SIM, SMS, VoLTE, mobile data, emergency calling.
SELinux is permissive for now.
How to report issues:
Please follow this template. If you don't follow this template you will be ignored. Also feedback MUST be posted here and not as private messages unless I explicitly say so. And don't report issues that already appear here.
Code:
What is your...
* Phone model (XT107*):
* ROM version (0x**):
* GApps version if you use them:
* Xposed or Magisk:
* Kernel:
logcat:
* Link to Pastebin or similar
dmesg:
* Link to Pastebin or similar
Download:
Get the ROM here
Changelog:
Code:
## 20180619: release 0x01 ##
* Initial release.
## 20180627: release 0x02 ##
* Built against OPM6.171019.030.B1
* Fixed vendor image mismatch errors
XDA:DevDB Information
LineageOS 15.1 for Moto G 2014 LTE , ROM for the Moto G 2014 LTE
Contributors
Wattsensi, the Moto G 2014 Dev Team
Source Code: http://github.com/motog2014devteam
ROM OS Version: 8.x Oreo
ROM Kernel: Linux 3.x
ROM Firmware Required: Bootloader 0x4821 or higher, unlocked.
Based On: LineageOS
Version Information
Status: Alpha
Current Stable Version: 0x02
Created 2018-06-20
Last Updated 2018-06-28
Any progress?
Hi @Wattsensi how did you fix the vendor image mismatch? There was no push to the repo you list as sources.
---------- Post added at 18:39 ---------- Previous post was at 18:38 ----------
Hi @Wattsensi how did you fix the vendor image mismatch? There was no push to the repo you list as sources.
gothicVI said:
Hi @Wattsensi how did you fix the vendor image mismatch? There was no push to the repo you list as sources.
---------- Post added at 18:39 ---------- Previous post was at 18:38 ----------
Hi @Wattsensi how did you fix the vendor image mismatch? There was no push to the repo you list as sources.
Click to expand...
Click to collapse
Oh, hi there. I didn't know that there was somebody still interested in developing for this device. I switched to a Huawei P9 my father gave me, but I still have my Thea saved. That said I tried everything but I couldn't get the RIL to work.
I fixed the vendor image problems by getting the vendor image strings in a terminal emulator in the phone, then going back to my PC and changing the init_thea.cpp file in the init folder of the thea device tree. Check RenanQueiroz' titan device tree, go to init_titan.cpp and get a guidance. I made a dual_override() function too to save space.
I am not a ROM cook though. Just a builder.
Wattsensi said:
Oh, hi there. I didn't know that there was somebody still interested in developing for this device. I switched to a Huawei P9 my father gave me, but I still have my Thea saved. That said I tried everything but I couldn't get the RIL to work.
I fixed the vendor image problems by getting the vendor image strings in a terminal emulator in the phone, then going back to my PC and changing the init_thea.cpp file in the init folder of the thea device tree. Check RenanQueiroz' titan device tree, go to init_titan.cpp and get a guidance. I made a dual_override() function too to save space.
I am not a ROM cook though. Just a builder.
Click to expand...
Click to collapse
Would you mind sharing the file you changed?
I'm just building myself - not much experience in Android development (yet).
Gesendet von meinem Moto G (5) Plus mit Tapatalk
gothicVI said:
Would you mind sharing the file you changed?
I'm just building myself - not much experience in Android development (yet).
Gesendet von meinem Moto G (5) Plus mit Tapatalk
Click to expand...
Click to collapse
Please share with us a build with basic functions working
Eddy Stark said:
Please share with us a build with basic functions working
Click to expand...
Click to collapse
Here you go. Any feedback on what is working and what not would be highly appreciated!
This ROM is officially discontinued. Please close the thread mods.

Compile android 11 rom with android 5 device sources

I currently have an old TAB E sm t561. I want to compile android 11 for it. It's device tree ,vendor tree, common tree version is lineage os 15 I.e android 8
Its kernel source is lineage os 12 that is lollipop. Can i compile android 11 lineage os 18 rom?
nothing is impossible with *unix but thinking all the issue and troubleshooting that would come along the way i would say this is stupid idea ...

General Xiaomi 12 / Xiaomi 12 Pro OSS Kernel Sources

After reading about the fast kernel source release for the Xiaomi 12 and Xiaomi 12 Pro one could think that xiaomi did a good job at complying with the GPL v2 license and providing useful sources for developers of custom kernels. But appearances are deceiving: The provided kernel sources are incomplete and partially broken.
The most important issues are that xiaomi pushed incomplete devicetree sources which are neither provided by qualcomm anymore unfortunately and the touchscreen drivers are really out of date which leads to broken double tap to wake and under display fingerprint sensor. Additionally building the kernel isn't as trivial as it sounds anymore since many kernel modules are built outside of the kernel tree now.
During the past days i have spent some time on getting a source built kernel including modules and devicetree running on Xiaomi 12.
I have sucessfully booted the kernel and uploaded this work to github.com/xiaomi-sm8450-kernel.
Using this manifest one is able to compile the OSS kernel for Xiaomi 12 and Xiaomi 12 Pro.
I hope that this can help other developers working on the Xiaomi 12 and Xiaomi 12 Pro!
For instructions to build the kernel and more details about missing sources please refer to the manifest on github.
Note that double tap to wake and fingerprint sensor don't work as is on the stock ROM.
Also note that the OSS display-devictree for Xiaomi 12 Pro is missing the configurations for some referesh rates which were supported on MIUI. This could be dumped and included from the stock dtbo.img with some effort.
If you encounter issues with this OSS kernel feel free to ask me and i will give my best to help.
To finish this thread i want to draw further attention to the fact that this is not a one-time issue with the OSS kernels for Xiaomi devices and the situation seems to get even worse. The newer Redmi K50 gaming got kernel sources which don't include any external respositories, as in no techpack drivers and no devicetree sources at all. The new Xiaomi 12S series still has not seen any open source kernel release.
I hope this project helps to set a better starting point than the xiaomi oss release to other developers for the Xiaomi 12 and Xiaomi 12 Pro.
Thanks for thus clarification Arian. Sad story....To be continued... Quo Vadis Xiaomi?
ti think the xiaomi 12 has suffered a performance squeeze... this is not because of the heat.... i have tried thermal unlocking and overclocking the CPU GPU and updating the driver 617 the result shows the real performance is vastly different many
Can you tell me which version of clang can be used to build the kernel from the sources for lineageos 20? And which commands to use? I would like to build a kernel for Kali Nethunter, but when using any of the defconfig I get compilation errors
Can you explain how to flash built kernel..? I built the kernel and I get the kenrel image but I don't know how to flash it to the device...
Would you know if this is also the case for Mi11 Ultra tree?
The OSS for the 12S and 12S Pro has just been released recently if anyone is interested in looking at it:
GitHub - MiCode/Xiaomi_Kernel_OpenSource at mayfly-s-oss
Xiaomi Mobile Phone Kernel OpenSource. Contribute to MiCode/Xiaomi_Kernel_OpenSource development by creating an account on GitHub.
github.com
I would be interested to hear if the kernel source for the 12S family is also incomplete, like the regular Xiaomi 12 series
pj_ said:
Can you explain how to flash built kernel..? I built the kernel and I get the kenrel image but I don't know how to flash it to the device...
Click to expand...
Click to collapse
You need to pack the boot, vendor_boot, vendor_dlkm and dtbo images, the easiest way is to do that within the LineageOS tree.
KeepingKeyes said:
The OSS for the 12S and 12S Pro has just been released recently if anyone is interested in looking at it:
GitHub - MiCode/Xiaomi_Kernel_OpenSource at mayfly-s-oss
Xiaomi Mobile Phone Kernel OpenSource. Contribute to MiCode/Xiaomi_Kernel_OpenSource development by creating an account on GitHub.
github.com
I would be interested to hear if the kernel source for the 12S family is also incomplete, like the regular Xiaomi 12 series
Click to expand...
Click to collapse
Yes, unfortunately this devices source situation is even worse. On all the recent releases xiaomi did not release the audio, display and camera drivers. The released touchscreen driver does not compile either, though i fixed that by guessing and the driver works now: https://github.com/xiaomi-sm8450-ke...3b9d0f69ecd2ba01674a0dc29cfdc86782bb7c9d6c3da

Categories

Resources