• Stars
    star
    493
  • Rank 89,306 (Top 2 %)
  • Language
  • Created over 12 years ago
  • Updated about 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Use disassemble/assemble technology to porting miui to misc android devices
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!

More Repositories

1

Xiaomi_Kernel_OpenSource

Xiaomi Mobile Phone Kernel OpenSource
8,678
star
2

Notes

小米便签社区开源版(Community edition of XM notepad/MIUI notes)
Java
1,996
star
3

FileExplorer

MIUI文件管理器社区开源版(Community edition of MIUI File Explorer)
Java
1,607
star
4

SoundRecorder

MIUI录音机社区开源版(Community edition of MIUI SoundRecorder)
Java
615
star
5

patchrom_miui

The miui resources, apks, framework jars and the modified framework source code
612
star
6

Compass

MIUI指南针社区开源版(Community edition of MIUI Compass)
371
star
7

legacy-patchrom

反编译/重编译Android ROM移植MIUI2.3技术 (A disassemble and reassemble Android ROM to port MIUI2.3 technology)
Java
213
star
8

MiBox_Kernel_OpenSource

kernel opensource for MiBox
192
star
9

kernel_devicetree

kenrel devicetree project for xiaomi kernel opensource
95
star
10

MiBridge

Java
94
star
11

patchrom_tools

apktool and misc auto-packaging tools
Python
91
star
12

mi2_kernel

Kernel source code for MI 2/MI 2S/MI 2A devices
C
85
star
13

miui_recovery

The miui recovery source code
C
81
star
14

MTK_kernel_modules

Kernel_modules for MTK Platform
60
star
15

patchrom_android

The smali and source code for android released by google
Smali
60
star
16

patchrom_build

The build system for patchrom
Makefile
58
star
17

mi1_kernel

Kernel source code for MI 1/MI 1S series
C
45
star
18

MiTV_OpenSource

Opensource for MiTV
39
star
19

vendor_qcom_opensource_wlan

31
star
20

kernel_build

31
star
21

vendor_qcom_opensource_audio-kernel

28
star
22

MilinkSDK

MilinkSDK
JavaScript
26
star
23

i18n_miui

MIUI multi-language translation project
24
star
24

MiWatch_Kernel_Opensource

MiWatch Kernel Opensource
22
star
25

dalvik

add class interceptor into dalvik vm
Assembly
18
star
26

patchrom_i9100

All the stuff related to the miui porting device Samsung i9100
Java
16
star
27

vendor_qcom_opensource_data-kernel

xiaomi opensource for data-kernel
16
star
28

MIUI_SDK

14
star
29

mi2_lk

bootable/bootloader/lk source code for MI 2/MI 2S/MI 2A devices
C
11
star
30

patchrom_nexus5

All the stuffs related to miui porting device Google Nexus 5
Smali
10
star
31

patchrom_sensation

All the stuff related to the miui porting device HTC sensation
Shell
10
star
32

patchrom_honor

All the stuff related to the miui porting device Huawei Honor
Shell
6
star
33

JankyFrameStatistics

Python
6
star
34

patchrom_defy

All the stuff related to the miui porting device Moto defy
6
star
35

patchrom_angler

All the stuffs related to miui porting device Nexus 6P
Smali
6
star
36

mi2_wlan_module

External wlan kernel module source code for MI 2/MI 2S/MI 2A devices
C
6
star
37

i18n_pctools

PC助手的多语言翻译项目
6
star
38

patchrom_i9000

All the stuff related to the miui porting device Samsung i9000
5
star
39

patchrom_note2

all the stuffs related to miui porting device samsung note2
OpenEdge ABL
5
star
40

patchrom_mx

All the stuff related to the miui porting device Meizu mx
C
5
star
41

mtkcam-kernel_device_modules

C
4
star
42

patchrom_mx2

all the stuffs related to MeiZu Mx2
4
star
43

platform_external_exfat

C
4
star
44

patchrom_i9300

all the stuffs related to miui porting device samsung i9300
Scilab
4
star
45

patchrom_lt18i

All the stuff related to the miui porting device Sony lt18i
Shell
4
star
46

vendor_qcom_opensource_camera-kernel

4
star
47

patchrom_i9500

all the stuffs related to miui porting device samsung i9500
Shell
3
star
48

patchrom-lt26i

All the stuffs related to miui porting device sony lt26i
Shell
3
star
49

patchrom_u8800pro

All the stuff related to the miui porting device Huawei u8800pro
Shell
3
star
50

patchrom_onex

All the stuff related to the miui porting device HTC onex
Shell
2
star
51

patchrom_p1

All the stuff related to the miui porting device Huawei Ascend P1
Shell
2
star
52

patchrom_d1

All the stuff related to the miui porting device Huawei d1
Shell
2
star
53

patchrom_honor2

All the stuff related to the miui porting device Huawei honor2
2
star
54

patchrom-x515m

All the stuffs related to miui porting device HTC evo 3d
Shell
2
star
55

patchrom_ones

Shell
1
star
56

MTK_kernel_device_modules

1
star
57

platform_external_ntfs-3g

C
1
star
58

patchrom-saga

All the stuffs related to miui porting device HTC saga
Shell
1
star
59

patchrom_lu6200

All the stuff related to the miui porting device LG lu6200
Shell
1
star
60

patchrom-ones

All the stuffs related to miui porting device htc ones
1
star
61

patchrom-razr

All the stuffs related to miui porting device motorola razr
C
1
star