yashsingh1/xdaforums huggingface dataset:
[Android General] krishV:
Sync failed error cannot fetch Lineage os/android_device_xiaomi_hydrogen it says force repo sync and I have tried it and getting same error ,Ian trying to build pixel experience (android 9.0 pie) for mi max hydrogen

And I have another doubt their is unofficial 8.1.0 pixel experience ROM zip for mi max hydrogen in that how to extract the img file and can i use that files for developing the ROM to pie

This is link of unofficial 8.1.0 pixel experience ROM

https://androidfilehost.com/?fid=746163614322268100
[Android General] @vjnexus:
Bro u r device tree doesn't contain 9.0 branch

Search another device tree

In local manifest u didn't create revision ( means which branch )
[Android General] krishV:
Then how to do it

any full video tutorials please I am new to this

I want build for mi max hydrogen I have only that device please help me making device tree for building android 9.0

And can I extract IMG from ROM that can work for upgrading to Android 9.0

What pc specs should require for build custom ROM (not on server local machine)
[Android General] @vjnexus:
Check at op fst post in that watch nougat,Oreo,pie section
[Android General] beast97:
I removed the magisk and recomplie the rom once again even though its not booted

log attached

https://pastebin.com/WsWdcRHM
[Android General] AlaskaLinuxUser:
You should pull the tombstones for more info. Here a video on how to do that:

https://www.youtube.com/watch?v=yMN...X1yE1nnhWBrZtuVz5YC2OPfQVVp&t=38s&app=desktop

The problem says it is a null pointer reference in surface flinger. But perhaps the tombstones will give you more info.

Have you web searched every line with the word "error" or "failed" in it. That will show you a lot. :good:
[Android General] AlaskaLinuxUser:
I'm sorry, I don't know how to help you with this.
[Android General] @vjnexus:
What is surface flinger

If it's crashes how to fix it??
[Android General] kush57:
I built PE ROM for onyx . there's a hotspot error it switches off itself immediately but when mobile data is turned off hotspot works fine. what exactly might be triggering the problem
[Android General] rohitsinha12:
error:https://del.dog/sewojosibu.cs

Rom Source : https://github.com/Havoc-OS

device tree : https://github.com/dev-harsh1998/android_device_lenovo_a6000

kernel source : https://github.com/dev-harsh1998/android_kernel_lenovo_msm8916

vendor : https://github.com/dev-harsh1998/proprietary_vendor_lenovo AKLU please tell any solution for it [MENTION=7026648]AlaskaLinuxUser[/MENTION]
[Android General] prabhjot368:
remove weather provider package from rom source and compile again..
[Android General] krishV:
Sir can you help me with creating android pie device tree for mi max hydrogen are they tutorials for this please give me
[Android General] AlaskaLinuxUser:
SurfaceFlinger is an Android system service, responsible for compositing all the application and system surfaces into a single buffer that is finally to be displayed by display controller.

Well, how to fix it if it crashes depends on why it crashes. E.g., if your car breaks down, and you ask me how to fix it, I'd need to know what stopped working. :laugh:

Logs would be useful...... :silly:
[Android General] AlaskaLinuxUser:
Line 6 and 7 of your log tell you the problem:

home/rohit/havoc/out/target/common/obj/APPS/WeatherProvider_intermediates/AndroidManifest.xml:31: error: resource integer/google_play_services_version (aka com.android.providers.weather:integer/google_play_services_version) not found.

error: failed processing manifest.

In the manifest for the weather app, on line 31, it is looking for a resource called Google play services version, and it can't find it. You either need to provide this resource, or cut out the call for it, or ditch the weather app to continue the build. :good:
[Android General] prabhjot368:
sir can you make a guide or help me to update custom kernel from N to O,P .. my device has a custom kernel and i really want all the features of that kernel to work on oreo but i can't add them one by one bcoz it will require so much time.. is it possible to upgrade it?
[Android General] kush57:
Logs would be useful...... :silly:[/QUOTE]
[Android General] kush57:
[/QUOTE]

