[APP][ONEUI4] Flashlight as keycombo - Samsung Galaxy S21 Themes, Apps

FlashlightAccessibilityService​
I provide here this basic app to toggle flashlight from vol up + vol down and/or power + vol up.
It uses a new feature introduced with Android 12 to toggle accessibility services from these key combos.
How to use:
Install the app.
Go to Settings app, then Accessibility, and Advanced settings.
Select your key combo, then go down and select Activate flashlight.
Enjoy!
Requirements:
Since it is an Android 12 exclusive feature, this will only work on One UI 4.
To get a proper cohesion between this app and the quick setting flashlight tile.
You should consider, but it is not mandatory, to give WRITE_SECURE_SETTINGS permission to this app.
Here it is only used to read secure settings but we need the permission as well.
To do that, two choices:
Using ADB :​adb shell pm grant com.android.flashlightaccessibilityservice android.permission.WRITE_SECURE_SETTINGS​Using terminal app (as Termux) :​pm grant com.android.flashlightaccessibilityservice android.permission.WRITE_SECURE_SETTINGS​
Changelog:
v1: Initial release
v1.1 : Drastic size reduction (removed unneeded dependencies + build optimisation)
v1.2 : Proper handling between the key combination and the quick setting torch tile

Great work!

good job

Great, I've tried it on my old Galaxy S10e and it worked well. So far I found it's more convenient to use build in One UI4 feature to toggle flashlight using double tap the power button on my Galaxy S21.

3arthur6 said:
FlashlightAccessibilityService​
I provide here this basic app to toggle flashlight from vol up + vol down and/or power + vol up.
It uses a new feature introduced with Android 12 to toggle accessibility services from these key combos.
How to use:
Install the app.
Go to Settings app, then Accessibility, and Advanced settings.
Select your key combo, then go down and select Activate flashlight.
Enjoy!
Requirements:
Since it is an Android 12 exclusive feature, this will only work on One UI 4.
To get a proper cohesion between this app and the quick setting flashlight tile.
You should consider, but it is not mandatory, to give WRITE_SECURE_SETTINGS permission to this app.
Here it is only used to read secure settings but we need the permission as well.
To do that, two choices:
Using ADB :​adb shell pm grant com.android.flashlightaccessibilityservice android.permission.WRITE_SECURE_SETTINGS​Using terminal app (as Termux) :​pm grant com.android.flashlightaccessibilityservice android.permission.WRITE_SECURE_SETTINGS​
Changelog:
v1: Initial release
v1.1 : Drastic size reduction (removed unneeded dependencies + build optimisation)
v1.2 : Proper handling between the key combination and the quick setting torch tile
Click to expand...
Click to collapse
It work without root on my galaxy s21 Fe? It have One Ui 4 Android 12. Thanks

I installed the app on S21 with One UI 4.1 April 2022 patch without giving the write permission on ADB, the flashlight doesn't work as intended. It could only be toggled on in Settings->Accessibility->Installed App, so it's basically useless. And flashlight will auto start when phone restarts.

Related

[APP][Android 4.0+][Xposed Torch] Through Home or Volume UP Button

