android-source

AOSP building error: symbol not defined

安稳与你 提交于 2019-12-02 13:00:14
I'm trying to build the cornerstone based on AOSP 4.3_r2.2. I got a lot of errors during the building like these: frameworks/base/core/res/res/values/public.xml:244: error: Symbol 'config_bluetooth_adapter_quick_switch' declared with <java-symbol> not defined frameworks/base/core/res/res/values/public.xml:1558: error: Symbol 'config_enableDreams' declared with <java-symbol> not defined frameworks/base/core/res/res/values/public.xml:919: error: Symbol 'ic_suggestions_add' declared with <java-symbol> not defined frameworks/base/core/res/res/values/public.xml:920: error: Symbol 'ic_suggestions

What does @ mean in this clang command in AOSP build log?

╄→尐↘猪︶ㄣ 提交于 2019-12-02 12:17:25
In AOSP9.0.0_r30 's build log, there are clang commands like this: prebuilts/clang/host/linux-x86/clang-4691093/bin/clang++ /OpenSource/Build/Android/9.0.0_r30/soong/.intermediates/bionic/libc/crtbegin_so/android_x86_64_core/crtbegin_so.o @/OpenSource/Build/Android/9.0.0_r30/soong/.intermediates/bionic/libm/libm/android_x86_64_core_shared/libm.so.rsp ...... FYI, it is a linking commmand. In short, it is like: clang++ path_to_file1 @path_to_file2 ...... What does the " @ " mean here? 来源: https://stackoverflow.com/questions/55440501/what-does-mean-in-this-clang-command-in-aosp-build-log

Where and when is generated android.Build.SERIAL in AOSP?

痴心易碎 提交于 2019-12-02 09:28:01
I know, that android.Build.SERIAL is generated at first device boot, but I can't locate where and when exactly. I'm building AOSP Jelly Bean , Android tablet, nosdcard. 2nd question: is this serial number really unique for all Android devices? Alexis C. According to this thread , it clearly says that it's unique, but added since API 9 and may be not present on all devices. If you're writing your app for a specific device's model, you could direclty check if it has an IMEI. Otherwise, as you said, I recommend you to write a custom ID generator module. You will be sure that your ID will be

How to draw text on an EGL texture using Skia SkBitmap?

一世执手 提交于 2019-12-02 07:31:59
I am looking for a way to draw text on EGLTexture using Skia library in C/C++. I am planning to run a program that does it on Android platform during bootup before SurfaceFlinger comes up. Please don't point me to Android Java examples as that is not what I am looking for. I am troubleshooting UI issue at frame buffer level. I am looking for a way to do this in C/C++ using Android native libs (Skia etc). I have a sample program that can render an image using SkBitmap onto EGLTexture. I was able to display it on monitor. I followed same example and came up with a strategy like this. But it

How to include .aar in AOSP with android.mk

别说谁变了你拦得住时间么 提交于 2019-12-02 06:14:22
问题 I need to build an application with android.mk in aosp build tree. I have a custom .arr lib with me, Which resides in the following folder apps/libs/mylib.aar Anyone can tell me how to include the aar in the android aosp build. I already tried the following methods described here Stackoverflow link for aosp build with .aar lib Android.mk is looked like LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE_TAGS := optional LOCAL_PACKAGE_NAME := sample LOCAL_CERTIFICATE := platform #

How to build AOSP app?

北战南征 提交于 2019-12-02 02:46:39
问题 I am trying to build the Camera App from AOSP. I am on UBUNTU 14.04. I followed the guide in the official documentation. At the end I execute make Camera I get the following error. ... ... including ./system/media/audio_utils/Android.mk ... including ./system/media/camera/src/Android.mk ... including ./system/media/camera/tests/Android.mk ... including ./system/netd/client/Android.mk ... including ./system/netd/server/Android.mk ... including ./system/security/keystore-engine/Android.mk ...

How to build AOSP app?

孤街浪徒 提交于 2019-12-02 02:43:47
I am trying to build the Camera App from AOSP. I am on UBUNTU 14.04. I followed the guide in the official documentation. At the end I execute make Camera I get the following error. ... ... including ./system/media/audio_utils/Android.mk ... including ./system/media/camera/src/Android.mk ... including ./system/media/camera/tests/Android.mk ... including ./system/netd/client/Android.mk ... including ./system/netd/server/Android.mk ... including ./system/security/keystore-engine/Android.mk ... including ./system/security/keystore/Android.mk ... including ./system/security/softkeymaster/Android.mk

Per-file CPPFLAGS in Android.mk

不想你离开。 提交于 2019-12-01 18:11:47
I'm working on an Android.mk file in which, for a single module, one of the files needs different CPPFLAGS; namely, it needs -frtti enabled, while others need the Android default of -fno-rtti. The obvious solution was target-specific variables , but oddly they do not seem to affect compilation, even with some fiddling to ensure the values should be fixed at the right time. Here's an extract from my Android.mk (names changed to protect me): LOCAL_MODULE := foo_bar LOCAL_SRC_FILES := \ foo_bar.cpp \ foo_baz.cpp my_intermediates:= $(local-intermediates-dir)/foo_baz.o $(my_intermediates): LOCAL

How are .java files in android_stubs_current_intermediates directory generated?

≡放荡痞女 提交于 2019-12-01 17:44:33
问题 The Android build process generates(?) Java stubs for each of the classes in the android.jar, and stores them in the following directory: ./out/target/common/obj/JAVA_LIBRARIES/android_stubs_current_intermediates/src/ For example, the subdirectory java/lang/ of the above directory contains .java files corresponding to java.lang.* classes, and the subdirectory `android/app/' contains .java files corresponding to android.app.* classes. These .java files dont contain actual code, but just

Per-file CPPFLAGS in Android.mk

孤街醉人 提交于 2019-12-01 17:09:56
问题 I'm working on an Android.mk file in which, for a single module, one of the files needs different CPPFLAGS; namely, it needs -frtti enabled, while others need the Android default of -fno-rtti. The obvious solution was target-specific variables, but oddly they do not seem to affect compilation, even with some fiddling to ensure the values should be fixed at the right time. Here's an extract from my Android.mk (names changed to protect me): LOCAL_MODULE := foo_bar LOCAL_SRC_FILES := \ foo_bar