Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
fuss:android [2020/07/01 23:43] – [Delivering Input Events via ADB] officefuss:android [2025/06/19 23:03] (current) – [Hiding Root with Magisk] office
Line 199: Line 199:
  
  
 +====== Unlock via TWRP ======
 +
 +Delete the files under ''/data/system'':
 +
 +  * ''password.key''
 +  * ''pattern.key''
 +  * ''locksettings.db''
 +  * ''locksettings.db-shm''
 +  * ''locksettings.db-wal''
 +
 +====== Hiding Root with Magisk ======
 +
 +Here are a few measures you can take for hiding root if you are using Magisk from the Magisk settings:
 +  * enable Zygote,
 +  * hide the Magisk application,
 +  * enable DenyList and enable enforcing the DenyList
 +
 +Now depending on whether you are using microG services or the standard Android Google services, some applications should be blocked using the Magisk DenyList.
 +
 +Intuitively, the application to hide root from should also be blocked using the Magisk DenyList feature.
 +
 +====== Hiding Applications with Shizuku or Dhizuku even on Non-Rooted Phones ======
 +
 +Android is a true dystopian battlefield out of 1984, with spyplications refusing to either run on rooted phones or even having a preference of what other applications are installed on the phone. Counter-intuitively, these spyplications are not your run-of-the-mill fat hackers in a hoodie living in their mom's basement but rather banking, shipping and government applications. 
 +
 +Revolut a large online bank, for example, has recently updated itself to not run on rooted phones. However, even if the phone is not rooted, Revolut has a list of applications that it refuses to run if they are also installed, even applications that have little to do with gaining illicit access.
 +
 +For that purpose, it is sometimes necessary to hide an application from other applications. In the past, this could be accomplished with Amarock that would hide itself and also hide other applications from other applications. However, an updated procedure is to use Shizuku or Dhizuku where the former, Shizuku requires root and Dhizuku does not require root.
 +
 +The instructions [[https://github.com/iamr0s/Dhizuku/discussions/19#already_device_owner|are paraphrased from the original author, iamr0s]] but just explained in more detail:
 +  * [[https://shizuku.rikka.app/|Shizuku]] will have to be installed (do not worry because it will not require rooting the system) and follow the procedure to first perform the pairing, and then click the "Run" button,
 +  * Install the [[https://github.com/aistra0528/Hail|Hail]] application that will be used to freeze and hide applications,
 +  * Open up the Hail application, go to Settings and set the "Working mode" to "Shizuku - Disable",
 +  * Use the [[https://github.com/iamr0s/AndroidAccounts|AndroidAccounts]] application to get a list of accounts on the system, these might even turn out to be created by your bank,
 +  * Look for the application matching the accounts reported by "AndroidAccounts" in the Hail application by going to "Apps", add them to the "Home" screen by ticking the box and click the "Freeze" button,
 +  * Make sure you have ADB installed on a computer and then open a command prompt and type:
 +<code bash>
 +adb shell dpm set-device-owner --user 0 com.rosan.dhizuku/.server.DhizukuDAReceiver
 +</code>
 +   * Open the Hail application again and set the "Working mode" to "Dhizuku - Hide",
 +   * Add applications that need to be hidden from applications that do not work alongside others and click the "Freeze" button
 +
 +===== Google Services =====
 +
 +The following services should be blocked using the Magisk DenyList:
 +
 +  * Google Play Protect Services, 
 +  * Google Play Services, 
 +  * Google Play Store, 
 +  * Google Service Framework.
 +
 +===== microG Services =====
 +
 +microG serves the same set of functions as Google services such that all microG services have to be blocked, including:
 +  * microG companion,
 +  * microG Services Core,
 +  * microG Services Framework Proxy.
 +
 +====== Hide Folder from Gallery ======
 +
 +In order to hide a folder from being indexed by Android, simply create an empty dotfile in the folder to be hidden named ''.nomedia'' and Android will ignore the folder from any media scanning. Note that the ''.nomedia'' dot file applies a recursive exclusion to all descendants, if any, such that the file should be created on a depth-first basis if hiding less is desired.
 +
 +====== Allow Making Changes to Accessibility Settings for an Application ======
 +
 +Surprisingly, the error "//Restricted Setting. For your security, this setting is currently unavailable.//" might pop up whilst trying to enable accessibility for an application. The workaround is to go to the "App Info" section of the "Settings" application and then click the three dots in the upper right corner and select "Allow Restricted Settings". Then, going back to the accessibility settings, the option to toggle the setting for the given application should be enabled.
  

fuss/android.1593646998.txt.gz · Last modified: 2020/07/01 23:43 by office

Wizardry and Steamworks

© 2025 Wizardry and Steamworks

Access website using Tor Access website using i2p Wizardry and Steamworks PGP Key


For the contact, copyright, license, warranty and privacy terms for the usage of this website please see the contact, license, privacy, copyright.