Code Monkey home page Code Monkey logo

android_image_rebuild's Introduction

android_image_rebuild

定制 Android 兼容的系统镜像

说明

AOSP 的 system 等镜像为只读文件系统,不对 AOSP 制作镜像的代码做任何修改,文件系统内的修改放在后面步骤处理

TODO

  • 定制空的 system/vendor 文件系统
  • 定制 system
    • system/etc/init 启动项定制
    • system/app 定制
    • system/priv-app 定制
    • system/product/app 定制
    • system/product/priv-app 定制
  • 定制 vendor
    • vendor/lib(64)/egl 定制
    • vendor/lib64/hw 定制
      在 LXC 启动时处理
        ln -s camera.ranchu.so camera.default.so
        ln -s gatekeeper.ranchu.so gatekeeper.default.so
        ln -s gps.ranchu.so gps.default.so
        ln -s gralloc.ud710.so gralloc.default.so
        ln -s hwcomposer.ranchu.so hwcomposer.default.so
        ln -s sensors.ranchu.so sensors.default.so
  • vendor/lib/hw
    在 LXC 启动时处理
           ln -s gralloc.ud710.so gralloc.default.so
           ln -s camera.ranchu.so camera.default.so
  • vendor/lib(64) 定制
    缺少如下库可以先从 Host Vendor 中拷贝
    第二版修改 ld.config 对库的回溯顺序
        [email protected]
        libdrm.so libglslcompiler.so
        libIMGegl.so libsrv_um.so libusc.so
  • vendor/priv-app 定制
  • vendor/etc/init 定制
  • vendor/ueventd & vendor/manifest.xml
    这类修改过的文件先放在 deb 包中,安装的过程中进行拷贝

注意事项

文件权限修改

chmod 600
/vendor/manifest.xml
/vendor/ueventd.rc

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.