android-source

How to sync just android 2.2 froyo code?

房东的猫 提交于 2019-12-01 05:15:28
问题 repo init -u https://android.googlesource.com/platform/manifest -b froyo error: revision froyo in manifests not found Latest version 2.3 required 64 bit machine to build,How to get just froyo code? 回答1: Here is an explanation of what is happening to the froyo branch and how to workaround the problem: https://groups.google.com/group/android-building/browse_thread/thread/d6c505873a8680a7 If you want to look for the appropriate tag to check out exact code branch, try this: https://android

How to download only a working directory of the AOSP source code without the entire repo history?

谁说胖子不能爱 提交于 2019-12-01 03:52:20
The size of the latest AOSP source code is rather large (around 30-35 Gb for the .repo directory and another 15 Gb or so for the working directory). Is there a way to download only a snapshot of the latest version of the source code (official marshmallow release) without the entire repo history? That would save me a lot in bandwidth and storage. You can specify --depth 1 to git clone command. It will only get the latest snapshot. Step to download android source code(AOSP) in Ubuntu First create one folder like " aosp-m " to copy AOSP code in your machine. Open terminal(Ctrl+Alt+T) and change

Building just one tool from Android source (AOSP)

試著忘記壹切 提交于 2019-12-01 01:25:13
Currently I'm using the the AOSP ROM Builder image on Amazon AWS to build Android. The point is, I'm only interested in the external tool grxmlcompile that is built for the host (linux) in the path: aosp/out/host/linux-x86/bin where the source is at aosp/external/srec/tools/grxmlcompile I'm not very familiar with Linux and make files, hence my difficulty to get this going. I would like to copy the source (if needed the whole tree) and build just this tool on another linux machine. I can't find the make file I need to run to build just this part. UPDATE: Looks like make out/host/linux-x86/bin

How to download only a working directory of the AOSP source code without the entire repo history?

妖精的绣舞 提交于 2019-12-01 00:35:18
问题 The size of the latest AOSP source code is rather large (around 30-35 Gb for the .repo directory and another 15 Gb or so for the working directory). Is there a way to download only a snapshot of the latest version of the source code (official marshmallow release) without the entire repo history? That would save me a lot in bandwidth and storage. 回答1: You can specify --depth 1 to git clone command. It will only get the latest snapshot. 回答2: Step to download android source code(AOSP) in Ubuntu

How to add extra permission to a prebuilt application (no source code) in AOSP

流过昼夜 提交于 2019-11-30 23:39:02
I have an application that doesn't have a specific android permission(for example android.permission.CHANGE_CONFIGURATION ). I don't have its source code. I'm working on an AOSP. I prebuilt this application like: Put APK in /device/model/apps/HERE Add these snippet codes in Android.mk: define PREBUILT_templateByMe LOCAL_MODULE := $(1) LOCAL_MODULE_CLASS := APPS LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX) LOCAL_CERTIFICATE := PRESIGNED LOCAL_SRC_FILES := $$(LOCAL_MODULE).apk LOCAL_REQUIRED_MODULES := $(2) include $(BUILD_PREBUILT) endef define PREBUILT_APP_templateByMe include $$

How to debug android framework services?

浪尽此生 提交于 2019-11-30 20:45:30
Is it possible to debug the android framework's system services? I have come across these links, but wasn't successful enough to debug the system services. http://android.opensourceror.org/2010/01/18/android-source/ You need an eclipse project to be able to debug Android framework services. The process of creating an eclipse project for AOSP is not that straight forward. The instructions at Android source site leaves lot of details. You will either end up with broken project or broken AOSP builds. If you break AOSP builds, you probably have to go to each folder where eclipse project created

Android AOSP - adding app to /packages/apps

喜夏-厌秋 提交于 2019-11-30 20:33:48
I need to add a new app that I wrote in Eclipse to the /packages/apps folder in Android AOSP. But after the copying the app folder into that directory, building, and rebooting Android, I don't see my app in the launcher. I see that the Android.mk file is missing. I want to ask what is the simplest Android.mk that could be written for a Eclipse project to make it compile. I tried the following (I put the file in the app's directory) LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE_TAGS := optional LOCAL_SRC_FILES := $(call all-subdir-java-files) LOCAL_PACKAGE_NAME := MyApp include

Is it possible to build AOSP project (Gingerbread) in kubuntu12.04 (xubuntu)?

佐手、 提交于 2019-11-30 20:00:40
问题 I work with older releases of Android (Gingerbread 2.3.4). To develop for these versions I use now Ubuntu 10.04. At the same time, I would like to use more recent version: 12.04 or maybe 12.10. It is written here: Building on Ubuntu 12.04 is currently only experimentally supported and is not guaranteed to work on branches other than master. So here is my question, has anybody tried to build old versions of Android on Ubuntu 12.04? I do not like new unity interface so I also consider xfce or

Android, Native OpenGL/OpenMAX, Screen capture

北城余情 提交于 2019-11-30 16:40:29
Use-case Mirror Android Screen to PC using USB Potential (Native) Implementation Approaches Using Android Open-Source, modify screenrecord for your needs and re-install on your Android device using ADB Use well known native API such as OpenGL / OpenMAX to capture screen Discussion Approach #1 will certainly work ( under the shell account ), however , each time the Android OS is updated, the custom code will need to get updated to keep up with OS changes, with approach #2 the API stay fixed and there is no need to worry about OS changes, the question is whether it is possible to implement

See changes in Android Support Library sources between two versions

我与影子孤独终老i 提交于 2019-11-30 14:46:13
问题 I want to clone repository for Android Support Library and see what has been changed between version 24.1.1 and 24.2.0. I know that repository is located here but: Its latest commits are dated by July 1 though latest support library release 24.2.0 was in August. There are no tags like support library versions 24.1.1, 24.2.0, etc. How can I just see what commits were made between versions 24.1.1 and 24.2.0? 回答1: There are tags (android/platform_frameworks_support/releases), but they are