Magisk Module Website Telegram

Adb module no root

Tweaking your Android device using adb shell allows you to make various system changes without root access. Below are some common tweaks and commands you can use to modify your device’s behavior.

Prerequisites

  1. ADB Installed: Make sure you have ADB installed on your computer.
  2. USB Debugging Enabled: On your device, go to Settings > Developer Options and enable USB Debugging.

Basic ADB Shell Commands

  1. Connect Your Device:

    • Connect your Android device to your PC via USB.

    • Open a terminal or command prompt on your PC.

    • Enter the following command to start the ADB shell:

      adb shell
      
  2. Navigating the File System:

    • To list files and directories:

      ls
      
    • To change directories:

      cd /path/to/directory
      
    • To view current directory:

      pwd
      
  3. Basic File Operations:

    • Copy files from your PC to the device:

      adb push <local-file-path> <remote-path>
      
    • Copy files from your device to the PC:

      adb pull <remote-file-path> <local-path>
      

Tweaks

  1. Change Screen Density (DPI):

    • Check current DPI:

      adb shell wm density
      
    • Set new DPI:

      adb shell wm density <value> && adb reboot
      
  2. Adjust Animation Scales:

    • Reduce lag by changing animation scales:

      adb shell settings put global window_animation_scale 0.5
      adb shell settings put global transition_animation_scale 0.5
      adb shell settings put global animator_duration_scale 0.5
      
    • Disable animations completely:

      adb shell settings put global window_animation_scale 0
      adb shell settings put global transition_animation_scale 0
      adb shell settings put global animator_duration_scale 0
      
  3. Grant Permissions to Apps:

    • Grant a specific permission to an app:

      adb shell pm grant <package_name> <permission>
      
    • Example:

      adb shell pm grant com.example.app android.permission.WRITE_SECURE_SETTINGS
      
  4. Modify System Properties:

    • Change a system property:

      adb shell setprop <key> <value>
      
    • Example:

      adb shell setprop persist.sys.theme dark
      
  5. Manage Packages:

    • List all installed packages:

      adb shell pm list packages
      
    • Uninstall a package:

      adb shell pm uninstall -k --user 0 <package_name>
      
  6. Toggle Airplane Mode:

    • Enable Airplane Mode:

      adb shell settings put global airplane_mode_on 1
      adb shell am broadcast -a android.intent.action.AIRPLANE_MODE --ez state true
      
    • Disable Airplane Mode:

      adb shell settings put global airplane_mode_on 0
      adb shell am broadcast -a android.intent.action.AIRPLANE_MODE --ez state false
      
  7. Control Screen Timeout:

    • Set screen timeout (in milliseconds):

      adb shell settings put system screen_off_timeout <milliseconds>
      
    • Example:

      adb shell settings put system screen_off_timeout 60000
      
  8. Change Keyboard Layout:

    • Set default input method:

      adb shell settings put secure default_input_method <input_method_id>
      
    • List available input methods:

      adb shell ime list -a
      
  9. Adjust Doze Mode:

    • Check current Doze mode state:

      adb shell dumpsys deviceidle
      
    • Enable aggressive Doze mode:

      adb shell dumpsys deviceidle enable
      adb shell dumpsys deviceidle force-idle
      
    • Disable Doze mode:

      adb shell dumpsys deviceidle disable
      

Using Shizuku for More Advanced Tweaks

Shizuku allows apps to use system APIs directly with elevated privileges without requiring root. You can grant permissions and perform certain actions that usually require root by using Shizuku in conjunction with ADB.

  1. Install Shizuku:

  2. Start Shizuku via ADB:

    • Connect your device to your PC via USB.

    • Run the following command:

      adb shell sh /sdcard/Android/data/moe.shizuku.privileged.api/files/start.sh
      
  3. Grant Permissions via Shizuku:

    • Open Shizuku and follow the instructions to configure it.
    • Use the Shizuku interface to grant permissions and manage your apps.

By following these steps and using these commands, you can tweak and customize your Android device using adb shell, even without root access.

icon sosmed svg icon sosmed svg icon sosmed svg