2 votes

Enable OTG with a shell command

This worked for me: Find 'otg' on global settings adb shell setting list global | grep 'otg' Result: otg_time_out_close 0 0 is for off, 1 is for on. Switching OTG on/off adb shell settings put [...
Grimm.08's user avatar
2 votes

Clearing an app's *cache* and not the app's *data* via pm (or other CLI utility)?

OOPS! I originally overlooked the answer when checking the pm help text. All I have to do is pm clear --cache-only package.name.
HippoMan's user avatar
  • 715
1 vote

Download file from Android shell

You have two options. Install Termux, which supports curl. Use your option number 2. adb push simply copies the file (unlike adb install, which looks for an apk file and tries to install it on the ...
Scooby-2's user avatar
  • 166

Only top scored, non community-wiki answers of a minimum length are eligible