yashsingh1/xdaforums huggingface dataset:
[Android General] AlaskaLinuxUser:
So if you build those roms now with your device trees, does it work better?

Essentially, there are two main ways to adjust volume of microphone reception:

A. In the kernel drivers for the sound modules.

This can be a bit complex, but if you know what your sound module is, you can go to those drivers in your kernel and adjust settings there. Usually this is where you can adjust min/max settings, not specifically the default setting.

B. In your device tree, or a dependency of your device tree.

In the device tree (or a dependency of it) there is usually an "audio" folder or "config" folder with several files. One of those files is typically a "mixer" or audio "paths" file, which holds the default values for things like the microphone.

Take for example, on the Yu Yunique:

<path name="speaker-mic">
<path name="adc1" />
<!-- Modify by lichuangchuang for IIR1 INP1 MUX (8916) SW00000000 2014/09/05-->
<ctl name="IIR1 INP1 MUX" value="ZERO" />
</path>

<!-- These are actual sound device specific mixer settings -->
<path name="adc1">
<ctl name="ADC1 Volume" value="6" />
<ctl name="DEC1 MUX" value="ADC1" />
</path>

<ctl name="ADC1 Volume" value="4" />

This is just one example, but you could play around with the values and see what works. :good:
[Android General] DJABHipHop:
Thank will try it know
[Android General] DJABHipHop:
Here a stackoverflow question on how-to-define-dimens-xml-for-every-different-screen-size-in-android witch may here other out

https://stackoverflow.com/questions...rent-screen-size-in-android/32861248#32861248

---------- Post added at 02:50 AM ---------- Previous post was at 02:28 AM ----------

How do I configure the app and widget that appear on the launcher by default
[Android General] kwshl:
very very kind of you of for all of this <3

pls don't stop this thread

---------- Post added at 06:14 PM ---------- Previous post was at 05:58 PM ----------

sir can u pls make a telegram discussion grp for this thread, it'll be of some use to the newbies like us
[Android General] MrRob0t:
Thank you so much for your free time, very helpful!!

love the videos.

So fagyi got Pie booted on the htc 10, lineage 16 along with aosip,, he's a beast.

anyway, I am trying to build lineage 16 based off his:

device

git clone https://github.com/Fagyi/android_device_htc_pme.git -b lineage-16.0 device/htc/pme

vendor

git clone https://github.com/Fagyi/proprietary_vendor_htc.git -b lineage-16.0 vendor/htc

kernel

git clone https://github.com/Fagyi/android_kernel_htc_msm8996.git -b lineage-16.0 kernel/htc/msm8996

and then moving onto trying to get crdroid going.

I am very noob at this. very new to me, so, many things is trial and error, and as much reading as these old eyes can handle.

I try to not ask for help unless I'm really stuck as you learn more this way, but i'm really stuck. it seems like it should be an easy fix, and I'm just missing something?

thank you in advance.

https://pastebin.com/jcAhuHtr
[Android General] AlaskaLinuxUser:
I tried that once, I was unfortunately over run with a thousand build questions and I could not answer them all. I couldn't handle the amount of requests when you have such direct access. At least here, I only check it when I have time. And the slower process slows down the inflow of questions. :laugh:

Great! Glad you are learning new things! Here is the main problem:

../../../../../kernel/htc/msm8996/include/linux/thread_info.h:31:54: error: 'current' undeclared (first use in this function)

#define current_thread_info() ((struct thread_info *)current)

^

../../../../../../kernel/htc/msm8996/include/asm-generic/preempt.h:10:9: note: in expansion of macro 'current_thread_info'

return current_thread_info()->preempt_count;

^

So this needs to be declared somewhere before this. If you are just copying his build work, then either:

1. He has another updated copy of work that he is using, or another tree or branch to build with.

Or

2. There is something different/wrong in your setup. E.g., he uses a custom tool chain, or a different version of build tools than what you are using. Does he mention using any custom tool chain?

