In this guide, we will show you the steps to change your Android device settings via ADB Commands. The open-source nature of the OS allows you to carry out a plentitude of tweaks on your device. The tech enthusiasts usually opt for the extreme measure of unlocking the device’s bootloader, flashing custom ROMs, and installing tons of mods.
While these tweaks do add up a slew of functionalities to your device, on the flip side they might prove to be risky as well. This is where the ADB Commands come in handy. While they don’t provide the same number of goodies that an unlocked bootloader / root has to offer but they still have some nifty workarounds nevertheless.
Be it for uninstalling bloatware, tweaking RAM configuration, setting a custom animation scale, disabling adaptive battery, or changing the maximum and minimum refresh rate, the possibilities stand endless. Likewise, you could also control most of the Developer Options settings using these commands. So on that note, let’s check out the steps to change your Android device settings via ADB Commands.
Table of Contents
How to Change Android Device Settings via ADB Commands
The below instructions are listed under separate sections for ease of understanding. Make sure to follow the same sequence as mentioned.
STEP 1: Install Android SDK
First and foremost, you will have to install theAndroid SDK Platform Toolson your PC. This is the official ADB and Fastboot binary provided by Google and is the only recommended one. So download it and then extract it to any convenient location on your PC. Doing so will give you the platform-tools folder, which will be used throughout this guide.
STEP 2: Enable USB Debugging
Next up, you will have toenable USB Debuggingon your device so that it is recognizable by the PC in ADB mode. So head over to Settings > About Phone > Tap on Build Number 7 times > Go back to Settings > System > Advanced > Developer Options > Enable USB Debugging.
STEP 3: Establish ADB Shell Connection
To begin with, connect your device to the PC via USB cable. Make sure USB Debugging is enabled.
Then head over to the platform-tools folder, type in CMD in the address bar, and hit Enter. This will launch the Command Prompt.
Now in the following command in the CMD window to verify the ADB connection:
adb devices
If you get the device ID, then the connection stands successful. Now type in the below command to open the Shell environment:
adb shell
It will now list out your device codename/name, which means that the shell connection has been successfully established and you are good to go ahead.
STEP 4: Change Device Settings via ADB Commands
The command to check the current value of any parameter is:
settings get global paramter_name
Say, if you wish to check the current value of the Animator Duration Scale with the parameter animator_duration_scale, then the above command will transform to:
settings get global animator_duration_scale
Now, the default command to change the value of any parameter is (where X is a numerical value):
settings put global parameter_name X.XX
Suppose we wish to disable the animation duration scale, so in that case, the above command will transform to:
settings put global parameter_name 0.00
You may verify whether the value has been changed or using the ‘get’ command that we initially used:
settings get global animator_duration_scale
That’s it. These were the steps to change your Android device settings via ADB Commands. Let’s now make you aware of some ADB parameters that would help you in further tweaking this device.
ADB Parameter Settings to Tweak your Android Device
Given below are some of the most important and useful parameters for Samsung devices (One UI) and should work on every version of Android. As far as non-Samsung devices are concerned, only the generic commands (the one belonging to Developer Options) will work. Still, try at your own risk. [Credits: XDA Senior Member Hamid Chikh]
Custom Animation Scale
adb shell settings put global animator_duration_scale 0.xxadb shell settings put global transition_animation_scale 0.xxadb shell settings put global window_animation_scale 0.xx
Disable User Manual (Setting item)
adb shell settings put global online_manual_url 0
Enable More Screen Modes
The value 0 is for AMOLED cinema, 1 AMOLED Photo, 2 Basic, 3 Natural, 4 Vivid.
Start by setting screen mode to natural then execute the below command:
adb shell settings put system screen_mode_setting x
After that, go to the Screen Mode under Settings, then go back to apply.
Improve Audio Experience
adb shell settings put system tube_amp_effect 1adb shell settings put system k2hd_effect 1
Disable Sound Effects on Interaction
adb shell settings put system sound_effects_enabled 0
Enable Progressive Ringtone
adb shell settings put global apply_ramping_ringer 1
Enable Notification Snoozing
adb shell settings put secure show_notification_snooze 1
Enable Suspend Execution of Cached Apps
adb shell settings put global cached_apps_freezer enabled
Disable Adaptive Battery
adb shell settings put global adaptive_battery_management_enabled 0
Enable Multicore Packet Scheduler
adb shell settings put system multicore_packet_scheduler 1
Disable Background Scanning
adb shell settings put global ble_scan_always_enabled 0adb shell settings put system nearby_scanning_enabled 0adb shell settings put system nearby_scanning_permission_allowed 0
Disable Motion Engines
adb shell settings put system master_motion 0adb shell settings put system motion_engine 0adb shell settings put system air_motion_engine 0adb shell settings put system air_motion_wake_up 0
Disable Samsung Cross-Device Sync
adb shell settings put system mcf_continuity 0adb shell settings put system mcf_continuity_permission_denied 1adb shell settings put system mcf_permission_denied 1
Disable Gestures
adb shell settings put secure double_tap_to_wake 0adb shell settings put secure double_tap_to_wake_up 0adb shell settings put secure double_tap_to_sleep 0adb shell settings put secure wake_gesture_enabled 0adb shell settings put system lift_to_wake 0adb shell settings put secure volume_hush_gesture 0adb shell settings put secure hush_gesture_used 0adb shell settings put secure silence_gesture 0adb shell settings put secure skip_gesture 0
Disable Screen Saver
adb shell settings put secure screensaver_enabled 0adb shell settings put secure screensaver_activate_on_sleep 0adb shell settings put secure screensaver_activate_on_dock 0
Disable Smart Stay
adb shell settings put system intelligent_sleep_mode 0adb shell settings put secure adaptive_sleep 0
Disable Bixby Pregranted Permissions
adb shell settings put global bixby_pregranted_permissions null
Change Auto-Brightness Aggressiveness
From Darker to Brighter (-1/0/1):
adb shell settings put system screen_auto_brightness_adj 0
Improve Apps Launch
adb shell settings put system rakuten_denwa 0adb shell settings put system remote_control 0adb shell settings put system send_security_reports 0
Refresh Rate Upper/Lower Limits (Method #1)
Choose what settings suit you best (1/10/24/48/60/96/120)
adb shell settings put system peak_refresh_rate x.0adb shell settings put system min_refresh_rate x.0
Refresh Rate Upper/Lower Limits (Method #2)
Choose what settings suit you best(1/10/24/48/60/96/120)
adb shell settings put system peak_refresh_rate x.0adb shell settings put system min_refresh_rate x.0adb shell settings put secure refresh_rate_mode 2 #Default is 1
Processing Speed Hack
Set processing speed mode to “Optimised” in settings then:
adb shell settings put global sem_enhanced_cpu_responsiveness 1
Disable Performance Limit
This might increase heat and battery drain, default is 1,1.
adb shell settings put global restricted_device_performance 0,0
With this, we round off the guide on how you could change your Android device settings via ADB Commands. Likewise, we have also listed various Android settings parameters. If you have any queries concerning the aforementioned steps, do let us know in the comments. We will get back to you with a solution at the earliest.
Lower the Minimum Refresh Rate to 1Hz via ADB Command
How to Take Screenshots in Android via ADB Commands
Enable and Use ADB Commands in OnePlus Stock Recovery
How to Boot Qualcomm Device to Diag Mode via ADB Commands
About Chief Editor
Sadique Hassan
administrator
A technical geek by birth, he always has a keen interest in the Android platform right since the birth of the HTC Dream. The open-source environment always seems to intrigue him with the plethora of options available at his fingertips. “MBA by profession, blogger by choice!”
To use adb with a device connected over USB, you must enable USB debugging in the device system settings, under Developer options. On Android 4.2 (API level 17) and higher, the Developer options screen is hidden by default. To make it visible, enable Developer options. You can now connect your device with USB.
Device Owner mode gives options to configure policies and customize hardware and software functions for Android devices. You will also need a Mobile Device Management solution like Hexnode to set up, secure and manage Android Enterprise devices for your organization.
root access is disabled by system setting - enable in settings -> development options Once you activate the root option (ADB only or Apps and ADB) adb will restart and you will be able to use root from the cmd line.
You can use ADB to install standalone APKs (Android app installation packages), move files between your computer and device, run shell commands, take screenshots (or record video of the screen), find detailed information about the device, generate bug reports, view system logs, and a lot more.
Open Settings and tap Apps & notifications. Tap Permission manager to open the Android permission controller app. Click a specific permission from the app permissions list that you're interested in, like location. Here you'll see apps that have access to your location all the time or only while in use.
Connect your Android phone to your computer via a USB cable. You will get an Allow USB Debugging with your PC's RSA Fingerprint key. Click Allow, and then your device will be recognized. After that, you can re-execute the “adb devices” command to check if the ADB devices unauthorized error is fixed.
Method 1: Using 'mCurrentFocus' or 'mFocusedApp' in Command Prompt. Step 2: Open Command Prompt and run 'adb devices' command. We are running this command to just make sure that your mobile is properly connected. Step 5: Now in your mobile phone, open the app for which you want to find the appPackage and appActivity.
You can use the start command from Activity Manager (am) a.k.a the adb shell am start -n command (via adb) specifying the app package name and the component name as defined in the manifest. You can add other parameters like ACTION (-a android. intent. action.
It is a feature of the Android Debug Bridge (ADB) that allows developers to debug their applications on mobile phones without the need for a physical connection. ADB wireless debugging is a powerful tool that allows developers to debug their applications on mobile phones without the need for a physical connection.
Android device administrator (sometimes referred to "legacy" Android management and released with Android 2.2) is a way to manage Android devices. However, improved management functionality is available with Android Enterprise.
Android Device Admin vs Device Owner: What's the difference? Device Owner is an enterprise feature supported by Google as part of the Android operating system. Android Device Admin is a now-deprecated device control framework sometimes used to control Android devices by enterprises.
Tap the Build Number option seven times until you see the message You are now a developer! This enables developer options on your device. Return to the previous screen to find Developer options at the bottom.
Because Android blocks such apps from foreign sources by default, you have to first allow them. In Android 8, this can be done by accessing the security settings of the system software by activating the option “Allow apps from unknown source” or “Install unknown apps”.
It enables you to access all your device's partitions—not just the Android system, but also the data partition, the boot partition, and so on. On Android, Fastboot is a diagnostic tool. It's essential if you need to unbrick your phone, and is most commonly used to install a custom recovery.
ADB is a communication protocol specific to Android that allows to connect or control an Android device from a computer. It can be used with a Genymotion Device image instance to: Control an instance Android OS.
The PermissionController module handles permission-related UI, logic, and roles to allow access for apps for specific purpose. It controls the following: Runtime permission granting (including granting to system apps) Runtime permission management (including grouping of permissions) Runtime permission usage tracking.
Select Start > Settings > Privacy.Select the app (for example, Calendar) and choose which app permissions are on or off. The Privacy page won't list apps with permission to use all system resources. You can't use the Privacy settings to control what capabilities these apps can use.
Full control: Allows users to read, write, change, and delete files and subfolders. In addition, users can change permissions settings for all files and subdirectories. Modify: Allows users to read and write of files and subfolders; also allows deletion of the folder.
On devices running Android 8.0 (API level 26) and higher, companion device pairing performs a Bluetooth or Wi-Fi scan of nearby devices on behalf of your app without requiring the ACCESS_FINE_LOCATION permission. This helps maximize user privacy protections.
Go to developer options of the Cellphone and then click on "Allow USB debugging" then please select the radio button prompting "Allow USB debugging when the popup shows up when you first connect to the computer!".....
Open cmd type adb shell then press enter. Type ls to view files list. At the DOS prompt, adb shell ls -R > junk lists all files and puts results into file junk which you can then edit via Notepad or whatever and see more than you'd want to, but your files, too!
Now, open Command Prompt in the expanded folder and execute the command adb devices, which will show you the connected devices. Then execute adb logcat > file. txt command. This will generate the ADB logs and the logs will be saved to the file.
To start an activity, use the method startActivity(intent) . This method is defined on the Context object which Activity extends. The following code demonstrates how you can start another activity via an intent. # Start the activity connect to the # specified class Intent i = new Intent(this, ActivityTwo.
Start a service. An Android component (service, receiver, activity) can trigger the execution of a service via the startService(intent) method. // use this to start and trigger a service Intent i= new Intent(context, MyService. class); // potentially add data to the intent i.
What is USB debugging? USB debugging is often used by developers or IT support people to connect and transfer data from an Android device to a computer. While this feature is useful, a device isn't as secure when connected to a computer. So that's why some organizations require you to turn this setting off.
Go to Device Settings | Developer Options. Find the Wireless Debugging option. Set to enable, it will show a confirmation dialog to allow debugging on current wireless network, click allow to enable it. Click the Wireless Debugging option, this will bring Wireless Debugging Configuration.
With Developer Options enabled, go to Settings > System > Developer options, scroll to the Debugging section, and turn on the Wireless debugging toggle. If you get a pop-up, tap Allow. On OnePlus devices, you must enable the Wireless ADB Debugging option if available.
Boot your phone into Android, then connect it to your desktop computer with a USB cable. On your computer, launch the Command Prompt (or Terminal, if you're on Mac or Linux) and change the directory to point to the platform-tools folder. Type adb devices and hit Enter.
Enable USB debugging in the device system settings under Developer options. You can find this option in one of the following locations, depending on your Android version: Android 9 (API level 28) and higher: Settings > System > Advanced > Developer Options > USB debugging.
The Bootloader can be used in situations when your phone can't start normally, or when you need to use specific system tools to help you solve issues. You might need to use it in situations such as: Factory resetting a phone that can't otherwise be reset. Rebooting a phone that can't otherwise be restarted.
Usually, rebooting to bootloader is a feature of Android smartphones. It means to restart the device to bootloader or download mode. Rebooting to bootloader implies that the default will not be started. Instead, it will be stalled so you can load alternate systems.
2. ADB commands when phone is in recovery mode (e.g. adb devices gives a blank result). However, I can sideload a ROM (clean install) via ADB when the phone is in recovery mode. This is probably the only adb command that works in recovery.
Introduction: My name is Arielle Torp, I am a comfortable, kind, zealous, lovely, jolly, colorful, adventurous person who loves writing and wants to share my knowledge and understanding with you.
We notice you're using an ad blocker
Without advertising income, we can't keep making this site awesome for you.