yashsingh1/xdaforums huggingface dataset:
[Android General] MrRob0t:
Yayy!!

[100% 95611/95611] build bacon

Package Complete: /home/chris/android/lineageP/out/target/product/pme/lineage-16.0-20190101-UNOFFICIAL-pme.zip

#### build completed successfully (05:45:33 (hh:mm:ss)) ####

chris@chris-ubuntu:~/android/lineageP$

-- under 6 hours,, not bad for Pie and the PC I'm building with.

Yea, I was never in public.xml (thankfully!). Adding tiles, removing tiles, etc, but yea, do you use a GUI application or anything like that, or do you use use apktool straight from cmd? I use just apktool.jar tool with smali/baksmali.

It's been a little since I've played with stuff like this, but just to make sure I wasn't going crazy I made sure. I made edits to dimens.xml, arrays.xml, strings.xml and ids.xml. It's possible that you can do this in the other res/values/ .xml files like drawables.xml, but I did not test that.

What's great about this method is that it's such a time saver as well. VERY rarely I had issues when I was adding many many strings and ids for tiles, and it would change existing code in public.xml. Depending on what it was, you could either leave it and hope it didn't change anything important, other times, you can use something like VTS (Virtuous Ten Studio) pretty outdated now, but lets you search out a string in the entire .apk, and it looks inside every folder and file, and search out the code and find it in smali and replace it with the new one. :good:

https://imgur.com/mKNjBg5
[Android General] Ineedyourhelps:
Hello developers!

I was a new person!

Can anyone add double tap 2 wake to my kernel?

I don't know how to create my own kernel.

Thank you very much to the developers because they created a project for everyone.

And this project is completely free, they shared it.

They are not like other developers who are very miserly, not sharing it with anyone.

Very grateful. Thank you very much.

A warm heart :))

I have a window 7 computer and use 32 bit operating system. I did learn but still don't know how to build my own kernel.

Proceed to extract the kernel in the custom rom but the extracted files are not as expected and there is no information regarding editing the kernel with this.

Editing in root exploer is impossible :))

Please help me add double tap 2 wake to this kernel which i get from custom kernel rr 5.8.5

Or you can teach me how to do it with other custom kernies I can do and not have to ask everyone.

Thank you very much.
[Android General] DJABHipHop:
There a video on that already by the user of this thread on his youtube channel in a play list called creating a custom kernel.
[Android General] dean a12@#:
deleted
[Android General] lucki1000:
if i make a data backup with twrp, can i restore this in any custom rom with twrp?
[Android General] DJABHipHop:
Yes you can but from my exprence 50/50 if the new rom is not set like thr old one i had it boot loop on me even from and update I've alse had boot look even from a full backup as well not j7st a data backup, I'd recommend using something like titanium Backup for that all those I personaly dont' used it because I'd much reather use twrp to backup my date since I typically use a lineage more than any other ROM.
[Android General] lucki1000:
Thanks, but i have test it and it has no userdata from apps saved, is there any check box or else who must i activate that Titaniumbackup save the user files from apps?
[Android General] DJABHipHop:
I believe so it's been awhile since I've used the Titanium Backup demo

I also wish android would handel the backup like apple does giving an option to select what app you want to backup, sync accross all your android device and witch app setting gets backup to google drive or some cloud service by google, maybe I'll add to my rom.
[Android General] lucki1000:
I will built lineage 16 and if i typed make i get this error:

[1023/1023] including vendor/qcom/opensource/dataservices/Android.mk ...
device/motorola/cedric/libshims/Android.mk: error: libqsap_shim (SHARED_LIBRARIES android-arm64) missing libqsap_sdk (SHARED_LIBRARIES android-arm64)
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
device/motorola/cedric/libshims/Android.mk: error: libqsap_shim (SHARED_LIBRARIES android-arm) missing libqsap_sdk (SHARED_LIBRARIES android-arm)
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
build/make/core/main.mk:850: error: exiting from previous errors.
18:49:54 ckati failed with: exit status 1

how can i fix this that libqsap_sdk is missing?
[Android General] AlaskaLinuxUser:
Great work! :highfive:

As [MENTION=8771630]DJABHipHop[/MENTION] mentioned, I have a video tutorial on how to add that to your kernel here:

https://www.youtube.com/watch?v=APhdQkm0iz4&t=1s&list=PLRJ9-cX1yE1m7MN7uSNCJl-phEs8ZmKsB&index=10

