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
2 answers

How to build a AOSP project in Android Studio

I have imported AOSP code into Android Studio, on building it I am getting some internal errors but Run, Debug buttons are disabled. The errors I am getting are: Can anyone please help me how to resolve this error and to compile AOSP into Android…
1
vote
2 answers

AOSP - install packages in background without user confirmation

I am building AOSP for Android version 8.1 and I want to implement my own app store and hence need to install apks onto the system. The only way I've seen so far is using something like the following: val intent = Intent(Intent.ACTION_VIEW) val file…
phoebus
  • 1,280
  • 1
  • 16
  • 36
1
vote
2 answers

what is the difference between ActivityStack and TaskRecord

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…
user261935
  • 11
  • 2
1
vote
0 answers

Proguard error when building AOSP with external jar files

I use some external jar files in AOSP/framework/opt, and it is ok to mm -B those jar files and android framework, but when I try to use make -j4 to produce images, it warns that library class depends on program class, and then it fails to make. And…
hitwhyyx
  • 59
  • 1
  • 5
1
vote
0 answers

Android NullPointerException at Parcel.readException

We sometimes throw new exception without specifying exception message. For example: throw new NullPointerException(); However, because of the above code, sometimes NullPointerException like below happens: Exception: java.lang.NullPointerException:…
John
  • 1,139
  • 3
  • 16
  • 33
1
vote
2 answers

GETTING LAUNCHER2 SOURCE CODE?

I am trying to get the launcher2 source code, but it says use repo and git. Does anyone know what to do to do this? i have tried multiple times! -- Or if any one has the actual source code i can download from that would also be very helpful!
IntelSoftApps
  • 1,161
  • 3
  • 14
  • 18
1
vote
0 answers

Allow content to display outside of LogicalDisplay Rect AOSP/LineageOS

I'm working on adding second screen functionality to AOSP for the LG V20. So far, I've managed to set up the offsets so normal content doesn't overflow into the second screen area, and I've added the second screen window type (SIGNBOARD). The…
TheWanderer
  • 16,775
  • 6
  • 49
  • 63
1
vote
1 answer

Default Android Gallery App doesn't compile :(

I'm trying to make a mobile mashup of existing apps Got Default Android System Camera App for 2.2 Froyo from https://android.googlesource.com/platform/packages/apps/Camera/+/froyo-release Works and compiles great Got Default Android System Gallery…
siamii
  • 23,374
  • 28
  • 93
  • 143
1
vote
2 answers

Does Android have some functionality that kills all running processes and requires a reboot to fix?

I'm developing some Android devices that are constantly performing fairly intensive tasks. I've noticed a strange issue happen (quite rarely, generally after 2-3 weeks of running continuously) where a device ceases to function, and all…
A_toaster
  • 1,196
  • 3
  • 22
  • 50
1
vote
0 answers

Start/access emulator from ssh or with built images

For a school project i have to modify AOSP to create our own custom android (7.1.2 version). We setup a server (ubuntu server 17) who can build it, and it works. The problem is when we want the emulator to test the builted android. We can't start it…
Jean Walrave
  • 191
  • 1
  • 2
  • 13
1
vote
0 answers

retail demo mode custom launcher

I would like to create an application to change the retail demo mode video in a android retail device. Reference: https://source.android.com/devices/tech/display/retail-mode Since the link leads to an aosp site, it seems to me that I have to modify…
Aleks
  • 11
  • 2
1
vote
0 answers

LocationManager getLastKnownLocation with passive provider

I have a legacy app which, in a certain activity, requires user location. This location doesn't need to be precise, so my criteria is Criteria criteria = new…
Mel
  • 1,730
  • 17
  • 33
1
vote
0 answers

Boot full Android stack from init service

I have placed an Android device in "charger mode": am.QueueEventTrigger("charger");, during boot up "late-init" is not executed. Then there are some services implemented in: init.MY_HARDWARE.rc file: service my-service-1 /system/bin/modprobe…
Olsson
  • 11
  • 2
1
vote
0 answers

Build AOSP for specific device

I want to build a custom ROM to a device (with AOSP) and need to know what I need to ask the vendors for. Do providers usually make drivers available in the format Google does? Anyone know what I need to ask for? I have already spent a lot of time…
1
vote
1 answer

Compilation error while playing around with Stock Android (Froyo)?

I am trying to compile Android (Froyo) from the source for my Nexus One. I pretty much followed all instructions from here. Though the instructions are for Gingerbread, I don't really see much of a difference for Froyo. After I do a "make -j4", the…
Legend
  • 113,822
  • 119
  • 272
  • 400