Sophie LaBüf

  • Home
  • Recommended Apps
  • XDA
  • Facebook
  • About Me
  • Privacy Policy

Useful Shell Commands

Posted by egingell on Aug 1, 2013
Posted in: Android.

Last Updated on Dec 26, 2022


Useful Shell Commands

Disclaimer: I am not responsible for you doing things wrong and breaking your phone or losing your data.

  • Get Your MSL: (if this doesn’t work, you may need a different toolbox binary)
    getprop ril.MSL
  • Execute a command or file as root even if you’re not using the root shell: (handy over ADB with a secure kernel)
    su -c COMMAND|FILENAME
  • Reliable screenshot: (even works on 4.2.2; however, if you’re saving the screenshot to the internal SD card with emulated storage, you must use its real path which is “/data/media/0” – works best with ADB, Tasker, or something automated so you don’t just screenshot the shell emulator)
    screencap FILENAME
    adb shell su -c screencap /data/media/0/test.png
    adb shell su -c screencap /storage/extSdCard/test.png
  • Clear cache:
    rm /data/dalvik-cache/*
    rm -r /cache/*
  • Delete all app data:
    rm -r /data/data/*

Posts navigation

← Recommended Apps
Increase Battery Life and Reduce Game Load Time →
  • Join Discover: get $50
  • Latest

    • FFXV Jan 29, 2025
    • Final Fantasy X-2 Sep 11, 2024
    • Final Fantasy XII Jul 9, 2024
    • TLoU Game vs TV Series Mar 7, 2024
    • EA Customer Support Jan 22, 2024
    • FFX-2 Matchmaking & Publicity Dec 2, 2023
    • Classic Word Streak Nov 3, 2023
    • Final Fantasy X-2 - Via Infinito Oct 20, 2023
    • Getting Screenshots from Switch to Smart Device Oct 20, 2023
    • Spams & Scams Oct 6, 2023
  • Info

    • About Me Jun 24, 2024
    • About Jeckle Apr 30, 2023
    • About Heckle Apr 30, 2023
    • Privacy Policy Dec 25, 2022
  • Categories

    • Android (38)
    • Gaming (15)
    • Nintendo (2)
    • Social Networking (1)
    • Sophie (9)
    • Television (1)
    • Uncategorized (1)
    • Weird Things Nerds Do (3)
  • Tools

    • Log in
    • Entries feed
    • Comments feed
    • WordPress.org
Proudly powered by WordPress Theme: Parament by Automattic.