If you run brunch with no options, and pick something from the list, does it build? If not, then your setup may be wrong.

That's a few ideas I can think of. :good:
[Android General] DJABHipHop:
what are .te file?

what do they?

how do they work?

and what do they effect?
[Android General] rajesh@xda:
1. How to add app source or apks to ROM source while on compilation.?

2.How to remove some unwanted system apps from ROM source before compilation.?

3. Some custom ROMs have in build gapps package . Is it possible to build lineage os with in build gapps ?

Any suggestions:)
[Android General] DJABHipHop:
Yes it is possible and I've done, Try thess file/repo I made for my rom and feel free to fork and mod as you please.

https://github.com/BAProductions/android_vendor_light

https://github.com/BAProductions/Lightos-Roomservice-Files

My room service file strips all the default apps in lineage even swaps the wallpaper app with a copy that has no wallpaper even adds a pixel style launcher the rom.

This add my favourite gapps to my devices(Personal Build) if not it defaults to GAPPS_VARIANT := mini

DEVICE_SUPPORT_DJ :=true

Add TagGoogle & Wallet If BOARD_HAVE_NFC :=true & DEVICE_SUPPORT_NFC :=true

BOARD_HAVE_NFC :=true

Add GoogleDialer CarrierServices & PrebuiltBugle If DEVICE_HAS_DATALINE :=true

DEVICE_HAS_DATALINE :=true

Add FitnessPrebuilt & Wallet If PRODUCT_CHARACTERISTICS :=phone

PRODUCT_CHARACTERISTICS := phone

Add to the end of device.mk

$(call inherit-product, vendor/light/config/opengapps.mk)

If you find any mistake in my opengapps.mk or any of my files feel free post the fixes on my Github as a issues under the corresponding repo and I'll update my code as these file are a work in progress.
[Android General] rajesh@xda:
Great:good: what about adding or removing apps from rom source.?
[Android General] DJABHipHop:
It's all there in my repos read the remove.xml file to see how I did it and google my code if you get stuck or pm me if you need help id be more the willing to help out
[Android General] rajesh@xda:
Thanks lot . will look into it:)
[Android General] DJABHipHop:
No problem just read the remove.xml file to see how I did it and google any of my code if you get stuck or pm me if you need help id be more the willing to help out
[Android General] kwshl:
this thread still gives so much:o i can't thank enough

can u add tuts on modding sources when u hv time for it

like mixing different sources , adding features from one source to another

waiting for this thread to go very long :D
[Android General] lucki1000:
If I watch all your videos in this zip I was able to build my own pie rom?
[Android General] AlaskaLinuxUser:
Great question! I'll have to put together a "What is.... Selinux" video some time, but the te files are the list of rules that selinux is going to enforce. For now, you can read up on them here:

https://source.android.com/security/selinux/implement

Remember that Linux exists outside of Android. Selinux doesn't only exist in Android, so some parts of it are for servers and desktop computers as well. We just capitalize on it for cell phones.

DJ already did a great job answering your questions, but I also wanted to mention this:

https://www.youtube.com/watch?v=_UEPZficFEM&list=PLRJ9-cX1yE1l6eu-vkgsj61U-Zv3fjzwZ&index=46&t=0s

And

https://www.youtube.com/watch?v=4Mn1MNRKGQk&list=PLRJ9-cX1yE1l6eu-vkgsj61U-Zv3fjzwZ&index=47&t=0s

Great to see you sharing what you learn! I'd like everyone to know that if you know the answer to anyone's question, please feel free to help others out! Well done!

Thank you! As for mixing sources, can you give some examples of what you'd like to see?

That's the goal! ;)

Of you mean building a new device from scratch, that's never been done before, you should watch the pie series, and then the device tree from scratch series.
[Android General] rajesh@xda:
Most welcome:highfive: Thanks lot for explaining in a detailed way.
[Android General] MrRob0t:
Thank you for your reply!

