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

Simulating power button press to display switch off dialog box

I am trying to invoke the switch off dialog box that appears when we press power button. But i want to accomplish this task from an android application or a Junit test case. I will choose the most feasible approach in this case. I have been trying…
Ashwani Kumar
  • 834
  • 3
  • 16
  • 30
22
votes
1 answer

Android: Create new System Permission in through AOSP source code.

I was wondering how one can edit Android OS source code to impose a new permission. For example like we have BLUETOOTH permission, if the device offers a new sensor, then how appropriate permission can be created in order for applications to use the…
20
votes
0 answers

View gets cropped above 10.000 pixel width

UPDATE: Works on Emulator with Android Oreo (8.X). I have the possibility to do changes right to the android sources, so it would also help if someone knews what in the android sources I have to change or update to get this working (so I don't…
19
votes
2 answers

Storage & Network device drivers source code for Nexus 6 and Samsung Galaxy S6

For university research purposes, I am searching for a specific part of Nexus 6, and Samsung Galaxy S6 source code. Particularly, I am interested in "network" & "storage" driver source codes. I have visited developer resources for both Samsung…
Behnam
  • 6,510
  • 6
  • 35
  • 65
19
votes
2 answers

What is the meaning of AOSP's 'lunch' combinations and what do I need to choose?

I am a new comer to Android devices ROM development. Anyway, I am now in the progress of building AOSP to a Chinese device with a 64-bit processor. I am following the menu at source.android.com, and when I am running the "lunch" command, the…
stack overflow
  • 191
  • 1
  • 1
  • 3
18
votes
2 answers

Resigning system.img on a device

I am working on an automatic app updating solution for devices (LG p509 - Optimus 1) which we deploy to our customers. We have control of these devices and currently install a custom kernel on them (but not a full custom ROM). Since we are trying to…
natez0r
  • 1,064
  • 9
  • 14
18
votes
3 answers

How do you create a loadable kernel module for Android?

I know there a number of walkthroughs and tutorials floating around out there which describe this activity, but after having read many of them I still can't get this working. If anyone has the patience to wade through the steps I've taken (posted…
Brian Sweeney
  • 6,693
  • 14
  • 54
  • 69
17
votes
2 answers

How is the AOSP project built?

All the git projects for the AOSP are cloned by the repo tool, which reads this xml: https://android.googlesource.com/platform/manifest/+/refs/heads/master/default.xml. AOSP guide says the in order to build, we should run source build/envsetup.sh on…
Guerlando OCs
  • 1,886
  • 9
  • 61
  • 150
17
votes
3 answers

How the soong/android.bp build works?

Google introduced Soong build system the replacement of old makefile system. Have any idea about how it works? What is this Android.bp in the sources?
Midhun PM
  • 512
  • 1
  • 7
  • 24
17
votes
2 answers

Android Keyboard Source

Is the source available for the default Android Keyboard?
MJ.
  • 1,269
  • 4
  • 12
  • 24
17
votes
4 answers

How do I set the default launcher in an AOSP build?

I am modifying the AOSP source code because my app needs to run in a kiosk environment. I want Android to boot directly into the app. I've excluded launcher2 from generic_no_telephony.mk, and added the app there. Now Android prompts me all the time…
user3506467
  • 377
  • 1
  • 4
  • 12
17
votes
3 answers

How to build a part of Android AOSP?

I am trying to build my own libs and apps in external directory of the AOSP, but the problem is i have to run make each time and the make will compile/build whole the android. In my external apps folder i have Android.mk file, but i cannot build it…
Andrei Golubev
  • 283
  • 1
  • 2
  • 15
16
votes
2 answers

How does the Android source overlays work?

In the android source in the device/sample folder there is a folder called overlays. You see the same overlay folder in e.g. the cyanogen mods. What is this overlay folder? How does it work? What is it used for? Where can I read more about…
Bjarke Freund-Hansen
  • 28,728
  • 25
  • 92
  • 135
16
votes
4 answers

System app with android:persistent=true crashes after update

I have a system-privileged app with android:persistent=true in < application>. When I update it (via ADB or any other way), it fails to update properly and crashes. What I'm seeing is that the system installs the update while the current…
user3118604
  • 854
  • 6
  • 12
16
votes
2 answers

How Can the Settings App Start an App's Non-Exported Activity?

Android N lets you link an activity of yours into your app's page in Settings. Just add an for android.intent.action.APPLICATION_PREFERENCES. Android N's Settings app will look for the activity in your app that has that…
CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491