explaingit

musaddiqbaluch/shizuisolation

15Audience · generalComplexity · 2/5LicenseSetup · moderate

TLDR

An Android app that locks your phone's USB port to charging-only mode in one tap, blocking data access from computers and public charging stations without requiring root access.

Mindmap

mindmap
  root((shizuisolation))
    What it does
      Locks USB to charging only
      Restores normal USB mode
      No root required
    How it works
      Uses Shizuku
      Privileged USB commands
      No background services
    Requirements
      Android 10 or newer
      Shizuku installed and running
      Manual APK sideload
    Privacy benefit
      Blocks public charger data access
      No battery drain
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Things people build with this

USE CASE 1

Lock your phone to charging-only mode before plugging into a public USB kiosk or airport charger to prevent data access.

USE CASE 2

Quickly block file transfer access when connecting your phone to a shared or untrusted computer at work.

USE CASE 3

Restore full USB file transfer mode with a single tap after you are done charging in a public location.

Tech stack

Android SDKShizuku

Getting it running

Difficulty · moderate Time to first run · 30min

Requires Shizuku to be installed and actively running on your Android device, sideloading the APK also requires enabling installs from unknown sources.

All rights reserved by the author, the source code cannot be reused, modified, or redistributed without explicit written permission.

In plain English

Shizu Isolation is a small Android app that lets you lock your phone's USB port to charging-only mode with a single tap. When you plug your phone into a computer or public charging station, that connection can potentially allow the other device to access your files. Locking the USB port to charging-only blocks that data access while still letting the phone charge. The app works without root access, which is notable because controlling USB mode normally requires elevated system permissions. It achieves this through a separate tool called Shizuku, which provides a way to run privileged commands on Android without rooting the device. Shizuku must already be installed and running on your phone for this app to work. The interface has two main actions: one to switch the USB port into charging-only mode, and one to restore it to normal file-transfer mode. The app runs no background services, so it does not consume battery when you are not actively using it. To install, you download the APK file from the releases page and install it manually, since it is not distributed through the Play Store. This requires enabling the option to install apps from unknown sources in your Android settings. The project requires Android 10 or newer and depends on Shizuku being set up beforehand. The source code and all assets are under a restrictive copyright with no open-source license, meaning the code cannot be reused or modified without permission from the author.

Copy-paste prompts

Prompt 1
I have Shizuku and Shizu Isolation installed. Walk me through enabling charging-only USB mode before I plug into a public charging station.
Prompt 2
How do I set up Shizuku on my Android 12 phone so that Shizu Isolation can toggle USB modes without needing root?
Prompt 3
I want to automate USB locking with Tasker whenever I leave home. Can Shizu Isolation be triggered by an automation app?
Open on GitHub → Explain another repo

← musaddiqbaluch on gitmyhub — every repo by this author, as a profile.

Verify against the repo before relying on details.