android-source

Android 'repo' documentation available?

白昼怎懂夜的黑 提交于 2019-11-30 12:50:14
The only documentation about googles 'repo' tool for android repository management was: https://sites.google.com/a/android.com/opensource/download/using-repo This was less than nothing: the available help is the same as when typing: repo help Does anyone know another source of documentation? I explicitly want to know how to revert local changes: -of a git repository that is part of the 'repo' -of the repo '/manifest' folder or other 'repo' changes Documentation about repo is a bit hard to come about, as you have discovered. In addition to your link, the repo help <subject> commands are very

Add one android project as a library in AOSP App

浪尽此生 提交于 2019-11-30 11:09:52
问题 I want to add some features into Browser app by start an activity from another android application. It gives me package does not exist while I make the Main Project. Notice that I see the AndroidLib is built successfully into an out/target/product/generic/data/app/AndroidLib.apk Here are two android.mk files: AndroidLib(a normal Android App) LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) LOCAL_STATIC_JAVA_LIBRARIES := \ google-ps \ android-support-v4 \ LOCAL_SRC_FILES := \ $(call all-java

How to add a system service to the Android Framework

ぃ、小莉子 提交于 2019-11-30 10:42:39
问题 I want to add my own framework code that runs in the Android "system_server" (handles all the system level services). My service loads a JNI library that talks to a driver I have added to the kernel. The service is designed to allow an app to register a listener with it to get updates from the driver. I found a pretty good blog post (http://www.androidenea.com/2009/12/adding-system-server-to-android.html) that explains how to add a system service, but I cannot get it completely working. First

Android x86 porting, unable to make it work

我是研究僧i 提交于 2019-11-30 10:38:21
问题 I'm kind of new to the whole porting issue and I got to it because of the slowness in the emulator provided with the Android SDK. I downloaded the android-x86-3.2-RC2-eeepc and android-x86-3.2-RC2-tegav2 ISO-es (from this site) and tried them on the VirtualBox but have no internet connection on the eeepc version and the tegev2 wont event start. I tried the VirtualBoxHowTo but got nothing, on both Windows and Linux platforms. the only thing I managed to understand is that to use this on a VM

Error: Android source build in eclipse

谁说胖子不能爱 提交于 2019-11-30 09:50:07
While trying to add android source to eclipse, I am getting the following errors. Project 'android' is missing required library: 'out/target/common/obj/JAVA_LIBRARIES/gsf-client_intermediates/javalib.jar' Project 'android' is missing required library: 'out/target/common/obj/JAVA_LIBRARIES/google-common_intermediates/javalib.jar' FYI, I have built the source successfully with full_maguro-userdebug configuration (for Galaxy Nexus) before adding this to eclipse. Since I couldn't find "create project from existing source" in Eclipse Indigo, I changed the location of the project to the root

How to just build Android system image

感情迁移 提交于 2019-11-30 09:03:30
I made some small changes in framework/base, and did a "mm" under that folder. Now I don't want to run "make" on the project root because the makefile including process is very slow. Is there a quick way to just build the system image without going through the lengthy including process? If your changes effect other applications, use make systemimage , otherwise use make snod . Notice: make systemimage will check dependency during compile progress, while make snod will not do this check, so the former command need more time than the latter. 来源: https://stackoverflow.com/questions/29023406/how

Foreground service getting killed from Oreo

别来无恙 提交于 2019-11-30 06:20:40
问题 I have written a foreground service which is working properly for all OS version lower than Oreo. From Oreo application process is getting killed after 5 minutes of closing and removing the application from recents. As per android developer documentation for background execution limitations OS should not kill application for which a foreground service is running and notification is shown in notification window. As per guidelines on developer documentation. I followed below steps to start

How to compile android goldfish 3.4 kernel and run on emulator

心不动则不痛 提交于 2019-11-30 04:02:45
First let me tell you that I am working on MAC with OS X 10.7.5. I am trying to compile Goldfish 3.4 kernel and run it on emulator. It compiles alright but when I run it the emulator opens and freezes. When I do a "top", I can see the emulator running like crazy but nothing turns up on the screen. Here is how I compiled the kernel git clone https://android.googlesource.com/kernel/goldfish.git git checkout -t origin/android-goldfish-3.4 -b goldfish3.4 make ARCH=arm goldfish_defconfig make ARCH=arm SUBARCH=arm CROSS_COMPILE=/Volumes/androidSpace/android_work/prebuilts/gcc/darwin-x86/arm/arm-eabi

AOSP and IntelliJ IDEA

隐身守侯 提交于 2019-11-30 03:53:52
Has anyone tried to work with AOSP using IntelliJ IDEA? I see in Android sources a specific folder (development/ide/intellij) but I cannot find any information how to use it in case of Android development (for Eclipse the information can be found here: http://source.android.com/source/using-eclipse.html ) Can anyone provide similar instructions how to start developing Android in IDEA? Mixaz Also a good reading here: https://shuhaowu.com/blog/setting_up_intellij_with_aosp_development.html If you get Couldn't find idegen.jar. Please run make first. You'll need to generate it first: source build

Android: Kernel Debugging with KGDB

折月煮酒 提交于 2019-11-30 03:43:19
I'm trying to do kernel debugging for my Nexus One, and have been following instructions from http://bootloader.wikidot.com/android:kgdb . I was wondering if someone has actually got this to work? And has anyone done a more up to date solution for using KGDB to debug the kernel? I found this post when I was looking for information of KGDB on Android so, despite it being a few years old, I thought it worth posting a link to some work I did to get this up and running on the Nexus 6. http://www.contextis.com/resources/blog/kgdb-android-debugging-kernel-boss/ I hope this helps anyone else looking