Skip to main content

Questions tagged [command-line]

A "command line" is a text interface to enter commands interactively. In our context, it usually means a "Unix Shell" in a terminal app, or the ADB shell on a computer to interact with an Android device.

0 votes
0 answers
34 views

What does the "sm forget" command do?

What does the forget subcommand of the sm command do? For reference, here's the help output for sm: usage: sm list-disks [adoptable] sm list-volumes [public|private|emulated|stub|all] sm ...
JanKanis's user avatar
  • 191
1 vote
0 answers
36 views

The jq utility for Android, or some other command-line-based JSON parser?

We are writing some scripts to be run from the command line in Android, and JSON parsing is necessary. In Linux and other non-Android OS's, there's the jq utility, and we're trying to find something ...
HippoMan's user avatar
  • 735
2 votes
1 answer
709 views

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

I'm running Android 13 in a rooted environment, and I want to use pm or some other Android command-line utility to clear an app's cache. If I do pm clear package.name, it clears the app's data, and ...
HippoMan's user avatar
  • 735
1 vote
1 answer
150 views

How to auto switch on/off precise location automatically, programmatically for Google Maps?

Is there an am command line or similar that permits do turn off/on Google Maps precise location? Ideally, could be a wrapper script in shell to enable precise mode, then when quitting maps, setting ...
Gilles Quénot's user avatar
0 votes
0 answers
59 views

Accept allow contact sync and messaging via command line

I would like to know if there is a way to "Allow Contact Sync" and "Allow access to Messages" on Android phone using command line. When the notification is received on my phone, it ...
lifelong_student's user avatar
1 vote
0 answers
129 views

Find `MainActivity` for `com.google.android.dialer`

I have a Xiaomi POCO X5 5G, running MIUI Global 14.0.4. There is a problem where (in the Global ROM) the Google Phone app (as a system app) seems to be killed, even with MIUI Battery Optimization ...
Jacob Birkett's user avatar
0 votes
0 answers
248 views

How to find the RAM type in command prompt in Android?

I am trying to find out what the memory type of my Android phone is, i.e. if the device is LP4 or LP5 type. On Windows PC, there is wmic command to get this system information. However, I can't find ...
user1856470's user avatar
0 votes
0 answers
63 views

Run avdmanager with sudo

I am running avdmanager create avd from my python script that I start with sudo -E to make my script be able to do priveldged stuff. But for some reason avdmanager created AVD inside /root/.android/...
Euler-Maskerony's user avatar
1 vote
0 answers
129 views

How to download all Android SDK platforms using sdkmanager from terminal without Android Studio?

Need to automate downloading of all available Android SDK Platforms using the sdkmanager from terminal. For example, an Android SDK Platform 19 can be installed using sdkmanager "platforms;...
Fr0stM0urne's user avatar
0 votes
0 answers
51 views

How to know apps which boots with system using commands in Android terminal?

I need commands for Android 4-6. How to know via Android terminal and command which apps loading on the system's start? While I tried 2nd command from here.
Paul K.'s user avatar
  • 11
0 votes
0 answers
28 views

How to get titles of installed apps on device? [duplicate]

I connected Android device to desktop with Windows using USB. I need to get titles of installed apps. What command for Windows command line to complete the task? I used ADB for other tasks, but while ...
Paul K.'s user avatar
  • 11
2 votes
0 answers
351 views

Force USB tethering on an Android

I am using a Windows system and I want to add my old tablet (Acer Iconia A1-810 without LTE) as a second monitor. It is running Android 4.4.2 Kitkat, and I found an app for Android called spacedesk to ...
Pressy 03's user avatar
1 vote
1 answer
2k views

Download file from Android shell

I am making a shell script for Android to run on ADB, however, the script should download a file. Commands like wget and curl aren't available in /system/bin. Here are a few possibble solutions that I ...
sudoer's user avatar
  • 159
0 votes
1 answer
1k views

Clear Data of Package for Single User

I am trying to clear the data for a few apps on a work profile without clearing the data on the main user account for my android phone. What I'm trying for example is : pm clear com.Microsoft.teams ...
Kayracer's user avatar
1 vote
1 answer
522 views

What is the official Android repository containing APKSIGNER?

What is the official source for apksigner as referenced e.g. in this answer? People are citing Android Studio, Android SDK Build Tools/Platform Tools/Command Line Tools etc. (as well as some shady ...
srhslvmn's user avatar
  • 289

15 30 50 per page
1
2 3 4 5
16