It's so tough trying to learn without a little help from our friends. :)

It's tough to get in tough with him since he is so busy. I think he must be using a custom toolchain, since I am using his build tree.

I am going to try and make rom for a different device as you suggested.

(say I chose oneplusone, do I need to grab the device, kernel and vendor blobs before trying to build it for the device I choose, or just go ahead and choose one?)

however, I am thinking there is something going wrong with my setup.

I was able to build crdroid Nougat and ResRemix, but they both will not build anymore.

Lineage does build for me though.. :confused:

I am running on a pretty old slow, low ram PC. (6gb RAM.. 2.50GHz x4)

I could always get the 16.04 disk out and reset my entire Linux (I dual boot, so I dont need to back anything up as I use Linux for building/everyday use, and basically windows as storage). I dual boot so the Mrs. can use windows, she doesn't prefer Linux..

or maybe going back down to ubuntu 14.04? I have read mixed reviews about 14 being better for building than 16 ?

I could build crdroid in about 45mins though. and about 2.5hours after doing make clean.

I'm afraid I ran some cmds like ccache and others and now my setup is all outta whack, and no idea if these things I've done are set in stone, or what.

any suggestions on where to start?

again thank you so much. I don't mind every putting in the reading and effort and don't expect any spoon feeding. but it does suck when you're so close, or stuck on something that you're just not seeing and have no one to turn to once you've banged your head too many times!:laugh:
[Android General] DJABHipHop:
Same here sometimes you feel like you take one step forward and 5 step backward.
[Android General] AlaskaLinuxUser:
“It is hard to fail, but it is worse never to have tried to succeed.” Theodore Roosevelt.

:D

If your system does not build things from the lunch menu (they are on the menu because they are officially supported and thus should build) then your setup is likely at fault.

Next week I am going over setting up 18.04. In these videos I use 14.04. I've never built with 16.04, but it should work. If in doubt, perhaps you should try to follow along with me in the video with 14.04, just to prove it all works. It should work exactly as in the video. Then you will know your setup is good. :good:

After getting a good build with a good setup, you can then branch out and try other things.... :) a bit of work, but worth a shot.
[Android General] DJABHipHop:
I'm building using 18.04 server and it works like a charme.

---------- Post added at 05:39 AM ---------- Previous post was at 05:26 AM ----------

Has anyone here buling android nugat or newer for Samsung_msm8226 device with work8ng microphone because I'm trying to port the S3NEO pie rom to the Samsung Galaxy tab4 10.1 & 8.0 all vereants exsept both the 10.1 & 8.0 3g witch uses Samsung_msm8226
[Android General] lucki1000:
[MENTION=7026648]AlaskaLinuxUser[/MENTION],

After I selected in lunch my device I get the failure common_full_phone.mk doesn't exist, after that i searched in my vendor directory for common_full_phone.mk but there is nowhere any file like common_full_phone.mk.

Can you help me?
[Android General] kwshl:
I'll start with aosp

theming would be the most basic thing anybody would want in a custom rom

then there are other sources which offer much more features and options

pulling them from stock aosp would be nearly impossible for noobs

but common sense work may not be that tough since we just mod wat is already there
[Android General] AlaskaLinuxUser:
So in your device.mk, or full[device].mk, or your board Config.mk file, you will see a call for "vendor/<ROM>/config(s)/common_full_phone.mk"

If you look in your vendor folder, under the ROM name, you will find the config or configs folder. In there are several make files. Choose one (probably common_full_phone, or common_gsm, or just common) and make sure your path in your device makefile points to it. :good:

I made several videos for that, here are some:

https://www.youtube.com/watch?v=AfuUmPv0ipk&list=PLRJ9-cX1yE1l6eu-vkgsj61U-Zv3fjzwZ&index=45&t=0s

