https://github.com/davdiv/androidtools
Android build tools (ant tasks)
https://github.com/davdiv/androidtools
Last synced: 19 days ago
JSON representation
Android build tools (ant tasks)
- Host: GitHub
- URL: https://github.com/davdiv/androidtools
- Owner: davdiv
- License: gpl-3.0
- Created: 2012-01-02T21:35:59.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2012-01-02T22:39:54.000Z (over 13 years ago)
- Last Synced: 2024-04-09T21:35:10.893Z (about 1 year ago)
- Language: Java
- Homepage:
- Size: 105 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING.txt
Awesome Lists containing this project
README
Android Tools
=============This small project aims at providing Java build tools related to the [Android](http://www.android.com/)
mobile operating system. Currently it contains two [Ant](http://ant.apache.org) tasks
to build or extract boot images.I hope this project can be useful for you.
Usage
=====* First, you have to declare the library in your ant file:
<taskdef
resource="fr/free/divde/android/tools/antlib.xml"
classpath="AndroidTools-1.0.jar"
/>* Then you can extract a boot image, to get the kernel, ramdisk and additional
information:<extractBootImage
bootImage="input/boot.img"
kernel="output/kernel.img"
ramdisk="output/ramdisk.img"
storeBaseAddr="bootBaseAddress"
storeKernelAddr="bootKernelAddr"
storeKernelSize="bootKernelSize"
storeRamdiskAddr="bootRamdiskAddr"
storeRamdiskSize="bootRamdiskSize"
storeSecondAddr="bootSecondAddr"
storeSecondSize="bootSecondSize"
storeTagsAddr="bootTagsAddr"
storePageSize="bootPageSize"
storeName="bootName"
storeArgs="bootArgs"
/>All the parameters prefixed with "store" expect a property name which will be
filled with the corresponding piece of information. Only the bootImage property
is mandatory. Output files or properties are not created if corresponding
parameters are not specified.* You can also build a boot image from a kernel and ramdisk:
<makeBootImage
kernel="input/kernel.img"
ramdisk="input/ramdisk.img"
bootImage="output/boot.img"
pageSize="2048"
baseAddr="0x02600000"
name="myImageName"
args="init=/sbin/init root=/dev/mtdblock5"
/>Only kernel, ramdisk and bootImage are mandatory. Other values are filled with
the following defaults:
pageSize: 2048, baseAddr: 0x10000000, empty name, empty argsUseful references
=================* An improved firmware for Android devices: [cyanogenmod](http://www.cyanogenmod.com)
* An equivalent program written in C is available [here](https://github.com/CyanogenMod/android_system_core/tree/ics/mkbootimg).