yashsingh1/xdaforums huggingface dataset:
[Android General] AlaskaLinuxUser:
Alright guys, I've started a thread for more advanced topics, including over 4 hours of video! Be sure to check it out here:

https://xdaforums.com/android/general/guide-intermediate-to-advanced-custom-t3823927

Also, the new thread has higher quality videos for both downloads and the YouTube channel. Thanks for your great questions and support!
[Android General] NotesOfReality:
Man I'm just OVERWELMED by gratitude thank you very much.

You should have floods of thanks.
[Android General] gloryearth:
thank you for being willing to share your knowledge for us ?
[Android General] AlaskaLinuxUser:
Great questions.

In the thread: https://xdaforums.com/galaxy-s3-mini/development/rom-cyanogenmod-14-1-gt-i8190-t3520752

If you scroll down, you will see where he says exactly what to put in your repo local manifest file. So download the lineage os source and once repo sync is done, open the .repo folder, and put in that local manifest that he made. Then you will have everything you need to build it.

If you have questions about how to do that, I recommend that you watch my video series first, then if you have more questions, hopefully I can answer them.

Also notice that in the s3 mini thread, he says before you build you have to run the special script first.

Hope that helps!
[Android General] AlaskaLinuxUser:
Great work getting started. Be sure to reference back to the video series as you go. I highly recommend that you watch the whole series. I know that 9 hours seems long, but there is a lot of good information in there.

I mention that because in there I address how to look for and fix errors. Your error is here:

FAILED: /bin/bash -c "prebuilts/misc/linux-x86/flex/flex-2.5.39 -o/home/eddi/android/lineage/out/host/linux-x86/obj/STATIC_LIBRARIES/libaidl-common_intermediates/aidl_language_l.cpp system/tools/aidl/aidl_language_l.ll"

flex-2.5.39: loadlocale.c:130: _nl_intern_locale_data: Zusicherung >>cnt < (sizeof (_nl_value_type_LC_TIME) / sizeof (_nl_value_type_LC_TIME[0]))<< nicht erf?llt.

Aborted (core dumped)

I think. Since I don't read (German?).

The key word to search for is "Failed" "Error" and "Stop". Typically one of those will lead to your problem. Then you can Google or DuckDuckGo, or Bing your problem.

In this case, it is also a good idea to search this thread, because I believe the answer you need is in post #61 of this thread. Let me know if that helps, and keep up the good work, but be sure to watch the whole series of videos.
[Android General] vernzera:
thanks for the guide mann...;)
[Android General] MrRob0t:
hehe, sorry, TRUST me, I will be watching them all!!

I just wanted to get a little insight on setting up my build environment. I've watched almost all of the older vids.

They are very well made. Nice and easy to follow along with.

I was able to build on ubuntu 16, but 14 is nice. Thank you for fast response! :good:
[Android General] DJABHipHop:
Every time i open the camere i get this error 12-20 22:49:32.457 4768 4768 I CameraManagerGlobal: Connecting to camera service

12-20 22:49:32.519 4768 4768 D CAM_Activity: Camera API 2 supported: false

12-20 22:49:32.519 4768 4768 D CAM_Activity: Camera API 2 enabled: false

12-20 22:49:33.301 4768 4811 V CameraHolder: open camera 0

12-20 22:49:33.329 4768 4811 E CameraHolder: fail to connect Camera:-1, aborting.

12-20 22:49:33.859 4768 4768 E AndroidRuntime: java.lang.RuntimeException: Unable to resume activity {org.cyanogenmod.snap/com.android.camera.CameraActivity}: java.lang.ArrayIndexOutOfBoundsException: length=0; index=0

12-20 22:49:33.859 4768 4768 E AndroidRuntime:	at com.android.camera.CameraActivity.onResume(CameraActivity.java:1760)

12-20 22:49:33.879 580 2854 W ActivityManager: Force finishing activity org.cyanogenmod.snap/com.android.camera.CameraActivity

12-20 22:49:33.894 580 2854 W ActivityManager: Force finishing activity org.cyanogenmod.snap/com.android.camera.CameraActivity

12-20 22:49:33.894 580 2854 W ActivityManager: Duplicate finish request for ActivityRecord{3228050 u0 org.cyanogenmod.snap/com.android.camera.CameraActivity t173 f}

12-20 22:49:34.184 580 652 I WindowManager: Screen frozen for +1s451ms due to Window{ae305e3 u0 Application Error: org.cyanogenmod.snap}

12-20 22:49:34.394 580 645 W ActivityManager: Activity pause timeout for ActivityRecord{3228050 u0 org.cyanogenmod.snap/com.android.camera.CameraActivity t173 f}

12-20 22:49:35.419 4249 4854 W System.err:	at android.hardware.Camera.<init>(Camera.java:570)

12-20 22:49:35.419 4249 4854 W System.err:	at android.hardware.Camera.open(Camera.java:404)

12-20 22:49:35.432 4249 4854 W System.err:	at net.sourceforge.opencamera.CameraController.CameraController1.<init>(CameraController1.java:62)

12-20 22:49:35.435 4249 4854 W System.err:	at net.sourceforge.opencamera.Preview.Preview.openCameraCore(Preview.java:1511)

12-20 22:49:35.452 4249 4854 W System.err: net.sourceforge.opencamera.CameraController.CameraControllerException

12-20 22:49:35.453 4249 4854 W System.err:	at net.sourceforge.opencamera.CameraController.CameraController1.<init>(CameraController1.java:68)

12-20 22:49:35.453 4249 4854 W System.err:	at net.sourceforge.opencamera.Preview.Preview.openCameraCore(Preview.java:1511)

12-20 22:49:45.102 580 645 W ActivityManager: Activity destroy timeout for ActivityRecord{3228050 u0 org.cyanogenmod.snap/com.android.camera.CameraActivity t173 f}

12-20 22:49:45.122 580 645 W ActivityManager: Activity destroy timeout for ActivityRecord{770fe23 u0 org.cyanogenmod.snap/com.android.camera.PhotoCamera t172 f}

is it a kernel bug or vendor bug
[Android General] lucki1000:
I have a problem with lunch i have downloaded the android 8.1 source of Pixel Experience and added to the device folder my Motorola device tree and the vendor tree (vendor tree to the vendor folder), and now if i type

lunch aosp_cedric

i get this error :

vendor/opengapps/build/config.mk:3: *** "GAPPS: TARGET_GAPPS_ARCH is undefined". Schluss.
File "vendor/aosp/build/tools/roomservice.py", line 166
if 'branch' in repo:
^
TabError: inconsistent use of tabs and spaces in indentation
vendor/opengapps/build/config.mk:3: *** "GAPPS: TARGET_GAPPS_ARCH is undefined". Schluss.
vendor/opengapps/build/config.mk:3: *** "GAPPS: TARGET_GAPPS_ARCH is undefined". Schluss.

** Don't have a product spec for: 'aosp_cedric'
** Do you have the right repo manifest?

My device and vendor tree from Pixel Experience

Motorola vendor tree Pixel Experience

Motorola device tree Pixel Experience

Downloaded source:

Where I got the source code
[Android General] krishV:
Once you need to compare your device tree with similar once arch(architecture like arm ,arm64 ) of gapps may not be defined in device tree and also you should clone the kernel in kernel folder of Moto Cedric

https://github.com/Wzedlare/android_kernel_motorola_msm8937/tree/lineage-15.1

And also update the kernel tree with comparing other device

You need to add pats in pixel.xml file go to .repo(hidden)->local manifest-> edit pixel.xml file if not their create it :good:
[Android General] lucki1000:
the local manifest folder in .repo what's the syntax must it local_manifest/ or what? because i haven't it.
[Android General] fugee279:
I'm trying to build for Blu Grand M2 so what would I type for that ?
[Android General] MrRob0t:
[MENTION=7026648]AlaskaLinuxUser[/MENTION]

Hi my friend, me again :)

so I set everything up following your vids.

I know my PC is capable of making these nougat roms as I was making N leneage, RR, and crdroid roms, then had an issue and found this amazing thread! everything happens for a reason, right?