https://www.youtube.com/watch?v=4Mn1MNRKGQk&list=PLRJ9-cX1yE1l6eu-vkgsj61U-Zv3fjzwZ&index=47&t=0s

https://www.youtube.com/watch?v=BejQd_i8reI&list=PLRJ9-cX1yE1l6eu-vkgsj61U-Zv3fjzwZ&index=48&t=2s

https://www.youtube.com/watch?v=_UEPZficFEM&list=PLRJ9-cX1yE1l6eu-vkgsj61U-Zv3fjzwZ&index=46&t=0s

Perhaps these will help. :good:
[Android General] fugee279:
Trying to build twrp omni for blu grand m2 (android 7.0)

lunch omni_find7op-eng

build/core/product_config.mk:234: *** Can not locate config makefile for product "omni_find7op". Stop.

Traceback (most recent call last):

File "build/tools/roomservice.py", line 353, in <module>

fetch_device(device)

File "build/tools/roomservice.py", line 319, in fetch_device

if check_device_exists(device):

File "build/tools/roomservice.py", line 312, in check_device_exists

location = parse_device_from_folder(device)

File "build/tools/roomservice.py", line 194, in parse_device_from_folder

for sub_folder in os.listdir("device"):

OSError: [Errno 2] No such file or directory: 'device'

build/core/product_config.mk:234: *** Can not locate config makefile for product "omni_find7op". Stop.

** Don't have a product spec for: 'omni_find7op'

** Do you have the right repo manifest?
[Android General] lucki1000:
My devices.mk looks so

# Inherit some common GZOSP stuff.
$(call inherit-product, vendor/custom/config/common_full_phone.mk)

and i don't have a custom folder in my vendor folder and nowhere the file "common_full_phone.mk" or " common_gsm"
[Android General] AlaskaLinuxUser:
You should have a vendor/gzosp/config folder, like this:

https://github.com/GZOSP/vendor_gzosp/blob/9.0/config/common_full_phone.mk

If you are building gzosp.

If you are, then that folder will exist. Now change your device.mk file to point to it. Not the "custom" folder. :good:
[Android General] AlaskaLinuxUser:
What happens if you:

$ . build/envsetup.sh

$ lunch omni_shamu-eng

$ make

Also, you do have an internet connection right?
[Android General] lucki1000:
How build I gzosp?
[Android General] DJABHipHop:
What would cause my rom/devices random shutdowns/reboots.

Second how would the output name of the zip in a custom rom.

exp: lineage_matissewifi-ota-1ea154f1b6 light_matissewifi-ota-1ea154f1b6 & lineage-14.1-20181126-UNOFFICIAL-matissewifi > light-1.0-20181126-UNOFFICIAL-matissewifi
[Android General] AlaskaLinuxUser:
I feel we are not communicating well. Let's start over.

Hi, what are YOU trying to build? What ROM, what phone, what android version? Did you watch my videos? How can I help you?

First, no idea without logs. Pull your tombstones after a random shutdown or reboot. Run logs with logcat and dmesg and look at kmesg.

Second. I don't understand the question, please explain what the question is.
[Android General] DJABHipHop:
change rom name to what I want and make my rom official instead of unofficial on the flashable zip and ota zip.

with the least amount of forking.

lineage_matissewifi-ota-1ea154f1b6 > light_matissewifi-ota-1ea154f1b6 & lineage-14.1-20181126-UNOFFICIAL-matissewifi > light-1.0-20181126-UNOFFICIAL-matissewifi & also can I disable or hide live display setting whatever better on battery and hide wifi tethering timeout
[Android General] AlaskaLinuxUser:
So you mean make your own ROM called light rom?

I have an entire video series on my channel about making your own custom rom brand.

As for hiding things in the settings, yes, you can do that, just fork settings and then edit them to your liking. My video playlist of making your own custom ROM brand covers that too. :good:
[Android General] DJABHipHop:
Yes I am, But does rebranding include the flashable both zips if not can you do a video on that.

