android-source

Adding prebuilt set of files structured in folders to android out folder

杀马特。学长 韩版系。学妹 提交于 2021-02-19 03:23:08
问题 I have glibc compiled for arm which is different from Android glibc or the bionic C as the glibc environment I have complied will help in providing more api's. Now I can copy the glibc environment on /system/ folder while Android is running, and on doing chroot I can run my programs on glibc environment. Currently I am compiling glibc and Android separately and then tarring the glibc and copying it on Android emulator sdcard and then untarring it on /system folder and then doing chroot on

AOSP Firebase initialisation error (FirebaseApp is not initialized in this process com.package.name)

拥有回忆 提交于 2021-02-11 18:06:05
问题 I'm trying to build a custom app into aosp build which uses Firebase database. I've included the firebase database( com.google.firebase.firebase_database ) along with all it's compile dependencies in Android.bp and build process is a success. However, when I launch the app, I always get this exception java.lang.IllegalStateException: Default FirebaseApp is not initialized in this process com.package.name. Make sure to call FirebaseApp.initializeApp(Context) first. I have tried calling it in

what is the difference between ActivityStack and TaskRecord

本秂侑毒 提交于 2021-02-10 14:19:29
问题 I'm studying with AOSP, and I found ActivityStack and TaskRecord in "ActivityStack" Class. There is explanation In https://developer.android.com/guide/components/tasks-and-back-stack , Back-stack(=Activity Stack) And Task seems similar to me... What is the the difference between ActivityStack and TaskRecord? 回答1: In this https://developer.android.com/guide/components/tasks-and-back-stack, Focus on below lines, For Task A task is a cohesive unit that can move to the "background" when users

AOSP - Error: Overriding commands for target (…), previously defined at (…)

五迷三道 提交于 2021-02-08 06:08:16
问题 I'm trying to build AOSP for non - supported device (surnia - Moto E2 2015 LTE) . I solved lots of problems earlier but now I have one that I can't avoid. I saw a lot of people had that problem, but their was just warning... What can I do? Or could you help me finding surnia device tree (but for stock AOSP)? [100% 441/441] writing build rules ... FAILED: build/make/core/Makefile:28: error: overriding commands for target `out/target/product/surnia/system/vendor/lib/libHevcSwDecoder.so',

How to use external jar like jsoup library in android framework [AOSP] java files (NOT Android Studio or Java IDE)

拥有回忆 提交于 2021-02-08 05:44:45
问题 I wish to use jsoup library in Android Open Source Project. For this I did two things:- Step 1: Made a directory jsoup in common as follows: [android]prebuilts/misc/common/jsoup/ In this jsoup folder I added jsoup-1.13.1.jar downloaded from : https://jsoup.org/download In this same jsoup folder I added another file Android.mk {as it is name and code below:} LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := jsoup LOCAL_MODULE_TAGS := optional LOCAL_SRC_FILES := jsoup-1.13.1

How do I archive an AOSP repo like git-archive doing?

我怕爱的太早我们不能终老 提交于 2021-02-08 04:37:24
问题 I have used this command to archive a git source code: git archive --format=tgz -o ~/myproj-20180402.tgz --prefix=myproj/ master Are there same/similar way to archive a AOSP repo branch or tag. How to do ? Any help would be greatly appreciated. 回答1: AOSP code is not a single git project, it's actually many more (hundreds). So there is not a git command per-se. What you could do is use repo this way: repo forall -j16 "<your-git-command-1; your-git-command-2>" So for the exact git command you

AOSP building application with jni libs

泪湿孤枕 提交于 2021-02-07 10:29:36
问题 I am trying to build an Android application inside of AOSP. I have defined the Android.bp file as follows cc_prebuilt_library_shared { name: "libPrintString", target: { android_arm: { srcs: ["lib/libPrintString.so"], }, android_arm64: { srcs: ["lib64/libPrintString.so"], }, }, strip: { none:true, }, } java_import { name: "stringutils", jars: ["libs/stringutils.jar"], } android_app { name: "HelloWorld", srcs: ["src/**/*.java",], platform_apis: true, product_specific: true, certificate:

AOSP building application with jni libs

倖福魔咒の 提交于 2021-02-07 10:26:31
问题 I am trying to build an Android application inside of AOSP. I have defined the Android.bp file as follows cc_prebuilt_library_shared { name: "libPrintString", target: { android_arm: { srcs: ["lib/libPrintString.so"], }, android_arm64: { srcs: ["lib64/libPrintString.so"], }, }, strip: { none:true, }, } java_import { name: "stringutils", jars: ["libs/stringutils.jar"], } android_app { name: "HelloWorld", srcs: ["src/**/*.java",], platform_apis: true, product_specific: true, certificate:

Could not find a supported mac sdk: [“10.10” “10.11” “10.12” “10.13”]

谁说胖子不能爱 提交于 2021-02-07 06:02:14
问题 I see the error when I try to build Android Open Project Source . ninja: no work to do. [1/1] out/soong/.bootstrap/bin/soong_build out/soong/build.ninja FAILED: out/soong/build.ninja out/soong/.bootstrap/bin/soong_build -t -l out/.module_paths/Android.bp.list -b out/soong -n out -d out/soong/build.ninja.d -o out/soong/build.ninja Android.bp internal error: Could not find a supported mac sdk: ["10.10" "10.11" "10.12" "10.13"] ninja: build stopped: subcommand failed. 20:17:47 soong bootstrap

SyntaxError: invalid syntax to repo init in the AOSP code

江枫思渺然 提交于 2021-02-06 12:42:06
问题 I have tried to repo init the source code Ubuntu build machine and it is successfully able to clone the code. repo init -u git@github.com:xxx/xx_manifest.git -b xxx Now I am trying repo init the source code in VM Ubuntu machine. In between getting the error like below: Traceback (most recent call last): File "/xxx/.repo/repo/main.py", line 56, in <module> from subcmds.version import Version File "/xxx/.repo/repo/subcmds/__init__.py", line 38, in <module> ['%s' % name]) File "/xxx/.repo/repo