Questions tagged [android-source]

Questions about the source code and building of Android itself, contributing to the Android project, Android kernel development and porting. Do not use for Android application development questions except where specific to building applications as pre-packaged parts of the system.

0
votes
0answers
7 views

Android 8 AOSP build question on prebuild .apk files

I'm working on an embedded system that uses/will use Android8. To date, development has happened on Android 7.1.1 -- the vendor of the reference board supports only those two. In Android 7.1.1, we ...
0
votes
0answers
18 views

How to use Bluetooth HIDL?

I'm developping an AOSP app that have to send HCI command to Bluetooth chipset. I found that i can use this interface : https://source.android.com/reference/hidl/android/hardware/bluetooth/1.0/...
0
votes
1answer
39 views

Why is the directory “external/qemu” missing after cloning the Android source code?

I cloned the android source code following the instructions at https://source.android.com/setup/build/downloading. I want to modify and compile the Android emulator in order to change the phone number ...
0
votes
1answer
28 views

Move system service from AOSP build tree to installable APK?

I am extremely new to Android development. My company supports our own Android build for our devices using the AOSP build tree with some of our needed system services and APK's being build within the ...
0
votes
0answers
34 views

Avoid destroying Surface

Community, I have an application which has an activity and a service. The service is always running. The activity is opening when my product (which is running Android) connect to a device (this is an ...
0
votes
1answer
55 views

How to setenforce 0 when android startup

With android phone, I want setenforce 0 permanently, I add A.rc to /system/etc/init/ folder. A.rc like these: on property:sys.boot_completed=1 setenforce 0 But setenforce 0 take no effect, is ...
0
votes
0answers
29 views

Repo sync: Access is denied

I have been trying the past few days to download the android source code for 8.1.0. I did it successfully for 4.0.1 with repo sync only, but it took a while, so this time I did it with repo sync -c --...
0
votes
0answers
35 views

Fixing IP adress for Android (from AOSP code)

I have already built the ASOP for Hikey970. I use the ethernet port to connect to the internet and I need to give a static IP without ifconfig that's mean a static ip configuration on the default (...
0
votes
0answers
29 views

Add new device in AOSP

I am beginner to AOSP, and trying to add new device in it for my learnings. So I am following below mentioned links new_device and new_device2 But when I compile it says "ninja: error: 'out/target/...
0
votes
3answers
54 views

Custom test suite for AOSP

I'm developing a custom device targeting Android P, and have added custom system service which uses some hidden APIs. The service then will be used by the android application which is not part of the ...
0
votes
0answers
30 views

Warning: attempted to generate guard with empty availability: obsoleted = 21 error

I got this error while building Android x86 from AOSP: [ 29% 3755/12860] Hidden API: out/targ...id.test.base_intermediates/javalib.jar FAILED: out/target/common/obj/JAVA_LIBRARIES/android.test....
0
votes
1answer
25 views

Jack ERROR while building AOSP Extended ROM

I'm trying to build Aosp Extended oreo ROM for Leeco le 2(s2) I have a Google Cloud platform VM with 16GB RAM, 4cores. I searched for similar cases but couldn't find anything. I also asked XDA, ...
-4
votes
0answers
51 views

Where is Constraint Layout 2.0 source located?

Anybody knows where's Constraint Layout 2.0 source located? I found this, But it is 1.1.2, not 2.0. Guess the source is not opened yet?
0
votes
0answers
39 views

AOSP Automotive. Ability to add external display and host an app on the external display

I have requirement that I have to build in vehicle infotainment system (IVI) running on android Pie. The requirements requires two displays, one is the primary display similar to most of the car's ...
0
votes
1answer
35 views

AOSP Automotive orientation change

I am building the automotive build from the AOSP project. I cannot seem to find a way to change the default SystemUI orientation from landscape to portrait. Help needed.
-1
votes
0answers
31 views

How to set static gateway IP address through android source

I am trying to build custom ROM using MSM8909. Through USB tethering, I can able to access mobile internet from PC. But my situation, I need to access PC internet from mobile. I can able to ...
0
votes
1answer
84 views

AVD shows black screen with image built from AOSP without any change

I've being struggling with android emulator for three days now. What I have done: Repo sync to get latest changes. Source build/envsetup to set up the environment lunch to select aosp_x86_64-eng ...
0
votes
0answers
64 views

Disabling Android USB modem access from Computer

I'm compiling an AOSP image from source and I have seen that if I connect the device using USB I can access to the modem and perform AT commands to it using putty as a COM port handler. It appears in ...
1
vote
0answers
58 views

How to pass argv[0] with Process.Start in C#

I'm writing a wrapper program in C# with Mono under Ubuntu. The key of a successful wrapper is to be as transparent as possible. One of the requirement is to pass argv through exactly. When use ...
0
votes
0answers
50 views

LineageOS build fails on macOS 10.14: Ninja Failed with Exit Status 1

I am building LineageOS(a fork of AOSP), on my own gerrit server. Upon building, a signed build using the command: `mka target-files-package otatools. I've tried looking online, but nobody seems to ...
0
votes
0answers
39 views

How to run x86-64 compiled stagefright on ubuntu14.04

I'm trying to run stagefright on linux environment x86_64. I built android-9.0.0-r35 as x86_64, and compiled kernel with binder, ashmem configuration, but it didn't work. My environment is Ubuntu14....
0
votes
0answers
55 views

Android 9 (AOSP) will boot only if mdns socket is opened in system/etc/init/netd.rc

Why would an mdns socket required for AOSP 9 to run? socket mdns stream 0660 root system When this line in AOSP 9 source code in (system)/etc/init/netd.rc is commented out, the boot does not ...
0
votes
0answers
42 views

android-support-v7-cardview_intermediates/classes.jack needed by classes.dex

I'm trying to build custom ROM for nougat using msm8909. I added prebuilt apk of MyApplication to packages/apps/MyApplication with Android.mk. While making system image build I got an error out/...
0
votes
0answers
31 views

Is there an Android Java API to get the details of the Audio Policy configuration?

I am developing an application for a modified Android system built using Android AOSP. This system has its audio policies defined using XML files as explained in https://source.android.com/devices/...
0
votes
0answers
58 views

How do I extract and compile my devices proprietary binaries together with the android source code?

I have a Samsung A3(2015) and I want to build android from source and load it onto the device. Following the fairly straightforward steps on https://source.android.com/ I have setup the environment ...
1
vote
1answer
78 views

LineageOS Gerrit push failed: too many commits & forge committer not permitted

I am setting up a Gerrit LineageOS(fork of AOSP) server locally, but upon my push to gerrit, many of the refs are rejected, giving me the error(s): prohibited by Gerrit: forge committer not permitted ...
0
votes
0answers
47 views

I am not able to create ImsManager Object in jar? Run time it throws "Neither user 10102 nor current process has android.permission.MODIFY_PHONE_STATE

i am trying to create test app which deals with IMS Manager in order to do call related operation. my app calls method inside jar( this jar has all IMS related implementation). Execution from App to ...
-1
votes
0answers
50 views

Support TI WL18xx WiFi/Bluetooth module on iMX7 Running Android 8.0.0

I am relatively new to AOSP and very new to the Linux kernel, and I have a task to load Android onto an eSOMiMX7 board, which runs, among other things, an iMX7 processor and a TI wl18xx WiFi/bluetooth ...
0
votes
0answers
75 views

Android Kernel - Unable to activate CONFIG_USB_ETH=y in the kernel dot config

I am trying to configure Android Kernel (msm-4.4)to have USB-CDC Ethernet Support in order to implement USB tethering in the low level. What I want to do is to migrate what's done in the following ...
6
votes
1answer
327 views

How to make a dialer based on Google's Android latest dialer app (or of a Vanilla based ROM such as Lineage OS)?

Background Starting from Android M, it's possible to make a replacement to the dialer app of the OS, meaning that taking phone calls could show your own customized UI. This is done by extending ...
0
votes
0answers
33 views

How to push jar to system/framework in aosp developing

I will add custom jars to system, so i push jars(dex) to system/framework/ and reboot, but it doesn't work in Android 9.0 AOSP. How can do this? Thanks for your help.
0
votes
0answers
46 views

Running AOSP images using Android SDK emulator

I just learned that Google is now building AOSP images that can be easily downloaded here. https://ci.android.com The emulator images can be downloaded here. https://ci.android.com/builds/submitted/...
0
votes
1answer
53 views

SEPolicy for Android Native binder client

I'm new to the Android world I want to know how to set SEPolicy for native binder client program (And what to set as well..) I'm using vendor binder (vndservicemanager) reference from Using Binde-...
0
votes
0answers
68 views

Android-to-Android USB Tethering

I am researching USB tethering and I would like to connect two Android devices together in order to share one's internet. Note that the Android system is running on an Embedded device, no phone, so I ...
0
votes
0answers
21 views

Size of compiled executable

Im currently compiling an executable for android arm v7a. I compile it in aosp source in external folder first in root i run . build/envsetup.sh then cd to external/myexecutable then run mm command to ...
1
vote
0answers
67 views

How to correctly clean up a module and rebuild it in AOSP?

The top directory of AOSP is ~/WORKING_DIRECTORY. If I run ~/WORKING_DIRECTORY$ make the whole system builds correctly. According to Building a particular module in the android source code, https:...
1
vote
0answers
63 views

Building android go from AOSP Q Beta 1 code

I am newbie to ROM development. I have a Moto e 1st gen device sitting around. I wanted to give it another life. So I was trying to build Android Go from AOSP Q Beta 1 source code. I don't know how to ...
0
votes
0answers
62 views

Configure AOSP Source code for development with android studio

I am trying to configure android studio to work with AOSP source code, I followed many guides all are almost the same, but all gave me the same error, anyone please take a look and help me please.... ...
0
votes
0answers
52 views

How do I write conditionals ifeq ($(filter-out tt_%,$(TARGET_PRODUCT)),) in android.bp

How do handle below code in Android.bp ? I need to enable conditional flag based on Target_product that is selected. I have shared my Android.mk , similar logic need to be handled in Android.bp. In ...
0
votes
0answers
38 views

Error linking static function member while developing in AOSP

In my c++ class, in a project compiled in aosp, I have this function MyClass::foo() { std::string str; ... } which compiles and runs as I expected. However, when I made str static, like this:...
0
votes
0answers
18 views

Add Zawygi as a language for AOSP

I'm trying to add Myanmar Zawgyi as a language in AOSP. -When user choose Myanmar Zawgyi, system default font will be ZawgyiOne.ttf -Otherwise, system font will be Unicode. But by this way, ...
0
votes
0answers
31 views

How to get buildable android app out of AOSP source

I try to make a own Dialer-App, to get some basic functions to work I try to get the original Dailer from the AndroidOpenSourceProject up to running. I pulled the code from AOPS Dialer master and open ...
0
votes
0answers
59 views

How to run a command after entire build is done in AOSP?

Specifically, I'd like to tar up the root directory (e.g., out/target/product/zcu102/root), but I'd like it to automatically have it done when I build. So for example, right now I run: m -j32 &&...
0
votes
0answers
30 views

AOSP under AndroidStudio cannot resolve all symbols

I've got problem under Android Studio with resolving symbols in opened AOSP project. Generally I followed with those two instructions: https://android.googlesource.com/platform/development/+/master/...
0
votes
0answers
76 views

AOSP: Change boot animation of the aosp_arm-eng emulator (or any other emulator)

I need to customise the AOSP emulator build to confirm the sanity of what I'm doing for a real device. I need to change the boot animation, but I wan to test it first on an emulator. For now I've ...
0
votes
1answer
131 views

How to create a service in /init.rc?

Following the example given in this post, I added these lines to /init.rc: on property:dev.bootcomplete=1 start boot_handler service boot_handler /system/bin/bc_handler.sh class main ...
0
votes
0answers
35 views

Tradefed Test Configuration not installing file from priv apps?

While trying to run tradefed test configuration it not finding apk file in priv apps directory in out instead it failed to do setup. com.android.tradefed.targetprep.InstallBuildEnvApkSetup Is there ...
0
votes
0answers
147 views

How to get access to phone book of device which is connected using Bluetooth?

I want to pull contacts from device which is connected using Bluetooth. How can I do this? As I understand, I have to use Phone Book Access Profile (PBAP). But there is no public api for using it ...
0
votes
0answers
48 views

How does AOSP build system produce .rsp files and how to get them?

According to How does AOSP 9.0 build system link the executable? and What does @ mean in this clang command in AOSP build log? , when linking a module, AOSP seems to produce a .rsp file that contains ...
0
votes
1answer
91 views

Persist application disabled across factory reset

I've been doing some experimentation with Android in order to lock down a kid's phone. Ideally, I'd like him only to be able to use apps that have been pre-installed on the phone; he spends and ...

http://mssss.yulina-kosm.ru