Btw sir your videos are very helpful thanks for the good work
[Android General] krishV:
Sir can you help in developing and upgrade to pie device tree for mi max hydrogen please if their any tutorials provide me a link
[Android General] AlaskaLinuxUser:
Has it been built before, and you want to upgrade the tree? That is this series:

https://www.youtube.com/playlist?list=PLRJ9-cX1yE1lm9qFpVkOBO1oFJVFFK-fk

Is a device that has not been built before? Then watch these videos:

https://www.youtube.com/playlist?list=PLRJ9-cX1yE1nnhWBrZtuVz5YC2OPfQVVp

It will take longer to upgrade the old kernel, then to piece in the things you want to the newer kernel. If you need kernel help, I recommend these videos:

https://www.youtube.com/playlist?list=PLRJ9-cX1yE1m7MN7uSNCJl-phEs8ZmKsB

Btw sir your videos are very helpful thanks for the good work[/QUOTE]

Thanks, glad the videos are helping.

For the group: I really recommend to everyone to watch through the videos. There are over 24 hours of HD video now available that explain many many things, so definately worth taking a look at. The Playlist section of my YouTube channel shows you the videos broken up into groups that make what you are trying to do easier to find. :good:
[Android General] @vjnexus:
How to adapt the device tree according to the ROM???

https://github.com/Unlegacy-Android/android_device_lge_hammerhead

Can u explain with the above device tree as an eg..??
[Android General] beast97:
ROM DIDN'T BOOT LOGCAT ATTACHED help me@OP

and one request :

open telegram grp so that it could be easy for us to ask doubts regarding this

logcat:

https://pastebin.com/qaCKy65C
[Android General] AlaskaLinuxUser:
Please be more specific. What would you like to do?

Beast, I see the errors, but I want to help you see the errors.

Search your own log. Use the keywords "fail" "error" "crash". Since the phone crashes, I recommend that you start there. Are there any fatal errors that happen during or leading up to a crash? (Hint: yes there are.) What does the phone say is the problem in the logs? :good:

As for telegram. I used to do that, but unfortunately, it takes too much of my time, and I become a slave to those who just want me to do all the work for them. :laugh:

The purpose of this thread is so that the viewer/reader will then learn how to fix it themselves. :highfive:
[Android General] zelendel:
That is exactly why things like chef central and xda University were started but didn't go anywhere. Too many wanting the work done for them. This is also why many teams now have exams before you can join.

So Sad. Really.
[Android General] @vjnexus:
@OP

I want to change the device tree according to the aosip ROM

https://github.com/Unlegacy-Android/android_device_lge_hammerhead

After adding the dependencies , the tutorial said we need to edit dt like .mk,. dependencies according to the rom

Can u explain what are all the things to change & y we need to change those things

Explain with the above tree as an eg
[Android General] rohitsinha12:
I have to add this line <uses-sdk android:minSdkVersion="24" android:targetSdkVersion="24" />

?

Or start a dirty build bcz the lead developer of Havoc-OS said to start a dirty build
[Android General] IvanHephaestus:
Hey, i just realized that we need porting newer version of kernel tutorial. i have 3.10 and how to port 3.18 or newer version.
[Android General] AlaskaLinuxUser:
Great question. I have a video tutorial about that here: Videos 50 through 54 of this playlist cover that:

https://www.youtube.com/playlist?list=PLRJ9-cX1yE1l6eu-vkgsj61U-Zv3fjzwZ

Sounds like you already spoke with the developer. You should always follow the advice of a senior developer when given. Try his solution. If that doesn't work, then either declare the version, or remove the weather app from the rom.

You and me both! :D

Actually, upgrading a kernel from one version to another is incredibly difficult. Proof of this is that hardly anyone ever does it here on XDA. The reason for this is that the manufacturer/vendor specific parts that are in the kernel will need to be "adjusted" to match the updated kernel source, and often requires great skill. Greater skill than I posses....

In the advanced video series for upgrading from Marshmallow to Nougat, I upgraded a kernel from 3.18.24 to 3.18.31, and you can watch that here:

