secure-if

项目地址:iternull/secure-if
更多:作者   提 Bug   
标签:

Secure I/F This application is used to control the Charge Connection and Data Connection of the Android USB interface.

This application can prevent unauthorized devices from connecting to your phone via USB to implant malicious viruses, can protect the charging safety in public places.

This application requires Root.

中文说明

How is work

Control the USB function switch by modifying the kernel parameter parameters.

USB Charge

su -c 'echo 0 > /sys/class/power_supply/battery/charging_enabled'    // Disable USB Charge
su -c 'echo 1 > /sys/class/power_supply/battery/charging_enabled'    // Enable USB Charge

Not all Android phones are this path, so this feature only supports some phones.

USB Data Connections

su -c 'echo 0 > /sys/devices/virtual/android_usb/android0/enable'    // Disable USB Connections
su -c 'echo 1 > /sys/devices/virtual/android_usb/android0/enable'    // Enable USB Connections

Develop

This project is developed using Android Studio.

Also provided a Shell Script, Used for command line interface.

Download

Download the latest release.

License

This is a private project.

℉ūck yōūr ōpéń $ōūrcé līcéń$é


Android 开发经验分享
用了一年多的理财推荐
Android 开发经验分享
用了一年多的理财推荐