But I recommend that you watch the entire series: https://www.youtube.com/playlist?list=PLRJ9-cX1yE1m7MN7uSNCJl-phEs8ZmKsB

Hope that helps! :good:
[Android General] DJABHipHop:
A few tip for all developer

Tip 1 google if your best friend alwany google it first then ask question if you don't unserstand what you google.

Tip 2 look at logcat, dmesg & build log before jumping the gun and changing thing like a crasy person, to see what is error & to word it so google can point you in the right direction.

Tip 3 don't try to fix everything at once unless ther all related to that one error because that can make your commits messes and hard for other dev to fix your mastakes in the feture.

Tip 4 don't push commits till your 95% sure that shim, selinuxpolicy, overlay, file is eather working, not missing, or is what you want
[Android General] AlaskaLinuxUser:
Did you try web searching? I know how to fix it, but I really want to help you become a developer. You did great finding the problem. You know what is missing, so how do we get what is missing? :cowboy:
[Android General] lucki1000:
If libqsap_sdk is a ubuntu package i must install it, if this not important i delete this line from the mk, but if it is an lib then i have no idea to get this file i have search on google but not really found an solution.
[Android General] MrRob0t:
thank you kindly, my friend!
[Android General] DJABHipHop:
Is it possible to skin lineage like oem do with aosp and can you explain how?

Similar to like mui, touchwiz
[Android General] AlaskaLinuxUser:
Any thing that is built for android will either be a .so file or a .jar or a .zip file, typically. Another helpful clue is that android make files refer to them all as modules, with this tag:

LOCAL_MODULE:=

So, web search for LOCAL_MODULE:= libqsap_SDK

Is there an android make file that would build it? If so, what repo is it in? Could you add that to your local manifests? ;)

Did it work, did it boot? :fingers-crossed:

Can you be a little more specific? :confused:
[Android General] DJABHipHop:
Change the change the system icon and make other icons use a mask to blend in with my Icons systemui default color scheme, setting apk color scheme make the volume slider bigger

Example

https://pandaily.com/wp-content/uploads/2017/11/MIUI-9-Limitless-Theme-2.jpg
[Android General] Arcane00:
Hello, AlaskaLinuxUser

Thanks for taking the time to create this video series so that people can learn how to make Custom ROMS.

I must ask two things: What are the requirements in creating a ROM; for example do you need a device tree, or is this from scratch? Also, If your stock image is for example from Marshmallow, can you make a ROM for Nougat or Oreo or even Pie?

Best Regards!
[Android General] dean a12@#:
Thanks bro,working perfectly this method compiled camera successfully. Btw I'm using "apkeditor pro" app on phone to do all that stuff. Once I get PC will try VTS software. Thanks for help!! :)
[Android General] Ineedyourhelps:
Can i add this to boot.img inside custom rom ?

i had to get kernel of soure and make new kernel ?

Can i use 7 zip to do this?

Force install unbubu? :)) Thanks you very much.:cười:
[Android General] lucki1000:
LOCAL_MODULE:= libqsap_SDK its in my libshims folder in a Mk file, in the device tree, but its not in my manifest.
[Android General] AlaskaLinuxUser:
It's getting cold outside! I think winter finally arrived in force! :laugh:

Great question.

#1. You can follow the main tutorial for building custom ROMs and use device trees that already exist. Or you can use the tutorials for building a tree from scratch. I recommend you use someone else's tree first, so you understand what is supposed to happen, then make your own for devices that don't have one.

#2. Yes, you can upgrade, I am doing that in a video series I'm working on right now. In this series (not on YouTube yet, but some of it is on my gitlab) I am upgrading the blu life xl. It started with building twrp, which then I built lollipop (same as stock), then marshmallow, nougat, and yesterday I booted Oreo. So that series will be coming out in a couple of weeks, or you can look at what I've got so far on gitlab.

Hope that helps! :cool:
[Android General] lucki1000:
I have find it out i have repo sync typed and now i geht this one:

glob kernel/motorola/msm8937/include/**/*
ninja: error: 'prebuilts/lineage-sdk/api/9.txt', needed by '/media/.../AndroidSource/lineage16/out/target/common/obj/PACKAGING/checkpublicapi-lineage-last-timestamp', missing and no known rule to make it
20:38:36 ninja failed with: exit status 1
[Android General] DJABHipHop:
I'm getting this error what does mean

