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.

2
votes
1answer
20 views

Adding a custom etc file to aosp build

I have a set of custom etc files including text files, binary data files that I want to see populated into aosp's system/etc folder. I saw the previous question Add custom.xml file to AOSP etc folder ...
0
votes
0answers
10 views

No resource found that matches the given name (at 'src' with value '@drawable/ic_settings_dock_alpha')

I'm trying to build custom ROM for nougat using msm8909. I added prebuilt apk of mylauncher to packages/apps/MyLauncher folder by following: Add prebuilt apk to AOSP build After add of apk build ...
0
votes
0answers
11 views

Package not gets Included in jar file

I am trying to create jar file which includes some AOSP hidden api. Android.mk is used to create jar. after run mma jar gets created in out/target/product/marlin/system/framework/test.jar which ...
0
votes
0answers
26 views

How to cross-compile Android emulator for Windows on Linux using existing AOSP source tree

I have AOSP sources checked out on a Linux system using the repo command as follows: repo init -u https://android.googlesource.com/platform/manifest -b android-9.0.0_r30 I've successfully cross-...
0
votes
0answers
15 views

Error when building the AOSP for Hikey970

I hava followed this tutorial to build the AOSP for Hikey970 : https://github.com/neonVoice/hikey970-aosp-build but when i build the project ( make -j4 ) it give me this error: device/linaro/hikey/...
0
votes
0answers
13 views

What particular parts of AOSP I should modify in order to add new language into Android sources or is there a guide for new language addition?

According to https://android.stackexchange.com/questions/205514/how-i-can-contribute-to-the-open-source-work-of-localization-of-android-os-for-s I have loaded the full sources list for Android AOSP ...
1
vote
0answers
21 views

Android 4(.4) ADB shell change hotspot password

Does anyone know if there is a way to change the tethering/hotspot password using ADB on android 4(.4)? I have only seen 1 solution and that is to use the input command to send key events. That will ...
0
votes
0answers
69 views

How to build custom system privilege app in aosp

I am trying to implement custom system app which has system privilege. I searched about it and I learned to make system app built in system image build result needs to be placed in system/app First I ...
-2
votes
0answers
40 views

Is there any method/ methods that get called in Android os when an app is being opened? [on hold]

My requirement is that, If we open an app in Android and if that app needs internet then I have to get alerted. So is there any methods in android.content.pm.PackageManager or any other system Class ...
0
votes
0answers
31 views

How to linux open source(libmbim-1.18.0.tar.xz) cross-compiling for Hikey960(aarch64-linux-gnu) AOSP device?

