android-source

What is boot.img file in android?

余生颓废 提交于 2019-12-03 03:40:11
问题 I am building the android source code and getting new system.img . I try to flash the new system.img on a device and I see that I need another file called boot.img. What is this file ? what is used for ? how can I get it for my device ? 回答1: boot.img contains the kernel and ramdisk, critical files necessary to load the device before the filesystem can be mounted. You have to generate the boot.img yourself using mkbootimg, a tool provided by AOSP. All the details you need are available at this

How to download google source code for android

大城市里の小女人 提交于 2019-12-03 03:26:12
As you know, there is a list of several hundred projects in https://android.googlesource.com/ . I'd like to download them all in windows machine. According to Google's document, To install, initialize, and configure Repo: $ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo $ chmod a+x ~/bin/repo To clone the entire platform, install repo, and run: mkdir mydroid cd mydroid repo init -u https://android.googlesource.com/platform/manifest repo sync In my machine, however, I cannot "repo init" in Git Bash because it says it does not have python. I have python installed but

Switch from AOSP master to froyo

*爱你&永不变心* 提交于 2019-12-03 03:22:47
I just checked out master with repo. Now I want to switch to froyo. How can I do this without downloading a bunch of stuff again? I don't want to download a bunch of stuff again, I just want to be able to move freely between branches as in a normal git clone. Since you downloaded everything with repo, you can easily use repo to switch between branches without downloading everything again: repo init -b froyo; repo sync This will download only the files you need to switch branches, just like moving between branches with git. keyboardsurfer provides the commands to checkout the the froyo branch

How to get android's native methods source code

冷暖自知 提交于 2019-12-03 02:36:53
问题 Is it possible to get and watch at Android's program component's native methods code. If anyone knows how to, please let me know. 回答1: You can find source code for Android native methods using Google Code Search one of the following services: AndroidXRef GitHub (using repo:android/* search term) The search for "SystemClock || android*SystemClock" in AndroidXref will point you to the android_os_SystemClock.cpp file which in turn forwards many of its methods to SystemClock.cpp Other Android

How do you create a loadable kernel module for Android?

你离开我真会死。 提交于 2019-12-03 02:27:36
问题 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 below) and suggest where I may have gone off track I'd be very appreciative. I've spent about a day and a half staring at make files and reading walkthroughs so literally any suggestions would be helpful. Environment: I'm using an Ubuntu 10.04 32 bit

Building Android from source - emulator and AVDs [closed]

*爱你&永不变心* 提交于 2019-12-03 02:22:54
Closed . This question needs to be more focused. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it focuses on one problem only by editing this post . I have built the Android source for the emulator. I read in the Android Source documentation that the path to 'emulator' is added autmatically during a successful build. However I have two questions about this: If I open a new shell or close my existing shell, 'emulator' is no longer found. Surely I don't have to build each time I want to run the emulator? If the emulator requires an AVD

What to do about curl clone.bundle error on AOSP repo sync

一曲冷凌霜 提交于 2019-12-03 01:09:41
Upon downloading the master branch from AOSP I get the following error: curl: (22) The requested URL returned error: 404 Not Found Server does not provide clone.bundle; ignoring. Why is this error coming? Log: * [new tag] android-cts-4.4_r1 -> android-cts-4.4_r1 * [new tag] android-sdk-4.4.2_r1 -> android-sdk-4.4.2_r1 Fetching projects: 7% (32/448) Fetching project platform/packages/apps/Launcher3 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 curl: (22) The requested URL returned error: 404 Not

Building separate Android modules with dexpreopt disabled

守給你的承諾、 提交于 2019-12-02 23:52:05
For my thesis, I'm modifying the android framework and building the source (4.1.1 Jelly Bean). I can do a full build, but because this is very time consuming (I'm developing on a ubuntu 12.04 64bit virtual machine) I'd like to build separate modules. For example: When doing changes to the location modules, it should be possible to just build the changed module, and make a new system image: mmm frameworks/base make snod But this doesn't work. Every time I try to boot, the new system image won't boot because of: I/dalvikvm( 1696): DexOpt: mismatch dep signature for '/system/framework/framework

Add prebuilt APKs to Android AOSP system.img

我怕爱的太早我们不能终老 提交于 2019-12-02 23:07:32
I'm building AOSP from source. What I would like to do is to include a few prebuilt files in the generated system.img as part of the make process. I'm trying to find the actual file that creates the system.img and add a few lines there. Any idea? Thank you in advance. GiantDwarf A good way of adding custom files to the system.img is to add them under vendor/your_name/product_you_want_to_add_them/proprietary/your_files_go_here and add a custom make file called device-product_name.mk . After that's done, just define which files are to be copied from the proprietary folder and inside (e.g. vendor

Resigning system.img on a device

∥☆過路亽.° 提交于 2019-12-02 23:02:10
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 do auto-updating of our app on the device, we need the system to be signed by a key which we control so we can sign our apps with the same key (to get the INSTALL_PACKAGES permission). I have been having a few issues running AOSP builds on the device (using the LG released source for the device), and am trying to take a step back and evaluate our