Core component of Android OS that bridges between applications and the actual data processing done at the hardware level. It is based on the Linux kernel.
Questions tagged [android-kernel]
218 questions
3
votes
3 answers
Automatically boot-up MTK devices (non-samsung) when docked
I'm developing a standalone kiosk using an android tablet(iBall running on 4.2.2).Its has the chinese MTK in it.
Suppose when there is no power,then eventually the tab's battery will drain out and have no juice left in it.When the power comes back I…

Basher51
- 1,319
- 1
- 17
- 28
3
votes
1 answer
android boot - where is the init.%hardware%.rc read in init.c ? where are services started?
Going through the code in init.c and trying to figure out 2 things:
Where is the hardware specific init.%hardware%.rc read ?
Where are the services started - meaning zygote,
/system/bin/servicemanager etc
An example of an init.%hardware%.rc would…

Mr_and_Mrs_D
- 32,208
- 39
- 178
- 361
2
votes
1 answer
How to compile a kernel module file for Android
I'm trying to compile kernel module files for Android. The goal is then build nfs-utils, to get a NFS server working on my Pixel 7 phone.
I downloaded the AOSP project and built a kernel:
$ mkdir android-kernel && cd android-kernel/
$ repo init…

simonzack
- 19,729
- 13
- 73
- 118
2
votes
1 answer
Building custom kernel for android emulator
I'm trying to build an AVD image with custom kernel for android emulator, following instructions at
https://source.android.com/devices/automotive/start/avd/android_virtual_device
The problem is that the emulator only displays black screen when using…

wekso
- 39
- 7
2
votes
1 answer
recipe for target 'broadcom/bcm2711-rpi-4-b.dtb' failed
I am trying to build an Android Automotive OS for Rpi 4b image following this post by Snapp Automotive
When I try to build the RPi kernel, running
ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- DTC_FLAGS=”-@” make broadcom/bcm27
11-rpi-4-b.dtb
throws…

Arka Prava Basu
- 2,366
- 3
- 18
- 34
2
votes
0 answers
"git binary diffs are not supported" error upon running "patch -p1 < patch-file"
I have a .patch file that I want to apply to the android kernel, and I do so via:
patch -p1 <
After running it, I see git binary diffs are not supported print for the following line of the patch:
+PRODUCT_COPY_FILES += \
+ …

Jazzy
- 324
- 4
- 15
2
votes
0 answers
Is it possible to install Android Generic System Image (GSI) on QEMU-AARCH64
I am trying to implementing bare metal instance on AWS to install the Android Generic System Image on qemu-aarch64. Is it possible to do that. if yes what is the possibility to connect the installed android through VNC viewer.

Jerald Jacob
- 77
- 2
- 10
2
votes
1 answer
Modify Linux kernel config file
How do I modify .config file in linux kernel?
When I type make device_defconfig a .config file is in created in the kernel directory. But when I type make menuconfig the .config file is modified. I would like to modify the _defconfig in…

zer0day
- 49
- 1
- 6
2
votes
1 answer
Stock boot.img not booting after re-packing
I have a fully functional and previously tested official boot.img for my device.
But when I tried to unpack it and repack it again(with no modifications whatsoever), the kernel fails to start as usual.
I get a "Kernel is not seandroid enforcing"…

Kratos
- 61
- 3
- 5
2
votes
1 answer
How does android bootloader know it has to boot from Slot B?
After the OTA update is successful, AOSP marks the target slot B to active. Now, when the next boot happens, the device boots from slot B. Now my question is how does the bootloader or android come to know it has to boot from that active slot?
Does…

swetabh suman
- 1,949
- 2
- 19
- 24
2
votes
0 answers
I am not able to find my device_code.defconfig file in config folder of the source
I am trying to compile/build a custom kernel for "Asus_zenfone_max pro_m1" so i have downloaded the kernel source from the manufacturer's website but i see that there is no "defconfig" file present for X00T (my device code name) in the…

Swapnil Lanjewar
- 646
- 10
- 26
2
votes
2 answers
How does the kernel that ships with a device differ from the Android Common Kernel?
I'm curious to know what changes are made to the Android Common Kernel before the final version of a device's kernel is built.
Secondly, I'd like to know if there are any devices that could run an unmodified Common Kernel.

Uclydde
- 1,414
- 3
- 16
- 33
2
votes
0 answers
Error in loading android kernel module (No symbol version for module_layout)
I am trying to load a kernel module for android.
First, I've download the kernel source code from the target device which MotoG5 from here: https://github.com/MotorolaMobilityLLC/kernel-msm. Also, I've added these files which contain f2fs for…

user1584540
- 21
- 1
- 1
- 5
2
votes
1 answer
how to wake up system from sleep using gpio-keys interrupt
UPDATE : I changed the keyboard layout file (gpio-keys.kl) to the following:
key 115 POWER WAKE
key 114 POWER WAKE
As seen, I now registered the volume buttons as POWER keys in Android and it wakes up the system. However, I wish to have…

JoeG
- 33
- 1
- 7
2
votes
1 answer
Why android introduce binder in linux kernel?
I'm trying to learn into android (linux) kernel, and I know that android needs very fast (zero-copy) IPC, but still, I don't get the reason why binder needs to be there.
Can the same thing done with unix socket + mmap /dev/shm file ?
Let's say using…

win-t
- 159
- 1
- 9