yashsingh1/xdaforums huggingface dataset:
[Android General] mdmaher:
Hi [MENTION=7026648]AlaskaLinuxUser[/MENTION]

Do you know how to fix vibration and Headset jack bug in the kernel ????

I finished porting Nougat 7.1.1 for my device mentioned below. Since there was no proper kernel, I ended up using the stock zimage of the rom im porting from since both devices are same but a bit different...

It successfully booted but with only these two bugs.

The kernel also seems to cause ui stutter, like when scrolling, opening apps etc....

My device is(J700F - J7 2015 ) with stock android 6.0.1

And I am porting it from J700T which has got 7.1.1 update... I used J700T stock kernel.

So how can I fix this bug ????

Hoping for some help

Thanks
[Android General] aala27:
Hi,

Can you please share how you fixed this error? I am running in to the same error as well when building my custom rom.

Thanks,
[Android General] SonOfSparda:
Hello to all, I successfully was able to compile LOS15.1 for my Yuphoria. But the Quick Settings UI is quite old in this ROM, So is there any way to pick these Quick Settings/Tiles UI from DotOS-O or other ROMs? Please explain the procedure to do this.
[Android General] DJABHipHop:
Telgram is where it at
[Android General] SonOfSparda:
Any specific group? If possible, link me here.
[Android General] AlaskaLinuxUser:
t.me/alaskalinuxuser_romdevelopment
[Android General] logan123456:
I need Help

this error

E: Unable to locate package zlib1g-dev:i386
[Android General] EzzyWalsh:
Minimum Space Required

What is the minimum storage you recommend for the beginner's course
[Android General] NextGeneration9501:
hello sir, may i need your attention, please? i got errors building my aosp. i've followed sony's guide 100% and i got this instead.

[ 99% 444/445] finishing build rules ...

FAILED:

external/wpa_supplicant_8/hostapd/Android.mk: error: "hostapd (EXECUTABLES android-arm64) missing lib_driver_cmd_simulated (STATIC_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.

external/wpa_supplicant_8/hostapd/Android.mk: error: "hostapd_nohidl (EXECUTABLES android-arm64) missing lib_driver_cmd_simulated (STATIC_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.

external/wpa_supplicant_8/wpa_supplicant/Android.mk: error: "wpa_supplicant (EXECUTABLES android-arm64) missing lib_driver_cmd_simulated (STATIC_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.

frameworks/opt/net/wifi/libwifi_hal/Android.mk: error: "libwifi-hal (SHARED_LIBRARIES android-arm64) missing libwifi-hal-emu (STATIC_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.

frameworks/opt/net/wifi/libwifi_hal/Android.mk: error: "libwifi-hal (SHARED_LIBRARIES android-arm) missing libwifi-hal-emu (STATIC_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:1017: error: exiting from previous errors.

22:55:51 ckati failed with: exit status 1

#### failed to build some targets (02:00 (mm:ss)) ####

please help me, sir. im trying to build aosp 10.0 r40 for my x performance (f8131). i chose aosp-arm64 to build aosp as there are no f8131 in lunch's list. im using latest ubuntu 20.04 lts

i reran the command three times and it is not working at all. i've even ran "ALLOW_MISSING_DEPENDENCIES=true" before i ran "make -j$(nproc)" again. can't get through either.
[Android General] AlaskaLinuxUser:
RomDevelopment

https://t.me/alaskalinuxuser_romdevelopment

Sent from my Sony Xperia XA2 Ultra with Android 10
[Android General] kinghell:
Greetings!

I've managed to build a kernel based on your tutorials. Awesome tutotrials btw :fingers-crossed: However I cannot find the Image.gz at the end. I've opened a thread for this, my issue is a bit complicated. https://xdaforums.com/general/rooting-roms/root-newbie-help-to-root-sony-walkman-t4151005

Could you give a hint for this newbie?

Thank You!
[Android General] AlaskaLinuxUser:
Glad they are useful, I recommend you go here:

<br />

RomDevelopment<br />

https://t.me/alaskalinuxuser_romdevelopment<br />

<br />

Sent from my Sony Xperia XA2 Ultra with Android 10
[Android General] kinghell:
I've spoken with the guys for over 2 hours, we tried bunch of ideas, but tehere's always a showstopper issue. I ran out of ideas. Never seen kernel source like this before :confused:

I've spent 5 (here goes my holiday I guess) days overall for this, I think it's time to give up haha. There's literally no other site I can google it.
[Android General] Sharashchandra:
Hi, Thank you for the video series.

Hope you are doing good.

I am trying to compile TWRP for Nokia 6. I used 6.20A kernel as source and compiled twrp but the compiled recovery image is not at all booting.

Then I change the kernel of the compiled recovery image with kernel of (https://xdaforums.com/t/...p-3-2-3-0-modded-for-pie-and-root-it.3903818/) modded recovery image using carliv image kitchen and it boots. i am just curious what mistake i have done while compiling?

Can you please help me?

Stay safe.

Thanks in advance
[Android General] AlaskaLinuxUser:
You can find me on telegram here:

https://t.me/alaskalinuxuser_romdevelopment
[Android General] rohitrss:
@AlaskaLinuxUser Can we follow the same guide to build TWRP for Android 11 device?
[Android General] AlaskaLinuxUser:
Yes.
[Android General] ObsidianMaximus:
deleted
[Android General] geoeducativa:
I have a doubt, if someone who really knows can clear it.

when unpack boot.img

these files are obtained

boot.img-base

boot.img-cmdline

boot.img-pagesize

boot.img-ramdisk.gz ----> ramdisk

boot.img-zImage ----> kernel

the kernel source code is inside that file: boot.img-zImage

or boot.img-ramdisk.gz

the kernel source code is inside that file: boot.img-zImage

or boot.img-ramdisk.gz

or even both, but the source code needs to be extracted from which file?

I am working on this equipment, here, which is not supported.

excuse my bad english, any help is appreciated
[Android General] AlaskaLinuxUser:
AndroidRomDevelopment

You can view and join @alaskalinuxuser_romdevelopment right away.

t.me
[Android General] lolvatveo:
sir how to overclock cpu,gpu,ram in exynos?
[Android General] nalas:
In dts file like exynos9820.dts or dtsi for older exynos cpu. You can find on github a lot of commits.
[Android General] lolvatveo:
undervolt CPU and cleanup · daishi4u/J7_Afterburner@1ce2039

My take on a custom kernel for the j7eltexx. Contribute to daishi4u/J7_Afterburner development by creating an account on GitHub.

github.com

this is kernel commit only

if you add new frequency, ramdisk must be edited after kernel editing. This is a step missing when overclocking instructions, NO VIDEOS OR INSTRUCTIONS FOR THIS. Can you make one?

Look, The hell Is this? for overclock, this is not include in o.c commit. https://github.com/daishi4u/J7_Afterburner/commit/24dc89fa6cba3a244040a0bbe5bf33b2d92e9207

build both old and new ramdisk zips · daishi4u/J7_Afterburner@1c62e3c

My take on a custom kernel for the j7eltexx. Contribute to daishi4u/J7_Afterburner development by creating an account on GitHub.

github.com

this is not present in most overclocking kernel commits because I find it not kernel related not even in the source code. WITHOUT ANY EXPLAINING, INSTRUCTIONS OR HOW TO BUILD THAT I KNOW
[Android General] lolvatveo:
so when I overclocked and did some more research. I'm stuck on a **** thing that is the device tree, I have to learn a lot about it before overclocking successfully, why? make ramdisk overcock, build complete boot overclock image instead of only work with kernel.
[Android General] nalas:
You have to edit drivers/cpufreq/exynos-acme.c or dts files in arch/arm64/boot/dts

If exynos version
[Android General] lolvatveo:
also did it. I have j7 2015 & j5 2016 both are qualcomm & exynos need a ramdisk modified. Not all phones have CPU frequency managed by the kernel. Most phones need ramdisk editing to change the default value in the /sys directory, it is also the key to deciding the cpu frequency instead of the kernel. Highest frequency, lowest frequency, current frequency, change governor,... all tunable is in /sys. did you learn about ramdisk. it is the scripts that are preloaded into the ram, add more command and make execute file, put it to ramdisk to apply the new frequency of the kernel. i hung around with the damn driver.c and cpu/voltage.dtsi/.h then compile. did it more than 30 times failed and learned, so i guarantee the kernel isn't the only thing driving the cpu
[Android General] lolvatveo:
1. https://github.com/FacuM/android_ke...mmit/687e9072f32ac0ba322829a0f2b36e25a71493f1

this is the most complete commits, not only shows the modified kernel, it also shows the device tree files. No instructions or guide on it, only dt.img and ramdisk binaries, NO BUILDING AND MODIFYING GUIDE. what is dt.img how to flash, using??? what, how, SHIIIIIT!!!

2. https://github.com/Demicro/sm-j510fn_kernel/commit/6e82e972102dd894c3660b57f742833d7b1023a8

kernel commit only, does not show how ramdisk and device tree file are changed 'cause it is not in kernel source code, IT'S DEVICE TREE CODE.
[Android General] nalas:
Try maybe compare full custom and stock ramdisk..what was changed in unpacked ramdisk files...linux 3.10.xxx is old Ive started from 3.18.xxx and there was not any ramdisk oc uc, ect. Only we can give some permission for change 0644 and next block to system use only by 0444 and chown .. in init.rc or custom service imported in init.rc file....
[Android General] lolvatveo:
BlackMesa123 / Quasar_Kernel_NN_8916 / commit / 8799a7ed90fc — Bitbucket

bitbucket.org

in j5 2016 ramdisk in boot.img of quasar kernel is diff from stock, it has new bash .sh execute file like init.quasar.sh include some command for apply changed to cpu frequency, and other files or sth. These commands apply changes to the operating system. and OS is in ROM development, at first I didn't think OS or ROM it's related to overclocking, but now I have to learn more about ROM because maybe I will find what I need. I learned a lot of knowledge about ROM just to find out how to overclock, yes I have to learn a lot and it takes a lot of time and health but what I need is very small that is overclocking. I have drawn the conclusion and confirmed that sometimes the kernel is not only what controls the cpu it is also the ROM, both related to the cpu. I tried destroying the cpu gpu table, modifying the extremely low voltage 1.35v -> 0.5v in the kernel and compiling but nothing happened I very very sure that I edit kernel code exactly, the cpu frequency table stays the same along with the hot temperature that proves the power still constant stock and I got the damn thermal throttling again, but gpu can overclock maximum frequency I can't add new freq and make it apply, gpu is special it won't boot if I destroy it, I can overclock or change frequency I prefer overclock max freq, alsl I can delete some freq but it can't have more than 3 different freq from lowest and seem easy to overclock than cpu but it can't add new freq or add andreno idler without ramdisk modded. in general you can't tell me wrong or mistake If you don't have samsung j5 2016 or j7 2015 and try to overclock like me. when build kernel I have compile it more than 100 times only aim for overclock I feel cpu overclocking on phone is hard as **** and many people fear about it then very rare infomation how to overclock phone i'm stuck when no one taught me, I can't contact the overclocked devs, sometimes they put emails in their commits or I contact in other ways, but we're strangers to each other, never had an "intimate" conversation and spoon in gold like a children for me to overclock. They have to live their lives, but if someone is kind, kernel genius and compatible with me they will help me. And I will make a video about it, help lot of people like me. I don't want it will happen to others. and cpu on phone is not like pc so it's like fixed, few people know how to overclock it. so the manufacturer's engineer will know well how it works, or the excellent developers will learn how the code works themselves. The kernel has a huge code or executable code and it's enough to drive you crazy if learn all even the brilliant one, but for the savvy who inherits the knowledge of those who have spent a lot of time and health on it then overclocking will be very simple.

I DON'T KNOW HOW TO EDIT RAMDISK TO APPLY NEW FREQUENCY OR MODIFY SYSFS (/sys) TO OVERCLOCK LIKE THIS https://xdaforums.com/t/kernel-bricked-kernel-flo-deb.2559107/ only this post have talk about edit ramdisk or sysfs to overclock and use new custom kernel added features
[Android General] lolvatveo:
I found max min frequency cpu is not only related to kernel, device tree, sysfs (/sys/devices/system/cpu->where frequency have to overwrite) but also uboot. WHAT IS UBOOT, HOW TO EDIT?
[Android General] IJoseph23:
Thank you so much, I made my first ROM with your help and now I'm working on a new phone but the challenge is that it doesn't have it's kernel source released
[Android General] AlaskaLinuxUser:
That's great!

There is always the extracted prebuilt kernel.
[Android General] m3rcury02:
Is anyone up to learning/teaching kernel development? I would appreciate it very much if you could. Thanks.

Please feel free to PM.
[Android General] sd_shadow:
XDA & Telegram

I'm creating this thread, but if any Senior Mods or Admins feel it would best be discussed in [All XDA Members] Feedback/Recommendations for XDA thread (I was unsure as that thread is more for suggestions & feedback, I don't know if criticism...

xdaforums.com
[Android General] ZG_DEV:
Can I use this guide to build custom roms based on modern Android versions ? (android 12-13-14)

+ TG chat link in the OP is expired ( does not work)
[Android General] Rawwrius01:
Here is my source.

https://github.com/tinyleg/Exynos7870-kernel
[Android General] nickrule1896:
I took your advice earlier today, finally built a bootable kernel off LineageOS sources. Currently using the same kernel source as the one you recommended. :D My project just requires me to add some governors and schedulers, hopefully everything plays out well from now on. Thank you so much!

P.S. Though I would still like to figure out what's wrong with the stock kernel, there are people with similar isssues posted in Q&A for S7, but not much help given to them :(
[Android General] avisek87:
One question.... I apologise if it is already included in the video, cause i am just about to begin. What is the minimum configuration required in pc??
[Android General] :
16 go of RAM or you will have jack problems.

The other things will just make your compilation slower.

PS: if you have less than 16 go of RAM follow the killjack guide on github.

Fuuckkk jack server link :

https://github.com/mikecriggs/fuuckjack

REMOVE one u in fuuck in the url, thanks to xda?
[Android General] avisek87:
Thanx a lot...
[Android General] AlaskaLinuxUser:
Great! So to be clear, using the lineage os sources worked then? That's great! Sounds like their source requires some extra work to build.

Be sure to slap francos21's thanks button for answering your question ( that's proper XDA etiquette. )

Great answer. For future readers, can you edit your answer and include a link to that guide?

It also depends on which version of Android you are building. I built lollipop, and marshmallow with 4 GB of ram, and nougat with 8 GB on a laptop.
[Android General] AlaskaLinuxUser:
Well,

I am no expert. But I don't think this is doing what you think.

https://github.com/tinyleg/Exynos7870-kernel/commit/9ac28d8770ce91c33d3e477c609e1dbd26287dbe

This commit you made, you changed the max from #2 to #3, which actually would bring it down, not up.

-	cl1_max_support_idx = <2>;
-	cl1_min_support_idx = <14>;
+	cl1_max_support_idx = <3>;
+	cl1_min_support_idx = <16>;
cl1_boot_max_qos = <1482000>;
cl1_boot_min_qos = <1482000>;
cl1_boot_lock_time = <40000000>;
cl1_en_ema = <1>;
cl1_regulator = "BUCK1";
cl1_en_smpl = <0>;

/* CL0 table ->	idx freq volt bus_lock */
cl0_dvfs_domain_name = "dvfs_cpucl0";
cl0_dvfs_table = < 0 2002000 900000 933000
1 1924000 900000	933000
2 1794000 900000	933000
-	3 1690000 900000	933000
+	3 1690000 1268750	933000
4 1586000 900000	933000
5 1482000 900000	933000
6 1352000 900000	933000
7 1248000 900000	933000
8 1144000 900000	933000
9 1014000 900000	933000
10 902000 900000	933000
11 839000 900000	933000
12 757000 800000	450000
13 676000 800000	450000
14 546000 800000	450000
15 449000 800000	450000
16 343000 800000	450000 >;

