android-source

android.os.ServiceManager not found while building

只愿长相守 提交于 2020-01-01 17:25:18
问题 I am getting following error while building android source, where i have added my custom app which uses android.os.ServiceManager. cannot find symbol symbol : class ServiceManager location: package android.os import android.os.ServiceManager; Why am I facing this error, actually this import can be found in many other app in android source. I am building the android source as in http://source.android.com/source/building.html and also followed this post The import android.os.ServiceManager

Is it possible to add a prebuilt APK to an AOSP build as an user app?

坚强是说给别人听的谎言 提交于 2020-01-01 16:58:51
问题 I am looking to add a prebuilt APK to my AOSP build. I can already do this by doing the following: Add the APK to the $root_of_my_source_tree/packages/apps folder. Create an Android.mk file. The file has the following contents: LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE_TAGS := optional LOCAL_MODULE := <name of APK> LOCAL_SRC_FILES := <Name of APK>.apk LOCAL_MODULE_CLASS := APPS LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX) LOCAL_CERTIFICATE := platform include

Is it possible to add a prebuilt APK to an AOSP build as an user app?

和自甴很熟 提交于 2020-01-01 16:58:49
问题 I am looking to add a prebuilt APK to my AOSP build. I can already do this by doing the following: Add the APK to the $root_of_my_source_tree/packages/apps folder. Create an Android.mk file. The file has the following contents: LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE_TAGS := optional LOCAL_MODULE := <name of APK> LOCAL_SRC_FILES := <Name of APK>.apk LOCAL_MODULE_CLASS := APPS LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX) LOCAL_CERTIFICATE := platform include

Add custom.xml file to AOSP etc folder

孤街醉人 提交于 2020-01-01 12:24:09
问题 I wanted to add a resource file/ xml file to etc folder in AOSP. I would like to have my resource file available just like platform.xml file. So I basically added my xml file in AOSP/frameworks/base/data/etc folder and correspondingly added the following lines in the make file Android.mk ######################## include $(CLEAR_VARS) LOCAL_MODULE := custom.xml LOCAL_MODULE_TAGS := optional LOCAL_MODULE_CLASS := ETC # This will install the file in /system/etc/permissions # LOCAL_MODULE_PATH :=

API Change error when building AOSP 5.1

强颜欢笑 提交于 2020-01-01 08:38:49
问题 Currently trying to build android-5.1.0_r5. I've checked out the sources and made no modifications. However, when compiling I get the following error. Checking API: checkpublicapi-current out/target/common/obj/PACKAGING/public_api.txt:20: error 5: Added public field android.Manifest.permission.BACKUP out/target/common/obj/PACKAGING/public_api.txt:82: error 5: Added public field android.Manifest.permission.INVOKE_CARRIER_SETUP out/target/common/obj/PACKAGING/public_api.txt:106: error 5: Added

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

Why does a protected android:onClick method in Activity actually work?

只谈情不闲聊 提交于 2019-12-31 09:09:10
问题 Suppose you define android:onClick="doClick" in your Activity as protected void doClick(View view) { } The documentation states that This name must correspond to a public method that takes exactly one parameter of type View. This is a given requirement of the underlying Class.getMethod() method, which only finds public methods as the documentation states that it Returns a Method object that reflects the specified public member method of the class or interface represented by this Class object.

How to find easily the source of an android class

早过忘川 提交于 2019-12-30 04:42:05
问题 I know I can access android source code from https://android.googlesource.com, but it's hard to select the right git repo if I only know the package and the name of an android class. Isn't there a way to locate a file in https://android.googlesource.com? 回答1: Most things you'll want to see can be found under the frameworks/base repo. This includes pretty much all the public and private API classes that make up the Android Java framework. If you want to be able to browse the source from within

Reduce the Size of the Android Source Repository .repo Directory

戏子无情 提交于 2019-12-29 06:26:38
问题 I have been switching between several branches of the Android source code with the commands like: repo init -u https://android.googlesource.com/platform/manifest -b android-4.4_r1.2 repo sync The most recent tag was android-5.0.0_r2 . I noticed my .repo directory is now 30 GB in size. Is that the expected size? If not, then I'm speculating I have history from the other branches/tags I've used stored in the .repo directory. Is there a way to reduce the size of the .repo directory? I would like

Where to download the complete source code of android.jar?

空扰寡人 提交于 2019-12-25 06:27:56
问题 I downloaded the repository: git://android.git.kernel.org/platform/frameworks/base.git But I found it's not enough. For example, most of the source code for the packages like java. , javax. were not there. What else repository do I need to download? 回答1: First, that's not really the source code to android.jar . The android.jar on your development machine is a JAR of stubs for the non-hidden classes and methods that form the basis of the SDK. Second, downloading one Git repository usually isn