android-source

Dalvik JIT workflow

一笑奈何 提交于 2019-12-10 14:53:19
问题 I am an interested on working on dalvik vm (Android). I am trying to go through the code of JIT to find out the operations performed by it and how it selects the traces. I am unable to follow the code. So I request all to help me by suggesting relevant functions in JIT that performs trace selection and translation 回答1: You could try git log --grep JIT in the dalvik repository, and looking at the changes and the files changed. That should get you a good idea of where the JIT related code is.

Usable VideoView source code for Android 2.2

我的梦境 提交于 2019-12-10 11:43:54
问题 I am building my own view for displaying videos, and I would like to base the custom view on the built-in Android VideoView. I'm therefore looking for the source code to VideoView. Most posts I've found on Stackoverflow and elsewhere point to grepcode. Unfortunately, the code on grepcode doesn't seem to be the code documented on developer.android.com and isn't very usable. For example, the VideoView.java on grepcode references an mContext object which is inherited from View, but not available

Guidance regarding Android Kernel Porting from one device to other

那年仲夏 提交于 2019-12-10 11:14:59
问题 I own a Samsung Galaxy 3 and want to port kernels available for other Android Devices. I have all building environment ready. I have C knowledge also. What exactly I dont understand is how and what all things porting involves, which codes should be modified in what way? If someone could help me. It would be great. Thanks in advance. Ok I got it. But the real problem is I dont understand one thing. What needs to be changed in the source code so that to make it compatible in other device? Can

aar support in Android.mk. Dependencies are not picked up by AOSP build

我怕爱的太早我们不能终老 提交于 2019-12-10 11:12:17
问题 Application (developed in Android Studio) uses AAR as a library. I need to build this app in AOSP tree. So I created Android.mk: LOCAL_STATIC_JAVA_AAR_LIBRARIES:= <aar alias> include $(BUILD_PACKAGE) include $(CLEAR_VARS) LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := <aar alias>:libs/<lib file>.aar include $(BUILD_MULTI_PREBUILT) Build completes successfully but the issue is that AAR contains number of JAR files in its 'libs' directory. And it seems that these JARs are not included into build so

Where to place .so file so that it gets included in the final build

无人久伴 提交于 2019-12-10 10:53:48
问题 I've a .so file which is being referenced by other project in AOSP system package. To make referencing possible I've created a new project in AOSP/external package with two files in it viz Android.mk and the xyz.so file. The Android.mk looks like following. LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := customutil LOCAL_SRC_FILES := xyz.so include $(PREBUILT_SHARED_LIBRARY) During the compilation it gives me following error. make: * No rule to make target out/target

How to browse Android source code at a particular version?

十年热恋 提交于 2019-12-10 10:47:41
问题 I know that android source code is kept here: https://android.googlesource.com/, but I can't see any way to browse an old version of the code. How would I view, say, dalvik/libcore/concurrent/src/main/java/java/util/concurrent/LinkedBlockingQueue.java in Froyo? 回答1: Try clicking on the platform/dalvik repository. Then scroll down to either one of the tags, or else the froyo-release branch (under Branches ). Then just keep following the tree links until you get to the right directory. Then

Adding own framework or library to AOSP

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-10 10:20:18
问题 I'm trying to add my custom package to AOSP under frameworks/opt/mypackage . I provided an Android.mk Makefile with the following content: LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_SRC_FILES := $(call all-java-files-under, src) LOCAL_MODULE_TAGS := optional LOCAL_MODULE := mypackage include $(BUILD_JAVA_LIBRARY) In an other framework, I was out to use this package. For example in the telephony package. But unfortunately the telephony framework is not able to use my package. I

Eclipse: “Edit Source Lookup Path…”

為{幸葍}努か 提交于 2019-12-10 09:44:19
问题 I am developing on a Mac with Eclipse and have the skeleton for an app that implements the standard framework callbacks (onCreate, onDestroy, onPause, etc..). When I set breakpoints in the callbacks the debugger stops and displays a tab that says: ActivityThread.performLaunchActivity(ActivityThread $ActivityRecord,Intent)line:2477 And in the tab page body there is some red text that says "Source not found" and a button that says "Edit Source Lookup Path...". I have tried adding several paths

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

我的梦境 提交于 2019-12-10 09:38:40
问题 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

Disable hardware keys android rom

微笑、不失礼 提交于 2019-12-10 04:23:02
问题 I want to disable the Home, Menu and Back button in my custom AOSP rom. I´ve seached on the internet, and saw i can disable buttons after a succesfull build in the key layout files found in out/target/product/generic/system/usr/keylayout. The file i´m editing is: Generic.kl Now i´ve commented out these buttons: # key 139 MENU WAKE_DROPPED # key 158 BACK WAKE_DROPPED # key 172 HOME Then i restarted the emulator, and the buttons still work... Is there something i am missing? Thanks, Stefan 回答1: