Questions tagged [android-kernel]

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.

218 questions
1
vote
1 answer

How to list the currently loaded drivers in Android (command to know the running drivers)?

I am new to Android Linux. I just wanted to know the command to get the list of drivers or modules loaded on the Android device (something like lsmod which we have for basic Linux flavors). I tried ls /system/lib/modules, this gives the list of…
1
vote
1 answer

Change the output of "getprop" in android adb shell

I am trying to change the output when we are using getprop in adb. I know that the init will read the system properties from /default.prop /system/build.prop /system/default.prop /data/local.prop. In my case, I only got the /default.prop and…
Xudong Shao
  • 199
  • 3
  • 12
1
vote
0 answers

EM28XX with Android 7.1.1

I have two devices: The computer on Android 7.1.1 (Kernel 3.18); The camera, with a chip EM28XX. This camera works fine for Linux. I tested it on Ubuntu 18.04, Debian 9 and Linaro (Debian for ARM). But I can not figure out how to make it work for…
1
vote
1 answer

Android Zimage Kernel Can Be Unpacked?

Hy Guys .. I'm making a custom kernel project for my device, the project is almost done, but I'm having constraints about the camera, and in the kernel source there are no suitable drivers for my phone, my last choice is just to unpack zimage stock…
1
vote
3 answers

Timer not expiring precisely during sleep state in Android

We are trying to implement timer for native code in android .The timer should work precisely during wake and sleep mode .When timer expires then our native code will send DPD(Dead peer detection) messages to the network We tried following…
somil
  • 13
  • 3
1
vote
1 answer

Is it possible to use OTG Host Negotiation Protocol to change modes while connecting two devices?

I have two android phones connected with an OTG cable. Obviously, the cable forces once phone into host mode and the other becomes the peripheral. I would like to be able to dynamically alternate the host/peripheral status of the devices without…
kfilbrun
  • 123
  • 1
  • 6
1
vote
0 answers

Kernel module for create hostapd on android things, it is supported?

Hello I am trying to create an access point on android things for raspberry pi 3, the hostapd configuration: cat > data/misc/wifi/hostapd.conf <<…
1
vote
2 answers

GCC 6 shift over flow error,

CC drivers/iommu/msm_iommu-v1.o In file included from include/linux/io.h:22:0, from drivers/iommu/msm_iommu-v1.c:18: drivers/iommu/msm_iommu-v1.c: In function…
Jcfunk
  • 65
  • 6
1
vote
1 answer

camera filter for other apps in android

If app A in Android uses camera, can I create an app B that applies custom filter to app A so that app A gets the video stream from app B as if the stream is from the camera directly? In other words, I want to pipe the camera input. Camera…
Pu Shi
  • 31
  • 3
1
vote
0 answers

warning: "MTK_MULTI_STORAGE_SUPPORT" is not defined [-Wundef]

Hello this warning appears while compiling source code 16 times also the zimage it produce is not working how to define "MTK_MULTI_STORAGE_SUPPORT" here is the Warning from log : In file included from…
1
vote
0 answers

Debug Android read/write operation

I would like to debug the Android/Java API calls from the highest call (from a FileInputStream) to the system call on kernel level. StringBuffer datax = new StringBuffer(""); FileInputStream fIn = openFileInput(filename); InputStreamReader isr =…
Fabman22
  • 183
  • 12
1
vote
1 answer

Why SELinux policy in /sepolicy and /sys/fs/selinux/policy do not match?

I'm using Android SELinux enforced device and doing the following: adb pull /sepolicy sepolicy1 adb pull /sys/fs/selinux/policy sepolicy2 diff sepolicy1 sepolicy2 I get: Binary files sepolicy1 and sepolicy2 differ From examining with a hex viewer…
skoperst
  • 2,259
  • 1
  • 23
  • 35
1
vote
1 answer

Custom Android Kernel show black screen

I'm trying to launch android emulator via custom compiled kernel. I downloaded goldfish kernel from android repository and used branch origin/android-goldfish-3.10 I was able to compile kernel successfully by these commands. $ export ARCH=x86 $…
Umer
  • 106
  • 1
  • 7
1
vote
1 answer

Enlarging Android Kernel Log Buffer more than 4MiB

I want to have a large log buffer for my logging needs on an Android device (Nexus 5). I've already increased the log buffer size to 4MiB by changing CONFIG_LOG_BUF_SHIFT to 22 and compiling the kernel and everything was working fine. But if I set…
M.D
  • 11
  • 2
1
vote
1 answer

How do I debug Android native code into kernel?

I compiled goldfish kernel with: [ ] Optimize for size, [*] Kernel hacking [*] Compile the kernel with debug info [*] KGDB: kernel debugging with remote gdb —> [*] Enable dynamic printk() call support I started the AVD…
Donald Wu
  • 107
  • 1
  • 9