Questions tagged [kernel]

The kernel is a central component of most computer operating systems. It acts as bridge between applications and the hardware and also manages the systems's resources.

Filter by
Sorted by
Tagged with
-1
votes
0answers
13 views

How to write texts to framebuffer from application level? [closed]

I have db410c board (android) with an OLED display connected as framebuffer device. I need to write text to the display using framebuffer dev interface from application level( let's say system app). I ...
1
vote
0answers
63 views

Native Linux on Android's SOCs

I wanted to know for quite some time why linux operating systems are not ported to phones or tablets SOCs with android? Like how they are on desktops and laptops. I know linux can run on various ...
1
vote
1answer
116 views

Building Pixel 4a kernel [closed]

I'm trying to build my custom sunfish kernel on pixel 4a, note that the system is unlocked and rooted via "Magisk", After building success (for test I didn't change anything on kernel source)...
1
vote
1answer
74 views

Modifications of vendor image on Android 10 - alternative idea

Further to my earlier question here and according to the "Mounting Partitions Early" article, I'm looking the correct way to implement my new idea: Skipping the mounting in the startup of ...
1
vote
1answer
58 views

Modifications of vendor image on Android 10

There is a vendor image in my device I want to change (unpack/mount, doing changes, pack/umount). My purpose is to update boot.img with my new kernel (in rooted device). Unfortinatly it does not ...
1
vote
0answers
41 views

How to get information parameters from kernel after boot loads android?

when an (Android) bootloader starts loading kernel, it passes some parameters to the kernel (for example androidboot.verifiedbootstate, ...),how to get the information whether boot gets successful or ...
0
votes
0answers
44 views

How do I extract the Linux kernel from a vendor Android 4.2 installation?

I have an Asus Transformer AiO P1801-T. There seems to be very little information online about it. I am trying to get the kernel off of the device so I can install postmarketOS. Asus has the source ...
1
vote
0answers
50 views

How to automatically set a CPU governor on boot?

There are apps that can accomplish this task (e.g. "Kernel Adiutor" and others), however they in turn require other apps that can grant them root access to begin with, which is a lot of ...
0
votes
1answer
146 views

AOSP Android 11 Kernel build for Pixel3a/Sargo Touchscreen not working

Intro: I had an issue getting the build to compile, but finally got it to successfully build/compile, & installed on my phone, as covered here: mkbootfs command not found while trying to build ...
0
votes
1answer
157 views

mkbootfs command not found while trying to build aosp kernel

Followed guide here: https://source.android.com/setup/build/building-kernels mkdir android-kernel && cd android-kernel repo init -u https://android.googlesource.com/kernel/manifest -b android-...
1
vote
0answers
40 views

What can I do with an open source phone/kernel?

So this is my very first attempt in any kind of android development. I have here my phone's official kernel source. I was wondering if I can build this to boot or if it's ready for building. Also this ...
0
votes
0answers
86 views

How to kill or stop LMK daemon? (lmkd)

I'd like to kill low memory killer daemon(lmkd) to estimate swap performance of my smartphone. I tried these commands inside a rooted adb shell ps -ef | grep lmkd kill -9 $(lmkd_pid) However, lmkd ...
3
votes
1answer
101 views

Salvage Android Phone as Linux-Server (radio/wifi hardware broken)

My device has hardware problems with radio/wifi. Hence it's not possible to use sim-card or wifi. That also makes it restart frequently. Now it's useless as a phone. So I am trying to turn it in a ...
1
vote
0answers
115 views

Is it safe to turn off kernel panic in Android?

So I'm using a custom kernel that overclocked my CPU and GPU. I turned down the frequency to stock but the big cpu freq can't be set(restore itself to default after some time), causing my phone to ...
0
votes
0answers
16 views

Add more clock speeds

I know that the phone's kernel contains the clock speeds but is there a way to add your own clock speeds? What do I have to do to edit the kernel, where is the the clock speed data stored?
0
votes
0answers
26 views

How to process live sound output

I'm new to android and new to anything related to soundprocessing. The thing is, I have a simple deep learning model to eliminate noise (barking dogs, cars, ...). I want to apply (use) it to the sound ...
2
votes
0answers
62 views

Does turning off cpu cores will actually save power?

My phone is using custom kernel that has cpu hotplug in it. The hotplug name is AutoSMP and it has max cpu (big & little) core that should be online option in it. Currently I'm using 3 + 3 core ...
1
vote
0answers
126 views

