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

    • Getting Screenshots from Switch to Smart Device (Sep 9, 2023)
    • The Last of Us (Part I, Left Behind, and Part II) (Jul 3, 2023)
    • FFX-2 Chocobo Ranch and Dungeon (Jun 27, 2023)
    • Final Fantasy X-2 (Jun 26, 2023)
    • Guardian Tales: Switch vs Android (Apr 25, 2023)
    • TLoU Game vs TV Series (Mar 12, 2023)
    • Spams & Scams (Feb 8, 2023)
    • FFXV (Feb 6, 2023)
    • Classic Word Streak (Jan 19, 2023)
    • Final Fantasy VI (Jan 15, 2023)
  • Info

    • About Jeckle (Apr 30, 2023)
    • About Heckle (Apr 30, 2023)
    • About Me (Apr 7, 2023)
    • Privacy Policy (Dec 25, 2022)
  • Categories

    • Android (35)
    • Gaming (12)
    • Nintendo (2)
    • Social Networking (1)
    • Sophie (9)
    • Television (1)
    • Weird Things Nerds Do (3)
  • Tools

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