Thank in advance
[Android General] lucki1000:
Okay,

Hello I try to build LineageOS 16 for Motorola Moto g5(Cedric)(android 8.1), I have loaded the source code of LineageOS 16 and now I have this problem.
[Android General] fugee279:
Same thing Here's the output of just `lunch` :

You're building on Linux

Lunch menu... pick a combo:

1. aosp_arm-eng

2. aosp_arm64-eng

3. aosp_mips-eng

4. aosp_mips64-eng

5. aosp_x86-eng

6. aosp_x86_64-eng

Which would you like? [aosp_arm-eng]

---------- Post added at 01:03 PM ---------- Previous post was at 12:46 PM ----------

Same result Here's the output of just `lunch`

twrp$ lunch

You're building on Linux

Lunch menu... pick a combo:

1. aosp_arm-eng

2. aosp_arm64-eng

3. aosp_mips-eng

4. aosp_mips64-eng

5. aosp_x86-eng

6. aosp_x86_64-eng

Which would you like? [aosp_arm-eng]
[Android General] krishV:
can't connect to sim and some apps not working

https://del.dog/usekucuqoc

sir i have successfully booted into the rom but it shows cannot connect to sim(no sim signals at top right corner) and some apps stopped working
[Android General] prabhjot368:
hi sir, I'm again up here with a question. i think it's a fault of my device trees , while listening to music with earphones whenever i try to take screenshot ,, screenshot sound leads to put the output of music from speaker instead of earphones..
[Android General] krishV:
This is similar to previous post which sir has posted but you missing some thing form him

# Set up environment

$ . build/envsetup.sh

# Choose a target

$ lunch aosp_$device-userdebug

# Build the code

$ mka bacon -jX

Use mka bacon -j4 for normal speed built with half threads

Or use mka bacon -j8 for speed built with full threads.:)
[Android General] AlaskaLinuxUser:
As with the videos that are already present, you need to fork everything and change every reference to lineage to say light rom. This is not an easy process. It takes work. The videos I have show you how to do it with each thing, you just have to repeat the entire process for everything in the manifest. :good:

Great, so you are building LineageOS 16 for the moto g5, and what happens. I'm not being facetious. I am helping about 10 people at a time, so I need you to tell me exactly what the problem is when you try to build.

Okay, so if you say "lunch omni_shamu-eng"? :confused:

First, well done building a bootable rom! That is a good accomplishment. :highfive:

Now, lets take a look at the logs. Always search for "error" "failed" or "crash" or "not found".

Unfortunately, opening the log does not work. The link takes me to "dogbin" but it is blank.
[Android General] AlaskaLinuxUser:
If you pull a logcat, and while it is running, you take a screenshot while listening to earphone music, you should see why it does this in the logs. As to why, I've never seen it before. Does this happen with stock rom?
[Android General] DJABHipHop:
Thank anyways for the help, but in your custom rom video guid I notes you rom said uslessrom when booted but the flashable zip/ota update zip still read lineage why is that?
[Android General] lucki1000:
After i loaded the source code of lineageOS 16 i have added this folder "device_motorola_cedric" in the "devices" folder of lineageOS 16, then i have added in the "vendor" folder of lineageOS 16 my devices vendor files, and now if i type 'lunch' and selected in the menu my device I get "error common_full_phone.mk" not found and I have searched my vendor(cedric) archive but there is no file like "common_full_phone.mk" and now my question how can I get this file?
[Android General] DJABHipHop:
Is there a ways to ajust the audio on the kernel level in similar fashion to KCAL and have a user app similar to your KCAL app
[Android General] AlaskaLinuxUser:
Correct. As I Menton in my videos, I did not go all the way to change everything from lineage to useless ROM. As I Menton in the video, it will take a lot of work, and I was only demonstrating how it can be done. :good:

Can you give me a link to your device_Motorola_Cedric tree?

