Coder Social home page Coder Social logo

platform_manifest's Introduction

platform_manifest

系统要求: macos

精简 aosp 源码树,提供一个最小的编译环境,用于编译 aapt、dexdump、fastboot 等工具.

manifest 来自:https://android.googlesource.com/platform/manifest/+/refs/heads/platform-tools-33.0.3/default.xml

已完成 aapt、aapt2、dexdump 编译

mac 环境准备

创建大小写敏感磁盘

# 创建大小写敏感磁盘
hdiutil create -volname "android" -type SPARSE -fs 'Case-sensitive Journaled HFS+' -size 50g android.dmg
# 挂载
hdiutil attach android.dmg.sparseimage -mountpoint /Volumes/android
# 卸载
hdiutil detach /Volumes/android

开始构建

安装 repo

mkdir ~/bin
PATH=~/bin:$PATH
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo

初始化 repo 项目

# 进入工作目录
cd /Volumes/android && mkdir platform-tools && cd platform-tools
# 初始化并同步源码树
repo init -u https://github.com/viruscoding/platform_manifest.git -b platform-tools-33.0.3 --depth 1
repo sync

编译

mm aapt
mm aapt2
mm dexdump

将代码导入到 clion

主要用于源码编写, 构建仍然使用 mm

详细过程请参考:https://android.googlesource.com/platform/build/soong/+/HEAD/docs/clion.md

platform_manifest's People

Contributors

viruscoding avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.