https://www.youtube.com/watch?v=sdio3_Qh12Y&t=0s&list=PLRJ9-cX1yE1lm9qFpVkOBO1oFJVFFK-fk&index=11

But it took me over a week, just to iron out the bugs when upgrading the revision number. (3.18.31 = major.minor.revision) So, to make a "minor" change from 3.10 to 3.18 would take considerable skill, time, and effort on your part.

A better bet is finding a newer kernel for another phone that has the same SoC, which will help, but there will still be vendor/manufacturer files from your old kernel that need updating to match. We would need a video tutorial from Franco or Buefella to do something this intricate, and I don't know that you could repeat the process in a cookie cutter fashion for others to try it as well, as the phone hardware will be so unique to that phone and kernel versions.

Consequently, updating your kernel for your desktop computer is easy. Most of the hardware code for your desktop computer is maintained and updated as the kernel is updated in the mainstream. Most cell phone hardware is not, unfortunately. Often because it becomes obsolete so quickly, and partly as a money scheme to get you to buy newer phones. Hope that makes sense. :good:
[Android General] Sukrut4778:
Thx for sharing
[Android General] Kengat:
Thanks for this. Will definitely take a look.

Stupid question : how difficult is it to update a security patch from an already existing rom that was abandoned by the developer?
[Android General] _conors_:
Thank you a lot, the button is not enough to say thanks to your awesome work.

Regards
[Android General] AlaskaLinuxUser:
You are welcome, I hope it helps!

If you mean building a newer version of the same ROM, same version of android, but just a more recent build with more current security patches, that is usually very easy.

If you mean upgrading from one version of android to a newer version, that is more difficult, but I have videos for that too. :good:

Thank you for the kind words! :cool:
[Android General] Kengat:
Do you cover the security patch part? I intend on following all the lessons anyways but I'd love to be able to update some old rom security patch and keep the same android version and such :D
[Android General] AlaskaLinuxUser:
Ah, I understand now.

Typically, the ROM developers, e.g. lineage os or aosp, update the security patches. So if you build the ROM again, it will have newer patches.

However, at some point, ROM developers stop updating for old versions of android. Then, of you want to update them, you have to do it yourself. I have an article I wrote about how to do that (with examples) on my website. Here is a link to that article:

https://thealaskalinuxuser.wordpres...custom-rom-source-code-with-security-updates/

I need to make a video on that as well. But for now, there is the guide I wrote a while back. :good:
[Android General] AlaskaLinuxUser:
If you haven't seen it already, the OP had been updated with a new series that in working on: how to make your own app which executes a super user or privileged command!

There are times when you will need a custom app so the user can execute a command, like adjusting settings for your custom kernel, or something like that.

I'll be covering everything from start to finish, and minimal code knowledge is required, so feel free to check it out! :)
[Android General] Phantom Thief:
This looks so complete! Very good job I'll be taking a look at this later
[Android General] AlaskaLinuxUser:
Thanks!
[Android General] beast97:
[MENTION=225651]OP[/MENTION]

in device tree what is vendorsetup.sh??

in some dt it not seems to be present

som dev said without that it won't list the device in lunch combo

if it is not present in device tree wat should i do??
[Android General] AlaskaLinuxUser:
Beast,

He's right. Here is an example from my device tree for the blue life one x2:

add_lunch_combo lineage_life_one_x2-user

add_lunch_combo lineage_life_one_x2-userdebug

add_lunch_combo lineage_life_one_x2-eng

So when you type lunch or brunch, your device will show up in the list. This is really just for convenience. You can still build it with the full command:

$ lunch lineage_life_one_x2-eng

But for completeness, I recommend you make one for your device tree. But just know it is not mandatory.
[Android General] DJABHipHop:
Here how i do it

for i in eng userdebug user; do

add_lunch_combo lineage_matissewifi-${i}

done
[Android General] Champdroid:
Thank you so much for doing this. Just watched the intro and installed Ubuntu and excited to learn :)
[Android General] @vjnexus:
In device tree, what is Androidproducts.mk??

What are all things to be added while adapting tree to another ROM??
[Android General] AlaskaLinuxUser:
Thanks! I'm glad you are diving in, we need more developers! Be sure to watch through the many different playlists. I know that there is now over 24 hours of video available, but it really is worth watching all of it to get the most out of your Android build experience! Some of the early vids are low quality, but then I started making HD videos, so it gets better. :good:

Great question! Here are a couple of videos to watch:

https://www.youtube.com/watch?v=CyTM77AgPNk&t=8s&index=53&list=PLRJ9-cX1yE1l6eu-vkgsj61U-Zv3fjzwZ

https://www.youtube.com/watch?v=T1IOe5QwYJs&t=24s&index=55&list=PLRJ9-cX1yE1l6eu-vkgsj61U-Zv3fjzwZ

I am hoping to redo these early videos in HD some day. But this should get you started.... :good:
[Android General] mehrshad.shafaghi:
Hello,

First I wanted to thank you for your awesome work.

Second, I had a few questions. I'm a newbie so I wanted to start learning the stuff from the beginning.

Which ones should I start watching first? The older non-HD videos?

There's another problem. I've installed ubuntu on my ssd. Since I heard the sources are huuuge, I also dedicated around 130GB storage to the ubuntu partition. Would that be enough?(cause that's all I can give from the ssd)

If not, can I download them to some other storage like my HDD which is installed alongside with the ssd?
[Android General] DJABHipHop:
Thank for the video on making a device from scratch but after watching all the video I have a question.

How does one patch the microphone on a device where the microphone barely pick any sound or when the device does nothing get recorded to the audio file?
[Android General] Platum:
Thanks for the video
[Android General] beast97:
@OP

finally i compiled and booted the rom thanks to OP

but wifi seems to be not working.

in u r playlist i saw the (wifi fix) video.But in my device tree there is no such thing name as wifi

wat should i do now??

device tree :

https://github.com/Krizthian/device_lge_hammerhead
[Android General] AlaskaLinuxUser:
Thanks! The older non HD videos are still chalk full of great information, and I recommend them, but I redid a lot of the same material in HD. The HD videos cover a lot of the same things and are really good as well, so those would work too. So whatever works for you, they both will be good.

You should pull logcat logs while using the mic and then we could possibly see what is wrong.

You're welcome!

The only way to know would be to look at the logs.
[Android General] DJABHipHop:
Thank I'll pull a logcat tomorroew and post here fore view.

BTW I cant seam seam to find your vidoe on pulling clean logcats
[Android General] AlaskaLinuxUser:
Here are some:

https://www.youtube.com/channel/UCnGqG_jyyXmTzdamBpKfeHA

https://www.youtube.com/watch?v=jHxheS9CVqQ&index=10&list=PLRJ9-cX1yE1l6eu-vkgsj61U-Zv3fjzwZ&t=1s

Hope that helps!
[Android General] Svirusx:
I have success compiled kernel for galaxy s7 oreo with support to atheros htc wifi usb dongles.

I put firmware htc_9271.fw to /vendot/firmware/

and after i plugin my usb wifi card i all time get kernel panic and reboot

This kernel panic is only at Oreo Nougat and Marshmallow working fine with this firmware

I got this htc_9271.fw from vendor website.

I tried another ones from internet but is too kernel panic.

Maybe you know what is difference between Nougat en Oreo which make kernel panic in my problem?

In my topic can you see log van last_kmsg:

https://xdaforums.com/android/help/galaxy-s7-oreo-kernel-problem-t3873459

Thank you in advance for your help.
[Android General] AlaskaLinuxUser:
Oh, also you will need more space. Usually out is recommended to have 250gb of space for building newer versions.
[Android General] UnOrdinary:
Awesome

Thanks For Video Guide :)
[Android General] Hemang Maan:
Thanks A lot bro...... Loving ur work❤
[Android General] Apih95:
Thanks a lot bro
[Android General] SoapDev2018:
Mini PC

