/mHideGP

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.

Primary LanguageShell

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.

Custom fingerprints 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 37,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.
  • Prefer ro.build.fingerprint over ro.bootimage.build.fingerprint by default.
  • Work around Android 12 (SDK31) and Android 12L (SDK32) sharing the 12 release tag.

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