android-source

How can I add a 3rd-party library to an Android AOSP build?

a 夏天 提交于 2019-12-05 22:33:47
问题 I am trying to add the Jackson JSON library to my AOSP project. I am able to compile my project and flash it to a phone, but I get a runtime error: E/JavaBinder( 1689): java.lang.NoClassDefFoundError: Failed resolution of: Lcom/fasterxml/jackson/core/JsonFactory; ... E/JavaBinder( 1689): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.fasterxml.jackson.core.JsonFactory" on path: DexPathList[[zip file "/system/framework/guice.jar", zip file "/system/framework/beanshell.jar"

Unable to install some apps from Google Play on customized AOSP: Item is not available. Reason: 9

∥☆過路亽.° 提交于 2019-12-05 19:23:41
I'm getting the following error when trying to install some apps from Google Play: LibraryUtils.isAvailable: not available restriction=9 DocUtils.getAvailabilityRestrictionResourceId: Item is not available. Reason: 9 I'm running a customized version of AOSP (a customized Android x86 flavor) on x86 hardware. I've researched a lot and there are lots of vague attempts/guesses at answers already on the net but I'm specifically looking for what "Reason 9" refers to. Once I have that, I'm hoping I can come up with a hack in AOSP to avoid the error as when I sideload the same apps they run fine. This

android emulator won't start on ubuntu 12.04 after when run from ssh

喜你入骨 提交于 2019-12-05 15:27:46
问题 I built the android source code based on the http://source.android.com/source/building.html on Ubuntu 12.04 and when I run the emulator I'm getting the error and emulator won't start: WARNING: Application calling GLX 1.3 function "glXCreatePbuffer" when GLX 1.3 is not supported! This is an application bug! X Error of failed request: GLXUnsupportedPrivateRequest Major opcode of failed request: 146 (GLX) Minor opcode of failed request: 16 (X_GLXVendorPrivate) Serial number of failed request: 20

How to change Application Not Responding (ANR) Timeout in AOSP [closed]

十年热恋 提交于 2019-12-05 09:55:15
Closed . This question needs details or clarity . It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post . Closed 6 years ago . How do I change the Application Not Responding (ANR) timeout in the AOSP source code? The default timeout is 5 seconds, but where is that set and how do I change it? The ANR Timeout is defined in File InputDispatcher.cpp (frameworks\base\libs\ui) . Copying and pasting that piece of code below. // Default input dispatching timeout if there is no focused application or paused window // from which to

Accessing Androids UpdateEngine (or other SystemApi classes) from application code

我与影子孤独终老i 提交于 2019-12-05 08:10:28
I'm trying to write a system-updater application, which uses the UpdateEngine of Android 7+. However, I can't seem to get access to it from my java code, since the class and its methods are marked with @SystemApi. I integrated my application into the AOSP tree, but I can't start a successful compile from my application directory: When i run mm in the app dir, I directly get the following error: The import android.os.UpdateEngine cannot be resolved This also happens if I just add the import statement to an already existing aosp system-app, e.g. What is the correct way to use UpdateEngine (or

How to mount AOSP .img files?

坚强是说给别人听的谎言 提交于 2019-12-05 07:26:42
问题 I generate *.img by building AOSP . Like ramdisk.img,boot.img etc. I want to mount this file. I'm using Ubuntu. 回答1: You cannot mount boot.img file, as it's not a valid filesystem The boot.img file contains ramdisk and kernel binary ( zImage ) and possibly dt.img (device tree). There is an excellent open source project: mkbootimg_tools at GitHub. You can use it to split the boot.img file and unpack the ramdisk. 回答2: simg2img Some Android images are compressed by default for some builds. This

Android O HIDL not available

徘徊边缘 提交于 2019-12-05 07:24:33
I have problem with Android O HIDL. The failure log shows it can't find out the service. However I can see it by adb shell ps -A | grep fingerprint system 18758 1 17408 3276 pipe_wait 7c79e93e08 R android.hardware.biometrics.fingerprint@2.1-service` Could anyone give me a hint how to solve the problem? I checked https://source.android.com/devices/architecture/hidl/ but could not get the solution. Error log: 08-21 06:00:35.864 1890 2264 V FingerprintService: mDeamon was null, reconnect to fingerprint 08-21 06:00:35.864 1890 2264 I system_server: Looking for service android.hardware.biometrics

AOSP ActivityManager not running

时光毁灭记忆、已成空白 提交于 2019-12-05 04:51:53
问题 I'm trying to port Android 7.0 into a customized HW platform and have zygote running background. But when I tried to start an app by using am start <> , it gives error "Can't connect to activity manager; is system running?" . After that I did service list and found out that the activity:[android.app.IActivityManager] is not running (I don't know why). I'm actually kinda new to AOSP, but how could I start the AM service by typing a single shell command? I have attached the error message and

Android task manager source

风格不统一 提交于 2019-12-05 02:58:08
问题 I was wondering if there are any open source android task manager ( process manager / process detailer ) projects that I can take a look at. I'm developing an application for my uni project and It would help me to get an idea on looking at a good task manager! does any one know some open source projects where I can read or view the source! I don't need to download the source. thank you! 回答1: You have to take a look at Astrid Task Manager it's an open source android app you can fetch the

Replace only framework.jar & its relevant libraries on Android MarshMallow

我怕爱的太早我们不能终老 提交于 2019-12-05 01:29:52
Anyone know steps to replace frameworks.jar and relevant libraries on Android Marshmallow device? My work is to modify Android Marshmallow framework source code, do full-build then update to device then verify result. It takes about 1,2 hours each time. It is OK if I do it 1,2,3 times but actually I had to repeat it even 100 times if my modification not work. But I only modify only a small piece of code in frameworks/ so I think it would save me much time if I can rebuild only frameworks/ module in Android code and replace only frameworks/ part in device. I know how to use mmm to rebuild just