Giter Club home page Giter Club logo

mhidegp's Introduction

mHide Get Props

Originally (and still) written to be used with MagiskHide Props Config Magisk module.

The main purpose of mHideGP is to gather prop values from a stock boot image, stock recovery image, stock prop file or the device itself.

mHideGP will generate a file named mhp_Brand_Model_BuildDateTime or mhp_Model_BuildDateTime depending on the device.
The mhp file will contain the system build fingerprint, security date and other needed and useful device props.

The mhp file is formatted to be used as a custom fingerprint list for the MagiskHide Props Config module.
You will need to rename the mhp file to printslist
See the MagiskHide Props Config instructions on using a custom fingerprint list.

If a boot or recovery image is used, you will need to unpack the image file first.
mHideGP relies on the use of Android Image Kitchen (AIK) by osm0sis for unpacking a boot or recovery image.
If used with a different method to unpack an image file, make sure to make changes in the script file(s) accordingly.

Information and download links for Android Image Kitchen and MagiskHide Props Config, can be found on xda-Developers.
Android Image Kitchen (AIK) by osm0sis.
MagiskHide Props Config by Didgeridoohan.


Scripts

mHideGP

This script will create a file with the device properties that are useful to use with MagiskHide Props Config.
It will look for a device prop file to read and generate a file named mhp_Brand_Model_BuildDateTime or mhp_Model_BuildDateTime.
If a ramdisk directory exists, it will first check there for a file named prop.default or default.prop.
If a ramdisk directory does not exist, or there is no prop file to use, it will then check for a build.prop, prop.default, default.prop or getprop.props file in the current directory.

When run on an Android device, it will still check for a device prop file. If no prop file is found, it will generate a getprop.props file from the device it is running on using the getprop command.

concat_mHideGP

This script will merge all the mhp files created by mHideGP into a new file named mHide-printslist-CurrentDate.

aik_mHideGP

This script will use AIK's unpackimg and cleanup scripts along with the mHideGP script.

It will run AIK's unpackimg script to unpack a boot and/or recovery image, mHideGP script to generate a mhp file, then AIK's cleanup script.
It will do this for all the image files in the directory.

After running mHideGP on the image files, it will then look for additional prop files in the AIK directory.
The prop file(s) need to be named or end with, build.prop, prop.default, default.prop or getprop.props for the script to find them.

It will also combine all the mhp files generated by the mHideGP script into a new mHide-printslist-CurrentDate file.

Unlike the concat script, aik_mHideGP will delete the mhp files as part of the cleanup portion of the script.
Backup files generated by the mHideGP script(s) are ignored and not used, merged or deleted.

  • Requires Android Image Kitchen (AIK)
  • Requires the mHideGP script.
    • Recommended certified.list file.

prop_mHideGP

This script will run the mHideGP script on all prop files in the same directory.

This script will look for file(s) named or ending in: build.prop default.prop prop.default or getprop.props
Then run the mHideGP script on the prop files found in the current directory.

It will also combine all the mhp files generated by the mHideGP script into a new mHide-printslist-CurrentDate file.

Unlike the concat script, prop_mHideGP will delete the mhp files as part of the cleanup portion of the script.
Backup files generated by the mHideGP script(s) are ignored and not used, merged or deleted.

  • Requires the mHideGP script.
    • Recommended certified.list file.

get_cert_list

This script will download (curl) the public certified list html file and format it into a new file (certified.list) with tab spacing for the four columns.
Retail Branding Marketing Name Device Model

It is easier and quicker to search a text file than waiting for a website based table to load.
Especially one that has over 32,000 entries.

This script currently keeps a copy of the HMTL file and the corresponding certified.list file as part of the backup. These backups are not necessary but only saved for reference. They are saved to a directory named xfiles in the current directory.

To Do

  • Fix and Finish the batch (Windows) port(s).
  • Finish the How-To (Instructions)

Recent changes

  • Maintenance and Cleanup.
  • Fixed a few typo(s) and cosmetic errors.
  • Updated mHideGP to ignore the prop file if device model is not found.
  • Updated aik_mHideGP to fix generating a printslist with only the notes.

How to use

Copy, clone or download the script(s).
Each script has a header that explains the script and basic instruction.

Notes

  • Feel free to use, change, improve, adapt.
  • Remember to share.

Credits

mhidegp's People

Contributors

ipdev99 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.