android-source

Add prebuilt APKs to Android AOSP system.img

北慕城南 提交于 2019-12-20 10:34:18
问题 I'm building AOSP from source. What I would like to do is to include a few prebuilt files in the generated system.img as part of the make process. I'm trying to find the actual file that creates the system.img and add a few lines there. Any idea? Thank you in advance. 回答1: A good way of adding custom files to the system.img is to add them under vendor/your_name/product_you_want_to_add_them/proprietary/your_files_go_here and add a custom make file called device-product_name.mk . After that's

Android app : java / JNI call hooking strategies

我只是一个虾纸丫 提交于 2019-12-20 09:51:09
问题 My goal is to instrument the AOSP in order to dynamically log all java or JNI calls from a targeted app, with or without the arguments and return value. I do not want to modify the application, it is why I am looking to modify the Android source code. I am not very experience with AOSP and its multitude of libs and frameworks so I am looking for advices because I don't know where to start. Moreover, because of the potential amount of lines logged, the process have to be efficient (i.e I do

Where is the source code of Android Architecture Components?

大兔子大兔子 提交于 2019-12-20 09:39:10
问题 Can't find the source code of new Android Architecture Components. Was it published? If it was, where? If the source is in AOSP, please specify which specific repo project should I use with repo sync [PROJ_NAME] in order to get it. 回答1: Here is the source for Lifecycle, Room, Paging and ViewModel. 回答2: As confirmed by Adam Powell, the source code of Architectural Components can be obtained only with the artifacts themselves: 回答3: As stated in Android team's official blog AndroidX Development

Bluedroid hangs up for >45 ms during channel switch

[亡魂溺海] 提交于 2019-12-19 11:42:17
问题 I have an application that needs to transmit bursts of data to android device. A sequence of packets during this burst is attached. We observe that during channel change, stack goes too busy and does not transmit anything for ~45-48 ms. This leads to data loss on transmitting device. We cannot hold that amount of data on transmitter to cope with delay in bluedroid. Are there any suggested changes in AOSP / bluedroid that can improve this situation? Any suggestions on where to start looking?

AOSP 6.0 Build for hammerhead - proprietary binaries

倖福魔咒の 提交于 2019-12-19 10:16:09
问题 I just built AOSP 6.0 for hammerhead and attempted to flash it. My phone froze at the Google logo and refused to boot. I'm assuming I need to use the proprietary binaries found here https://developers.google.com/android/nexus/drivers How would I extract these and put them in to my build? Thanks. 回答1: Be certain to download the Nexus 5 binaries that match the version of AOSP that you're building. For example, if you're building the most recent version of AOSP, when you initialized your repo

Building just one tool from Android source (AOSP)

我们两清 提交于 2019-12-19 04:21:47
问题 Currently I'm using the the AOSP ROM Builder image on Amazon AWS to build Android. The point is, I'm only interested in the external tool grxmlcompile that is built for the host (linux) in the path: aosp/out/host/linux-x86/bin where the source is at aosp/external/srec/tools/grxmlcompile I'm not very familiar with Linux and make files, hence my difficulty to get this going. I would like to copy the source (if needed the whole tree) and build just this tool on another linux machine. I can't

How to debug android framework services?

余生长醉 提交于 2019-12-19 03:12:20
问题 Is it possible to debug the android framework's system services? I have come across these links, but wasn't successful enough to debug the system services. http://android.opensourceror.org/2010/01/18/android-source/ 回答1: You need an eclipse project to be able to debug Android framework services. The process of creating an eclipse project for AOSP is not that straight forward. The instructions at Android source site leaves lot of details. You will either end up with broken project or broken

Android AOSP - adding app to /packages/apps

做~自己de王妃 提交于 2019-12-19 02:49:41
问题 I need to add a new app that I wrote in Eclipse to the /packages/apps folder in Android AOSP. But after the copying the app folder into that directory, building, and rebooting Android, I don't see my app in the launcher. I see that the Android.mk file is missing. I want to ask what is the simplest Android.mk that could be written for a Eclipse project to make it compile. I tried the following (I put the file in the app's directory) LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) LOCAL

Does the Android OS release a wakelock if the app or service holding it is killed?

只愿长相守 提交于 2019-12-18 10:16:36
问题 I have question about wakelock. In cases shown below, does android OS release wakelock ( PARTIAL_WAKE_LOCK if you need to specify) to prevent wakelock was left acquired and wasting battery until turning power off (not sleep). Case 1-a: App has acquired wakelock (w/o timeout option) in one of its threads (please think it is reasonable in this case) and it was designed to release wakelock when critical task was finished. App can be killed by taskmanager or notorious taskkiller, and app has no

Building Android from sources: unsupported reloc 43

半城伤御伤魂 提交于 2019-12-17 17:44:12
问题 When I'm compiling Android 5.1.1, I get dozens of errors like this: ... ... ... libnativehelper/JniInvocation.cpp:165: error: unsupported reloc 43 libnativehelper/JniInvocation.cpp:165: error: unsupported reloc 43 libnativehelper/JniInvocation.cpp:165: error: unsupported reloc 43 libnativehelper/JniInvocation.cpp:165: error: unsupported reloc 43 and the make process finally fails: clang: error: linker command failed with exit code 1 (use -v to see invocation) build/core/host_shared_library