so I tried building and it tapped out at about 30% made with errors pertaining to Jack. I spent all night, literally, lol, no sleep :(

but I basically ended up doing this, which is what I believe I remember doing before it stopped making crdroid. I can still build lineage :confused:

I added these to my ~./bashrc

# ccache
export USE_CCACHE=1
export PATH="/usr/lib/ccache:$PATH"

# jack
export JACK_SERVER_VM_ARGUMENTS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx4g"
export ANDROID_JACK_VM_ARGS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx4g"

it got to 86% done. very close. I can see the finish line, just can't cross it! haha

anyway, here is the pastebin

I think it has something to do with Jack still.

another thing I found for some users having luck was to edit .jack-server/config.properties and change jack.server.max-service=4 to jack.server.max-service=1

I am trying that right now. I left the lines in ~./bashrc, not sure if I should have taken them out or not.

any advice is highly appreciated!
[Android General] AlaskaLinuxUser:
Here's one I made before, just replace with your device needs: https://gitlab.com/alaskalinuxuser/local_manifests

Correct me if I'm wrong, but I don't believe that there are any custom roms for the Blu Grand M2, so you would have to build one from scratch.....

Great work! However, your current issue is not a jack problem..... Always search the output for 'failed' and 'error'

Here is your problem from lines 283-285 of the pastebin log:

ERROR: /home/chris/android/crdroid/packages/providers/DownloadProvider/src/com/android/providers/downloads/DownloadStorageProvider.java:326: The method setFilterByString(String) is undefined for the type DownloadManager.Query
ERROR: /home/chris/android/crdroid/packages/providers/DownloadProvider/src/com/android/providers/downloads/DownloadProvider.java:1119: The method update(SQLiteDatabase, ContentValues, String, String[]) is undefined for the type SQLiteQueryBuilder
ERROR: /home/chris/android/crdroid/packages/providers/DownloadProvider/src/com/android/providers/downloads/DownloadProvider.java:1298: The method delete(SQLiteDatabase, String, String[]) is undefined for the type SQLiteQueryBuilder

So I'll explain with the first one: /home/chris/android/crdroid/packages/providers/DownloadProvider/src/com/android/providers/downloads/DownloadStorageProvider.java line number 326 says the phrase setFilterByString(String), but this method, this "call to do something" has never been defined. The compiler doesn't know what this is. So, you need to fix that.

All three of your errors are in the package for the DownloadProvider.

You have three methods to fix this:

#1. Declare what setFilterByString means in some header file or earlier in this java file. E.g., define it for the compiler. (Takes skill, you need to know what it is.)

#2. Try removing it and seeing if everything compiles and works. (Generally not a good idea, it was probably there for a reason.)

#3. Swap in the Download Provider package from LineageOS. (Might work, or it will be a big headache.....)

This is not a problem with your device tree, but rather an issue with CRDroid's source code. :good:
[Android General] rajesh@xda:
What is encrypted kernel source.?
[Android General] MrRob0t:
Dude! thank you SO much. You truly are way too amazing. Donations are coming your way soon, bro! You've helped me sooo much, and there's still sooo much more to learn, and so well made, AND with extra help like this on the side. damn. I can't thank you enough. God Bless you brother. We are very lucky to have you :angel:
[Android General] Einfach_Yannic:
Huawei p8 lite smart (tag-l01) lineagueOS_n (cm-14.1)

Hi,i'm the guy from the comments under your "when and where to post a question" video.

I didnt instandly write a question Herr after i saw your comment because i had school.

Jesterday i did setup e Linux (ubuntu 14.04lts) PC with 8gb off RAM and a 500gb HDD and i followed your Android Rom built tutorial( https://www.youtube.com/playlist?list=PLRJ9-cX1yE1m8k9gztsQnnXDg1G4X1f6z ) but now where after over 2 ours i arrived at the part where you have to select a device for the brunch command i noticed that my device isnt listed,i found someone in the comments with the same Problem and i found your link to the "custom edits: add a New device" Video but i didnt understand anything because it seemt all really complicated and it was really difficult to understand you with the audio quality off the Video.

I also found another Rom built for my device on the Internet (cynagogen mod 13 i think) with Android 5.1(same Version as the stock rom) and i tried it (i flasht it twrp and got a beckup off the stockrom) but the mobile data,Bluetooth and radio didnt work.

Herr is a link off the Rom: https://xdaforums.com/android/development/rom-cyanogenmod-12-1-huawei-gr3-p8-lite-t3454677

It would be really nice if you could help me out building a Rom for my device because i'm an absolute noob with Linux (i had to watch tutorials on how to use the terminal before i new how to change directories)and i also never did Programm sometging in my live.

It would be really nice if you would rispond to this comment and help me out,the best thing would be if we could get in contakt via discord,Skype ore teamspeak because as a noob sometimes there are really simple questions that pop up that a tutorial cant rispond because its expect you to know the bases off using linux etc....

If you want to contact me via discord,skype,teamspeak,etc I will tell you my username...
[Android General] squabbi:
I'm glad you had a great time down under! :D I would say it's almost the same, but with a tiny bit less sunshine haha.

So I ended up getting through most of the video there and I did end up making a recovery image! Unfortunately it was not bootable, I am trying to build it for a Samsung tablet, so whenever I flashed my compiled recovery.img it would just boot straight into Download Mode.

I was looking at some similar devices with completed device trees, and I decided to use the Moto G4 Play (harpia) as a reference point.

During the initial makes, I did get some errors from missing make files in some qcom-common, and one that had something to do with the locale of the time. :eek:

I'll try and break it down nicely.

Initial BoardConfig.mk from harpia had lines to include a "BoardConfigCommon.mk" from the "motorola/msm8916-common" repo. I found a repo which has one for msm8916 based Samsung devices too. So I kept that line in my BoardConfig.mk like so.

include device/samsung/msm8916-common/BoardConfigCommon.mk

I decided to add that repository to my local_manifest as well.

<project name="Galaxy-MSM8916/android_device_samsung_msm8916-common" path="device/samsung/msm8916-common" remote="github" revision="cm-14.1" />

Then I was looking at the BoardConfigCommon.mk within the msm8916-common repo, and it referenced another common make file for: "qcom-common". I had a look for this and found one from LineageOS, so I left this line in the BoardConfigCommon.mk in the msm8916-common repo.

# Inherit from common
-include device/samsung/qcom-common/BoardConfigCommon.mk

Also, does the dash in front of 'include' mean anything?

And added the repository to my local_manifest (roomservice.xml).

<project name="LineageOS/android_device_samsung_qcom-common" path="device/samsung/qcom-common" remote="github" revision="cm-14.1" />

This build would get stuck as it tries to find some other make files from the qcom-common repo.

I did comment out a few lines, and copy over some make flags from the other common/msm8916 repos into the main BoardConfig.mk in my device folder. But that resulted in a non-functioning recovery image.

This is the first error I get. It's looking for a make file from "frameworks/base/packages/SettingsLib/common.mk", but that looks like it's from a full AOSP source (I don't think the recovery uses Doze at all).

including ./device/samsung/qcom-common/Android.mk ...
device/samsung/qcom-common/doze/Android.mk:37: frameworks/base/packages/SettingsLib/common.mk: No such file or directory
build/core/ninja.mk:172: recipe for target '/home/doge/minTWRPOmni710/out/build-omni_gt5note8ltexx.ninja' failed

Is it better that I build LineageOS ROM, then TWRP, just to have a huge functioning device tree? Or can I still hack my way through mini-Omni for TWRP?
[Android General] AlaskaLinuxUser:
Can you please be more specific?

Do you mean like how Asus released kernel source, but it was encrypted? In that case, it is just as they said. They released the kernel source, but it is unreadable without the encryption key.

Or do you mean something else?

Glad I could help, but you still are doing all the work! :highfive:

Sorry, if you have questions, you have to post them here. Myself and others will do our best to help you. Perhaps I should make a "Linux 101" video series.

What device are you building? Just because it is not listed doesn't mean you can't just type in the name, too. Like this:

$ . build/envsetup

$ lunch lineage_yourdevice-eng

$ make

But you need to use your devices code name. :good:

Either way works, but just building a twrp tree is much easier. If it fails to boot and goes too boot loader, it is a kernel or partition problem.

Did you break down the boot image of your tablet like in the video, and are you using a prebuilt kernel or one from source?
[Android General] Einfach_Yannic:
Sorry, if you have questions, you have to post them here. Myself and others will do our best to help you. Perhaps I should make a "Linux 101" video series.

What device are you building? Just because it is not listed doesn't mean you can't just type in the name, too. Like this:

$ . build/envsetup

$ lunch lineage_yourdevice-eng

$ make

But you need to use your devices code name.

Ok,the device im planning to built a custom Rom in is the huawei p8 lite smart (Modell number: tag-l01)

The PC im trying to built the rom o has ubuntu 14.04,8gb off RAM(ddr2)an Intel core 2 duo 6640 and intigrated graphics (Intel GMA 965).

When i wrote the first message to you today i still was executing this Command: repo sync .But c.a. 2 hours after i write the xDA message it finished with allot off error and didnt show me the files in the lineague OS _ n folfer that i created ealyer,another Problem that i incountert before i wrote the message on xDa whas the i had to configure my account Details off git in the terminal but i mennaged to do that my self.

Another Problem that i think i will entcounter is that there is no surce code in the Internet for my phone,i mighz continue tommorow with this Projekt because i gonna get some sleep,would be really nice if you could Coach me tomorrow via some voice chatt Prog on how to fix my error when creating the Rom.
[Android General] squabbi:
Ah ok, for my first successful build I used the kernel (hopefully) from an unpacked boot image.

Samsung has provided kernel sources for Nougat for my device so I was going to try that by following one of your other videos in that series.
[Android General] rajesh@xda:
Yes, Speaking about asus kernel source for asus zenfone max pro m1 and m2. !

As far as i know we have the option to encrypt the phone data on settings/security tab for enhanced security but I didnt heard about encryption done from the source side.

Is the encryption key same for all developer who wants to get into development.? or it will be like different key combination for the same source provided on request. Just curious about it :good: whether it is a new tech.
[Android General] AlaskaLinuxUser:
No, this is not new technology. They are required by law to release the kernel source code, and they "did", but ( to the best of my knowledge) it is encrypted so no one can read it. It is a scam where they control who has the key to read the code. This is wrong.

As you saw in my videos I did use the kernel that I extracted, so that should work, but building from source is best. :good:

Einfach_Yannic,

I say this with the utmost of respect and kindness. I am not at your beckon call, I have a wife, three children, and a job. I cannot drop everything to help you with a one on one chat. ;)

Building a device from scratch is hard. I recommend that you watch ALL of my videos so that you will learn how things work. I then recommend that you build for at least one device that has already been built before, even if only the generic and run it in the emulator. Then after you have that valuable experience under your belt, then you can attempt to build a device from scratch. It takes a lot of knowledge, a lot of time, a lot of patience, and a lot of trial and error. It took me almost 5 years to get to this point, and you cannot learn it all in one day. I am doing the best that I can to help the many new builders here by making these video guides and answering questions here, in hopes that in 6 months to a year, you might be better at this than me, but it will take effort on your part. :laugh:

As for the errors with repo sync, what exactly did the errors say. We can help you here, but you have to post the exact errors for us so that we can point you in the right direction. :good:
[Android General] DJABHipHop:
Thank your videos have help me squash some minor bugs in device tree left and right and i always watch them over and over in order to some time see cool ideas or to learn new skills, But I have few question how would one deal with a delay wifi connection in a custom rom on boot & reboot or is that just normal?

and second how would make a simple boot animation from scratch for a custom rom?

Also i'd love to see a video on making a custom boot animation weather it's for a custom rom or even a flashable zip for custom or stock rom
[Android General] AlaskaLinuxUser:
Now that is an excellent question! I should make a couple of videos about that.

Here is a link where I mention how I built one for slimroms: https://thealaskalinuxuser.wordpress.com/2016/05/20/new-slimroms-boot-animation/

Actually, on my website are links to many I made, but only in that post did I try to explain the process.

If you look in vendor, lineage or cm, or slim, etc, for whichever ROM you are using, there are two ways they do this.

1. Using a prebuilt animation, which would mean that you make one using the process from my blog, then add it to this folder and it simply is copied into the ROM.

2. In the vendor folder is a folder with lots of jpegs or pngs that are each frame of the animation. You can change these with your own home made pictures to make it build when the ROM is compiled.

I'll try to make a video on that sometime, because that is a great question. :good:
[Android General] DJABHipHop:
Thank I look foward to eatch that video when ever you get to making them
[Android General] beast97:
tree x:

https://github.com/Krizthian/device_lge_hammerhead

tree y:

https://github.com/Unlegacy-Android/android_device_lge_hammerhead/tree/aosp-8.1

If am using tree x to compile rom it boots

if am using tree y it end up in bootlloop.But i want to compile rom using tree y

can u tell me wat are all things need to change while compile rom (adapt to another Rom)using tree y to boot the rom & can u tell me the difference btw those two tree[/QUOTE]

I just want to learn that's y am asking

is there anyother way to compile rom in tree y??
[Android General] rajesh@xda:
This question may look silly but i need to ask this:good:

Every android version caries only few newer thing from the previous version. If that is the case, for example i had downloaded full oreo ROM source from lineage by repo sync command. The .repo weighs 32gb. Now i want to switch to pie ROM .

If i run " repo init -u git://github.com/LineageOS/android.git -b lineage-16.0" followed by "repo sync "on the same folder which contains the oreo source files. What happens. Will ROM source updates to pie or will i get error. ?

This question arrived when i hesitate to start that large download again for the pie source because i have less internet bandwidth.:laugh:
[Android General] krishV:
I have done this before in pixel experience ?

It will not upgrade by using repo sync for LOS 16.0 by using method "force sync" it will replaces every files and again start to download up to 30 GB
[Android General] rajesh@xda:
No.it is working :laugh:.Testing now .repo size is incrementing from 32gb:good: