android-kernel

Android 10: Update kernel modules

最后都变了- 提交于 2020-08-09 08:53:12
问题 This bounty has ended . Answers to this question are eligible for a +50 reputation bounty. Bounty grace period ends in 12 hours . onetyone wants to draw more attention to this question. Background: I am working with a Pixel 4, build QQ2A.200501.001.B2 , which is Android 10. When I build the kernel from the official sources and flash it, the touchscreen, wlan and other features do not work. I tracked this down to the fact that the kernel modules in /vendor/lib/modules do not get updated, thus

How to interpret ARM's SMC calls?

守給你的承諾、 提交于 2020-01-15 07:35:22
问题 I have been reading Android's kernel to see how dynamic power management for CPU cores (aka DVFS, DCVS) is being done. The code I found here makes some calls to the following function (defined here) which in turn calls the SMC assembly instruction. ARM has a document that explains SMC calling convention, but I haven't been able to use it to make sense of the following function. How can I track down the SMC instruction further to see what it actually does based on its input operands? s32 scm

Age of a process in the Linux kernel

强颜欢笑 提交于 2020-01-14 05:42:29
问题 Given the struct task_struct to work with. What's the best way to determine how old a process is? The task_struct is used to hold specific pointers to it's next youngest sibling, and oldest child. That no longer seems to be available in some kernel versions. I'm specifically using the Android goldfish kernel. I've been trying to learn how to use the list_head structure to iterate over processes, but I can't seem to figure out how to determine the age of each child or sibling process. So, what

Android 4.0 kernel source code? [closed]

↘锁芯ラ 提交于 2020-01-01 03:23:06
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . Where can I get the Android 4.0 (Ice Cream Sandwich) kernel source code? While this might be a stupid question that some people have asked before, I can't seem to find a suitable answer anywhere because: Google decided to be really useful and redirect android.kernel.org to http://source.android.com/source

Kernel Sources for Android 4.0 - Ice Cream Sandwich

霸气de小男生 提交于 2019-12-12 04:48:14
问题 I have downloaded Android 4.0 sources as per the instructions given in the following link : http://source.android.com/source/initializing.html I have downloaded the sources successfully without any issues. However, I did not find the kernel sources in it. Later I found that there are kernel sources available at the following link. source.android.com/source/building-kernels.html However, these sources are device specific except the following : $ git clone https://android.googlesource.com

Modifying in-call voice playback in Android custom ROM

旧街凉风 提交于 2019-12-04 07:52:12
问题 I would like to modify Android OS (official image from AOSP) to add preprocessing to a normal phone call playback sound. I've already achieved this filtering for app audio playback (by modifying HAL and audioflinger ). I'm OK with targeting only a specific device (Nexus 5X). Also, I only need to filter playback - I don't care about recording (uplink). UPDATE #1: To make it clear - I'm OK with modifying Qualcomm-specific drivers, or whatever part that it is that runs on Nexus 5X and can help

Android 4.0 kernel source code? [closed]

本秂侑毒 提交于 2019-12-03 08:01:43
Where can I get the Android 4.0 (Ice Cream Sandwich) kernel source code? While this might be a stupid question that some people have asked before, I can't seem to find a suitable answer anywhere because: Google decided to be really useful and redirect android.kernel.org to http://source.android.com/source/downloading.html , which includes every single part of Android apart from the kernel . I do not understand the logic behind that. git clone https://android.googlesource.com/kernel/common.git does something weird and creates a massive (600 MB+) .git folder without creating the source tree. I

Getting 'root\" permission for Android App

拥有回忆 提交于 2019-11-28 11:22:53
I would like to know how can we get root permission from android app? Are there any app out there in android market? I tried out the below line of code to list out files but nothing happened Process process = Runtime.getRuntime().exec(new String[] { "su", "-", "root"}); I tried to give TEST_FACTORY permission in my manifest file but I got an error "permitted to system app" How can I make my app system app? I want help to get started with these stuff (make app if possible to get root permission) any help on this is very much appreciated. Thanks in advance :) First: note that you can only

Getting 'root" permission for Android App

三世轮回 提交于 2019-11-27 06:07:56
问题 I would like to know how can we get root permission from android app? Are there any app out there in android market? I tried out the below line of code to list out files but nothing happened Process process = Runtime.getRuntime().exec(new String[] { "su", "-", "root"}); I tried to give TEST_FACTORY permission in my manifest file but I got an error "permitted to system app" How can I make my app system app? I want help to get started with these stuff (make app if possible to get root