-
Notifications
You must be signed in to change notification settings - Fork 6
mHideGP Android
To run a script file using the command line, you will need to use the sh command.
If you are in the same directory as the script file.
sh mHideGP.sh
If you are not in the same directory as the script file and you know the full path to the file.
sh /sdcard/Download/mHideGP.sh
On a non-rooted device, permissions to files and storage will be limited.
The Download directory normally allows read/write access.
Remember to grant Storage Permisiion to the terminal or file manager app that you are using.
Normally internal storage has a symlink to /sdcard/
So Download would be /sdcard/Download/
Some stock devices/roms will still not give permission to internal storage (sdcard).
If the Download directory is not read/write.
An alternative is to try using /data/local/tmp/ this is normally not to accessible by a (non-root) file manager so, adb may need to be used.
WARNING
Enabling adb debugging will modify the device.
Some manufactures will lockout or change features and or functions if adb is enabled.
With the ever growing security, it may be recorded in a secure/hidden partition.
Some apps will look for adb debugging as a root alternative and fail to run or error out.
Please check your device/manufacture to make sure there will be no harm done before enabling adb.
- Install a terminal emulator app from PlayStore. (If not already installed)
- Copy mHideGP.sh to the download directory on the device.
- Copy certified.list to the download directory on the device. (Optional)
- Open the terminal app.
- Navigate to the download directory.
cd /sdcard/Download/
- Run the mHideGP scrip with the sh command.
sh mHideGP.sh
or
- Install a FileManager app from PlayStore that can execute script files. (If not already installed)
- Copy mHideGP.sh to the download directory on the device.
- Copy certified.list to the download directory on the device. (Optional)
- Open the FileManager app
- Navigate to the Download directory
- Run the mHideGP script
Once you save, copy or upload (cloud storage) the generated file(s) mhp_Name.sh and/if Name-getprop.props.
You can delete mHideGP (certified.list) and the generated files, and uninstall the Terminal/FileManager app if you wish.
For the most part, same as above except you have to copy the prop file you want to use also.
- Copy mHideGP.sh to the download directory on the device.
- Copy a build.prop, prop.default or default.prop file to the download directory on the device.
- Copy certified.list to the download directory on the device. (Optional)
Then run the mHideGP script in terminal or FileManager.
- Open the terminal app.
- Navigate to the download directory.
cd /sdcard/Download/
- Run the mHideGP scrip with the sh command.
sh mHideGP.sh
or
- Open the FileManager app
- Navigate to the Download directory
- Run the mHideGP script
mHideGP will use the supplied prop file instead of creating a getprops.props file.
Currently (without a ramdisk directory) mHideGP will look for a file named build.prop prop.default default.prop or getprops.props in that order. The first available prop file found will be used, the others will be ignored.
Enable adb debugging (if available) on the device and connect to computer.
This will modify the device slightly. Normally just the adb values. See the warning in Notes.
Example to create a mhp file from a stock device using the optional certified.list
On computer:
Navigate to the directory you have the files in and run.
adb push mHideGP.sh /data/local/tmp/
adb push certified.list /data/local/tmp/
adb shell sh /data/local/tmp/mHideGP.sh
Example output from OnePlus 6T.
When run on an Android device.
An extra file is generated. (getprop.props)
This extra file has been saved as oneplus_oneplus_a6013_1588683537-getprop.props
Keep it or delete it as you wish..
Done.
New prop file saved as /data/local/tmp/mhp_oneplus6t_1588683537.sh
Copy the generated file(s) back to the computer.
You will need to use the name of the file(s) that is generated with the adb pull command.
All the scripts in this project will display the name of the file(s) generated.
Using OnePlus 6T from the above example.
adb pull /data/local/tmp/mhp_oneplus6t_1588683537.sh
adb pull /data/local/tmp/oneplus_oneplus_a6013_1588683537-getprop.props
Clean up.
data/local/tmp should be an empty directory. Nothing should be stored there.
So for clean up, you can just remove all.
adb shell rm /data/local/tmp/*
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.
- Copy concat_mHideGP.sh to the download directory on the device.
- Copy or move the mhp_Brand_Model_BuildDateTime files to the download directory on the device.
- Copy or move the mhp_Model_BuildDateTime files to the download directory on the device.
Then run the concat_mHideGP script in terminal or FileManager.
- Open the terminal app.
- Navigate to the download directory.
cd /sdcard/Download/
- Run the concat_mHideGP scrip with the sh command.
sh concat_mHideGP.sh
or
- Open the FileManager app
- Navigate to the Download directory
- Run the concat_mHideGP script
If you are using ADB, and /data/local/tmp/ then you would need to copy the mhp files to /data/local/tmp instead of download.
adb push concat_mHideGP.sh /data/local/tmp/
adb shell sh /data/local/tmp/concat_mHideGP.sh
Same as the Non-rooted but, you have more options since permissions should be more open when running as root.
Using a rooted device may alter some of the prop values. Creating a mhp file from a rooted stock device may differ slightly from a non-rooted stock device.
See the Non-rooted steps
See the Non-rooted steps
See the Non-rooted steps
Note about adb
Most newer devices (even custom roms) do not allow adb root.
You may be able to turn it on under Develpoer options or install a Magisk module that allows it.
This is different than giving adb shell root permission.
Without adb root, you will still need to push the files to an accessable directory. /sdcard/Download/ or /data/local/tmp/ for example.
Then run adb shell and su to get root access, and then you can copy or move the files to the apporiot directory.
See the Non-rooted steps
With a rooted device you can also make a mhp prop file from a boot or recovery image file.
Using AIK-Mobile you can unpack the image and run mHideGP.
AIK-mobile needs root. Make sure to grant root acces to adb shell, terminal app or the file manager app you are using.
- Install AIK-mobile (AIK-mobile installs to /data/local/AIK-mobile)
- Copy a boot or recovery image file to /data/local/AIK-mobile/
- Copy mHideGP.sh to /data/local/AIK-mobile/
- Copy certified.list to /data/local/AIK-mobile/ (Optional)
- Run AIK's unpackimg script
sh unpackimg.sh
- Run the mHideGP script
sh mHideGP.sh
- Run AIK's cleanup script
sh cleanup.sh
or
- Open the FileManager app
- Navigate to the AIK-mobile directory
- Run the unpackimg script
- Run the mHideGP script
- Run the cleanup script
Use the aik_mHideGP script.
- Install AIK-mobile (AIK-mobile installs to /data/local/AIK-mobile)
- Copy the boot or recovery image file(s) to /data/local/AIK-mobile/
- Copy mHideGP.sh to /data/local/AIK-mobile/
- Copy aik_mHideGP.sh to /data/local/AIK-mobile/
- Copy the certified.list to /data/local/AIK-mobile/ (Optional)
- Run the aik_mHide script.
sh aik_mHideGP.sh