The Hikey960 board is 'aarch64' based on Coretex ARM. I installed the "gcc-aarch64-linux-gnu" compiler for the Hikey960 board. (refer to : https://blog.thinkbee.kr/linux/crosscompile-arm/) I ...
0
votes
0answers
19 views

Add the Automotive Ethernet Driver to AOSP

This is my first project with AOSP, I am trying to add the automotive ethernet driver to the AOSP and build it again. Can you help me by sharing any advices or resources that you’ve found to be ...
0
votes
0answers
21 views

How to get the current Input Method type from an Input method Manger

How to get the current Input Method type from an Input method Manger . Some time getting a wrong input type from input manager this scenario is happening when system is rebooting.
1
vote
0answers
47 views

Gboard like search bar in Android IME

I want to create a search bar like Gboard inside keyboard (Android IME) as shown in picture. Gboard Sample I have implemented an edittext on Keyboardview.xml as shown in picture. My Implementation ...
0
votes
0answers
23 views

Comparison of AOSP API vs GMS APIS. Whats the difference?

I am trying to figure out which APIs can be used if you have only AOSP without the GMS. As far as I understood, there are some APIs that can be used with AOSP. AOSP contains a location API, but GMS ...
0
votes
0answers
23 views

Reference Service .apk and Native Library (.so) in Android Studio

I am running Android on an embedded plaform Processor: Snapdragon 410 (APQ8016) processor Android: 5.1.1 (Lollipo) SDK: 22 Dev. Board: https://shop.intrinsyc.com/products/open-q-410-...
0
votes
1answer
42 views

Cannot launch Android emulator using customized built system images

I built an Android source on my server successfully. The commands I used are source build/envsetup.sh lunch aosp_x86-eng make -j32 I can also run the emulator successfully on the server without GUI ...
0
votes
1answer
43 views

How can I see git log in AOSP (Android Open Source Project) after repo sync done?

Hi I'm trying to see git log each project under AOSP(Android Open Source Project). At first the command repo sync is successfully done and I checked running emulator successfully after I built. But ...
0
votes
1answer
54 views

qemu-system-aarch64: error while loading state for instance 0x0 of device 'goldfish_pipe'

I am compiling the android source, below is the script I used to initialize: mkdir /var/www/android cd /var/www/android export USE_CCACHE=1 ccache -M 90G repo init -u https://android.googlesource....
0
votes
0answers
13 views

Android porting for SAMA5d36 board

I am porting Android to SAMA5d36. I am working in Ubuntu 18.04 LTS. I need to build Android for this board, so I downloaded the Android code from the Git repository and tried building but it is giving ...
0
votes
0answers
115 views

Apply patches to own Android ROM

I have successfully built my own Android image from Google sources. But when I start the emulator and look at the patch level, it says that it is from 2017. (It's an Android 6.0.1 so the patch level ...
0
votes
1answer
79 views

How to set the default location service as OFF in AOSP

Where can I change default location mode in AOSP. I have to set the location service as OFF. I have checked this file /frameworks/base/core/res/res/values/config.xml but I couldn't find any ...
0
votes
1answer
37 views

Missing Kernel DTB after creating signed Android images

I'm porting android to a display device, and have nearly completed this. The device use the Freescale/NXP i.MX6 Dual Lite Soc. The Android version used is Android 8.0.0, and the build is based on the ...
1
vote
1answer
105 views

X (java:sdk) should not link to Y (java:platform)

I am an android firmware developer. I work with source of android 9. I've written a custom network location provider for AOSP firmware, named offline location service. I've added this application to ...
0
votes
0answers
34 views

open source alternative for google connectivity service

Google Connectivity Service helps Android manage Wi-Fi and other network connections. Keep it updated to ensure your device has the latest Wi-Fi networking capabilities. Google Connectivity Services ...
0
votes
0answers
52 views

Android.mk build error export_includes needed by import_includes for prebuilt library

I am having issues creating a Android prebuilt shared library. In hope of figuring out what I'm doing wrong, I followed Google's example where I found the source for this example in the android-8.1....
1
vote
1answer
92 views

Android capture data from intent

I have an app that sends intent to an exact app. I have root shell access and could possibly modify AOSP, but I don't really know where to look at. Got this in logcat: START u0 {act=com.app.Action....
0
votes
0answers
36 views

How can I only compile the core part of android and then install it in a machine(or virtual machine)?

Background: I'm trying to learn android source code, and I want to compile the project then install it. However, it takes super long time on my machine. And I noticed that lots of project is ...
0
votes
1answer
41 views

Compiling Android system on Linux Mint

i have been trying to compile an android Marshmello system with no success. every time i try to compile i get this error : javac: invalid source release: 1.7s Usage: javac <options> <source ...
0
votes
1answer
62 views

Is it possible to command 'dmsetup' in Android devices?

I would like to create new device mapper devices in Android. As I know Android uses 'dm-crypt' which is part of the 'device mapper'. But, I can't use command dmsetup by adb shell in the android ...
0
votes
1answer
48 views

Why can't I found the implementation of _Unwind_Backtrace in android open source project of kitkat?

I am reading the code about the implementation of printing stack trace in native code of android, I found the following code: ssize_t unwind_backtrace(backtrace_frame_t* backtrace, size_t ...
0
votes
0answers
29 views

Need to change the UI for Storage summary in AOSP code

I have experience in android app development and i am learning AOSP development. Since i don't have experience in this i am facing problems. I want to do a change in the 'Settings' package where, ...
0
votes
0answers
32 views

Nexus 5 6.1 build make issue: BUILD_CTSCORE_PACKAGE must be defined

I am working on ROM development for Nexus 5. I have done following steps for this: Find the build version i.e MOB30D Download the proprietary binary for “Nexus 5 (GSM/LTE) binaries for Android 6.0.1 (...
0
votes
1answer
110 views

Modify core java libraries of Android source for use in apps

I want to make a little modification to the Android source to meet my requirement. Here is the requirement: I want index all the objects in an Android app by adding one more public int field to the ...
1
vote
0answers
29 views

Building AOSP with AFWall

I want to build a (non rooted) AOSP 9 on my Pixel 2 with AFWall+ as system app, so I am able to lock my bootloader again and don't have to root my phone with other tools. Unfortunately, I don't have ...
0
votes
0answers
23 views

Unwanted rebuilds in AOSP-based tree

I'm working with Android P tree (based on AOSP), received from vendor. Vendor has messed up build dependences somewhere, and that broke incremented rebuilds completely: "make" executed for the second ...
1
vote
0answers
38 views

Android only attempts to fetch location after 90 seconds

I have some problems with GPS/Location on a custom Android device we are developing. Generally, GPS is pretty quick, but the first time I request a location after boot, it takes about 90 seconds to ...
1
vote
2answers
29 views

Import specific branch to AOSP gitlab server

I want to import a specific AOSP branch to local Gitlab server, and then be able to edit certain files with the GUI. https://android.googlesource.com/platform/frameworks/base branch: android-9.0....
0
votes
1answer
55 views

“Failed to build some targets” while Building Android Open Source Project (AOSP) for Dragonboard (Ubuntu 16.04)

I'm trying to go through the procedure mentioned here on Ubuntu 16.04: https://www.96boards.org/documentation/consumer/dragonboard/guides/aosp/ . Since the steps before I face the error produce wide ...
0
votes
0answers
95 views

How do I get root access in Android while building from source?

I have built an Android version for Intel x86_64 from the Intel Celadon source code. The generated Android image is running on my machine. However, I do not have root access in the Terminal app in the ...
1
vote
1answer
65 views

How to enabled wake on touch as part of Android source code build?

I need to figure out how to enable wake on touch with Android source build. At present the device is awoken with the power button similar to a mobile phone but I need to be able to do this from touch....
1
vote
0answers
46 views

Who is the responsible setting a keyboard as default after resetting phone

when I build a custom android OS and after run on my phone, I have a custom keyboard want to run as default but nothing comes up with the click on input field finally I set as manually on settings >...
2
votes
0answers
42 views

recovery push button not working- Amlogic android box

I am working on a ROM for android 7.1 with uboot bootloader. I have a p212 board (with amlogic s905x chip). The problem is recovery push biutton. (Which you can hold it to enter recovery mode) Anyone ...
2
votes
2answers
77 views

Android AOSP SIOCADDRT ioctl call fail: Network is unreachable

AOSP: Android Pie (android-9.0.0_r16) Build: PQ1A.181105.017.A1 Device: Pixel 2 I am trying to connect cellular modem using dhcptool (renamed as dhcpdbg) with Android 9 Pie in RNDIS mode. The same ...
0
votes
1answer
56 views

AOSP Dual Monitor Support at Conflicting Aspect Ratios

I am creating an In-Vehicle Infotainment (IVI) system running Android. The development board I am using is the Rock960 from 96boards.com This board supports dual display output which is perfect ...
0
votes
0answers
30 views

Adding another key to AOSP build

I have two different Android devices from two different vendors. Each has their own customized AOSP build (which I manage). I've one set of apps to install on both devices. I'd like to avoid having to ...
0
votes
1answer
54 views

How to update system time and time zone?

I am trying to update the system time and time zone. This is system application. So I gave system application permissions. My code is try { AlarmManager alarmManager = (...
0
votes
3answers
75 views

recipe for target 'ninja_wrapper' failed / flex core dumps

First time android builder here. I used to do a lot of roll your own back on FreeBSD in the day. Getting back into geekdom with android. I am trying to build android-7.0.0_r14 for the Nexus 6 NBD90Z ...
0
votes
0answers
61 views

How to extract text from a edittext using InputConnection.getExtractedText

normal case its extracted using getExtractedText(new ExtractedTextRequest(), 0) but in the case inputType 0 its get null value so cant extract the text from the input field. Is any idea to extracting ...
0
votes
1answer
38 views

How to include custom splash.img in AOSP build

I am building a version of Android Nougat from the AOSP source tree. I have a custom splash screen image which I am flashing with fastboot(code below) and I'd like to include it in the AOSP build if ...
0
votes
0answers
125 views

How to fix sepolicy error in android emulator (goldfish kernel + android-9) boot loop

I want to run custom kernel ( goldfish ) on android-9 (API 28) avd. So I just downloaded goldfish kernel: git clone https://android.googlesource.com/kernel/goldfish/ -b android-4.4 make ...

http://mssss.yulina-kosm.ru