Why does android has only one zram but linux distros use many zram equal to the number of cpu cores?

Most android roms have only one zram device [zram0] but linux distros use many zram like zram0, zram1 .... Why is it like that? Does using many zram consumes more power or adds complexity? what's the ...
1
vote
0answers
77 views

How to debug the kernel if the device only boot to fastboot [closed]

I am tring to compile the kernel source provided by the manufacture of my phone(OPPO PCCM00 precisely). Since it's not "well-opensourced", I changed quite a lot to make sure the kernel would ...
1
vote
0answers
26 views

What algorithm does Android used to translate touchscreen events to scancodes?

I have been debating someone recently about whether physical keyboards are faster than touchscreen keyboards. I have a lot of CS knowledge, but not a lot of Android knowledge. Therefore, during this ...
0
votes
0answers
61 views

Simulating WiFi device in emulator with mac80211_hwsim kernel module

I am looking to simulate an additional WiFi device in a rooted android emulator (to simulate a device my company makes). So far I have found the linux kernel module, mac80211_hwsim, which seems like ...
1
vote
1answer
47 views

syslog shows a bunch of FF messages

When I run dmesg I see a bunch of these errors, FF SUSPEND INT 0 ?\x09 FF WAKEUP 0 ?\x09 FF GAD SUS 0 ?\x09 What do these mean? Is this ...
0
votes
0answers
96 views

Kernel flash fails with "Dumping/splitting image failed. Aborting..."

