Skip to content
ip edited this page Jul 12, 2020 · 11 revisions

mHide Get Props

Originally (and still) written to be used with MagiskHide Props Config module.
This script is written to be used in a lot of different situations.

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

mHideGP will generate a file named mhp_Brand_Model_BuildDateTime or mhp_Model_BuildDateTime (depending on the device) that 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(s) accordingly.


mHideGP

mHideGP sets the directory that the mHideGP script is in as the current (working/target) directory.
It will generate a file named mhp_Brand_Model_BuildDateTime or mhp_Model_BuildDateTime depending on the device.

If a ramdisk directory exists in the current directory, it will check for a prop.default or a default.prop file there first.
Then check for a build.prop, prop.default, default.prop or getprop.props file in the current directory.
The first available prop file found will be used, the others will be ignored.

On an Android Device, if no prop file is available, it will try to generate a getprops.prop file using the getprop command.

If a certified.list file is in the current directory, mHideGP will check if the device is on the certified list.
If the device is on the list, mHideGP will use the Manufacture (Retail Branding) and Name (Marketing Name) from the certified list to clean up the generated mhp file.

To use the mHideGP script to generate a getprops.prop file. (Android)

  • Copy mHideGP to a directory on the device.
  • Run the mHideGP script.

To use the mHideGP script with a device prop file. (Android, MacOS and Linux)

  • Copy mHideGP to a directory.
  • Copy a prop file to the same directory.
  • Run the mHideGP script.

To use the mHideGP script with AIK. (Android, MacOS and Linux)
AIK requires root access.

  • Install Android Image Kitchen (AIK).
  • Copy mHideGP to the AIK directory.
  • Copy a boot or recovery image files to the AIK directory.
  • Change (switch) to the AIK directory.
  • Run AIK's unpackimg script.
  • Run the mHideGP script.
  • Run AIK's cleanup script.

To use mHideGP with multiple image files, see aik_mHideGP.


concat_mHideGP

concat_mHideGP sets the directory that the concat_mHideGP script is in as the current (working/target) directory.
It will combine the mhp files, generated by the mHideGP script, into a one mHide-printslist-CurrentDate file.

mHideGP can only read one prop file at a time and will generate a file named mhp_Brand_Model_BuildDateTime or mhp_Model_BuildDateTime (depending on the device) each time it is run.

The concat_mHideGP script will combine all the mhp_Brand_Model_BuildDateTime and mhp_Model_BuildDateTime (generated by the mHideGP script) into a new mHide-printslist-CurrentDate file.

To use the concat_mHideGP script. (Android, MacOS and Linux)

  • Copy concat_mHideGP to a directory.
  • Copy the mhp_Brand_Model_BuildDateTime and mhp_Model_BuildDateTime file(s) to the same directory.
  • Run the concat_mHideGP script.

aik_mHideGP

aik_mHideGP sets the directory that the aik_mHideGP script is in as the current (working/target) directory.
Requires Android Image Kitchen (AIK)

This script will use AIK's unpackimg and cleanup scripts along with the mHideGP script.
Run AIK's unpackimg script to unpack a boot/recovery image.
Then mHideGP script to generate a mhp file.
Then AIK's cleanup script. It will do this for all the image files in the directory.

aik_mHideGP will also combine all the mhp_Brand_Model_BuildDateTime and mhp_Model_BuildDateTime (generated by the mHideGP script) into a new mHide-printslist-CurrentDate file.

Unlike the concat script, aik_MHideGP will delete the mhp_Brand_Model_BuildDateTime and mhp_Model_BuildDateTime files as part of the cleanup portion of the script.
Backup files are ignored by all of the mHideGP scripts. They will not be used, merged or deleted.

To use the mHideGP script with AIK. (Android, MacOS and Linux)
AIK requires root access.

  • Install Android Image Kitchen (AIK).
  • Copy aik_mHideGP to the AIK directory.
  • Copy mHideGP to the AIK directory.
  • Copy one or more boot and/or recovery image files to the AIK directory.
  • Change (switch) to the AIK directory.
  • Run the aik_mHideGP script.

get_cert_list

get_cert_list sets the directory that the get_cert_list script is in as the current (working/target) directory.
It will download and convert the public HTML list into a text file named certified.list with tab spacing for the four columns.
Retail Branding, Marketing Name, Device, Model

This script generates a file named certified.list

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

Note
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 use the get_cert_list script. (MacOS and Linux)

  • Copy get_cert_list to a directory.
  • Run the get_cert_list script.

Clone this wiki locally