hardware/qcom/bt-caf/libbt-vendor/src/hci_uart.c:516:14: error: use of undeclared identifier 'TIOCPMGET'
case USERIAL_OP_CLK_ON:
^
hardware/qcom/bt-caf/libbt-vendor/include/hci_uart.h:96:30: note: expanded from macro 'USERIAL_OP_CLK_ON'
#define USERIAL_OP_CLK_ON TIOCPMGET /* PM get */
^
hardware/qcom/bt-caf/libbt-vendor/src/hci_uart.c:517:14: error: use of undeclared identifier 'TIOCPMPUT'
case USERIAL_OP_CLK_OFF:
^
hardware/qcom/bt-caf/libbt-vendor/include/hci_uart.h:97:31: note: expanded from macro 'USERIAL_OP_CLK_OFF'
#define USERIAL_OP_CLK_OFF TIOCPMPUT /* PM put */
^
hardware/qcom/bt-caf/libbt-vendor/src/hci_uart.c:520:14: error: use of undeclared identifier 'TIOCPMACT'
case USERIAL_OP_CLK_STATE:
^
hardware/qcom/bt-caf/libbt-vendor/include/hci_uart.h:98:33: note: expanded from macro 'USERIAL_OP_CLK_STATE'
#define USERIAL_OP_CLK_STATE TIOCPMACT /* PM is active */
[Android General] widi aprianto:
i am try to build lineage os 16 for vince/unofficial device, but get error like this whats wrong? thx u
[Android General] DJABHipHop:
Simple your missing the vendor repo for your try the muppetees on github "themuppetes'
[Android General] mafianet:
Much thanks. Appreciate.
[Android General] widi aprianto:
Already download, but how to use?
[Android General] mafianet:
Hi AlaskaLinuxUser.

Thanks for all your videos. I just finished them all and they were huge help.

I have a small project I would like to achieve with the "whyred" device, and and was hoping someone could just help me pointing where I should start my research.

I want to;

1. Build pure AOSP Oreo with small apps modifications (Done with your help);

2. Flash everything to the device (Done with your help)

Everything is working from now on. The last part of my project is to make a kind of "Tails" with Android, were I want to modify (kernel?) to exclusively boot everything from SDCard (at the point I could litterally remove hard drive physically from device).

I read some source, and some of them seems old, I just wanted to have your opinion on the "task" I would need to handle to achieve this.

Thanks to everyone helping me in any ways.
[Android General] MrRob0t:
So LosP is booting and working well!

Unfortunately crdroidP am able to build, but not booting. I've been working with fellow HTC 10 user and friend andybones but his time is very limited, and actually hasn't moved up from N yet as he needs a stable device. We are thinking about trying to work on some N VoLTE tests. It's good though as we are basically learning together in a sense, as we both are new to the open source world. We both owe you very much!!

Glad I could be of help!

VTS is EXTREMELY outdated, I only use it when I need to say, search an entire apk for a specific string, it searches every single file. I don't know any other methods to do this, but I'm sure there are.

I just have a folder with apktool, smali & baksmali and work straight from that, I suggest this personally opposed to a GUI based application. My tools of choice are Notepad++ and Beyond Compare. Great programs! :good:
[Android General] AlaskaLinuxUser:
Like this: https://www.youtube.com/watch?v=BejQd_i8reI&list=PLRJ9-cX1yE1l6eu-vkgsj61U-Zv3fjzwZ&index=47

Typically with theming, you need to edit everything in the rom. No one really does it anymore because of things like layers. :good:

It says that these files are missing: linux/msm_ion.h and linux/msm_mdp.h

Have you searched your directory? Are they actually there? Are they in the right place? :good:

I recommend installing Ubuntu, yes. You can unpack the boot image and put in your new compiled kernel with this video:

https://www.youtube.com/watch?v=_0KjhGEbWZY&list=PLRJ9-cX1yE1nnhWBrZtuVz5YC2OPfQVVp&index=10

But you will need to build your new kernel and then repack it in there. So yes, you will need the kernel source as well. :good:

Hopefully the answer was to install softap. https://github.com/LineageOS/android_system_qcom

As for the new error, any luck searching? I found these fellows had the same issue:

https://xdaforums.com/chef-central/android/guide-android-rom-development-t2814763/page460

And this article I wrote may help too:

https://thealaskalinuxuser.wordpress.com/2016/11/08/congrats-you-earned-a-stinkeye-from-cid/

:highfive:

