android-source

android external/stlport include in Android.mk build not successfull

笑着哭i 提交于 2019-12-04 16:04:57
I m trying to build an app with android-froyo source in which I am using skia and stl templates, I have included MY_INCLUDES=external/zlib external/jpeg external/freetype/include \ frameworks/base/core/jni/android/graphics external/skia/include/core \ external/libpng external/expat/lib <b>external/stlport/stlport</b> libstlport_cflags := -D_GNU_SOURCE libstlport_cppflags := -fuse-cxa-atexit LOCAL_CPPFLAGS := $(libstlport_cppflags) include $(BUILD_STATIC_LIBRARY) I get the following error when i try to build the android source with this app, which i kept at packages/apps: external/stlport

How to include constraint layout library in an AOSP project

限于喜欢 提交于 2019-12-04 15:31:58
I have an existing android application that I'd like to build inside AOSP (android source tree) using Android.mk. The app uses constraint layout which is not included in AOSP source tree (AFAIK). How can I satisfy this dependency? Other support libs are included such as recyclerview, v4 etc but not contraint layout. Should I download the lib aar and if yes , how do I add/include it? Or should I get the source (where to download?) and build it somewhere in the source tree? Thanks in advance for any help. There are several ways to resolve your issue. 1. Add a prebuilt .apk You don't have to put

How to make own OTA app in AOSP - fslota?

半世苍凉 提交于 2019-12-04 14:35:04
问题 we have build Android from sources and it looks good on our device. Currently we need to make own OTA process, but we dont know how. We try to implement FSLOTa (https://github.com/embest-tech/android_packages_apps_fsl_imx_demo/tree/master/FSLOta) against our http server, but documentation is very poor - so we simply add source to our source and compile it. Problem is, that we see app in our box, but it doesnt nothing. Or there is way to modify built in OTA app, when we change server to our

Build aosp on mac 10.12

房东的猫 提交于 2019-12-04 13:04:43
I used to build aosp on my mac. Recently I upgraded the mac os Mac Sierra (10.12). The I received this error message while building the project: Could not find a supported mac sdk: ["10.8" "10.9" "10.10" "10.11"] The mac sdk version has been upgraded to 10.12 however it is not within the supported mac sdk list. What could be a solution to this problem? I have solved this problem on macOS Sierra (10.12.2) with Xcode 8.2. The solution may be helpful: Download MacOSX10.11.sdk on phracker/MacOSX-SDKs Unzip to folder: /Applications/XCode.app/Contents/Developer/Platforms/MacOSX.platform/Developer

How do I preserve file permissions in a custom external project added to Android AOSP?

▼魔方 西西 提交于 2019-12-04 12:34:19
I've downloaded (using repo) the Android 4.0 OS source code (from here - http://source.android.com/ ). I'm trying to add a new external project (in external/ for example external/libhelloworld) to the build system so that it is built into the system image. In that project I would like to deploy a shell script and have it keep it's permissions which are rwxr-xr-x but when I build it and load the emulator I see the file permissions have been changed to rw-r--r--. I am deploying the script to /etc. My Android.mk file looks like this LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE

importing custom SO file to AOSP

别来无恙 提交于 2019-12-04 12:12:21
问题 I've built an AOSP system service following this tutorial: http://www.androidenea.com/2009/12/adding-system-server-to-android.html Now I want to use a pre-compiled .so file and cannot figure out where to put it so my code will be able to access it. so, i created a folder at framewaork/base/libs/my_folder/ and put there two files: my_lib.so android.mk the content of the android.mk is : LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE:= my_lib LOCAL_MODULE_TAGS := optional include

Where is the git repo of Android's kernel source?

谁说胖子不能爱 提交于 2019-12-04 11:40:19
I want to build a kernel for my device from source, however I'm unable to find the git repo of the kernel source. All I found is this: git://android.git.kernel.org/kernel/common.git But however it seems to be deprecated after the kernel.org fuss recently, with git prompting that fatal: The remote end hung up unexpectedly Are they moving to somewhere or nowhere? CesarB What was at git://android.git.kernel.org/ can now be found at https://android.googlesource.com/ . I did the replacement in your URL, and this is the result: $ git ls-remote https://android.googlesource.com/kernel/common.git

Add custom.xml file to AOSP etc folder

余生颓废 提交于 2019-12-04 11:23:48
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 := $(TARGET_OUT_ETC)/permissions LOCAL_SRC_FILES := $(LOCAL_MODULE) include $(BUILD_PREBUILT) EDIT With

Disable USB charging

ぃ、小莉子 提交于 2019-12-04 11:22:09
For some reasons not related to the battery life, I need to disable the battery charging when a USB host is connected to my phone (a rooted Nexus 4). Taking a look around on the internet ( link1 , link2 ), it looks like I should modify a system file. I have found a series of interesting files located in /sys/class/power_supply/battery and /sys/class/power_supply/usb , that could be the right ones to be modified in order to achieve the usb charging disabling (e.g. /sys/class/power_supply/usb/present 0/1 ). Has anyone tried something like that? Which is the best way to modify those system files?

Unable to start emulator after build AOSP

拈花ヽ惹草 提交于 2019-12-04 10:44:29
I can't run "emulator" after rebuild Android Open Source Project on Ubuntu 10.0.4. Please take a look at below error details then tell me if you know how. Thanks. No command 'emulator' found, did you mean: Command 'qemulator' from package 'qemulator' (universe) emulator: command not found After: source build/envsetup.sh Please try running: set_stuff_for_environment then see if the emulator command works. emulator is a binary that should be located at prebuilts/android-emulator/<platform>/ , e.g. prebuilts/android-emulator/linux-x86_64/ . As mentioned, the lunch command will add this directory