/* CL1 table ->	idx freq volt bus_lock */
cl1_dvfs_domain_name = "dvfs_cpucl1";
cl1_dvfs_table = < 0 2002000 900000 933000
1 1924000 900000	933000
2 1794000 900000	933000
-	3 1690000 900000	933000
+	3 1690000 1287650	933000
4 1586000 900000	933000
5 1482000 900000	933000
6 1352000 900000	933000

So, you said don't use #2 as the max, which is a frequency of 1794000 (1.79 ghz), and said use #3 instead, which is only 1690000 (1.69 ghz). Notice also that the table legend says: table ->	idx freq volt bus_lock

So you changed the voltage for a frequency, but not the frequency itself. You actually significantly changed the voltage by over 30% increase, which is rather high. Not necessarily wrong, but high. Somewhere is a standard in your files dictating the min/max voltages. Is that within those?

What is the stock max frequency, (and what chip/phone is this again?) And what is the stock minimum frequency? Did your change affect the minimum frequency?

Just some thoughts.
[Android General] Rawwrius01:
Well that's strange :D I copied the commit from a Kernel Dev who build for another Samsung device with the same SOC (exynos 7870) and he named the commit "OC cpu up to 1.7GHz and UC to 343 Mhz"

Here's the commit:

https://github.com/Oxygen-Kernel/j7y17lte/commit/91592adcbee943ce0339872c9a3440c49169fb6d

The stock frequency's are 4x 1.6 GHz max/ 4x. 1.0 GHz max and 546Mhz min it's a octacore cpu

Gesendet von meinem ONEPLUS A3003 mit Tapatalk
[Android General] AlaskaLinuxUser:
:laugh::laugh::laugh::laugh:

Take another look:

-	cl1_max_support_idx = <4>;
+	cl1_max_support_idx = <3>;

He changed from a max of 4 to 3! So he moved up from 1586 mhz to 1690 mhz!

Hope that helps! So you should move yours from #2 to #1 to OC. :good::highfive:
[Android General] AlaskaLinuxUser:
Hey everyone!

Just wanted to let you know, while I was working on another project, I also made new HD videos for LineageOS Nougat. Posted new links in the Downloads and YouTube for those videos. I'm hoping to eventually replace all of the old material with HD videos, but I am doing them as they come up, rather than plowing straight through them. Thanks!
[Android General] Rawwrius01:
The frequency change was also necessary because the phone will turn off in high cpu usage (launching a app is enough).

But the HW info app says the max cpu clock is still 1.5 MHz ?

Can you explain what du you mean with #2 to #1 ?? My English ist that good I think [emoji28][emoji23]

Gesendet von meinem ONEPLUS A3003 mit Tapatalk
[Android General] AlaskaLinuxUser:
Sure, in your code you did this:

-	cl1_max_support_idx = <2>;
-	cl1_min_support_idx = <14>;
+	cl1_max_support_idx = <3>;
+	cl1_min_support_idx = <16>;
cl1_boot_max_qos = <1482000>;
cl1_boot_min_qos = <1482000>;
cl1_boot_lock_time = <40000000>;
cl1_en_ema = <1>;
cl1_regulator = "BUCK1";
cl1_en_smpl = <0>;