Well, it means that your file hci_uart.c, on line 516, character 14 uses the phrase 'TIOCPMGET' and that is a variable that has never been declared before. E.g., do this math problem using the "traxis formula" when you don't know what the traxis formula is. (It is from a Latin book, I don't know what it is, but it sounds cool.)

So, you either need to:

#1. Find the file that declares it and add that too.

#2. Declare it yourself.

#3. Remove it entirely.

#4. Replace it with something that does work.

Hope that helps! :good:

Sounds great. I used to boot off of the sdcard a lot in the early days. It is very easy to do. Here is an article I wrote on how to do that:

https://thealaskalinuxuser.wordpres...-debian-linux-to-your-cell-phone-part-1-of-3/

Where I put Debian Linux on the phone, and then booted Android off of an sdcard. :good:

Great! I'm glad to hear that you've come so far! :highfive:

Can you tell me the exact commands you typed to build with? :confused:
[Android General] lucki1000:
Ok, but i can't edit this file, because this files in

prebuilts/lineage-sdk/api/

this folder "lineage-sdk" not exist in prebuilts there is an sdk folder which has this files, but i dont find the mk who i can edit this path.
[Android General] dzomega:
thanks
[Android General] DJABHipHop:
Thank can explain how I can use layes in my rom
[Android General] lukaspieper:
AlaskaLinuxUser, thank you very much for sharing your knowledge, the videos, their preparation and all the support here has certainly cost you over 100 hours, your effort is unmatched.

Since I've been working on this kind of development, I've been thinking a few times about asking for help here, but so far I've been able to solve everything. Up to now I have replaced a precompiled kernel of an existing TWRP with the source and adapted some other things (I watched your new series about TWRP on GitLab already).

