Building Android 11 from source, need help with some questions. - Android Software/Hacking General [Developers Only]

I have been into installing custom ROMs and rooting Android for many years now, used many mid range Android devices, never tried to build one from source (did not have good enough hardware or broadband), now I have got both and want to try building ROM from source and got many questions, any help would be appreciated.
Important questions:​(Need these answers before I start downloading Repos)
Is it possible to create any Android version Rom for any device? like I used to have Moto G2, if I can get it's source code, can I build Android 11 Rom for it? or am I missing something here?
I own Realme 5 Pro now, if I build Android 11 and flash it, is there any chance it could hard brick my device?
If I'd built Android 11 for R5 Pro, how would I know it's for my device? can I flash that firmware on another device? or vice versa? I know that flashing other device firmware can hard brick your device.
What are the chances of getting bugs after flashing? like ril not working, or maybe settings wont open, camera wont work etc. and how can I fix them for my specific device?
How can I ensure that the specific build only works for R5 Pro and not other device? like do I have to sign it with specific code or anything like that? any idea?
Not so important questions:​(You can answer it if u know)
How much download is necessary to build from source? If u have built, is there any specific download size or different for specific devices?
Also if I want to build TWRP recovery for R5 Pro from scratch how would I go about doing that? and what about giving it a different theme style?
How long will it take for my specs pc to build? any estimated idea? (specs: 16gb ddr4 3600mhz ram, Ryzen R5 3700x, Nvidia 2060 Super, and lots of space)
Can I build this Rom to be flashed via recovery or is it has to be fastboot specific?
Can I build Android Kitkat or something old for newer devices?
So these are the initial questions that comes to my mind, I am posting this thread on some diff forums too, if u have any experience regarding this please do share, any help is appreciated, Thank you.
Click to expand...
Click to collapse

Oswald Boelcke said:
@Kazinadim87
Hello and good morning,
above you indicated your intention to post this thread on other fora, too. If you mean other fora outside of XDA that's very fine. If you intend to post duplicates of this thread somewhere else on XDA, please prior to posting review the XDA Forum Rules with special emphasis on rule no. 5. Thanks for your cooperation.
Regards
Oswald Boelcke
Senior Moderator
Click to expand...
Click to collapse
Oh no I did not post duplicate of this post anywhere on XDA, I was talking about other forums like Reddit, I posted it there too.

Related

Which version of lineagerom for GT-N8020 ?

Hi guys,
i would like to upgrade my tablet Note 10.1 (GT-N8020) to a newer android version.
But I just find guides or links for 8000/8010/8013 ..
What files are working for the 8020 to install lineagerom?
Regards
Dee
deelol said:
Hi guys, i would like to upgrade my tablet Note 10.1 (GT-N8020) to a newer android version. But I just find guides or links for 8000/8010/8013 .. What files are working for the 8020 to install lineagerom? Regards, Dee
Click to expand...
Click to collapse
I don't have this device but, there is no Official LineageOS released yet for the N8020 (p4notelte).
There is, however, work being done for this device by the Official Lineage Team as seen by the following link.
https://github.com/LineageOS/android_device_samsung_p4notelte-common
This just means that you will have to be patient and an Official LineageOS will eventually be released. The Lineage Team never provides ETA's either.
I hope I had answered your question...
Good Luck!
~~~~~~~~~~~~~~~
I DO NOT provide support via PM unless asked/requested by myself. PLEASE keep it in the threads where everyone can share.
asking for GT-N8020 update in 2018
Its a shame because N8020 looks so similar to P600 model. in fact all linage rom 14 and above cater to P60x models. Wish there was at least one which did a marshmallow or nougat rom.
The one from Github can not be used ?
There is a thread here.
https://forum.xda-developers.com/ga.../rom-lineageos-14-1-adapted-gt-n8000-t3822083
It must be this ?
https://wiki.lineageos.org/devices/lt03lte
Its flashable, but...
Seems that there is problems with GPS, SIM and Bluetooth if you read the thread on XDA
https://www.android-hilfe.de/forum/...s-14-1-gt-n8000-gt-n8010-gt-n8020.899939.html
here you can download my version for the n8020 with working ril and all other functions .

How to fix Lineage Os 15.1 bugs ? Help please...

