android-source

AOSP x86_64 Emulator not visible in Android Studio

狂风中的少年 提交于 2020-08-24 08:18:27
问题 I am using AOSP emulator for testing my code. I downloaded the android10_release source code of AOSP in my pc. Then used the following commands source build/envsetup.sh set_stuff_for_environment lunch aosp_x86_64-eng make -j6 emulator now after running these commands I am successfully able to run emulator in my pc OS of my pc is Ubuntu 18.04 I also installed many libraries for working with AOSP like jdk-8, python, curl, repo, git, and other stuff as per described in AOSP website I am abe to

How to use constraint-layout during AOSP build without including external .aar and .jar

痴心易碎 提交于 2020-08-10 04:57:24
问题 I'm trying to build my java based android app through building as a module inside AOSP source. My app uses android.support.constraint.ConstraintLayout . But, I didn't find a direct way to include constraint-layout dependency in my Android.mk . I've put my project under AOSP_ROOT/packages/apps and tried with this Android.mk : LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE_TAGS := optional LOCAL_PRIVILEGED_MODULE := true LOCAL_PACKAGE_NAME := MyApp LOCAL_PRIVATE_PLATFORM_APIS :

Android 10: Update kernel modules

最后都变了- 提交于 2020-08-09 08:53:12
问题 This bounty has ended . Answers to this question are eligible for a +50 reputation bounty. Bounty grace period ends in 12 hours . onetyone wants to draw more attention to this question. Background: I am working with a Pixel 4, build QQ2A.200501.001.B2 , which is Android 10. When I build the kernel from the official sources and flash it, the touchscreen, wlan and other features do not work. I tracked this down to the fact that the kernel modules in /vendor/lib/modules do not get updated, thus

Run shell script at boot in AOSP

柔情痞子 提交于 2020-07-22 06:07:09
问题 I am using iMX 8 Mini EVK for my Project. I build Android 9.0 from AOSP for this board. Now I want to run a script at boot. I did following changes in files but still, I am facing an issue. File : Android_AOSP_build/device/fsl/imx8m/evk_8mm/init.rc service gea3appservice /vendor/bin/sh /vendor/bin/run.sh class late_start user root system group root system oneshot File : Android_AOSP_build/device/fsl/imx8m/evk_8mm/sepolicy/gea3appservice.te type gea3appservice, domain; type gea3appservice_exec

Emulator can't find 'Linux version ' string in kernel image file

十年热恋 提交于 2020-07-22 05:25:07
问题 I was building AOSP for the Nexus Player and after successful compilation I tried to run the emulator and the message I received is: emulator: ERROR: Can't find 'Linux version ' string in kernel image file: /home/mita/Work/Nexus/out/target/product/fugu/kernel I can't find anything about this, somebody please help. The full output is: emulator:Found ANDROID_PRODUCT_OUT: /home/mita/Work/Nexus/out/target/product/fugu emulator:Found build target architecture: x86 emulator:Looking for emulator-x86

how to add some third party *.so files in Android.mk?

懵懂的女人 提交于 2020-06-25 06:11:31
问题 I am compiling my own app in AOSP,and I want to add my own app in package/app in AOSP. I have some *.so files which will be used in my app,but how to write Android.mk about to use these third party .so files?here is my Android.mk : LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE_TAGS := optional LOCAL_SHARED_LIBRARIES :=myprebuilt LOCAL_STATIC_JAVA_LIBRARIES :=OrbbecJar LOCAL_SRC_FILES := $(call all-java-files-under, src)\ $(call all-java-files-under, openCVLibrary2410/src)\

Discover Nearby Smartphone Devices on Android

假如想象 提交于 2020-05-28 04:33:07
问题 Problem Statement I am trying to make an application for Android that can detect nearby smartphone devices. I need to discover smartphone devices regardless of their connection to a WLAN or their operating system. The only requirement is that their bluetooth or wifi setting is enabled. I am trying to capture the MAC Address and maybe RSSI of these devices. An example of an application I am trying to emulate is Meshlium. Methods Already Considered Android Classic Bluetooth: I have followed the

Facing issue in running multiple emulators with AOSP

旧街凉风 提交于 2020-05-17 07:42:24
问题 Problem overview: After building AOSP with custom emulator(updated default.xml), facing error in executing multiple emulators simultaneously Command: Shell1: emulator -port -no-skin -no-audio -no-window -qemu -device ,addr=,size= Shell2: (same command to up second emulator) emulator -port -no-skin -no-audio -no-window -qemu -device ,addr=,size= Error: In shell1, no error is faced. Emulator runs fine. In shell2, ERROR: Running multiple emulators with the same AVD is an experimental feature

How to resolve so file mapping in eclipse project aosp android

喜欢而已 提交于 2020-05-17 06:55:06
问题 I am working in aosp 9 where I migrated the entire Browser app from 6 to 9. I have librawrapper.so which is available in jni/armv7-a/ folder. This project is eclipse and hence I am not able to edit in gradle. So it has only mk file. LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) SODIR=armv7-a LOCAL_MODULE_CLASS := SHARED_LIBRARIES LOCAL_MODULE_TAGS := optional LOCAL_PRELINK_MODULE := false LOCAL_MODULE := librawrapper.so LOCAL_SRC_FILES := $(SODIR)/librawrapper.so LOCAL_SHARED_LIBRARIES :

How to use ccache to speed up compiling of aosp?

梦想与她 提交于 2020-05-16 03:24:25
问题 I found the ccache aosp repo here https://android.googlesource.com/toolchain/ccache/, but I have no idea how to use ccache on aosp v10, the official aosp site doesn't have any info abouut ccache anymore, only multiple builds. Does ccache still work with recent versions of aosp ? 回答1: We no longer provide a ccache prebuilt. Ours was old, and had a number of issues that triggered non-reproducible results and other failures. Newer ccache versions may fix some of those issues, but at the large