The next step is to develop Lineage for the device, the builds compile successfully, only I never got to boot animation. After I see the logo of the manufacturer, the screen flickers. Exactly the pattern I have already seen on a Raspberry Pi, so that you know what I mean I have picked out a video (https://www.youtube.com/watch?v=C7iwjkrfADs).

My first attempt was to get a logcat, like you did in the series to the device tree, but you already got there to the boot animation. When exactly can I use logcat? After that I came across dmesg, which you show in the new TWRP series. But if I boot into TWRP after the failed boot attempt and enter dmesg into the terminal there, don't I get the log from booting TWRP?

Since I am in the dark without any log, I have made some reflections. Since I was able to use Kernel Source successfully for TWRP, it also works for Lineage?! If that's true, what else can fail the boot process? As far as I have researched, there are still the init files (in the device tree in the rootdir folder). These are somehow used in the ramdisk, aren't they?

You notice I am a little confused and would be very grateful if you could bring some clarity into it.

Even though I address directly to the OP here, I am happy about any help :D
[Android General] AlaskaLinuxUser:
Lucki, I'm not sure. As I help many people, I keep having to go back to look at our previous discussions to see where we are at and I'm a little confused. Could you remind me what we are building, for which phone, for which version, for which ROM? :confused:

You are welcome. :cool:

Well, like substratum. For this you need specific guidance, which you can find here:

https://www.google.com/amp/s/xdafor...l-starting-substratum-andromeda-t3798316/amp/

As for layers, even non substratum compliant ROMs can use layers since lollipop I think, and then it was in all ROMs starting with marshmallow. But I believe layers has been retired due to substratum. I used to add the app for layers that allowed root users to control the theme. Here is an article on how to do it:

https://android.gadgethacks.com/how-to/theme-marshmallow-with-androids-hidden-theme-engine-0165275/

Perhaps that will shed some light on the subject! :cowboy:

First, well done on building twrp! :victory:

Now, onto the issue at hand.....

A. We (me and soon to be you) know that of the boot animation never shows up, then the issue is either:

1. Kernel

2. Partitions - twrp and android use two different styles.

3. Vendor drivers

B. Once you reboot, you can look for tombstones (I have videos on that) which are left behind from previously failed boots.

C. The kernel itself also saves a log, typically called /proc/last_kmesg or /sys/fs/pstore/console-ramoops depending on which version of android you use. This is a copy of dmesg from the last boot.

So which phone/version of android/ROM/are you building? Did you extract vendor files, or get them from somewhere? Are your partitions being mounted properly? :good:
[Android General] lucki1000:
Sure,

i'm building lineage OS 16 for moto g5 cedric, i have synced the manifest and the source of lineage os 16, so and now i get this failure:

glob kernel/motorola/msm8937/include/**/*
ninja: error: 'prebuilts/lineage-sdk/api/9.txt', needed by '/media/.../AndroidSource/lineage16/out/target/common/obj/PACKAGING/checkpublicapi-lineage-last-timestamp', missing and no known rule to make it
20:38:36 ninja failed with: exit status 1

So and here i understand that 9.txt not found, than i looked into my prebuilts folder and see no lineage-sdk, i see only a sdk folder but in this api folder its only a 9.xml and 9.txt its still missing and this is my problem.
[Android General] rajesh@xda:
I am building lineage 15.1 and my build is successful and working smooth but i am missing AOSP keyboard . is this issue caused by my device tree.? how to overcome this problem in my built.?
[Android General] widi aprianto:
i am try build rom but get error like this what wrong, please help https://pastebin.com/raw/uGX40jjk
[Android General] lukaspieper:
Thanks for reminding me of the tombstones. Found the error (it was caused by the vendor drivers) and now I see the boot animation. There it crashes before the end of the animation.

I'm developing LOS 14.1. Since nougat the log should be in /sys/fs/pstore, right? My problem is that I don't have a directory pstore in sys/fs. Therefore pstore cannot be mounted (I executed "mount pstore pstore /sys/fs/pstore" additionally in TWRP, the line is also in Omni's init.rc).

When I run logcat in TWRP, I get a "logcat read failure" message. This is a very generic message, there is a lot of information about it on the internet, but I haven't found a solution yet. Maybe this is somehow related to the other problem?

I am building LOS 14.1 for the Lenovo TB-X704F. There are no vendor files online, so I extracted them. How can I check if the partitions are mounted properly? It was enough to get to the boot animation, but pstore is missing somehow.

Thank you very much.
[Android General] lucki1000:
Have you installed gapps?
[Android General] lukaspieper:
No, I only installed the LOS zip.
[Android General] lucki1000:
If you havent installed gapps you dont have the play store app.

Gapps are the Google apps package this should only installed before the first boot of a rom.

Gapps are only included by pixel experience or other ROM who support that.
[Android General] AlaskaLinuxUser:
No problem! I'm glad you like the videos.

Good work fixing the XML errors!

As for the next error, I think we need more info. Something has happened to cause the failed line. Of you could post the full logs up to this point, then I can take a look.

Great work so far!
[Android General] AlaskaLinuxUser:
Actually, I don't think another tool chain will help. I think this is a library or program issue for running dirname.

What os are you using? I highly recommend for your first builds that you follow my guide and use Ubuntu 14.04.
[Android General] biki28:
Hello everyone. How to create a volte blob for a lte device?
[Android General] AlaskaLinuxUser:
Not necessarily. However, since you are using a tool other than what Google (and consequently I) recommend for building, it is hard to be sure if the dirname error is due to the code or the tools being used. Every issue I can find on a web search of dirname issues, it is because something isn't installed that should be.

You could post in the thread for the device you are trying to build, under the rom that you are trying to build, and politely ask that developer if he/she saw this issue before. It may be specific to your kernel code, I'm not sure. But troubleshooting tells us to rule out possible issues one by one. And building with the proper tools will ensure that it is not a tools problem. But you are free to do anything you like. :D

I build Lollipop through Oreo on a Ubuntu 14.04 machine, and it is still the recommended machine setup per Google AOSP, although other tools have been used successfully. You may have to ask the Linux Mint community if any of them build android and if any have seen this error.

Another option is to edit your defconfig for the kernel to change the [M]odules to [Y]es, which will include them in the kernel rather than as separate modules. But you shouldn't have to do that to build.

Great question! To help answer it, we need some more information, like for what phone? What Android version? Does the stock rom have voLTE?

In principle, you *could* find a similar phone and borrow the vendor blobs from it that make voLTE work. However, this is easier said than done and may require quite a bit of work on your part.

***************************************************

A side note for the group:

I really want to help you get started building. That said, I am not able to answer every question that possibly exists. I just am not that smart. :D

However, this is a great place to ask questions! Another great place to ask questions is in the Q&A section for your device, if it is device specific.

But I do have one request: Please don't PM me your questions. Please post your questions here instead, so I can answer one question for the group, rather than one on one questions. I want to help, but I don't have time to answer the volume of questions I am getting in my PM box. Please post you questions here in the thread. :D
[Android General] zelendel:
Ill help and answer what I can as well. I personally have no need for these videos but will watch them so I can lend a hand.