Hello,
I'm new in this forum.I want some help from developers. I'm using Xiaomi Redmi 5(rosy) which has Snapdragan 450 chipset. It comes with Android version 7.1.2 (Nougat). I want to upgrade to Android 8(Oreo) so I downloaded an Unofficial Build of Lineage OS 15.1 for my device. But after flashing I found camera,fingerprint sensor and all other sensors are not working . After booting it shows "A vendor image mismatch has been detected. Typically this means your vendor image is out of date. " . I don't know why it's showing this message.
I want to fix those bugs.How can I do that ?
Please help me.
Thanks in advance.
Sorry for my bad English
Recon_Rafsan said:
Hello,
I'm new in this forum..........
Click to expand...
Click to collapse
I don't have this device but, the following area of the forum is specific to your device.
https://forum.xda-developers.com/redmi-5
With that guidance...
Purely as a personal opinion, I would really doubt that someone would be able to support a development that they didn't develop on top of your having an Unofficial release of the LineageOS 15.1 (rosy) when there's nothing on the forum regarding this release. Also, i had tried to perform a quick search to locate this using a few methods and was unable to locate anything to even refer you to.
I'm not stating that "Nobody" will help you out but, as a developer myself, I just feel that you would have a hard time to obtain assistance.
This is why I can only refer you to the link above that's specific to your device.
I wish you the best of luck!
~~~~~~~~~~~~~~~
UNLESS asked to do so, PLEASE don't PM me regarding support. Sent using The ClaRetoX Forum App on my SM-G900V device.

How install TWRP on a unbranded tablet ?

Hi everyone,
I'm using TWRP since a while but I'm facing a new "challenge" I've buy a unbranded tablet -> https://www.aliexpress.com/item/1005001315507846.html
Spoiler: Specs
Android version
10.0
Baseband version
M0LY.WR8.W1449.MD.WG.MRV16, 2020/05/15 18:17
Kernel
3.10.72+
Build number
TAB910_JB260000_20200717
The question is how to boot on a custom recovery image ? It's seem TWRP only work by brand -> https://twrp.me/Devices/ is there no "universal" TWRP image ? or do you know an alternative to TWRP ?
I searched the forum for a dedicated TWRP topic, but could found any (always a sub of a branded device :/ ) so @Moderator Committee feel free to move my topic.
James_patageul said:
I searched the forum for a dedicated TWRP topic, but could found any (always a sub of a branded device :/ ) so @Moderator Committee feel free to move my topic.
Click to expand...
Click to collapse
Hi,
Sorry but the Moderator Committee account is not meant to exist for this kind of requests.
If you (or anyone else) think a thread is misplaced, you'd need to use the Report button and the moderation team will do the needful.
Thanks!
woodman
Senior Moderator
Moderator Committee Lead
⬆ uping my question, still no ideas how to solve this...
I need help like this questions. Pls.
I've bought smartphone from wish.com
And I wanna install TWRP but no brand
https://twrp.me/Devices/ is there no "universal" TWRP image on that. How to solve this?
Thanks for attention and help
Here you go:
[CLOSED] I Will build TWRP for your device!
I wanna build twrp for your device! Pls give info about your device! if possible give stock firmware!
forum.xda-developers.com

[ROM][UNOFFICIAL] LineageOS 17.1 for OP 7t (hotdogb) [NOT WORKING ATM]

LineageOS is a free, community built, aftermarket firmware distribution of android, which is designed to increase performance and reliability over stock android for your device.
All the source code for LineageOS is available in the LineageOS Github repo. And if you would like to contribute to LineageOS, please visit LineageOS Wiki.
Disclaimer: This is the first time I post a ROM, and I'm not able to even test it myself at the moment. It may not even boot, kill your cat or make you lose your stimulus check. I'm putting it out here because there is no lineage OS for 7t (but there is for 7t pro). This is based on the device tree of the 7t pro, I know the pro ROM boots fine on regular 7t, but due to motorized camera setup on the pro, the camera is completely broken on regular. This is the (only) thing I was trying to solve.
ROM: <link removed as not working (yet)>
lineage recovery: https://drive.google.com/uc?export=download&id=1O63wABMA-el8iiYOPkHhhc_zFvUiuJfV
device sources: https://github.com/joske/android_device_oneplus_hotdogb
kernel sources: https://github.com/LineageOS/android_kernel_oneplus_sm8150
Credits:
LineageOS team
StatiXOS (for reference to their hotdogb device tree)
Update:
What works:
ROM boots
wifi works
Lineage Camera works!
audio/video playback
fingerprint
What doesn't work:
GSM/4G does not work, device crashes hard when you try to use the dialer
GCam crashes
So clearly this is pre-alpha and you should not flash it ;-). Will try to fix.
reserved
Has anyone tried this yet?
KashMiester said:
Has anyone tried this yet?
Click to expand...
Click to collapse
Tonight as work blocks downloads
Wow gotta try this out tonight
don't flash, it's not working. I've updated the OP. I'm rebuilding with muppets vendor blobs. Will report back (probably tomorrow as build takes hours and it's already late).
josdehaes said:
don't flash, it's not working. I've updated the OP. I'm rebuilding with muppets vendor blobs. Will report back (probably tomorrow as build takes hours and it's already late).
Click to expand...
Click to collapse
Thanks for the update
It booted but then powers off during setup (right past WIFI password). Seemed fast though
good
Sorry guys, I'm struggling with this. I guess I created this thread (way) too early.
Or it doesn't boot, or it boots, but no GSM and crashes quickly. I continue to learn, hopefully in another 100 attempts I'll have something usable . Are there any people here wanting to help out by testing (most probably broken ) builds? It's difficult for me to keep flashing my only phone (I need it to be working).
I'm now trying with 18.1. Lineage OS does not have a kernel or blobs tree for android 11 for sm8150, but yaap does. Maybe it's a stupid idea, but trying anyway
josdehaes said:
Sorry guys, I'm struggling with this. I guess I created this thread (way) too early.
Or it doesn't boot, or it boots, but no GSM and crashes quickly. I continue to learn, hopefully in another 100 attempts I'll have something usable . Are there any people here wanting to help out by testing (most probably broken ) builds? It's difficult for me to keep flashing my only phone (I need it to be working).
I'm now trying with 18.1. Lineage OS does not have a kernel or blobs tree for android 11 for sm8150, but yaap does. Maybe it's a stupid idea, but trying anyway
Click to expand...
Click to collapse
THREAD CLOSED as placeholders (i.e. threads without a download possibility) are not accepted!
Please advise the moderators team (best via the report function) to re-open your thread when ready to provide a download link.
Please refer to this section of the "Device Forum Rules (Read before posting)":
ROMs, Kernels, Recoveries, & Other Development Section
This section is fexclusively reserved for ROMS, Kernels, Recoveries etc. if they are own development
Try to keep the device forum CLEAN! No offtopic posting and no questions posted in this section/sub-forum.
Use the report button in the lower left corner of an offending post or PM/conversation to let us mods know we need to take action. Don't take matters into your own hands!!!
Sources need to be posted for all kernels!!! Also for all ROMS where license demands it. Refer to post no. 2 above.
You need to use TAGS like [ROM] or [KERNEL] and so on as used in all dev forums throughout XDA (see post no. 4 below).
Any disputes between developers should be handled by PM; try to solve the issue amicably via PM. No public posting in a any thread regarding these matters.
Rom issues should be discussed within their respective threads.
Thread titles should ALWAYS coincide with ROMS ALREADY AVAILABLE FOR DOWNLOAD!!! No advance notification of incoming ROM through thread title. A changelog for the yet unreleased Rom can be included in the OP or in another post CLEARLY MARKED as EXPECTED CHANGELOG.
All threads posted in this section/sub-forum and that are NOT about own ROMS, Kernels, Recoveries etc., or R&D in general will be closed or deleted. Posters that will choose to disregard the previous guidelines will be infracted.
Click to expand...
Click to collapse
I wish you success in getting your ROM running without issues soon. Happy developing.
Stay safe and stay healthy!
Regards
Oswald Boelcke
Forum Moderator

Question Help porting LineageOS (or any rom) for ROG Phone 5

Hi,
I wanted to port LineageOS for my ROG Phone 5 but I don't know how to code C++.
We already have vendor and kernel from official website but we don't have a device tree (we have but for TWRP not Android).
So I was wondering if someone would help me porting a rom for this phone.
Thanks by advance
@Alex2008Ex
I've changed the prefix of your thread from "Development" to "Question" as the thread didn't qualify for the first one. Please review the sticked guidance prior to your next posting and don't change the prefix back. Thanks for your cooperation.
Regards
Oswald Boelcke
Senior Moderator
As an alternative/interim solution, if your goal with Lineage is to get get Google off from your device, the stock ROG 5 rom can be signature spoofed to run MicroG and optimized/debloated for an ultra lean setup for max performance & battery life. The stock rom also has a number of device specific features that you'd probably want to keep..
Andrologic said:
the stock ROG 5 rom can be signature spoofed to run MicroG and optimized/debloated for an ultra lean setup for max performance & battery life.
Click to expand...
Click to collapse
I don't really understand that (I'm french)
And I want to do that just for fun because I just want to modify it for fun.

Categories

Resources