Full Code of MiCode/patchrom for AI

marshmallow 28ee8e949120 cached
2 files
2.5 KB
713 tokens
1 requests
Download .txt
Repository: MiCode/patchrom
Branch: marshmallow
Commit: 28ee8e949120
Files: 2
Total size: 2.5 KB

Directory structure:
gitextract_hl3vff42/

├── README
└── default.xml

================================================
FILE CONTENTS
================================================

================================================
FILE: README
================================================
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!



================================================
FILE: default.xml
================================================
<?xml version="1.0" encoding="UTF-8"?>
<manifest>

  <remote name="github"
           fetch=".." />

  <default revision="refs/heads/marshmallow"
           remote="github"
           sync-c="true"
           sync-j="4" />

  <project path="build" name="MiCode/patchrom_build">
    <copyfile src="makefile" dest="Makefile" />
  </project>
  <project path="manifest" name="MiCode/patchrom" />
  <project path="android" name="MiCode/patchrom_android" />
  <project path="miui" name="MiCode/patchrom_miui" />
  <project path="tools" name="MiCode/patchrom_tools" />
  <project path="angler" name="MiCode/patchrom_angler" />
</manifest>
Download .txt
gitextract_hl3vff42/

├── README
└── default.xml
Condensed preview — 2 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (3K chars).
[
  {
    "path": "README",
    "chars": 1919,
    "preview": "Patchrom\n===========\n\nGet Android SDK\n----------------\n\nIn order to build patchrom project, you must have android sdk in"
  },
  {
    "path": "default.xml",
    "chars": 632,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<manifest>\n\n  <remote name=\"github\"\n           fetch=\"..\" />\n\n  <default revision"
  }
]

About this extraction

This page contains the full source code of the MiCode/patchrom GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 2 files (2.5 KB), approximately 713 tokens. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.

Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.

Copied to clipboard!