Giter VIP home page Giter VIP logo

lewa_patchrom's Introduction

Patchrom

Get Android SDK

In order to build LeWa patchrom, you should have the android sdk installed.

Then add sdk tools and platfrom tools to PATH

$ vim .bashrc

export PATH=$PATH:/android-sdk/tools:/android-sdk/platform-tools

Getting Started

To get started with LeWaCode/patchrom, you'll need to get familiar with Git and Repo.

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

mkdir patchrom

cd patchrom

repo init -u git://github.com/LeWaCode/patchrom.git -b jellybean

Then to sync up:

repo sync

Build

Assumed current directory is patchrom and you want to build the ROM for Xiaomi m1s

. build/envsetup.sh

cd m1s

make fullota

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

Porting device

Asssumed current directory is patchrom and you want to port lewa to a new android device maguro

Prerequiste:

(1) Your device has root or has a rooted kernel

(2) Your device has CWM or TWRP recovery

Workflow:

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

(2) Run the following commonds in terminal

. build/envsetup.sh

mkdir maguro

cd maguro

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 ../build/makefile . (change the local-zip-files to stockrom.zip, read the comments in makefile)

make workspace

make firstpatch (this command will patch the lewa code into framework.jar, services.jar and android.policy.jar, you should resolve the conflict in temp/reject)

make fullota

Now you get the LEWA ROM that you port for maguro, enjoy it!

lewa_patchrom's People

Contributors

astinj avatar

Watchers

 avatar  avatar

Forkers

fangkuaiwu

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.