I compiled this kernel for my OnePlus5T. After that, I packaged it with AnyKernel3 (I'm getting "Dumping/splitting image failed. Aborting..."). anykernel.sh # AnyKernel3 Ramdisk Mod Script # ...
1
vote
0answers
27 views

What is the most stable kernel for my ALE-L21 (2015) alice and ROM?

I'm pretty sure that this is already a weak legacy device but I want it to be useful and stable in performance to the max. Can you suggest the ultimate kernel for my 7.1.2 AOSP based custom ROM? Note:...
0
votes
0answers
26 views

How do I redirect speaker output to microphone input for a Redmi Note 4?

I have a Redmi Note 4 android device and I have installed LineageOS 16.0. The phone is rooted. I want to redirect the speaker output to the microphone. Could you please suggest the change required in /...
0
votes
0answers
43 views

How can I tweak my kernel to use all CPUs in my rooted device?

I have Huawei ALE-L21 alice (2015) Magisk-rooted Bootloader-Unlocked Xposed-Installed but it's somehow slower and I decided to tweak my CPU but here is what ES Kernel Manager shows: Also, I can't ...
0
votes
0answers
61 views

android's linux kernel scheduling mechanism vs harmony os's deterministic latency engine

I was reading upon Harmony OS and found that android's Linux kernel scheduling mechanism has some limitations as mentioned here: https://harmonyosofficial.com/ From Harmony OS website mentioned above: ...
2
votes
0answers
157 views

Android Boot Logs Before Logo

BTW, I am wanting to know what Android Boot Logs come before the Android Boot Logo. I see an Android Boot Logo, and I have to hold the power button, but what does it show in the boot logs in the ...
2
votes
1answer
1k views

Default kernel version of Android-x86 ISO

I know that android-x86[...]-k49.iso means it is using kernel version 4.9, but for some ISO like android-x86[...]-r4.iso, the kernel version is not mentioned. Since 64-bit isn't booting for me, it ...
1
vote
0answers
106 views

Linux Deploy Ubuntu share folder

I wasn't sure if I had to ask this question on a Linux Exchange or on the Android one, but since folder sharing is working fine on the Linux that are running on my computer, I thought that it is an ...
3
votes
1answer
120 views

Galaxy S7EDGE Random Reboots

Two months back from now I installed LightROM oreo, it was fine then but after two months it started to get slow. So I decided to flash pie or Q rom, but from my previous experience whenever I install ...
3
votes
1answer
3k views

How to make Ethernet work on Android over OTG?

I am trying to use an LTE modem connected to an Android 7 device over an OTG cable. The kernel recognizes the device and registers it with cdc_ether, but I am unable to use the connection from the ...
0
votes
1answer
25 views

Nexus 7 (2012 Wifi) Custom kernel bootloop [closed]

I trying to build custom kernel for my Nexus 7 (2012 Wifi) device. Changed few things builded successfull, no bootloop. But I enable this in menuconfig: Device Drivers -> Network device support -> ...
3
votes
2answers
2k views

How do I change the Battery Percentage that corresponds to a Voltage in Android

My original Li-ion has 3000 mAh capacity. I've modded my device to have a total of 7000 mAh capacity now. The enhanced capacity means that my percentage is not displayed accurately anymore. About ...
1
vote
0answers
439 views

How to force SELinux to permissive even when setenforce 0 is not working and kernel was 100% permissive when flashed?

I don't know what to do, I'm using Samsung Note 3 (Exynos) - N900 with custom Resurrection Remix 5.8.5 ROM (Android 7.1.2) with it's own permissive kernel and rooted with Magisk. Yesterday it turned ...
2
votes
0answers
149 views

Unable to take kernel logs on a non-rooted device [duplicate]

I am trying to take kernel logs but so far have only got errors like 'permission denied', 'path does not exist' or 'kernel log does not exist'. I have tried this kernel panic link, this crash logs ...
0
votes
0answers
81 views

How to make the kernel to also check termux bin folders

How can i make android kernel to always check termux binary folder for some binaries assuming they are not found in /system/bin ? I tried copying those binaries from termux bin folder into /system/bin ...
0
votes
0answers
360 views

Use AOSP generated boot.img with Android 10 factory images

Is there a way to use a boot.img generated by AOSP sources with factory images of lets say sailfish (Google Pixel)? I used to do this in the past, but now this results into a bootloop. logcat haven't ...
1
vote
0answers
24 views

PIO CLI support for normal Android

Question is simple, is it possible to integrate PIO CLI tool to normal AOSP project for cellular device? According to my current knowledge Android Things OS is not open sourced, at least not ...
1
vote
1answer
52 views

What feature of Android provide security to reset the /system changes on reboot?

I am stuck in a weird situation where I have two Android 10 phones from Samsung. I have rooted the stock recovery of both device as instructions given here. The problem is when I change something via ...
0
votes
0answers
53 views

Recompile kernel: no errors but it doesn't work

I'm a beginner, and at the moment I'm trying just to repack original boot image. I've discovered that boot partition is on the "/dev/block/mmcblk0p7", so I pulled it with adb pull /dev/block/mmcblk0p7 ...
1
vote
0answers
38 views

How to add a simple file on /system without actually modifying it but with using kernel sources? [closed]

From the time system-as-root came, developers have rooted different devices by patching the Magisk su binaries in the kernel. I want to understand how exactly they have done this so to start from ...
1
vote
0answers
1k views

How can I lock device on a particular network frequency using android kernel sources?

Motivation My goal is to select or lock LTE frequency bands on mobile devices with Qualcomm chipset. On some devices like Samsung Galaxy S5, we can access hidden menu: *#2263# to select the radio ...
1
vote
1answer
1k views

What is needed to run ELF binaries compiled from android APKs? (understanding android internals)

I'm trying to understand how Android works internally. Before ART, it used Dalvik to run java code. I guess it created a Dalkiv process in 'Linux' kernel which was simply a VM that ran the dex ...
0
votes
1answer
679 views

there is an internal problem with your device

When I install my custom kernel i got this message after reboot. The phone working normal no kernel panic or etc. system/build.prop vendor/build.prop
3
votes
1answer
3k views

SELinux permissive kernel - is it a security risk?

As in title. I am talking of Kernel, not ROM (plenty of questions dealing with ROM on this site). I have a OnePlus 7 running stock Android 10 and prefer a custom kernel. Of late, OnePlus hasn't ...
1
vote
0answers
105 views

How to increase the sample rate of the current measured from the Android kernel?

I need to monitor some applications power consumption of my Samsung A8, programmatically. I'm doing this by accessing the files: /sys/class/power_supply/battery/current_now /sys/class/power_supply/...
1
vote
0answers
1k views

How to capture kernel panic logs when ROM failed to flash?

Background: Stuck in boot-loop when unpack and pack system.img? Short Description: I am trying to modify the system partition of my Samsung S10 5G system-as-root treble device. I have successfully ...
3
votes
1answer
1k views

How can /proc/sys values be changed at boot (sysctl.conf does this on normal Linuxes)?

How can /proc/sys values be changed at boot? sysctl.conf doesn't exist on Android and echoing values to the proc files isn't persistent.
1
vote
1answer
4k views

SELinux always set to permissive, how to set enforcing permanently?

I flash a custom ROM to my HTC B2UL. The ROM, by default, has the SELinux policy set to Permissive instead of Enforcing. I can use adb shell setenforce 1 to make SElinux enforcing. But after reboot, ...

1
2 3 4 5 6