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.

Questions about Android source code and dependent themes: building from the source, contributing, porting etc.

  • Android Open Source Project
    Contains all necessary information about the Android source code. Start here.

  • Android Tools Project Site
    Information about contributions to the Android Developer Tools subproject.

  • android-platform:
    General discussion about the Android Open Source platform.

  • Android Building:
    Discussion on building the Android source code, and on the build system.

  • Android Contributors
    Developer discussion forum about contributions to the Android open-source software.

  • Android Linux Kernel Development
    Developer discussion forum about Android Linux Kernel development, debugging and porting.

  • android-porting:
    Discussion forum about the specifics of porting Android to individual devices, from obtaining toolchains and merging kernel drivers all the way to configuring or modifying applications for the specific configuration.

3064 questions
1
vote
0 answers

Layout Design Preview are not showing in Android Studio for AOSP Development. How to enable design preview?

I've imported AOSP into Android Studio by andorid.ipr file generated by IDEGEN. But the design preview is not showing. How to configure Android Studio for Building and showing Layout Previews?
1
vote
2 answers

Discover Nearby Smartphone Devices on Android

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…
1
vote
1 answer

How to using lib*.so that was built in AOSP using mm command

I have c/c++ source code that was built as shared library using AOSP environment. (Using mm command). That has 4 function: add, sub, multiple, divide. Now, I want to call these function from Android Application that uses UI. It means that I want to…
DreamInBox
  • 174
  • 2
  • 12
1
vote
2 answers

Updating .mk and .xml files in Android source code

If I change a .mk or a .xml file in the android source code, how do I send this updated file to the device? Do I first rebuild the source tree? Or is building not necessary? After building/not-building, do I use adb push or adb sync or do I have to…
fraiser
  • 929
  • 12
  • 28
1
vote
1 answer

Android Gingerbread keyboard

I want to extend Android 2.3 Keyboard (LatinIme). I get source code from https://android.googlesource.com/platform/packages/inputmethods/LatinIME After fixing some errors(missed classes) and packages rename, i can install it as bonus keyboard. But…
Stepango
  • 4,721
  • 3
  • 31
  • 44
1
vote
0 answers

Could not determine the dependencies of task ':base:builder:sourcesJar'

When I was building the Android Gradle Plugin source code, I always get the following error! I use ./gradlew assemble command. I try to check the 'tools/dx' dir and found that it is not a gradle module. I am searching for a long time on net. But no…
1
vote
0 answers

AOSP: Static Prebuilt Modules and their dependents

I have prebuilt binaries of opencv as static libraries built using the android NDK r16 for arm64-v8a & armeabi-v7a. I'm trying to use these binaries as is in an AOSP build for the same above two architectures. The output of the opencv prebuild…
Kartik Aiyer
  • 586
  • 1
  • 6
  • 20
1
vote
1 answer

How To Copy an Android Source Class Into a Project?

Let's say there is an Android library class that does not have a feature that I want, and so I just want to cut and paste the class into my project as a new class file and add the feature myself. I have a specific case where I wanted to do this with…
Nerdy Bunz
  • 6,040
  • 10
  • 41
  • 100
1
vote
1 answer

How to find out what engine is being used by a particular TextToSpeech instance?

In Android, how can you query a TextToSpeech instance in order to find out what Engine it is using? In the documentation, the only method that looks promising is TextToSpeech.getEngines(), but this method returns all Engines installed on the device…
Nerdy Bunz
  • 6,040
  • 10
  • 41
  • 100
1
vote
1 answer

Getting "invalid parameter name" while building lineage 15.1 from source for xiaomi mi a1

I'm trying to build lineage 15.1 from source for tissot device according to that guide and get an error "invalid parameter name" while running brunch tissot which looks axactly as error for cheeseburder i found on pastebin (my output). In subsequent…
1
vote
1 answer

When I run CTS after a few hours the adb connection to device becomes unresponsive

I am executing CTS on Jacinto 6 Evaluation Module (ti-jacinto6evm) and I'm encountering a number of test case failures that I don't understand. I started by building both AOSP and CTS. Both builds were just fine. I can flash my test hardware…
shubhamA
  • 11
  • 1
  • 4
1
vote
1 answer

How to solve "build/envsetup.sh LUNCH_MENU_CHOICES[@]: unbound variable" when trying to compile AOSP from source

curl https://storage.googleapis.com/git-repo-downloads/repo > repo chmod a+x repo ./repo init -u https://android.googlesource.com/platform/manifest -b android-7.1.1_r6 ./repo sync . build/envsetup.sh fails with: build/envsetup.sh: line 508:…
Ciro Santilli OurBigBook.com
  • 347,512
  • 102
  • 1,199
  • 985
1
vote
1 answer

Change the output of "getprop" in android adb shell

I am trying to change the output when we are using getprop in adb. I know that the init will read the system properties from /default.prop /system/build.prop /system/default.prop /data/local.prop. In my case, I only got the /default.prop and…
Xudong Shao
  • 199
  • 3
  • 12
1
vote
0 answers

What is the static shared libraries feature introduced in API level 26?

Seems Google quietly introduced some kind of shared library functionality in Android API level 26: https://developer.android.com/sdk/api_diff/26/changes Notice the following new class among other…
satur9nine
  • 13,927
  • 5
  • 80
  • 123
1
vote
1 answer

How to build Trade Federation test cases

I am able to compile and execute Trade Federation test cases which are located inside /tools/tradefederation/core/tests. But how can I execute the test cases which are located inside my project? My Unit and Instrumentation test cases are located…