android-source

When SystemUI loads in Android Boot

有些话、适合烂在心里 提交于 2019-12-13 02:12:51
问题 How to know when the system UI loads in Android boot process? Where exactly the status bar and navigation bar view draws? As SystemUI is a privileged app so is it loading before the start of a launcher app (Home screen)? I am not sure. Any suggestion is welcome. 回答1: Below is a chain of briefly explained steps that hopefully shed some light on the sequence of "loading" the system UI components at boot time. I'll demonstrate it on Android 4.2, although the sequence is quite similar for the

I have accidentally uninstalled jack server while building Android AOSP

笑着哭i 提交于 2019-12-12 19:18:14
问题 I am building the Android code for Android Go on my ubuntu 14.04 machine. While building I got some problems with jack server and I ended up uninstalling the jack server (accidentally). How do I install the Jack Server again ? I have tried to install the jack server using the following command: jack-admin install-server jack-launcher.jar jack-server-4.11.ALPHA.jar However, I get an error: Jack server installation not found Kindly help how do I install Jack Server again. I have also followed

Android source error reading file from sdcard

爷,独闯天下 提交于 2019-12-12 14:35:22
问题 I'm modifying the Android source (AOSP) to create a file /sdcard/myfile . The file is created properly and is visible when I do a cat /sdcard/myfile from adb shell . (The file is created from PackageManagerService which is part of the application framework layer) However, when I try to access the file through code using new FileReader(myfile) from the same package manager service code, I get the following exception: java.io.FileNotFoundException: /sdcard/myfile (Permission denied) The

Use Prebuilt Shared Library in Android AOSP

老子叫甜甜 提交于 2019-12-12 10:53:51
问题 I want to use a pre-built shared library in AOSP. The library is defined in Android.mk like this: include $(CLEAR_VARS) LOCAL_MODULE := foo LOCAL_MODULE_SUFFIX := .so LOCAL_MODULE_CLASS := SHARED_LIBRARIES LOCAL_MODULE_TAG := optional LOCAL_MODULE_PATH := system/lib LOCAL_SRC_FILE := system/lib/foo.so include $(BUILD_PREBUILT) During build, a folder out/target/product/mako/obj/SHARED_LIBRARIES/foo_intermediates/export_include was created. However, the build failed with error message that out

Replacing Touchscreen driver in Android Kernel

孤街醉人 提交于 2019-12-12 08:46:49
问题 I'm adapting a Gingerbread kernel for my custom board. I'm trying to replace a resistive touch screen that uses an on-chip ADC controller (S5PV210 processor from Samsung). In my design, I need a capacitive controller supported by eGalaxyTouch driver. It's connected to the USB. The driver can be easily enabled from the "make xconfig" menu. It somewhat works since I added some traces on the serial console and I can see it installing during the kernel boot and I see it install and uninstall

Kernel Sources for Android 4.0 - Ice Cream Sandwich

霸气de小男生 提交于 2019-12-12 04:48:14
问题 I have downloaded Android 4.0 sources as per the instructions given in the following link : http://source.android.com/source/initializing.html I have downloaded the sources successfully without any issues. However, I did not find the kernel sources in it. Later I found that there are kernel sources available at the following link. source.android.com/source/building-kernels.html However, these sources are device specific except the following : $ git clone https://android.googlesource.com

procedure to add custom device in AOSP device folder

孤人 提交于 2019-12-12 03:39:43
问题 I know this question has been asked before but I wanted customize according to my problem so, 1. I am new to adding this custom board to AOSP target devices. 2. I have the kernel and necessary modules compiled now please guide me to link it with my device folder in AOSP devices list. 3. I know the basic .mk files to be created in device folder and I have created, but not sure if it is rightly done. Android.mk,AndroidProducts.mk,BoardConfig.mk,myproduct.mk,vendorsetup.sh. 回答1: First you need

AIDL Service and Android Open Source

人走茶凉 提交于 2019-12-12 03:24:12
问题 I've created an AIDL service called IHelloService and I am trying to call it from IOBridge under the libcore module. Currently my code looks like this // import import android.os.IHelloService; import android.os.ServiceManager; .... IHelloService helloService = IHelloService.Stub.asInterface(ServiceManager.getService("hello")); int val = helloService.getVal(); I run into errors when doing a standard build. The errors include package android.os does not exist and cannot find symbol

where to find oneplus one binaries (Device tree, Vendor, Kernel) to build rom from AOSP?

*爱你&永不变心* 提交于 2019-12-12 02:56:13
问题 I would like to build ROM for one plus one from AOSP (android 5.1.1) Look like i need below three information from the device manufacturer and override it in local_manifest.xml Device Tree' Vendor Kernel. I am able to get Device tree and Kernel. I am not able to find Vendor binaries for one plus one. anybody can help me to get this? Below is the local_manifest.xml i have. But it is missing vendor information. <?xml version="1.0" encoding="UTF-8"?> <manifest> <remote name="github" fetch="https

AOSP Keyboard: NoSuchMethodError - createEmptyDictFileNative

醉酒当歌 提交于 2019-12-12 01:47:21
问题 I'm trying to build the AOSP keyboard from the 5.0.2 branch after adding some custom code to obtain pressure values for key touches. I'm using lunch full-eng to build the source and using mm to build LatinIME after I've added my changes. I was having trouble with pre-optimization but was helped here on how to solve that. I'm now having the following error: E/dalvikvm( 729): ERROR: couldn't find native method E/dalvikvm( 729): Requested: Lcom/android/inputmethod/latin/BinaryDictionary;