I want to detect the case status (open/close).
In the case without window I could use detection screen status (on/off) like this:
Code:
adb shell dumpsys power | grep mScreenOn
In the case with the window (eg. LG Circle Case) after closing the case I can't use the detection screen status (case closed but the screen may be ON).
I want to detect only case status (using a magnet sensor in the corner of the case and screen)
Related
Hi,
Is there a way to clear all notifications on ICS (having the same effect as pulling down the notifications bar + clicking the "x" button) using a shell command or launching an intent?
I have tried the command
service call notification 1
but it returns the Result: Parcel(fffffffc ffffffff '........')
thanks!
Long pebble user here.
It is a well known fact that black text on white background is much easier to read on LCDs than while on black. Also my Amazfit Pace does not enable backlight when notifications show up, which makes them very hard, and often impossible to read (when driving or there is no good light source).
So, is it possible to invert the colors and enable the backlight, perhaps with rooted firmware?
+1
Probably you want to use a bigger font too because some colors look funky when in inverted mode (see Set Font, an app).
To enable:
Code:
adb shell settings put secure accessibility_display_inversion_enabled 1
To disable (revert to normal):
Code:
adb shell settings put secure accessibility_display_inversion_enabled 0
lfom said:
Probably you want to use a bigger font too because some colors look funky when in inverted mode (see Set Font, an app).
To enable:
Code:
adb shell settings put secure accessibility_display_inversion_enabled 1
To disable (revert to normal):
Code:
adb shell settings put secure accessibility_display_inversion_enabled 0
Click to expand...
Click to collapse
Can't believe I have waited 5 months for this, asked about it on numerous threads...
Thank you!!
Sorry for extra question, but how do I change font?
See my "Set Font" app. Be aware that the watchface will go back to normal display when screen is locked since all screens while the watch is locked are not stock Android code.
lfom said:
Probably you want to use a bigger font too because some colors look funky when in inverted mode (see Set Font, an app).
To enable:
Code:
adb shell settings put secure accessibility_display_inversion_enabled 1
To disable (revert to normal):
Code:
adb shell settings put secure accessibility_display_inversion_enabled 0
Click to expand...
Click to collapse
can you please make a tutorial from beggining to the end for adb,because i am trying but i can not make it to work,amazfit stratos,connected to adb but what next,thanks
nujke71 said:
can you please make a tutorial from beggining to the end for adb,because i am trying but i can not make it to work,amazfit stratos,connected to adb but what next,thanks
Click to expand...
Click to collapse
This only happens on Windows, because of drivers, and because Windows sucks... If you can run adb without errors, check drivers, something like this:
https://forum.xda-developers.com/xiaomi-redmi-3s/how-to/how-to-install-fastboot-adb-drivers-t3581434
lfom said:
See my "Set Font" app. Be aware that the watchface will go back to normal display when screen is locked since all screens while the watch is locked are not stock Android code.
Click to expand...
Click to collapse
OK, so first I have unlocked my bootloader.
Inverted the screen. To everyone out there: once screen time outs, it reverts to non-inverted static image. It shows up exactly as drawn in face, including fonts. I wonder if it is possible to invert the BMP image as a workaround.
Issue: all fonts are pretty thin and faint (grey, not black). I guess this is because of graphics designers who decided that light grey fonts will look very cool (and on PC screen they do), but it is very bad and low contrast on the watch itself.
Is there an easy way to set the default font color to solid #FFF or #000 and make them bold?
Also most faces look like garbage due to low contrast design. Really hard to find black on white faces without fancy graphics in the background, that end up ugly on the screen anyway. I loved pebble, btw.
Can someone recommend a high contrast watchface?
Also all icons are very faint. Is there a way to increase the contrast of screen? Or maybe lower number of colors to 16 or so, like pebble has.
So I have installed the suggested font changer app. The menus are much nicer, however some faces end up displaying huge fonts. But not all.
For devs: Is it now possible to get more information on the watchface, maybe with custom ROM? I don't do fitness, but I would love to see my notification count. Would love to have it like this:
lfom said:
Probably you want to use a bigger font too because some colors look funky when in inverted mode (see Set Font, an app).
To enable:
Code:
adb shell settings put secure accessibility_display_inversion_enabled 1
To disable (revert to normal):
Code:
adb shell settings put secure accessibility_display_inversion_enabled 0
Click to expand...
Click to collapse
e tried to invert the colors with adb command and it works, although not liking how it looks and tried to return to the original colors and now the adb command does not work to revert the process. What I can do?
jofran1 said:
e tried to invert the colors with adb command and it works, although not liking how it looks and tried to return to the original colors and now the adb command does not work to revert the process. What I can do?
Click to expand...
Click to collapse
It's the same command, but ends with "0" (zero) instead of "1" (one). If you cannot do it for some reason, only factory reset can revert to stock settings (it erases all data on watch).
Hi all,
If you're looking to claim as much screen real estate as possible, ie 'Full immersive' mode, 'One Ui' makes it that bit easier.
For 'Navigation bar':
Settings - Display - Navigation Bar
Turn on 'Full screen gestures', then turn off 'Gesture hints'.
For 'Status Bar'
Connect to PC and run this 'ADB' command.
.\adb shell settings put global policy_control immersive.status=*
To reverse it.
.\adb shell settings put global policy_control null*
Hi there,
It seems Mi A3 has no real full screen mode except playing video.
I tried "adb shell settings put global policy_control immersive.status=*" or "~.full=*", there'd be a black bar on top as the same area of the status bar. When using 'full screen mode' in some browsers, it behaves the same.
Is there any method to utilize this area other than status bar and video?
Thanks.
The notch area usage depends probably on the app. For example F-stop doesn't use notch area even in full screen, Google photos yes.
More info here: https://stackoverflow.com/questions/49190381/fullscreen-app-with-displaycutout
Thanks, but i wish there'd be a system-wide solution. I used to use adb immersive control on my previous Nokia phone and it worked well everywhere. That's without notch, though.
CLS_phone said:
Thanks, but i wish there'd be a system-wide solution. I used to use adb immersive control on my previous Nokia phone and it worked well everywhere. That's without notch, though.
Click to expand...
Click to collapse
Immersive mode still works and you can control it system-wide or per app, but drawing over notch area must be defined by an app developers. Otherwise you'll see the black bar as you described.
Hi,
I found the immersive mode disappeared by itself recently -- the status bar came back.
I tried giving it adb command again and it looked fine at that moment. Then the status bar came right back after locking/unlocking the screen.
What's going on? Is there any other adb command affecting this?
Thanks.
If you have magisk there is a module but it isn't in the official repository.
https://forum.xda-developers.com/mi-a2-lite/themes/magisk-module-notch-killer-ignore-t3894060
Thanks, but I don't want to root my phone just yet.
BTW, I've used this command to grant permission to Fluid Navigation Gesture:
adb shell pm grant com.fb.fluid android.permission.WRITE_SECURE_SETTINGS
Would it interact with the immersive mode by that app?
I've used both FNG and immersive mode in another phone and it's OK with both of them, but it's in Android 9.
CLS_phone said:
Thanks, but I don't want to root my phone just yet.
BTW, I've used this command to grant permission to Fluid Navigation Gesture:
adb shell pm grant com.fb.fluid android.permission.WRITE_SECURE_SETTINGS
Would it interact with the immersive mode by that app?
I've used both FNG and immersive mode in another phone and it's OK with both of them, but it's in Android 9.
Click to expand...
Click to collapse
I'm working with NotchKiller and FNG without issues.
I cant find data connection taggale in notification on my Samsung Galaxy A526U 5G .I can't add also.
Settings > Connections > Data usage > Mobile data (turn off/on)
If you want it on your notification screen then swipe from top > Three dots on top right > Edit buttons > find Mobile data and hold and drag onto your notification screen.
Sending the ADB Command to Enable Mobile Data Toggle
Once you’ve confirmed ADB is working, it’s time to run the command. First, enter the following command to enter ADB shell:
adb shell
Your terminal/command prompt should now show that you are within the shell environment of your device. Once you’re in, enter this next command:
settings get secure sysui_qs_tiles
This will output a comma separated list of names that represent your current Quick Settings tiles. Copy this list down (save it in your clipboard, to a text file, whatever.) If you do not save this list, all of your existing Quick Settings tiles will disappear in the next command. Next, enter the following command:
settings put secure sysui_qs_tiles "YOUROLDLIST,MobileData,Hotspot"
Where YOUROLDLIST represents the comma separated list of Quick Setting tiles that you saved just before and MobileData is the name of the Mobile Data Toggle, appended to the end of the original tiles list. Hotspot is the name of the Mobile Hotspot tile. Note the comma between the old list and the two additions, MobileData and Hotspot, and also note the use of quotation marks. Basically, all we’re doing is appending the name of the Mobile Data and Hotspot toggle to the end of our original tile list.
Once you enter this command, you should immediately see the Mobile Data and Hotspot toggle show up at the end of your Quick Settings tiles. You can then re-arrange it as you please so it will appear on the first page. This toggle will persist through reboots, but won’t survive a factory reset.