android-source

Resigning system.img on a device

末鹿安然 提交于 2019-12-03 08:56:18
问题 I am working on an automatic app updating solution for devices (LG p509 - Optimus 1) which we deploy to our customers. We have control of these devices and currently install a custom kernel on them (but not a full custom ROM). Since we are trying to do auto-updating of our app on the device, we need the system to be signed by a key which we control so we can sign our apps with the same key (to get the INSTALL_PACKAGES permission). I have been having a few issues running AOSP builds on the

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

What does repo init and repo sync actually do?

南楼画角 提交于 2019-12-03 06:28:45
问题 I posted this question at Android Enthusiasts but figured it was the wrong place to ask, so I deleted it from there and asking it "again" here. This is such a noob question, and pardon me if it is, but I just want to understand the underlying concepts clearly. Reading repo help and Google's repo command reference page doesn't really enlighten much. I understood some bits from Google's reference page, but I still need some more clarifications. Following the instructions on how to download

Developing AOSP with Android Studio

喜夏-厌秋 提交于 2019-12-03 06:00:57
问题 I'm trying to setup a development environment to do some custom modifications on the AOSP source code, and would like to use Android Studio as my IDE. After doing the necessary steps, however, Android Studio seems to not be able to recognize some of the classes and methods. Did I do something wrong? Here's a rundown of what I did: I did the necessary preparations (dependencies, etc.) for cloning and building AOSP according to the official documentation. After that, I cloned the AOSP 7.1.1-r11

Loading kernel module in Android kernel

安稳与你 提交于 2019-12-03 05:55:28
I am listing my problem here. I have a Google Nexus one a.k.a. "passion" phone with me. Fastboot and adb tools are installed in the phone. And the boot loader is unlocked. My task: I have to add a linux kernel module to the Android kernel. What I have done: I followed the steps in http://source.android.com/source/initializing.html and downloaded the kernel for android-2.3.6_r1 (passion) and have built it. I am also able to flash it on the phone and the new android kernel also works fine. Now what I want is to modify the kernel and add my own kernel module and then flash it on the phone, so

How to build a part of Android AOSP?

假装没事ソ 提交于 2019-12-03 05:54:33
问题 I am trying to build my own libs and apps in external directory of the AOSP, but the problem is i have to run make each time and the make will compile/build whole the android. In my external apps folder i have Android.mk file, but i cannot build it using ndk-build, it will look for JNI folder and NDK_BUILD_PATH, so the question is: How can i build it without rebuilding whole AOSP? 回答1: A plain make invocation will not rebuild more than necessary, but even with a leaf library or binary even an

Building Android Automotive from source

点点圈 提交于 2019-12-03 05:21:31
问题 TL;DR After building Android Automotive from source, how do I Run the car-emulator? "Install" the CarService and related packages onto a device? Details I'm trying to build Android Automotive from source. I'm able to successfully build it using the following commands: $ repo init -u https://android.googlesource.com/platform/manifest -b android-8.0.0_r11 $ source build/envsetup.sh $ lunch car_emu_x86_64-userdebug $ make -j8 V=1 &>> make.log My question is how do I run the emulator? After

Copy multiple txt files in /system using Android.mk

倖福魔咒の 提交于 2019-12-03 05:17:53
问题 Aim : I want to copy multiple txt files in /system ( of Android Device ) using Android.mk My Findings : We can copy file using two approach 1) Use PRODUCT_COPY_FILES. This is done from devices/ / makefile.mk ex: PRODUCT_COPY_FILES := \ frameworks/base/data/etc/telephony.gsm.xml:system/etc/permissions/telephony.gsm.xml \ some/other/sourc/file:some/destination \ some/other/sourcefile2: some/destination 2) Using BUILD_PREBUILD ex : ##############copy txt file################## include $(CLEAR

Android: Create new System Permission in through AOSP source code.

我是研究僧i 提交于 2019-12-03 04:59:56
问题 I was wondering how one can edit Android OS source code to impose a new permission. For example like we have BLUETOOTH permission, if the device offers a new sensor, then how appropriate permission can be created in order for applications to use the new sensor, at application level using manifest entry for the new permission available in android rom. Does anybody know how new Permissions are created on the OS level in AOSP source code?? And i think if we have modified the android source to

Android Custom Launcher startActivity() blocks BOOT_COMPLETED intent

ⅰ亾dé卋堺 提交于 2019-12-03 04:37:18
I am currently working on a custom ROM (based on CyanogenMod 11.0), which aims to implement a custom "Kiosk Mode". To do this, I have three components in one application (with system privileges): The service, which handles modifications to the status/navigationbar and disables the power key. The receiver, which only starts the service after the BOOT_COMPLETED signal is received. The HomeIntentWrapper works as the launcher, and only starts one custom activity. The problem I am currently facing is that the startActivity(...) command in the HomeIntentWrapper somehow blocks the system from booting