Giter Club home page Giter Club logo

patchrom's Introduction

Patchrom
===========

Get Android SDK
----------------

In order to build patchrom project, you must have android sdk installed.(http://developer.android.com/sdk/installing.html)

And add the sdk tools and platform-tools to PATH.

vim .bashrc

export PATH=$PATH:/home/xxx/android-sdk/tools:/home/xxx/anroid-sdk/platform-tools

Getting Started
---------------

To get started with MiCode/patchrom, you'll need to get
familiar with [Git and Repo](http://source.android.com/download/using-repo).

To initialize your local repository using the patchrom trees, use a command like this:

    mkdir patchrom

    cd patchrom

    repo init -u git://github.com/MiCode/patchrom.git -b marshmallow

Then to sync up:

    repo sync

Build
--------

Assumed current directory is patchtom and you want to build the ROM for Nexus6P


     . build/envsetup.sh
     cd angler
     make fullota

After build completed, there will be a fullota.zip under out directory, now you can flash this file into your device.


Porting new device
------------------

Asssumed current directory is patchrom and you want to port miui to a new android device xblade

Prerequiste:
(1) Your device has root privilege or a rooted kernel(preferred)

(2) Your device can flash ZIP from recovery(twrp recovery is preferred)

Workflow:

(1) connect your device to PC, ensure adb works

(2) run the following commands

     . build/envsetup.sh

     mkdir xblade

     cd xblade
      
     adb reboot recovery

     ../tools/releasetools/ota_target_from_phone -r (this will generate a stockrom.zip, flash this zip in recovery mode to ensure it works)

     cp ../honor/makefile .(modify the local-zip-file to stockrom.zip, read the comments in makefile)

     make workspace

     make firstpatch (this will add the miui code into framework/android.policy/services.jar, resolve any conflict)

     make fullota

Now you can get your own miui ROM, enjoy it!

patchrom's People

Watchers

 avatar  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.