[HOW TO] Bypassing slider to change ringer volume - OnePlus 8T Guides, News, & Discussion

1-2-21 update: confirmed to work on my now-rooted 8T.
1-4-21 update: I've initially counted the ringermodeinternal at line 35 in Android 11 release, but it really should be 32. Let me know if 35 works for you instead.
3-25-22 update: Looks like the new code will be on line 33 for Android 12. It was on line 32 for Android 11. In addition to three_key_mode, you'd also want to add alert_slider_mode to your script (same identifiers as three key mode 1-3). I don't get the haptic feedback anymore when executing these, but everything else appears to work. There is some "AlertSliderAudioPolicy" function that gets triggered with the slider (setUp/Middle/Down) that I saw in the logcat, but not sure if that's what's responsible for the haptic feedback. If anyone figures this out, let me know.
11-15-22 update: for Android 13 it will be on line 37
Hi, all.
This guide is a repost from the one I did for 6T. I was never a fan of the slider and came up with some scripts to toggle the ring modes via Smanager, but this should work with any other scipting app. Smanager allows to set scripts as widgets, so that's how I've had it on 6T.
Original ideas came from this post:
https://gist.github.com/tniessen/ea3d68e7d572ed7c607b81d715798800
Android 11 release interface declaration for the ringer mode (void setRingerModeInternal(int ringerMode, String caller) ; ) ) which is the 32nd line (function index) here:
platform_frameworks_base/IAudioService.aidl at android11-release · aosp-mirror/platform_frameworks_base
Contribute to aosp-mirror/platform_frameworks_base development by creating an account on GitHub.
github.com
What you will need:
1. Root, since we're modifying system parameters
2. Smanager or another script tool
3. Slider has to be in the ring mode for these to work properly (I'm sure somebody more proficient than me can figure out if the slider can be bypassed in other modes)
Create a new script and call it Vibrate (or something else you want to call that mode). Enable su (root privilege) on it. Inside type:
settings put global three_Key_mode 2
service call audio 32 i32 1 s16 text
############
(do not copy below ^ the above)
three_key_mode 2 - display vibrate icon
i32 1 - enable vibrate mode
s16 text - just random string caller
For Ring (or something else you want to call that mode). Enable su (root privilege) on it. Inside type:
settings put global three_Key_mode 3
service call audio 32 i32 2 s16 text
############
(do not copy below ^ the above)
three_key_mode 2 - display ring icon
i32 2 - enable ring mode
s16 text - just random string caller
For Silent(or something else you want to call that mode). Enable su (root privilege) on it. Inside type:
settings put global three_Key_mode 1
service call audio 32 i32 0 s16 text
############
(do not copy below ^ the above)
three_key_mode 1 - display silent icon
i32 0 - enable silent mode
s16 text - just random string caller
Now you can add these scripts as toggles onto your home screen. Hopefully, some people can find this useful.

Just found this post via search.
That is awesome, thank you!
I have managed to do it via tasker shell commands, no need for smanager
I wish there was a way to fully repurpose the slider..

3-25-22 update: Looks like the new code will be on line 33 for Android 12. It was on line 32 for Android 11.
in addition to three_key_mode, you'd also want to add alert_slider_mode to your script (same identifiers as three key mode 1-3).
I don't get the haptic feedback anymore when executing these, but everything else appears to work. There is some "AlertSliderAudioPolicy" function that gets triggered with the slider (setUp/Middle/Down) that I saw in the logcat, but not sure if that's what's responsible for the haptic feedback. If anyone figures this out, let me know.

11-15-22 update: for Android 13 it will be on line 37

I have installed custom rom on non 1+ phone and i cannot change it to ring mode directly as it asks to move alert slider and I cannot do that in software .
Also I have banking apps installed so i cannot root
But I do have custom recovery (Orange Fox recovery) installed .
So I wanted to ask you whether there is any zip file I can flash to completely control this mode by software
Thanks in Advance
Metadata:
Phone : Asus Max pro m1
Android Version : 11
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

Related

Controlling the LEDs

I've been looking for how to control the LEDs on our blade for quite some time now, and, since I didn't find anything, I decided to try myself and succeeded.
Heres the How-to:
1. Install the Android SDK(Or just ADB)
2. Run "adb shell"
3. Run any of these commands:
Activate Backlight-leds(White): echo 255 > /sys/class/leds/button-backlight/brightness
Deactivate(White) echo 0 > /sys/class/leds/button-backlight/brightness
Activate Red leds: echo 255 > /sys/class/leds/red/brightness
Deactivate echo 0 > /sys/class/leds/red/brightness
Blink: echo 1 > /sys/class/leds/red/blink
echo 0 > /sys/class/leds/red/blink
Activate Green leds: echo 255 > /sys/class/leds/green/brightness
Deactivate echo 0 > /sys/class/leds/green/brightness
Blink: echo 1 > /sys/class/leds/red/blink
echo 0 > /sys/class/leds/red/blink
Just a little tip: If you want to control the green or red led, you have to "deactivate"(Turn off brightness) of the White ones..
yellow is red + green.
wbaw said:
yellow is red + green.
Click to expand...
Click to collapse
Hmm, that makes sense, for some reason i can't get it working, the red led just keeps overriding the green
Edit: The only thing I'm able to make thus far is Orange with Red: 100; Green: 255;
is it possible to run this commands inside an android app or shell script without adb?
frapeti said:
is it possible to run this commands inside an android app or shell script without adb?
Click to expand...
Click to collapse
typically yes. you have to invoke the "sh" command when using an app so that it can also port root permissions to superuser to grant. i am working on that for my thunderbolt. my attempt will be to set the LED to full brightness (beyond the 128 setting that the system allows) and get the LED to stay on for more than the 1 second that it does. YES i am aware that setting my LED to beyond the default max can of all things shorten the life of it. i really dont care about that. i have insurance on my phone anyhow. so if i break it, i pay the copay and presto! new phone.
anyhow, back to the topic at hand...
so, i will get to programming that shell command pretty soon, once i figure out how to integrate and build apps to android... lol. i know how it works in theory, and know linux commands, but its another thing entirely to build something and have it work.
Hello all, need a help solving a problem. I want to switch the back -led on and off. i can access the sys/class/leds/button-backlight and can change the brightness of the variable to "170", the thing is the variable's value is changin, but the LED is not glowing! ,i tried "1" and it has the same response. Lemme post a screenshot indicating my situation here!
My device : Letv Le X509
Status: Rooted
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
This screenshot indicates the files that i have within the leds folder.

[Q] help translating the following images?

can someone tell me say the following images
only a program which are
functions that allows you to defy.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
here is the program's original post:http://bbs.mfunz.com/thread-182204-1-1.html
here is the link of the program:http://www.mediafire.com/?m6v1slzydq69hez
beforehand
thanks
regards
Interesting! What on earth is that? We have to find out! Would be a bit more helpful if you could share a link to the site you found the pictures, though... We need some chinese magician to translate this to english... We have a few in the defy forum. We just need to track them down and send them a PM.
Only the green text CLI part is translated:
Motorola_Android Universal Patch Pack V2.4.25i
SCRIPT. BY LONYII
Blog:LONYII.SINAAPP.COM
---
Caution - After applying a patch, you must return to the menu and press "[A] - Apply patch" for it to be effective. Make sure to backup.
---
[1] - Backup recovery. Supports custom recoveries, automatically generates Recovery pack
[2] - One step patch. DEODEX and JAVA not required, only ROOT is required.
[3] - Shutdown menu, Screenshot/Reboot/Sleep with any combinations and/or coexistance (original method)
[4] - System theming, resource changing, extensions, resource packs are updated frequently, feel free to provide some.
[5] - Volume key to wake, universal for all DEODEX systems
[6] - Vibration related, auto brightness patch, notification bar customization ----NEW!
[7] - [Some guy's name?]'s advanced configurations, with alot of advanced configurations integrated, can customize "long-press home" action
[8] - Modify Motorola 2.3 right-hand corner shortcut
[9] - Clear temporary files, configuration frame
[T] - Basic environment test, it is suggested to run this test at first use
[A] - Apply patch
[R] - Reset configurations
[P] - External script
- Check for updates, feedback & comments
---
[H] - Help/Description
[L] About universial code editor - LOPRT.EXE
[O] - Exit from script
- Change to local zip editing - Current: Cellphone
---
Select:
Click to expand...
Click to collapse
Questions go in the Q&A section
fiskenigaten said:
Interesting! What on earth is that? We have to find out! Would be a bit more helpful if you could share a link to the site you found the pictures, though... We need some chinese magician to translate this to english... We have a few in the defy forum. We just need to track them down and send them a PM.
Click to expand...
Click to collapse
links attached
regards

Find 5 Firmware X909EN_13_130328

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Dear Ofans,
Today we’re releasing a new Firmware Upgrade for OPPO Find 5 that contains changes based on your earlier feedback.
// CHANGELOG //
Upgrading from the previous X909_EN_13_130318 version you will find the following changes:
Added Panorama mode in Camera. (Suggested by Corey M & lots of Ofans)
Improved Camera performance.
Enabled tap to focus while recording video. (Suggested by mah111)
Fixed the default zoom level in HD 720p while recording video. (Reported by AIT-Solutions)
When tapping the thumbnail after recording video, it will not automatically start playback, but will prompt you to press Play instead.
Fixed a bug that caused EXIF data to show the incorrect time when using 12-hour format.
Fixed a bug with Gmail that it wouldn't open emails. (Reported by Kordova)
Optimized Email previews so that two lines of text are shown instead of just one in the mail list.
Optimized Email interface: you can now select multiple emails without going into the menu.
Fixed a bug where Go Power Master & Go Task manager wouldn't work. (Reported by sn33ky)
Fixed a bug with duplicate notification center settings. (Reported by Murakh)
Fixed a bug that "NEW" tag for icons didn't sync with homescreen. (Reported by Adam)
Fixed a bug that where the notifications bar displayed "No service" while connection was ok. (Reported by AIT-Solutions) - Need Ofans' help to confirm!
Fixed a bug that the current carrier wouldn't show up when searching for available carriers. (Reported by AIT-Solutions & dave.opc) - Need Ofans' help to confirm!
Fixed a bug that a wrong message was displayed after using the sweep button in Task Manager. (Reported by Ig_Softy)
Fixed a rare bug that sometimes the call duration would be displayed incorrectly.
Fixed a bug with Foursquare that it would suddenly quit when searching for a new place to go. (Reported by Adam)
Thanks Ofans for helping us make our firmware better!
// HOW TO UPDATE //
There are three ways to update the firmware on your device. Use either one of these methods.
WARNING: All your contacts, SMS and previously installed applications including their data will be lost when updating! Your files such as photos and videos will remain untouched. Please make sure you backup before upgrading! If you prefer to keep your current settings, please wait for the OTA firmware that you will be able to install directly from your phone.
Offline Mode
1. Connect the phone to your computer via USB.
2. Copy the firmware upgrade package into the root folder of your phone.
3. Open the System Update app found in the Tools folder (or go to Settings > General > About phone > System update).
4. Tap “Local upgrade” to select the upgrade package.
Upgrading via System Recovery
1. Connect the phone to your computer via USB.
2. Copy the firmware upgrade package into your phone.
3. Turn off the phone.
4. Press and hold the Power and Volume Down buttons to enter recovery mode.
5. Select “apply update from sdcard”/"手动选择安装包" by navigating using the Volume buttons and and using the Power button to confirm.
6. Use the volume keys to navigate and the power key to select and confirm.
7. Select “reboot system now”/"立即重启系统" after the installation finished.
OTA (Over-the-Air) - Coming later today
1. Open Settings
2. Under "General" scroll down and select "About phone"
3. Select "System update" at the bottom
4. Press "Check for updates"
WARNING: If you have rooted your phone OTA firmware updates will not work!
// THE NEXT STEP //
Do you have any comments or suggestions on this firmware version? Help us improve the firmware with [ Bug Reports ] and [ Suggestions ].
// DOWNLOAD //
Filename: X909EN_12.A.06_OTA_GLO_006_all_svn2611_wipe.zip
File size: 666.1 MB
MD5 Checksum: 148bdb8716b03795f848d2849f71021c
Download: [ CLICK HERE ]
Source OppoForum
They just released the OTA
Sent from my Nexus 7 using xda premium
There is already a thread for this rom. Please continue the discussion there
http://forum.xda-developers.com/showthread.php?t=2202363
Thread Closed :angel:

[APK][alpha001] BrightTime

BrightTime
GitHub link for ease of reading and downloading...
Download Here
BrightTime adjusts your Android screen's brightness based on the time of day.
This improves your phone's battery life
Other projects like Backlight! make it easier to manually adjust your brightness settings to save power, but BrightTime completely automates this process.
Your phone will know the optimal brightness setting and adjust it for you.
The default install is suitable for most users, but advanced users can thoroughly customize the schedule.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Installation
BrightTime is easy to use. Currently, BrightTime requires Android 5.0.2+.
From your desktop:
1. Click here and click the `Begin Download` button.
2. Connect your phone to your computer and open its internal storage or SD card.
3. Locate the downloaded BrightTime-xx.apk file and move it to your phone directory.
4. Locate BrightTime-xx.apk on your phone and click it to begin installation.
5. Click Install and either Done or Open on the following screen.
From your phone:
1. Click here and click the Begin Download button.
2. Open your notification bar and click the downloaded BrightTime-xx.apk file.
3. Click Install and either Done or Open on the following screen.
Adjusting the schedule
BrightTime comes with default settings that should be good enough for most users.
Advanced users can follow these directions to change your settings.
BrightTime uses points that allow users to set times at which the brightness changes.
To create a point:
1. Tap on the +, the circular pink button at the center bottom of the screen.
2. Select your desired time and brightness.
3. Once finished, click the Confirm button. Point added!
4. You will return to the main screen where your added point will appear on the list by time.
5. Your screen brightness will now change according to the brightness and times you have set.​
To edit delete a point:
1. Tap on the point you created previously.
2. Delete the point altogether using the Delete button.
3. Modify any settings for that point and press Confirm to save changes.
4. To discard and go back, tap your Back button at either the top or bottom of your screen.​
Future Goals
• Allow users to Undo changes or deletion of their points.
• Clean up UI, icon, and code to fit Google's design guidelines and code style guidelines
• Support for Android Jelly Bean (4.1 - 4.3.1) and KitKat (4.4)
Building & Developing
The easiest way to build is to install Android Studio. After installation, you can import the project into Android Studio:
1. Download the project into a working directory.
2. Open Android Studio, click Import Project
3. Locate your working directory to import.
4. Click OK
5. Importing and building will be automatic via Gradle.
Contact Us
Feel free to leave an issue or email us at [email protected].
Wait KitKat version

Disable swipe-up lockscreen?

How do i disable the swipe-up lockscreen? I don't see anything in settings to disable it.
peachpuff said:
How do i disable the swipe-up lockscreen? I don't see anything in settings to disable it.
Click to expand...
Click to collapse
You want to got rid of this lock screen?
Using Activity Launcher:
1. Install Activity Launcher from Google Play or APKPure
2. Open Activity Launcher
3. Scroll down, select Settings and find the activity Settings$ScreenLockSuggestionActivity
4. If in lock screen settings, select None
Or if didn't find, try another way:
Disable via ADB:
1. Enable ADB in developer options
2. Connection your Fire tablet to your PC
3. Enter this command
Code:
adb shell
settings put secure lockscreen_disabled 1
4. Reboot
Code:
adb reboot
Or you want to watch a full tutorial on YouTube:
Disabling it via adb didn't work for me on Fire HD 10 2019.
Setting Keyguard to off in Tasker works for about a day. Running the task on device boot, you may need to wait a few seconds, and then running it every few hours should keep it off.
AmznUser444 Dev said:
You want to got rid of this lock screen?
Using Activity Launcher:
1. Install Activity Launcher from Google Play or APKPure
2. Open Activity Launcher
3. Scroll down, select Settings and find the activity Settings$ScreenLockSuggestionActivity
4. If in lock screen settings, select None
Click to expand...
Click to collapse
That did the trick, tried the adb thing before but it didn't work.
activity launcher helped me to get rid of the lockscreen. Unfortunately, I tried the ADB command before, this did not work and either disabled the activity entry. So i had to revert the ADB command with value 0. But anyway, thx a lot for the hlp here in the forum.
peachpuff said:
How do i disable the swipe-up lockscreen? I don't see anything in settings to disable it.
Click to expand...
Click to collapse
For what it's worth, this is a copy & paste which is my solution for non-rooted devices:
I use the Gravity Screen app on a non-rooted Fire HD10 (2019) which uses motion to unlock/ wake up the device which you can get here.
I have the app set up to "Turn Screen ON by Motion" and under it's "Special Settings", I have "Disable Lock Screen" checked:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
What worked for me on my 8th gen HD 8 was:
Step 1: Disable screen unlock in the official system settings:
Step 2: Run this:
Code:
adb shell locksettings set-disabled true
I got some error messages from locksettings once when I was trying this. If that happens to you, try this more elaborate version:
Code:
adb shell
settings put global LOCKSCREEN_AD_ENABLED 0
settings put secure lockscreen.disabled 1
locksettings clear
locksettings set-disabled true
exit
Interestingly, after a reboot LOCKSCREEN_AD_ENABLED goes back to 1 and lockscreen.disabled goes back to 0, but the lockscreen stays disabled.

Categories

Resources