Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

nivranaitsirhc/dynmountx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dynamic Mount Module for Magisk Android

Description

  • Dynamically mount any patched apk every process start.
  • Remount patched apk when unmounted.
  • Re-install apk when the app is forcefully auto-updated (requires original apk).
  • Expanded approach with flexibility in mind.
  • Requires Magisk Process Monitor Tool (Dynamic Mount) v2+.

Features

  • Support any patched apk.
  • Run checks at every app process starts.
  • Ensures that apk will always be mounted.
  • Configurable via Tag Files (no need to access magisk module directory or terminal)
  • Works without any Detach Module, but highly recommended to paired with one. (since this module will reinstall the orignal apk once a mismatch is detected)

Future-Features

Requirements

  • Magisk (min. v24.3)
  • Magisk Process Monitor Tool v2+ by HuskyDG (Can be Installed later but required for the the module to function)
  • Internet connection is required when installing the module.
    (since v1.2.1 binaries are no longer shipped with the module to reduce the file size.)

Requirements (optional)

How to Install

  1. Download the latest release
    • Beta Channel - Active Changes (Prone to bugs).
    • Release Channel - Only Major Changes (Most Stable).
  2. Install via Magisk Manager or Third Party Module Manager
  3. create a folder in InternalStorage/DynamicMountX/apps.
    (e.g. com.google.android.youtube)
  4. create a an empty file in this folder name it install.
    (e.g. InternalStorage/DynamicMountX/apps/com.google.android.youtube/install)
    (Note: the unpatached apk must be installed regardless of version)
  5. place your patached apk here and rename it to base.apk, also place the original & unpacthed apk to original.apk
    (the original apk will be used to downgrade the installed app to the correct version)
  6. create an empty file in InternalStorage/DynamicMountX and name it enable.
    (e.g. InternalStorage/DynamicMountX/enable)
  7. if your apk is not yet installed, install it now manually.
  8. Reboot
  9. Start the App. (It will close and wait for it to restart.)

If you want to load the logs. create an empty file into InternalStorage/DynamicMountX and name it debug. This will copy the module.log into this directory.

How to Manage your patched Apps

You can manage your apps using tag files. Tag files are just empty files that are read by the module to perform certain operations.

Please note that enabling the tag files will create an overhead delay when starting your application. Please remove the enable tag one the operation is done.
Some tag files will be removed or renamed depending on the success of the task.

Internal Storage Folder Structure

InternalStorage/
        |-DynamicMountX/                        {directory} (create this folder if not present)
               |-enable                         {tag file}
               |-mirror                         {tag file}
               |-debug                          {tag file}
               |-module.log                     {log file}
               |-apps/                          {directory} (create this folder if not present)
                    |-com.google.android.apps.youtube.music/
                    |            |-skip         {tag file}
                    |            |-......
                    |-com.google.android.youtube/
                                 |-base.apk     {patched apk for mounting}(required for install operation)
                                 |-original.apk {orignal apk for version retention}(optional)
                                 |-skip         {tag file}
                                 |-force        {tag file}(will be removed after task completes)
                                 |-mirror       {tag file}(will be removed after task completes)
                                 |-remove       {tag file}(will be replaced after task completes)
                                 |-install      {tag file}(will be removed after task completes)

Tag Files - DynamicMountX

These tag file can be used only in a special folder inside your Internal Storage named DynamicMountX. If not present please create it.

  • enable
    This will enable the recognation of tag files, if not present all tag files will be ignored
  • debug
    This will copy the module log into DynamicMountX directory. (Note: Applicable only to Beta Channel Releases)
  • mirror
    mirror's all the pacakage name directory handled by the module into this apps directory.

Tag Files - App Level

These tag file can be used only inside the pacakge name folder inside the apps directory.
(e.g. Youtube - InternalStorage/DynamicMountX/apps/com.google.android.youtube)

  • skip
    Skip the app from any operations.
  • force
    Force the app mounting. Ignores version checking and mount checking.
  • mirror
    Mirror's the apps module directory into this directory.
  • remove
    Remove the module apps directory. essentially permanently removing the app from the module.
  • install
    Install/Re-install's the apk from this directory and replaces the module copy.
    Note: if only the base.apk is present, this specific app will only be in bind mode. Meaning the module will not be able maintain the app version if ever this app will be auto upgraded by playstore.

Warranty

This script is provided as-is without warranty. Reporting bugs will be highly appreciated.

Support

Credits & Thanks