Yes, there are several ways. It will take a lot of work on your part though. Two examples off of the to of my head are "simple sound mod", and " Faux sound ", both can be controlled by apps like kppd control.

You would have to mod your kernel and then build a similar app.

:good:
[Android General] prabhjot368:
no it only happens in oreo roms .. didn't tried in pie.. but till nougat it is working fine.. i took logs from syslog app .. i try to find error but didn't found .. can you check these logs..
[Android General] krishV:
Sir this is opening but it takes little time to load I have optimised many errors but still sim and apps are stopped work

https://del.dog/usekucuqoc
[Android General] AlaskaLinuxUser:
This appears to be your problem:

[23776.443607] wcd_imped_config, invalid imped, greater than 48 Ohm\x0a = 48

[23776.467380] q6asm_callback: cmd = 0x10da1 returned error = 0x2

[23776.467537] q6asm_send_asm_cal: DSP returned error[-2] audio audstrm cal send

But I don't know what it means. You would have to look for this online or in your code.
[Android General] prabhjot368:
okay thanks for your help.. I'll look into it
[Android General] krishV:
Sir , I have found that's my vendor problem but I am not able to find where is my errors please can you tell where did I went wrong:confused:

https://del.dog/usekucuqoc

or see this zip it have catlog.txt and please help me sir
[Android General] DJABHipHop:
Is dubbletaptowake worth it on tablets & if so how do I add it nougat-pie
[Android General] lucki1000:
I used this tree motorola moto g5 Cedric device tree
[Android General] Abhishek17599:
I am new to developing roms... I havent done anything yet other than getting hold of linux past 1 month.. i have a device "10.or G" which came according to crafted for amazon programme

I searched for its code name but couldnt find anything ... Will i have to give it a codename myself?... Can anyone help me with this?

One more thing ... Can anyone help me build my device source tree?... This device has no development at all so i want to start atleast something on it?
[Android General] DJABHipHop:
I looked my kernel for the Qualcomm Snapdragon 400 MSM8226 according to Qualcomm the Snapdragon 400 MSM8226 has no codex built in but has CONFIG_SND_SOC_MSM8226=y where would i find my sound module then in the sound folder an MSM8226 kernel?
[Android General] AlaskaLinuxUser:
This one is easy.

In your defconfig (which I think is this one: https://github.com/BAProductions/an...arm/configs/cyanogenmod_matissewifi_defconfig )

But any which one you use.

Search it for the word "codec". In this case 8 pop up (not in order) :

# CONFIG_SND_SOC_ALL_CODECS is not set
# CONFIG_MSM_QDSP6_CODECS is not set
CONFIG_MSM_QDSP6V2_CODECS=y
# CONFIG_WCD9304_CODEC is not set
# CONFIG_WCD9310_CODEC is not set
# CONFIG_WCD9320_CODEC is not set
CONFIG_WCD9306_CODEC=y
CONFIG_IR_LIRC_CODEC=y

So, any ones with a pound sign ( # ) are comments. Thus, the ones that are built are this:

CONFIG_MSM_QDSP6V2_CODECS=y
CONFIG_WCD9306_CODEC=y
CONFIG_IR_LIRC_CODEC=y

Now you only have 3 to look for. In this case WCD9306 is what you want to look at. In this case it is here:

sound/soc/codecs/wcd9306.c

and sound/soc/codecs/wcd9306-tables.c

The second way to get this information is to look in sound/soc/msm/ <your chip> in this case msm8226:

https://github.com/BAProductions/android_kernel_samsung_msm8226/blob/cm-14.1/sound/soc/msm/msm8226.c

And on line 32-34 we see this:

#include <qdsp6v2/msm-pcm-routing-v2.h>
#include "../codecs/wcd9xxx-common.h"
#include "../codecs/wcd9306.h"

In these c files, pound signs do not mean comment out, but rather with include means to include that file, in this case wcd9306.h which we already discovered. :good:
[Android General] beast97:
@OP

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