android-source

Unable to start emulator after build AOSP

孤街浪徒 提交于 2019-12-21 17:44:52
问题 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 回答1: After: source build/envsetup.sh Please try running: set_stuff_for_environment then see if the emulator command works. 回答2: emulator is a binary that should be located at prebuilts/android-emulator/

sources of Testing Support Library in Android Studio

折月煮酒 提交于 2019-12-21 17:28:05
问题 How to attach sources from android.support.test.* for debugging in AS? Tried downloading sources from https://android.googlesource.com/platform/frameworks/testing but the version doesn't seem to match my testing library version. Testing sources (for instance AndroidJunitRunner ) don't seem to be available via sdk manager, am I missing something ? 回答1: I encountered a similar problem and it took a quite amount of time to figure it out. It seems like a bug due to a missing Gradle task not

Android Kernel modifying

£可爱£侵袭症+ 提交于 2019-12-21 06:49:17
问题 I'm a Android application developer. For some reasons, I should change the Android kernel a bit. But I don't know anything about kernel. I will be appreciated if someone introduce me a website who explain android kernel modules and other info about it. 回答1: In the standard Android open source distribution the kernel is distributed as a pre-built binary in the mydroid/prebuilt/android-arm/kernel folder and the source code is not included. The kernel source was removed from the default manifest

Include prebuilt shared library in Android AOSP

。_饼干妹妹 提交于 2019-12-21 05:41:43
问题 I would like to use a prebuilt shared library (let's call it libmylib.so ) from some AOSP code, for instance in the folder framework/av/media/libmedia . Since my target is Nexus 7, I created a new folder device/asus/flo/mylib , where I put 2 files: libmylib.so Android.mk My first try was to use PREBUILT_SHARED_LIBRARY in Android.mk as follow: LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := libmylib LOCAL_SRC_FILES := libmylib.so include $(PREBUILT_SHARED_LIBRARY) Then, I

Add prebuilt apk to AOSP build

杀马特。学长 韩版系。学妹 提交于 2019-12-21 04:41:08
问题 I tried to include a prebuilt google apk (with no .so file) to my marshmallow AOSP build based on the information found in this link as follows: In my vendor/manufacturer/device/proprietary/system/app, I created a folder named 'Testapk'. I saved two files in this 'Testapk' folder, the apk ('Testapk.apk') and an Android.mk file which contains the following instructions: LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE_TAGS := optional LOCAL_MODULE := Testapk LOCAL_SRC_FILES := $

How to listen to dev/binder?

大憨熊 提交于 2019-12-21 04:25:38
问题 In Android is dev/binder also for layers communication responsible. Is it possible to listen to messages? I know that they must be decoded than, but how can I get this messages. For example if an app send a message to became an Geolocation. I have also root on my android device. 回答1: Short: Nope, it shouldn't be possible, even with root. There isn't that much informations about Binder in detail on the net but there are some, especially about the security. Refer to this or to point 3.8 here.

How to develop custom status bar in android JellyBean 4.2.2

南笙酒味 提交于 2019-12-21 03:42:42
问题 I want to develop customized StatusBar. I know i am not the only one with this requirement. But still want to know the opinions. After lot of search on StackOverflow, i found that people have modified status bar using tools but thats not i need. I am bit looking into the direction of developing of my own Status Bar with my own branding and layouting of the system icons. Also i have seen on Google play store about having a customized status bar app like omega status bar and couple more. I am

Create specific device tree for AOSP

試著忘記壹切 提交于 2019-12-20 17:32:16
问题 I followed official Google`s tutorial to build my own AOSP and succeeded in all steps: I have "Pure AOSP version" running on nexus emulator. https://source.android.com/source/building.html The story is I have some rare device came with some Android version full of pre-installed app's obviously I don't want. I want to port Pure AOSP to my device - without any improvements or new features (So for example I don`t want to know how to build CM git repo). Is it working just add to my local above

Create specific device tree for AOSP

和自甴很熟 提交于 2019-12-20 17:31:45
问题 I followed official Google`s tutorial to build my own AOSP and succeeded in all steps: I have "Pure AOSP version" running on nexus emulator. https://source.android.com/source/building.html The story is I have some rare device came with some Android version full of pre-installed app's obviously I don't want. I want to port Pure AOSP to my device - without any improvements or new features (So for example I don`t want to know how to build CM git repo). Is it working just add to my local above

Building separate Android modules with dexpreopt disabled

一笑奈何 提交于 2019-12-20 10:57:54
问题 For my thesis, I'm modifying the android framework and building the source (4.1.1 Jelly Bean). I can do a full build, but because this is very time consuming (I'm developing on a ubuntu 12.04 64bit virtual machine) I'd like to build separate modules. For example: When doing changes to the location modules, it should be possible to just build the changed module, and make a new system image: mmm frameworks/base make snod But this doesn't work. Every time I try to boot, the new system image won