Giter VIP home page Giter VIP logo

mipay-extract's Introduction

Mi Pay Extractor

Extract Mi Pay from MIUI China Rom

Build Status

Use at your own risk!

Usage

Put MIUI 9 China Rom (OTA zip package) in the directory and double-click extract.bat (Windows) or run ./extract.sh (macOS and Linux) to generate the flashable zip.

Additionally, if you want to recover Chinese functions, e.g. bus card shortcut or quick payments for WeChat/Alipay in "App Vault" (i.e. the leftmost shortcut page on home screen), you can add an option --appvault: extract.bat --appvault (Windows) or ./extract.sh --appvault (macOS and Linux). An extra flashable zip file with prefix eufix-appvault will be generated.

Support Windows, Linux and macOS (10.10 or above). Windows version has all dependencies included. For macOS, you need Java 8 runtime. For Linux, you may need both Java 8 and Python 2.7. For example, you can install all dependencies using apt-get:

apt-get install -y openjdk-8-jre python2.7

Note:

  • It is recommended to run extract.bat on Windows. WSL (Windows Subsystem for Linux) is not supported due to issues of the emulated file system in WSL. You need a real Linux VM on Windows to run ./extract.sh.
  • To avoid line-ending issues, Windows users should directly download the repo through the Github's "Clone or Download" button, instead of using a Windows version's Git command. If you clone the repo using a MinGW version's Git, the line endings may be incorrectly converted to CR/LF, which makes the generated packages invalid to use.

Automatic builds for selected devices are available in releases.

Recover Chinese Functions

For users in China, you can also download the xiaomi.eu rom and run cleaner-fix.sh for creating a flashable zip with prefix eufix. It contains patches to

  • Show Lunar dates in Calendar app.
  • Fix FC of cleaner app.
  • Show payment monitor options in setting page of Security app.
  • Use Chinese weather sources in Weather app.
  • Allow alarm of legal workday repeat mode.

(Optional) Encryption for xiaomi.eu ROMs

It is recommended to enable encryption if you plan to use Mi Pay. Official MIUI roms (China or International) has encryption enabled by default. But xiaomi.eu roms remove encryption by default (check in "Settings-Privacy-Encryption"). Some early versions of EU roms have bootloop bugs when enabling encryption in Settings (Backup before trying!).

If your device cannot be encrypted normally in Settings, you can completely format /data/ partition and flash the additional zip file eufix-force-fbe-oreo.zip after flashing xiaomi.eu ROM.

Warning:

  • Do not try to flash eufix-force-fbe-oreo.zip when your device is decrypted. It will cause bootloop. Only flash it when your device has a freshly formatted /data partition, or already encrypted.
  • Formatting /data will destroy EVERYTHING, including all your personal data and external storage (/sdcard). Remember to backup before formatting.
  • Once your /data partition is encrypted, it will be kept encrypted. But when you flash a new EU rom, the force encryption will be removed. You need to flash this file every time you flash a new EU rom.

Credits

  • sdat2img
  • progress (by @verigak)
  • smali/baksmali
  • SuperR's Kitchen
  • vdexExtractor
  • Google Android SDK
  • p7zip
  • flinux
  • Apk-Changer

Disclaimer

This repository is provided with no warranty. Make sure you have legal access to MIUI Roms if using this repository. If any files of this repository violate your copyright, please contact me to remove them.

License

License: GPL v3

mipay-extract's People

Contributors

linusyang avatar linusyang92 avatar eraserking 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.