Skip to main content
8 votes
Accepted

Stock Android always using 100% physical memory. How to free it up with ADB?

Android memory management works differently than traditional OS. The main principle is to keep apps in RAM even if they are not used at the moment because the OS never knows when the user switches ...
Robert's user avatar
  • 20.5k
3 votes

`adb shell mv` moves files but app doesn't work anymore, while it works if I move the same files via file manager

Your main problem is that you move files and folder between special sections of the file-system: from app-private folder where only the app has access to /sdcard a special folder where you can not ...
Robert's user avatar
  • 20.5k
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

How to check if a package is enabled via shell?

There are apps that have similar names, so just a simple grep might be problematic. Take the following apps for instance. com.amazon.dcp com.amazon.dcp.contracts.framework.library If the short one is ...
5p0ng3b0b's user avatar
  • 144
2 votes

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
  • 176
2 votes

Why does Samsung not allow making more than 1 user?

~> adb shell pm get-max-users Maximum supported users: 1 I don't know specifically why Samsung does this but you can work around this restriction and have a secondary user by creating a guest user ...
Rand0mMan's user avatar
  • 355
1 vote
Accepted

Running VLC from the shell in Android and also passing in a subtitles file?

I thought of a way to get an Android script to accomplish this: (1) create an empty "work" directory; (2) copy the VideoToPlay.mp4 file into that work directory; (3) copy the *.ssa file into ...
HippoMan's user avatar
  • 725
1 vote
Accepted

How can I find CID from ADB shell?

It's possible to get cid info with following command. adb shell getprop|grep cid $adb shell getprop|grep cid [ro.boot.cid]: [HTC__M27]
maxemilian's user avatar
1 vote

Where can I run a .sh script on Android without root?

I am using a Samsung A52 (SM-A525F/DS) with Termux installed from Google Play. The home directory, where you can write scripts and set the execute bit, is: /data/data /com.termux/files/home You ...
Scooby-2's user avatar
  • 176

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