[MENTION=7026648]AlaskaLinuxUser[/MENTION] is it possible that I can compile ROMs by using a mini pc(2GB of RAM and 32GB of storage), connect it to an external hard drive and build? Or do I need to have more amount of RAM?:confused::confused:
[Android General] muralee krishna:
can a custom rom be creating by installing Ubuntu on my android phone (lenovo z2 plus) because i don't have a pc or laptop but i know how to install linux os .i once installed kali os
[Android General] AlaskaLinuxUser:
You both have a similar question, so I will answer them together:

I built all my Android Lollipop and Marshmallow roms which I released on a laptop with a dual core 2 ghz processor with (originally) 2 gb of ram. With enough determination, anything can be done. It took about 12 hours to compile every time.

That said, when you get to Nougat, you will usually run into ram problems with using jack (Jack is an Android toolchain that compiled Java source into Android dex bytecode). You can get around that by changing certain settings, but it did become a bit painful for me, so I was fortunate to get another system as a gift.

I have used a USB external drive for compiling before, but it will slow down your process and double the build time.

So, build with a minipc? Sure, I think it can be done and might be fine for starting out to see if this is something you like to do. Building with a cell phone? Well, I don't think it can reasonably work. However, the sky is the limit! Keep in mind, the vm software you run on your phone typically uses an arm repository, so some of the build tools are only in 32 or 64 bit for intel/amd processors, but I'm not sure.

An alternative is to check out this guide: https://xdaforums.com/chef-central/android/guide-how-to-build-rom-google-cloud-t3360430

Using Google's online cloud hosted machines, you can get a free machine for several months to test out building. There are other sites that offer these services as well, but the guide covers Google Cloud.

Edit:

Typically, you can access a vm through vnc apps or rdp apps on your phones, or through web interfaces. So if you don't have a computer, this might be a good way to go.

Hope that helps!
[Android General] :
Another sick tutorial video would be syncing CAF sources. eg syncing https://source.codeaurora.org/quic/la/platform/manifest/commit/?h=LA.UM.6.3.r4-04300-sdm845.0 and how to add your device specific code (device tree, kernel, vendor) and add that to the build system & lunch menu.

[MENTION=7026648]AlaskaLinuxUser[/MENTION]
[Android General] riteshrk.aec:
[MENTION=7026648]AlaskaLinuxUser[/MENTION]

I am building rom for Xiaomi Mi A1(tissot). I have downloaded the device tree and placed it under device folder.

I have also downloaded and placed the "proprietary_vendor_xiaomi-lineage-15.1" in the vendor folder.

When I am selecting the option of userdebug while building rom. it is giving error - "build/core/product_config.mk:227: *** Can not locate config makefile for product "lineage_tissot". Stop."

Please suggest. Thanks in Advance.
[Android General] AlaskaLinuxUser:
Hi riteshrk,

The error is telling you that when it reads all the lineage.mk files in the device trees, it is not finding one for lineage_tissot. In your device folders do you have a lineage.mk file? And in that lineage.mk file is there a "PRODUCT_NAME := lineage_tissot"?

If not, I recommend that you watch through the whole video series, Lollipop through Oreo, and pay special attention to the videos for adding a new device (both in Marshmallow vids and Nougat vids). The Nougat vids for adding a new device also includes changing from one custom rom to a different custom rom, if the device tree you took was from a different custom rom. But without watching the earlier videos, some of the material in the Nougat videos will not make sense.

Hope that helps!
[Android General] Vaibhav Puri:
Device Tree

Thank you so much sir, for helping newbies out.

I just want to know how to build Device Trees on our own...
[Android General] shan9656:
[MENTION=7026648]AlaskaLinuxUser[/MENTION] Thank you very much for making this tutorial.

I'm getting an error while running 'make clobber'

Checking build tools versions...

Starting build with ninja

ninja: Entering directory `.'

[100% 1/1] Entire build directory removed.

FAILED: /bin/bash -c "(rm -rf out/* )"

rm: cannot remove 'out/host/linux-x86/bin': Directory not empty

ninja: build stopped: subcommand failed.

build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed

make: *** [ninja_wrapper] Error 1