This is a Handy Torch through Volume UP button, it lets you turn ON the Flashlight by a Long Press on the Volume UP Button while screen if OFF, and turn it OFF by Volume down or Home button or a Screen ON action (Power).
Features:
- Customize Long press delay to run the Flashlight
- Customize Flashlight timeout
- Run the Flashlight even while Music is ON
How to install:
1- Install Xposed Installer (http://dl.xposed.info/latest.apk)
2- Install Xposed Framework through Xposed Installer App
3- Download Xposed Torch (Link bellow)
4- Enable Xposed Torch module on the Xposed Installer modules
5- Reboot your device
Download.
Required permissions:
- Camera and Flashlight for the Torch
Thanks to @rovo89 and @Tungstwenty for their awesome work on Xposed framework.
Change-log:
1.7.7:
- Acquire a wake-lock for 3 seconds to make sure the Torch is turned Off properly
- Ability to open the application from the modules list even if you hide it from the launcher (Thanks to Jclehner)
- Minor bug fixes
1.7.4:
- Add back Home button option with a few improvements (it may still cause a few delay on Touchwiz Lock screens)
- Make Volume UP button optional
- Fix Pair Volume UP/Down triggering the Torch
- Make the vibration optional (i recommend to use it for intentional Buttons long press)
- Removed some debug code
- Few other fixes
1.7.2:
- Disable Torch triggers while making Calls
- Transparent Torch activities
- Improved Torch response
- Vibrate while launching the Torch
1.7.0:
- Removed Torch helper, not needed anymore.
- Ability to run the Torch even on deep sleep.
- Removed Home button option, this feature causes some wake-lag on Touchwiz Roms.
- Many other stability fixes
1.5.0:
- Turn On Torch through Home button (if available) long press
- Turn Off Torch through Home button press without turning On the screen
- Remove Torch App for recent Apps history
- Few other fixes and improvements
1.4.2:
- Improve Flashlight releasing
- Fixed some options dependancies
1.4.1:
- Fixed 5 seconds long press delay
- Add an option to remove my App Ads
- Acquire a Wake-lock for 3 seconds to properly release the Camera Flashlight
- Added Korean translation (Thanks to Splendid)
- Few other fixes
1.4.0:
- Add Russian translation (Thanks to Termit901)
- Add a Torch helper option to prevent the device from going into a deep sleep
1.3.2:
- Arabic and French translations
- Few improvements.
1.3.1:
- Fixed a Wakelock leak (a Wakelock is acquired for 1 second only to wake up the device from deep sleep)
- Add a delay option for the Long button press before launching the Flashlight
- Add an option to run the Flashlight even if the Music is ON (this feature supports the default Player only!)
- Few other improvements
1.1:
- Add option to Automatically turn off the Torch
- Turn Off Flashlight through Volume Down Press
- Add option to Hide App from App drawer
1.0: Initial release.
Nice. Running now
Sent from my SM-N900T using Tapatalk
Works fine in I9505 with KK, great job Wanam, thank you
works perfectly on S4 KK
Hi...works perfect in sgs4 kit kat..
Thanks...
Best Regards
Enviado desde mi GT-I9505 mediante Tapatalk
Very nice, works on my Xperia Z. Do you think you could maybe make it so holding the volume button again, turns it off? and perhaps a safety thing so if it accidentally somehow turns on in your pocket, you can set a time to it auto turns off after 1-5 mins or something.
Works perfectly on Note II 4.1.2. I support Kocayine ideas in previous post.
Sent from SGNII using Tapatalk 4.4.4
Thanks man Works perfectly on galaxy grand 4.2.2. It would be better if it turn off by volume down instead of home buton.
sumit227 said:
Thanks man Works perfectly on galaxy grand 4.2.2. It would be better if it turn off by volume down instead of home buton.
Click to expand...
Click to collapse
+1
Vol down short press (or vol up short press) to switch off torch would be perfect!
Also, could there be an option to automatically limit the duration of torch ON? With choices like 10sec, 30sec, 1min, 2min and infinite?
Thanks for consideration!
Would it be possible to add an interface that let's you choose how long it takes for the torch to come on? I listen to music on my phone all the time, and it's comes on occasionally when long pressing to increase volume.
Working on note2 with 4.3
Sent from my GT-N7100 using Tapatalk
Cool Thanks!
HTC EVO 3D w/ ICS 4.0.3
--
Gesendet mit HTC EVO 3D and Tapatalk
After actionning once the torch, there is a wakelock which prevents the phone to go deep sleep... android.app.ContextImpl
New update 1.1 posted:
- Add option to Automatically turn off the Torch
- Turn Off Flashlight through Volume Down Press
- Add option to Hide App from App drawer
Sent from my GT-I9505 using Tapatalk
Not working on Xperia Z1
Not functioning
This module does not work on the Verizon LG G2. I would love to have this option.
Looki75 said:
After actionning once the torch, there is a wakelock which prevents the phone to go deep sleep... android.app.ContextImpl
Click to expand...
Click to collapse
Wakelock still there with v1.1... Is it app related, or hardware / phone / rom related?
Tested and working great, been looking for a flashlight app to exactly this. Thank you.
JennyLikesSka said:
Would it be possible to add an interface that let's you choose how long it takes for the torch to come on? I listen to music on my phone all the time, and it's comes on occasionally when long pressing to increase volume.
Click to expand...
Click to collapse
Planned on v1.2.
Looki75 said:
After actionning once the torch, there is a wakelock which prevents the phone to go deep sleep... android.app.ContextImpl
Click to expand...
Click to collapse
I posted v1.1 before reading your post, it's been fixed on v1.2.
Celestial Fury said:
Not working on Xperia Z1
Click to expand...
Click to collapse
royboy331 said:
This module does not work on the Verizon LG G2. I would love to have this option.
Click to expand...
Click to collapse
Any error logs on the Xposed Installer logs tab?

[MOD] Xposed Additions mod: More versatile buttons

This post has several sections:
* Brief description of the mod, background
* General mod information
* History for the change
* TrueSmart specific hints
Remap/add buttons on the TS: Assign keys or actions to key long press/click for single/double/triple buttons, including button combinations.
The TS only has two HW buttons. Both are mapped in such a way that they cannot be used by apps.
To use apps in cold and wet conditions, we need HW buttons in the apps.
Gestures like shake etc can to some extent be used, but sensors eat battery and are not as precise as buttons.
It is possible (with root) to change mapping of buttons to they can be used in apps, but that do not increase number of buttons (Home and Power is still needed somehow too).
I had expected that key combinations to be configurable in the default ROM, so combinations of key presses can be translated to Android standard buttons.
The button configuration can however be achieved in the Xposed Framework that injects hooks at a very low level in the operating system. I looked at some of the modules that provides button mapping, but they were not as complete as I would wish, so I adapted an existing module.
The Xposed Additions module modifications is not specific to the TrueSmart, but it is likely primarily interesting for the TrueSmart.
General mod information
Requirements:
* root
* backups recommended
Xposed Framework installation instructions:
http://forum.xda-developers.com/showthread.php?t=1574401¨
Note: Xposed is included with Lokifish Mars EnSec patch.
Xposed-additions mod:
http://web.comhem.se/gerhardo/ts/XPosedAdditionsGB.apk
This has Pro features temporary unlocked
Xposed-additions thread on xda:
http://forum.xda-developers.com/showthread.php?t=2294274
This mod will hopefully be merged to mainline by dk_zero-cool, until then the changes should be discussed here.
Source on GitHub:
https://github.com/gerhardol/xposed-additions
Planned:
* Custom key: I would like to use any key (especially more than available in Screen off). (workaround is to add any key, then edit shared_prefs)
Other:
This modification is signed with other keys than the original mod, so you have to uninstall the original mod to install this mod. Actually, you may even have to uninstall this mod if the test keys are replaced with standard keys.
The long-long press handling requires a little training to get used to. You probably do not want to have for example kill application and Camera on the same long press and Click too. I have Back on click and Home on long press and it works fine with about a second to get Home (and you get home from Recent apps too).
Note: This module could have conflicts if used together with the GravityBox module, that adds many other useful functions like pie menu. (GravityBox also have HW mapping functionality, but that was hard to adapt to the TS needs). I had some occasional problems with mapping Volume buttons on the phone I tested with. If this is a permanent problem, the modules must be integrated tighter.
History for the mod
See the original thread for details of the changes to the original module
2015-03-09: 3.5.2.1
* Synced with 3.5.2: Should work with Lollipop with enforced SELinux (this build is not tested in Lollipop though).
2015-02-22: 3.5.0.2
* App shortcuts did not work in 2.5.0.1
2015-02-21: 3.5.0.1
* Lollipop compatible, based on original module conversion.
Note: you will have to recreate the App Shortcuts after upgrading. The original author used the app shortcuts implementation, but store the data slightly differently, I aligned to that.
2015-01-31: 3.4.1.11
* Key mapping with app conditions: Add configuration to use default (screen) condition if no action set for a key click/press and repetitions combination. This makes it possible to handle app conditions as overlay to screen on.
2015-01-05: 3.4.1.10
* Only handle key conditions that matches. This module does not handle keys and key combinations that are not configured. However, previously it handled (possibly with default handling) keys also if there were no conditions that matched. This could for instance occur if a key only had onscreen condition, the module handled the key also in offscreen. Another example if a key had an app specific condition only.
2015-01-02 3.4.1.9
* Invoked keys: Do not delay first down until up or long-long timeout. No big difference as (most) action first when up/timeout anyway, but for instance Volume mapped to longpress gave problem to change just one step.
* Allow Camera, Back remap also when screen off. May be remapped in apps, even if keys make no sense by themselves
* Only run default action for secondary in a combo, ignore default action for primary key. Order could be maintained anyway when aborted and default Long-press would give alternating longpress for both, the behavior was inconsistent.
2014-12-29 3.4.1.8
* Unconfigured keys did not execute default handling, which affected feedback for some situations (configured keys still require handling).
* Callcode configuration was not overriding default action
*Do not turnon screen for (especially default) keys, can cause wakeup problems
2014-12-28 3.4.1.7
* Support for app shortcuts
2014-12-28 3.4.1.6
* Unconfigured keys was not always executing other steps when dispatched
2014-12-28 3.4.1.5
* Handling of wakeup keys (screen off) other than Power
* Gingerbread corrections (still untested)
* Combo: Always ignore primary key
2014-12-23 3.4.1.4
* The key/combo handling is updated. When a new key is pressed, check if there is any action for the key. If there are no actions for a single key, delay only if there are combo events configured for the key configuration. Just zip through unconfigured keys.
- When a new down key is pressed, the module checks if a combo is configured if there are an ongoing event
- Primary combo keys no longer requires explicit configuration (check unconfigured primary key).
* Easier to perform combo key actions, previously all action had to be done in the first long press timeout.
* Preserve the original key event when default invoking. Default invoking for keys with "meta" state should work better.
* If primary key in a combo is released, end the combo directly as if secondary is released. This changes the behavior of this mod, to be the same as the original version.
* Modified banner for Pro version.
This is a a relative large change to the state handling for keys, especially for combo keys. The changes should simplify maintenance of the "long-long press" handling.
Note especially that this is untested on Gingerbread. I have no GB devices, unless there are confirmations that it is working or there are simple changes, I plan to drop GB support.
2014-11-30 3.4.1.3
* Extend Pro license without time limit, but kept banner "Get Pro version for more features".
* Set defaults for "external devices" to allow, as for instance MediaTek devices requires the setting.
* Do not await multi-key events for keys that are not configured for single key events. This avoids the processing delay for unconfigured keys. It is possible to check the unconfigured keys to, by mapping them to default or by enabling "Check Unconfigured Primary Key".
2014-10-17 3.4.1.2
* Pro license extended to 2014-12-31
2014-08-17 3.4.1.1
* Based on 3.4.1, see the main module for changes. Some of the specific changes are adapted in 3.3/3.4.
* Reset when pressing Power is set to 15s (8s in 3.4.1).
* Make it possible to execute multi key preferences with the complete sequence
* Increase max for long-press/click timeouts (especially 200ms for click is too short for the TS)
* Patch to SeekBar for long-press/click handling (to avoid printouts in the log)
* Pro license extended to 2014-10-17
Some changes in the mod has been aligned with the main app (most of the proposals have been rejected for inclusion).
- Data storage is same as in main mod. So you can keep the data when switching plugins, but you must migrate your key mappings from 3.2.2.8
- Change Click/Long press settings after update (If previously using Default or Click follow long-press)
- Not allowing all devices by default. You have to allow external Keyboard and Gamepad for the TS.
- Previously all keys+app launch+actions were allowed with screen-off or lock screen. Tasker Actions can be used instead
- Last/Previous app switched to the last app in the list. The switch is now to last app not exited (i.e. switched with Recent Apps or Home, not exit to launcher with Back).
- Multi key mapping can be done with repeating secondary only (not by repeating primary only)
- Feedback on long-press, long-long-press for key must be enabled in the settings file: Set enable_longpress_feedback to true in /data/data/com.spazedog.xposed.additionsgb/shared_prefs/config.xml
- The mod previously did not execute default actions if multi was set to default as it is confusing: Should it be one or many? Then what is multi long-press default? The mod follows the 3.4 beavior with one default action.
- Keys without any actions are not pass-through directly, the handling is always delayed. The mod handling required that multi-key also had single actions (reasonable for me but rejected).
- Unconfigured wakeup keys (like Home on some devices) must be explicitly mapped in Screen-off.
---
2014-07-12 3.2.2.8
* Long-long-long power press: vibrate to announce pending reboot
* Avoid reboot for <= 4.1, when when toggle to closed application or launching apps.
2014-06-20 3.2.2.7
* Always activate the screen for Power when screen is off. Was not done for unconfigured Power keys.
* ToggleLastApp did not start most recent activity (visible in recent apps) if it was not running. This led to confusing behavior as some apps stop running when exiting with back, other not.
* Extend Pro license to 2014-08-31
2014-06-14 3.2.2.6
* Press Power for 15s to reboot the device. This is built in most ROMs (8-12s), but not the Umeox x201 series.
2014-06-08 3.2.2.5
Bug fixes:
* Toggle app could reboot the device
* Unconfigured wakeup keys (like Home) did not wakeup the device
2014-05-04 3.2.2.4
Bug fixes:
* Xposed Additions did not work in some ROMs (SlimKat) "showGlobalActionsDialog" missing
2014-05-04 3.2.2.3
Bug fixes:
* Certain combinations of key events could give incorrect handling for key up and even both click and long press (this could also occur in the standard module, not just the mod).
* Additional Haptic feedback long-long press
2014-04-25 3.2.2.2
Bug fixes:
* Power key required mapping to wakeup/shutdown
2014-04-12 3.2.2.1: Based on 3.2.2
New:
* New keys: Double long press, triple long press and triple tap
* Holding a button after long press trigger long press on invoked button after another 2*long press.
Then it is possible to map Home to long press to long press, get recent apps after 3*initial down.
* Multi-key actions only require secondary button at first press, then only primary is needed.
* Possibility to set press/tap timeout to system default and tap to press timeout. If tap/press do not match, actions may be neither press nor tap.
No change but clarification: Default only applies to single long-press, single click, not any other key. (how to explain double tap creates single click?)
Email log emails to me rather than the original author.
Bug fixes:
* Invoked button should have the initial down time.
* Key invoked key kept down had no limit on inject key rate (could be several per ms in the emulator).
* Up event was not sent for secondary button, only primary.
* If a key was unmapped, the mod still inserted a delay to relay key down. Normally this makes no difference as applications wait until confirmed long press/click anyway.
Extra in this release:
* Enabled all actions in all situations, i.e. app launch when screen is off, all key insertions, all special actions. This will likely be removed if app shortcuts and custom keys are supported. Launch apps when screen is off normally requires that screen is turned on manually.
---
2.3.x:
A previous modification here, with minor changes: https://plus.google.com/107109556238544025767/posts/X6786oAd7so
While that change was fixed and enhanced, the author existing module was rewritten, so my changes had to be rewritten too.
TrueSmart Specific
Example of setup. I want to use this in IpBike, that can use buttons like Vol+, Vol- and Camera to control the app.
Double Click Delay: 250ms
Long press delay: 300ms
All conditions are onscreen, except where noted.
Home:
* Single:
- Long-press: Home (long-long press is Recent apps)
- Click: Back
* Double:
- Long Press: Vol-
- Click: Last application
* Triple:
- Long Press: Menu (long-long press search)
- Click: Media previous
Home, offscreen:
* Single:
- Click: Power This is not needed to wake the device since 3.4.1.10, but it gives haptic feedback at wake.
Power:
* Single:
- Long-press: Power
- Click: Camera
* Double:
- Long Press: Vol+
- Click: No Touch (app, configured to toggle)
* Triple:
- Long Press: Zoom out
- Click: Media next
Power-Home combinations:
* Single:
- Long-press: Oclock
- Click: Llama Shortcut for IpBike (GPS, screen timeout etc, then start IpBike)
* Double:
- Call
- Click: Camera Zoom FX
IpBike setup:
Workout Next Key: Vol+
Zoom out: Zoom out
Zoom in: Long press zoom in
Start Sensors: Long Press Vol-
Start Trip: Vol-
Lap: Back
Screenlock: Long Press Menu
TTS feedback: Camera
Next Screen: Media next
Prev Screen: Media Prev
Thanks for the wonderful modifications! Works like a charm.
I've mapped my buttons slightly differently. With the setup above I found myself wondering which combinations were mapped to which action during normal use, so I just wanted to keep things simple to start with.
Home
Screen on
Long press: Home
Click: Back
Double Tap: Last App
Triple long press: Kill App
Screen off
Click: Power
Double Tap: Unlock Device (bypass "swipe" lockscreen)
Power
Screen on
Long press: Power menu
Click: Power
Double long press: Camera
Screen off
Same as Home button for simplicity
Thanks for sharing your modded version. Works great and haven't ran into any problems but wish I could add any custom actions into the application. If possible could someone please take the time to write a guide on how to do so? By far this is one of the most useful Xposed modules created yet.
Antitype said:
Thanks for sharing your modded version. Works great and haven't ran into any problems but wish I could add any custom actions into the application. If possible could someone please take the time to write a guide on how to do so? By far this is one of the most useful Xposed modules created yet.
Click to expand...
Click to collapse
You can add applications, but do you mean App Shortcuts?
The major problem there is that App Shortcuts are not documented, especially from the "XPosed Additions" point of view, similar to those of launchers.
The original author said he was working on it. I have taken a look, that is not trivial.
A solution could be to use Tasker and the App Factory to create applications of shortcuts.
gerhardo said:
You can add applications, but do you mean App Shortcuts?
The major problem there is that App Shortcuts are not documented, especially from the "XPosed Additions" point of view, similar to those of launchers.
The original author said he was working on it. I have taken a look, that is not trivial.
A solution could be to use Tasker and the App Factory to create applications of shortcuts.
Click to expand...
Click to collapse
I have used Tasker and App Factory to create shortcuts. It's a little bit slower than what I had in mind but it does work. I had hope to just be able to map any key to the button, like; "Alt-Tab", or something. Possible to implement? If possible would love to see a version of this in XPosed Additions.
Since version .5 the display constantly turns off when I turn it on with the power button, the power button is remapped while screen off for double click and long click, unfortunately the haptic feedback works not on version .4
xXYoshiXx said:
Since version .5 the display constantly turns off when I turn it on with the power button, the power button is remapped while screen off for double click and long click, unfortunately the haptic feedback works not on version .4
Click to expand...
Click to collapse
The workaround is to map click to Power.
Will change the handling in next version, committed a change. It is a delicate matter to handle the Power key, a lot of workarounds. Cant be sure this is the last change.
There is haptic feedback on earlier versions, but .4 adds extra feedback for the "virtual inserted" keys.
I mapped long power when screen off to camera and it works, but without unlocking phone
Is that possible to unlock locked phone when maped app are started?
Also i brought the full version, but i whant to use your mod (not original app). Will it work after 30.06?
I does not work for me
gerhardo said:
Requirements:
* root
* backups recommended
Xposed Framework installation instructions:
http://forum.xda-developers.com/showthread.php?t=1574401¨
Note: Xposed is included with Lokifish Mars EnSec patch.
Xposed-additions mod:
http://web.comhem.se/gerhardo/ts/XPosedAdditionsGB.apk
This has Pro features temporary unlocked until 2014-06-30
Xposed-additions thread on xda:
http://forum.xda-developers.com/showthread.php?t=2294274
This mod will hopefully be merged to mainline by dk_zero-cool, until then the changes should be discussed here.
Source on GitHub:
https://github.com/gerhardol/xposed-additions
Planned:
* The original author has planned to add support for App Shortcuts. Then for instance Llama shortcuts can be mapped to execute a series of events.
* Custom key: I would like to use any key (especially more than available in Screen off).
Other:
This modification is signed with other keys than the original mod, so you have to uninstall the original mod to install this mod. Actually, you may even have to uninstall this mod if the test keys are replaced with standard keys.
The long-long press handling requires a little training to get used to. You probably do not want to have for example kill application and Camera on the same long press and Click too. I have Back on click and Home on long press and it works fine with about a second to get Home (and you get home from Recent apps too).
Note: This module could have conflicts if used together with the GravityBox module, that adds many other useful functions like pie menu. (GravityBox also have HW mapping functionality, but that was hard to adapt to the TS needs). I had some occasional problems with mapping Volume buttons on the phone I tested with. If this is a permanent problem, the modules must be integrated tighter.
Click to expand...
Click to collapse
In my Omate Truesmart 1900 I have installed xposed Framework and have installed xposed additions and try to map buttons to the camera but it did not work. What I am doing wrong? Thanks
rdefranx said:
In my Omate Truesmart 1900 I have installed xposed Framework and have installed xposed additions and try to map buttons to the camera but it did not work. What I am doing wrong? Thanks
Click to expand...
Click to collapse
What are you trying to do?
You can start a camera app with a button or combination and the Camera button to take pictures (only implemented in some apps).
See my setup for details.
b2rdetor said:
I mapped long power when screen off to camera and it works, but without unlocking phone
Is that possible to unlock locked phone when maped app are started?
Also i brought the full version, but i whant to use your mod (not original app). Will it work after 30.06?
Click to expand...
Click to collapse
I consider launching apps when screen is off as temporary for this kind of issues. Some may want to start the screen, other will not.
If the app could map to App Shortcuts, you could map Llama/Tasker events to buttons and do what you prefer.
So I do not plan anything else right now.
The latest build is unlocked until 2014-08-31. I am not involved in the Pro version but plan to release version until "suffiently changes are merged".
gerhardo said:
What are you trying to do?
You can start a camera app with a button or combination and the Camera button to take pictures (only implemented in some apps).
See my setup for details.
Click to expand...
Click to collapse
Hi, what I am trying to do is start the camara app from the home button in the truesmart if it is possible with a double click. I added the new button in xposed aditions, added the condition (when on or off), then selected the app (camera). I tried but it doesn't work. Thanks.
Personally I have set up my TS to use almost no button presses at all, in the interests of minimising the wear on the moving parts (and their water resistant components if any).
Using the "All In One Gestures" app you can add four corner swipes and one swipe from the bottom (given that left and right swipes are already used by the TS, and the downswipe is probably already used for notifications). So that's five extra "buttons", if you like.
On mine I've set up the top right and bottom right corners to replicate the functions of the adjacent buttons to avoid using them but of course you could continue to use the buttons if desired, and use those corners for other functions.
rdefranx said:
Hi, what I am trying to do is start the camara app from the home button in the truesmart if it is possible with a double click. I added the new button in xposed aditions, added the condition (when on or off), then selected the app (camera). I tried but it doesn't work. Thanks.
Click to expand...
Click to collapse
Works fine.
Long or double click.
Off works too but with locked screen.
rdefranx said:
Hi, what I am trying to do is start the camara app from the home button in the truesmart if it is possible with a double click. I added the new button in xposed aditions, added the condition (when on or off), then selected the app (camera). I tried but it doesn't work. Thanks.
Click to expand...
Click to collapse
Are you sure you did not add the Camera button?
That button you can use to take pictures in some apps. (I use Camera Zoom FX since long, there are others with Camera support.)
The stock Camera app on the TS has no shortcut on my device. It is the same app as Gallery, but then you have to switch to the Camera in Menu. Start the app in Camera mode can maybe be resolved with a shortcut, somehow.
Ozpeter said:
Personally I have set up my TS to use almost no button presses at all, in the interests of minimising the wear on the moving parts (and their water resistant components if any).
Click to expand...
Click to collapse
It all depends of what you want to use the TS for.
As a sports device, buttons are essential. I tend to use the buttons more and more, also when I can use the screen.
The TS has potential, but unless the firmware is fixed button wear is my smallest problem.
gerhardo said:
Are you sure you did not add the Camera button?
That button you can use to take pictures in some apps. (I use Camera Zoom FX since long, there are others with Camera support.)
The stock Camera app on the TS has no shortcut on my device. It is the same app as Gallery, but then you have to switch to the Camera in Menu. Start the app in Camera mode can maybe be resolved with a shortcut, somehow.
Click to expand...
Click to collapse
Hi, I don't know but I have a camera shortcut in my TS. Well, if anyone can tell me what are the steps to do this correctly I will appreciate. Thanks for your replies.

Android one app disabling,bixby key

Is there anyway to disable apps? I remember on my note 9 being able to. Also is there anyway to change the bixby key to another action ?
Disabling apps - If they can be disabled normally then find the app under settings > apps and then click on the disable button. If you can't disable them normally either a 3rd party app can do it for you or else use ADB to disable the app. With the ADB method you need to have it installed on your computer, your phone setup and connected to the computer by USB cable, and the application package name you wish to disable.
The command you use in ADB would be along the following:
Code:
pm disable-user --user 0 {enter package name here}
So to disable the bixby wakeup service you enter:
Code:
pm disable-user --user 0 com.samsung.android.bixby.wakeup
I would suggest you disable apps using a 3rd party app to make things easier and simpler. I would suggest not uninstalling/removing apps via adb. If you remove the wrong thing you could end up creating more problems then solutions.
Remapping bixby key - You can also use 3rd party apps to do this. With the latest release of Bixby you can do this easily.
Open Settings > Advanced features > Bixby Key
Select single press or double press
If it isn't toggled already toggle the option under the single or double press selection you made. Then proceed to tap on the option you just toggled to open a new menu.
You can choose to open an app or run a quick command. Tap the gear icon to make the applicable selection(s)
Alternatively the website below can be used as a tutorial with pictures:
https://www.digitaltrends.com/mobile/how-to-remap-the-bixby-button/
Notes: There is a restriction with this option. While it does not actually disable bixby it does allow you to map it to either a single or double press.
Also you can not use a competing voice app when using this method of remapping the bixby key. That being said you can work around this by using an app like tasker which has a "Tasker Secondary" app feature. You create a task in tasker to open Google Assistant (for example) and set this to trigger when the Tasker Secondary app is opened.
I personally use that option with Google assistant since I run tasker for other things as well. I have bixby set for double press, but I rarely if ever use it. Single press launches the tasker secondary app, and holding the bixby button in lets me use bixby voice commands.

[App] sideActions - Remap the Power / Bixby button on S20!!

With sideActions you can easily remap the Power Button on your Galaxy S20 to any action or app you like!
Use the Power Button to mute your phone, turn on flashlight, launch Google Assistant or take a screenshot with just one click!
Optionally you can remap the volume buttons to Skip tracks when listening to music, or whatever you like!
With per app remapping! Use the Power Button / side key to take pictures in camera apps, take screenshots in browser and start flashlight when the screen is off!
To unlock best remapping experience a special permission is needed which can easily be unlocked with the included Windows app or manually via adb if you like!
FEATURES:
• Double and long press supported!
• Remap the Power Button / side key on Galaxy S20!
• Launch Google Assistant with the Power Button
• Remap the Volume buttons!
• Per app remapping
• Turn on the flashlight with the Power Button
• Disable the Power Button
• Skip tracks with the volume buttons
• High performance! No lags!
• No annoying ads
ACTIONS:
• Turn on flashlight
• Take a screenshot
• Mute phone
• Answer phone calls
• Launch Google Assistant
• Launch camera or any other app
• Switch to last app
• Disable the Power Button
• 35+ actions
NOTES:
• You can remap the Power Button / side key on your Galaxy S20
• Samsung may block this app with future updates!
• Please check if sideActions is compatible before updating Bixby or phone software!
DOWNLOAD:
Forum download:
soon
Reserved
You're awesome, man, I thought I was going to miss my Bixby button, but then you stepped in and had this available day one when I got my phone! Thank you
Patiently waiting impatiently
Is there a way to keep the screen from turning on while using this with the screen off? I double press for flashlight, but the screen always turns on. Thanks.
Jawomo said:
With sideActions you can easily remap the Power Button on your Galaxy S20 to any action or app you like!
Use the Power Button to mute your phone, turn on flashlight, launch Google Assistant or take a screenshot with just one click!
Optionally you can remap the volume buttons to Skip tracks when listening to music, or whatever you like!
With per app remapping! Use the Power Button / side key to take pictures in camera apps, take screenshots in browser and start flashlight when the screen is off!
To unlock best remapping experience a special permission is needed which can easily be unlocked with the included Windows app or manually via adb if you like!
FEATURES:
• Double and long press supported!
• Remap the Power Button / side key on Galaxy S20!
• Launch Google Assistant with the Power Button
• Remap the Volume buttons!
• Per app remapping
• Turn on the flashlight with the Power Button
• Disable the Power Button
• Skip tracks with the volume buttons
• High performance! No lags!
• No annoying ads
ACTIONS:
• Turn on flashlight
• Take a screenshot
• Mute phone
• Answer phone calls
• Launch Google Assistant
• Launch camera or any other app
• Switch to last app
• Disable the Power Button
• 35+ actions
NOTES:
• You can remap the Power Button / side key on your Galaxy S20
• Samsung may block this app with future updates!
• Please check if sideActions is compatible before updating Bixby or phone software!
DOWNLOAD:
Forum download:
soon
Click to expand...
Click to collapse
Thank you!
20degrees said:
Is there a way to keep the screen from turning on while using this with the screen off? I double press for flashlight, but the screen always turns on. Thanks.
Click to expand...
Click to collapse
Thats not possible currently. Dont know why Samsung is doing this...
Thanks for this awesome app! I've been using the licensed version on my Note 9, Note 10 and now S20+, and it works perfectly :good:
Working great thank you.
Sent from my SM-G986B using Tapatalk
Is possible remap botton for galaxy buds +?
Hello!
Pro version here :
Remapping the up and down volume buttons doesn't work with double click : I wanted to allocate double click to volume modes (silent/vibrate/on) but it keeps increasing/decreasing volume.
Long press is working great.
Do I miss something?
Where are the instructions for ADB? I don't have a PC.
rockingondrums said:
Where are the instructions for ADB? I don't have a PC.
Click to expand...
Click to collapse
its in the app, just follow insctructions and click the icons
Hey guys,
I noticed you saying it has no lag, but i tried putting in on flashlight and also google assistant and it had like a 2 second delay. Sometimes even more.
Anything I can do to fix this?
I got the s20 ultra.
patrickeikema said:
Hey guys,
I noticed you saying it has no lag, but i tried putting in on flashlight and also google assistant and it had like a 2 second delay. Sometimes even more.
Anything I can do to fix this?
I got the s20 ultra.
Click to expand...
Click to collapse
Recommend to use the one time PC setup, should be fixed then
hello. very nice app. working like a charm. what I registered is, that the flashlight with vol down key doesn't work with the original samsung clear cover when the cover is closed.
don't know if its fixable
@Jawomo it's works on my S20, I also have a Galaxy Z Flip incoming, do you think it will work on that device too?
[email protected] said:
@Jawomo it's works on my S20, I also have a Galaxy Z Flip incoming, do you think it will work on that device too?
Click to expand...
Click to collapse
Should work, but cant say for sure,
m8980 said:
hello. very nice app. working like a charm. what I registered is, that the flashlight with vol down key doesn't work with the original samsung clear cover when the cover is closed.
don't know if its fixable
Click to expand...
Click to collapse
Which app is this?
what do you mean?

[APP][ONEUI4] Flashlight as keycombo

​FlashlightAccessibilityService​
I provide here this basic app to toggle flashlight from vol up + vol down and/or power + vol up.
It uses a new feature introduced with Android 12 to toggle accessibility services from these key combos.
How to use:
Install the app.
Go to Settings app, then Accessibility, and Advanced settings.
Select your key combo, then go down and select Activate flashlight.
Enjoy!
Requirements:
Since it is an Android 12 exclusive feature, this will only work on One UI 4.
To get a proper cohesion between this app and the quick setting flashlight tile.
You should consider, but it is not mandatory, to give WRITE_SECURE_SETTINGS permission to this app.
Here it is only used to read secure settings but we need the permission as well.
To do that, two choices:
Using ADB :​adb shell pm grant com.android.flashlightaccessibilityservice android.permission.WRITE_SECURE_SETTINGS​Using terminal app (as Termux) :​pm grant com.android.flashlightaccessibilityservice android.permission.WRITE_SECURE_SETTINGS​
Changelog:
v1: Initial release
v1.1 : Drastic size reduction (removed unneeded dependencies + build optimisation)
v1.2 : Proper handling between the key combination and the quick setting torch tile
Big thanks for this very useful app
Thanks

Categories

Resources