Skip to content

JMVS/gmt-mm-builder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ISO & Magisk Module Builder for Genymobile® Tools

This program downloads, extracts, injects and creates the ISO file required for the Magisk Module GMT/OP3T. Then, builds and packages Magisk Module GMT/OP3T for install as a Magisk Module. Currently only supports Windows platforms.

Pre-requisites

  • OnePlus 3T phone.
  • Magisk Manager installed on phone.
  • USB Drivers installed on the computer.
  • ADB Debugging enabled on phone.
  • Computer authorized to make use of USB ADB Debugging.

Download

Download the latest release and install via Magisk Manager.

Caveats

  • Once properly installed as a Magisk Module, when connected to a computer, you should select Transfer Files option for Windows to show the ISO as a drive. This is the same behavior as the original ISO shipped with the phone.

Build

  1. Download/clone repo.
  2. Extract archive to a writable folder.
  3. Run "buildgmt.cmd" and wait it to finish.
  4. If everything went OK, you should see a "gmt-mm.zip" file.
  5. Copy "gmt-mm.zip" to your phone.
  6. Install as a Magisk Module.

Additional options

  • You can place original usb_drivers.iso file from your phone inside folder original_iso to skip extracting it from your phone.
  • If you choose to extract usb_drivers.iso file from your phone, you should already have USB drivers installed, ADB debugging on and computer authorized, otherwise pulling file will fail.

Pre-requisites

  • Windows OS
  • Internet connection on the computer.
  • Available space on disk to build ISO and Magisk Module (approx. ~50-60 MiB).

Troubleshooting

Error codes displayed by buildgmtiso.cmd:

  1. Error downloading scrcpy x32 version from server: Check Internet connection / Check folder is writable / Check available space / Server might be down (try again later)
  2. Error downloading scrcpy x64 version from server: Check Internet connection / Check folder is writable / Check available space / Server might be down (try again later)
  3. Error downloading gnirehtet x64 version from server:Check Internet connection / Check folder is writable / Check available space / Server might be down (try again later)
  4. Error downloading ADB from server: Check Internet connection / Check folder is writable / Check available space / Server might be down (try again later)
  5. Error updating scrcpy x32 version archive: Check folder is writable / Check available space / Folder/files might already exists (delete manually)
  6. Error updating scrcpy x64 version archive: Check folder is writable / Check available space / Folder/files might already exists (delete manually)
  7. Error updating gnirehtet x64 version archive: Check folder is writable / Check available space / Folder/files might already exists (delete manually)
  8. Error updating ADB archive: Check folder is writable / Check available space / Folder/files might already exists (delete manually)
  9. Invalid option selected: Select a valid option
  10. Error extracting ADB files: Check folder is writable / Check available space / Folder/files might already exists/running (delete manually)
  11. Error extracting original ISO files: Check folder is writable / Check available space / Check provided ISO is valid
  12. Error building modified ISO: Check folder is writable / Check available space
  13. Could not create Magisk module (gmt-mm.zip): Check folder is writable / Check available space
  14. Error downloading JSON files from GitHub: API rate limit exceeded (too many requests) / Check folder is writable / Check available space

Credits

scrcpy by Romain Vimont Copyright (C) 2020 Genymobile gnirehtet by Romain Vimont Copyright (C) 2020 Genymobile adb by Google

Licence

Copyright (C) 2020 José Vera

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.