/* CL0 table ->	idx freq volt bus_lock */
cl0_dvfs_domain_name = "dvfs_cpucl0";
cl0_dvfs_table = < 0 2002000 900000 933000
1 1924000 900000	933000
2 1794000 900000	933000
-	3 1690000 900000	933000
+	3 1690000 1268750	933000
4 1586000 900000	933000
5 1482000 900000	933000
6 1352000 900000	933000
7 1248000 900000	933000
8 1144000 900000	933000
9 1014000 900000	933000
10 902000 900000	933000
11 839000 900000	933000
12 757000 800000	450000
13 676000 800000	450000
14 546000 800000	450000
15 449000 800000	450000
16 343000 800000	450000 >;

/* CL1 table ->	idx freq volt bus_lock */
cl1_dvfs_domain_name = "dvfs_cpucl1";
cl1_dvfs_table = < 0 2002000 900000 933000
1 1924000 900000	933000
2 1794000 900000	933000
-	3 1690000 900000	933000
+	3 1690000 1287650	933000
4 1586000 900000	933000
5 1482000 900000	933000
6 1352000 900000	933000

So you made the max = cl1_max_support_idx = <3>; When it was -	cl1_max_support_idx = <2>;

On your list:

2 1794000 900000	933000

3 1690000 900000	933000

So you said don't use #2 as max, use #3 instead, but #3 is lower than #2. So this commit did not overclock you, you actually made it work slower than before.
[Android General] fredzio:
Hi

I'm trying to get to compile LOS 15.1 for klte on FreeBSD (not supported, I know). After lots o trials and errors I managed to get to about 85% complete, however I'm stuck and I hope someone more knowlegable of the internals of the build system can help me.

Please note I don't use jack, as it always throw an error on startup.

The error I'm stuck with is this one:

Exception in thread "main" java.lang.AssertionError: java.lang.ClassNotFoundException: sun/nio/fs/LinuxFileSystemProvider

Now it's getting funky:

- if I just use "native" environment (i.e. no source build/envsetup.sh) I am able to execute the offending line by hand (copy paste in another terminal, no error)

- if I use the modified environment, I always get the error.

sun/nio/fs/LinuxFileSystemProvider is defined in rt.jar, and if I trace the build I can see that rt.jar is properly found and opened.

Does anybody have any clue what can cause that?
[Android General] donwizzy:
Excellent job man!

---------- Post added at 07:52 PM ---------- Previous post was at 07:50 PM ----------

Hi. Need help pls with custom kernel for samsung galaxy j5 with support for usb wifi (monitor mode wifi-s). If needed,would upload d modules. Tnx.
[Android General] AlaskaLinuxUser:
Interesting. However, this is a series on the basics of building custom roms and kernels. I recommend using Ubuntu 14.04 rather than FreeBSD. That said, I applaud your efforts, but I'm not sure how to help you. Sorry.

Thanks! But I need more information about what you want to do, or what is going wrong. Did you build a kernel already? What failed while building? Or did it not flash? Or are you looking to learn how to build a module for a kernel that you have? Please be more specific so we can help you better. :good:
[Android General] Black_J:
What is the difference between eng and userdebug builds??

And How to trigger these builds?
[Android General] smart-t78:
https://source.android.com/setup/develop/new-device#build-variants
[Android General] AlaskaLinuxUser:
Great question!

Great answer! Very helpful information on the different build variants!

The only thing that is not readily apparent when you follow that link is how to choose which variant to build, and how to "trigger" them.

When you type Breakfast, Brunch, or Lunch, depending on the ROM, you choose from the list the device and build type you want. Or you can type it in at the prompt, such as:

$ brunch lineage_jfltetmo-user

The -user is for user, -userdebug and -eng can also be used.

Typically, when I am building for the first time, I build an -eng variant, to get the most debugging options. Then, when everything is more stable, I will switch to -userdebug. Finally, if releasing to the public without root, then build -user.
[Android General] AlaskaLinuxUser:
Just a quick update: The new HD videos for compiling OmniRom Oreo are up on GitLab and on YouTube, and the OP has been updated with links! During this I cover adding a device to your local manifest, so be sure to check the videos out!