I often use the Force RTL Layout Direction option under Developer Settings. Is there a way I can toggle this setting from command line or ADB instead of through the Settings app?
Related
It is a persistent, nerve-racking and heated subject since the Android 7.x.x (nougat) release. Even if you can disable the heads-up notifications in an Android app, they still occur. This annoys many, especially if they is enough for them to display Android notifications in the status bar. This is due to a change in the Android operating system, which is only approached with adb/fastboot knowledge. How to disable these heads-up notifications globally, I show you in today's brief guide.
Requirements
Knowledge of adb / fastboot
Guideline
Enable the Developer Options:
Go to Settings > About
Tab build-number seven time, until you get the on-screen message that you are now a developer.
Enable USB Debugging:
Got to Settings > Developer Options and check USB Debugging
Connect your smartphone via USB to PC
Navigate to the folder where your adb/fastboot are installed to and open a CMD, by right-click > open command prompt here.
Now enter the command
Code:
adb devices
and wait until the CMD shows the serial number of your smartphone followed by the term devices
To disable the heads-up notifications from Android 7.x.x, enter the command
Code:
adb shell settings put global heads_up_notifications_enabled 0
If you want to re-enable the heads-up notifications, replace the command in the last step with
Code:
adb shell settings put global heads_up_notifications_enabled 1
That's it. You can disable nad/or enable heads-up notifications on Android 7.x.x acccording to your personal needs.
And here's a tutorial on how to use this command to block heads up notifications on a per-app basis, like when gaming or watching a video: https://www.xda-developers.com/block-heads-up-notifications-gaming-videos/
MishaalRahman said:
And here's a tutorial on how to use this command to block heads up notifications on a per-app basis, like when gaming or watching a video: https://www.xda-developers.com/block-heads-up-notifications-gaming-videos/
Click to expand...
Click to collapse
Oh didn't see that one. Only one mentioning an App for it that didn't work on my end, which is why I decided to open up this thread. Thanks for the heads up!
Sent from my htc_pmeuhl using XDA Labs
Take full advantage of the display with enabling Immersive Mode on a per-app basis,by using ADB commands w/this app,NO ROOT REQUIRED! :good:
(others are available,look around in the Google Play Store/APK Mirror/F-Droid/etc. for your app of choice):
https://play.google.com/store/apps/details?id=jp.sakeapps.immersivesettings&hl=en
"Immersive Settings" is an application that displays the screen in immersive mode by rewriting the system settings.
Software keyboard operates normally even in immersive mode.
Before using this application, you need to grant the following "WRITE_SECURE_SETTINGS" permission via ADB:
adb shell pm grant jp.sakeapps.immersivesettings android.permission.WRITE_SECURE_SETTINGS
Immersive mode will continue even after uninstalling this application.
I hope Razer implements this
Hi everybody,
Is there any way to change animations scale with spesific app, i need this because banking apps don't allow nfc payment with developer options turned on. I searched google but i couldn't find anything relatable to my issue. Any bypassing method is welcome, for example, i don't turn off developer options but somehow nfc payment works.
Late reply but here's how i made it work on Samsung OneUI 5.1 Android 13 , installed com.zacharee1.systemuituner (SystemUI Tuner) by Zachary Wander from Play Store , granted it WRITE_SECURE_SETTINGS permission through adb by enabling developer options and usb debugging.
Steps
1. Install app (the app also guides you)
2. Turn on dev options , turn on usb debug , connect to pc
3. go to abd shell of the device , type "pm grant com.zacharee1.systemuituner android.permission.WRITE_SECURE_SETTINGS"
4. revoke usb debug if you want and turn off developer options
5. go to app and tweak animation speed in the UI menu (0.4 is sweet)
6. set up persistant options (there is a guide in the app)
7. restart and check if the settings persists.
8. put system ui tuner to deep sleep if you only use it for animation scaling
After connecting the watch over Wi-Fi to ADB server, how to delete each of the "Quick Panel" apps?
Do not think you can actually remove these items. They are not apps. You can only remove them from the panel with the Wear app.
captain_tyr said:
After connecting the watch over Wi-Fi to ADB server, how to delete each of the "Quick Panel" apps?
Click to expand...
Click to collapse
That's not really what ADB is used for. It would be faster and easier to remove them by swiping over and tapping the "+", then tap the "-" for each quick launch icon you want removed from the panel.
Yes.. I know for manual steps.. I'm building automatisation script using adb, so I can setup multiple watches to single application mode for one project. The script need to clean up watch from bulk apps, install requred apk, lock watch to that app (user should not be able to access tiles, applications and other stuff).
Current state: My script can enrol and setup 50 watches, all at same time. The only thing what is left in script to finish is cleaning up the quick panel. I know I can record screen and mimic swipes and taps over adb, but I was thinking if there is a way to get package name and activity from shortcuts in quick panel and do it simpler.
If you wake up the watch with (wrist up). How to open "Quick Settings panel" on Samsung Watch 4 and remove specific shortcuts, using ADB?
When I do:
adb shell dumpsys activity broadcasts | grep -iE ".+\.[0-9A-Z_\-]+:$"
I get:
com.google.android.apps.wearable.systemui.CLOSE_QUICK_PANEL
com.google.android.apps.wearable.systemui.DISABLE_EXPAND_QUICK_PANEL
com.google.android.apps.wearable.systemui.ENABLE_EXPAND_QUICK_PANEL
com.google.android.apps.wearable.systemui.OPEN_QUICK_PANEL
com.google.android.apps.wearable.systemui.QUICK_PANEL_STATE_CLOSED
com.google.android.apps.wearable.systemui.QUICK_PANEL_STATE_OPENED
All of this commands do not work:
adb shell am start com.google.android.apps.wearable.systemui.OPEN_QUICK_PANEL
adb shell am start -n com.google.android.apps.wearable.systemui.OPEN_QUICK_PANEL
adb shell am start -a com.google.android.apps.wearable.systemui.OPEN_QUICK_PANEL
I figure out how to navigate between shortcuts in Quick panel, but I can't press on "-" to disable (remove them). DPAD_ENTER do not work.
For navigating I use:
Array=("DPAD_LEFT" "DPAD_RIGHT" "DPAD_UP" "DPAD_DOWN")
for key in "${Array[@]}"; do
echo "$keypress";
adb shell input keyevent "$key";
done
I enabled the option in developer settings but still can't start apps in windowed mode, only splitscreen.
Chinese rom 12.5.245