How to get a brighter torch (finally) - Sony Xperia XZ1 Guides, News, & Discussion

so I found this app called godly torch. just install this , select oneplus 5 as device , double tap the master switch and boom working super bright flashlight. BEWARE though, I don't know how dangerous or damaging this is so USE AT YOUR OWN RISK.
Download here :
https://forum.xda-developers.com/pi...-torch-control-flash-brightness-t3719833/amp/

Related

[Tasker] "Tasface": Flick-your-wrist shows watchface!

As many of you may know, for newer version of TS (at least for 4th List, May version devices), it's NOT possible to flick your wrist to show watch face since the Accelerator is DISABLED whenever screen is OFF!!!
What an oversight! A smart watch needs you to push a button to see time? What if when you are driving or have both hand full and cannot spare even a finger!?
(My Pebble, on the contrast, works great here!)
I tried to force the screen always on with watch face, it's great, except it kills my battery in around 6 hrs (airplane mode!) Not acceptable!
Thus, Here comes "Tasface". With this, you could achieve:
1. Let TS shows you time WHENEVER you LOOK at the watch! (well, actually when the watch is face up) or when you flick your wrist (You can modify this!)
2. Reduce using your button (if you have an Shortcut supported launcher like Smart Launcher 2)
DISCLAIMER: I will not be responsible if Tasface broke/brick your TS in anyway! Since Tasface is only a set of Tasker profiles/Tasks you can read everything before decide go or not! Tasface DO mess around with system files!
Pre-requests:
===============
1. Your TS must be ROOTED!
2. You need to know Tasker basics! (It's not THAT difficult to use Tasker...)
3. Tasker (Obviously)
4. Watchface by Kurt Huwig (I didn't test other watchface app. May not work with stock lock watchface) https://play.google.com/store/apps/details?id=de.huwig.watchfaces
5. Secure Settings (Required) https://play.google.com/store/apps/details?id=com.intangibleobject.securesettings.plugin
6. Smart Launcher 2 (Optional, any Launchers supports Shortcut will work. With this you can activate Watch face without using button!) https://play.google.com/store/apps/details?id=ginlemon.flowerfree
Set-up
========
1. Have Tasker (required), Watchface (required), Secure Setting (don't forget to install system helper) and Smart Launcher 2 (Optional) installed. DO NOT IMPORT "Tasface" yet!
2. Disable your stock lock watchface: Go to Setting/Personal & Account/Security/Screen lock/None (<-- This IS IMPORTANT)
3. Launch Watchface by Kurt Huwig, than double tap on any watchface to enter setup
  a. check "Keep screen on"
  b. Select desired watchface from "Lockscreen face"
  c. Recommended to disable all other options
4. Check if the Watchface work or not by turn off than turn on your TS by press the upper physical button. You should see the Watchface you selected shows up when screen on. Swipe to return to your launcher and launch Tasker.
5. Unrar and import Tasface into Tasker
6. Close Tasker
7. Turn off --> Turn on your TS with the upper button
8. Profit!
Notes
=======
1. When watchface is displayed:
  a. Touch screen is DISABLED to avoid accidental touch.
  b. Screen will be OFF after 8 seconds (you can setup your prefer time)
  c. Touch screen lock is achieved by putting a transparent Tasker Scene element on top of the Watchface. A small "X" on bottom right screen is used to reactivate the touch screen. You can also push the lower right button (back) to reactive your touch screen.
2. To show watchface (after automatic screen off as Step 1)
  a. Just face the watchface up. The watchface should appear for another 8 seconds
  b. There maybe a 1~2 second delay. This is due to Tasker not detecting the Watchface up event. I cannot do anything about this....
  c. You could change the watchface up to anything else, like "Sensor shake/Backware-Forward"
3. If you have "Smart Launcher 2" or any other launcher supports Shortcut, you can set a icon to task "Lock". With this TS will activate watchface WITHOUT touch physical button. (I heard horrible stories about broken button so want to avoid use them as much as possible!) It's normal the screen will off for 2 second than back on with watchface for 8 seconds!
4. You must wait for automatic screen off or use the "Lock" shortcut to turn off the screen! Tasface will NOT work if you turn off TS by pressing the upper right physical button. This DISABLE the accelerator as mentioned above. To reactive Tasface, just turn on TS by pressing the upper right physical button to show the watchface than wait for automatic screen off.
I wrote this primarily for myself so a there are a lot of bugs. You are free to modify it and make it better. Just let me know if you have any questions and need help or improvement here!
Thanks button is just a click away if I helped you!
Update the attached file to resolve some bugs and improve responseness
Technical stuff -- What is done here?
=================================
It's a bit technical here .... No need to read if you don't care how it works!
Since TS turns off the accelerator whenever screen off, so it's not possible to activate the screen once it's off by external conditions. (You can still set a timer to wake the screen, but it's meaningless)
Thus we need to disable the power hungry backlight while keep the screen on!
I found out that it's possible to control the backlight by doing
Code:
echo 0 > /sys/class/leds/lcd-backlight/brightness
Thus, I set up a Task profile which fires whenever Watchface is activated and TS is face up, to activate the backlight then turn off the backlight again after 8 seconds, but KEEP the TS screen wake! (Only backlight is turned off to save battery!)
Code:
echo 1 > /sys/class/leds/lcd-backlight/brightness
You can change "1" to anything from 1~255. I just found 1 bright enough for me
Since screen/system is always wake, to avoid accidental touch, a transparent Tasker Scene on top of the screen is add to disable the touch screen. A small "X" is on the bottom right to disable this transparent scene if anything goes wrong. (And it does, Tasker is laggy sometimes and too slow to remove this scene automatically!)
I also lower down the CPU cycle to the lowest possible to further saving battery. CPU returns to normal frequency when leaving watch face (into launcher, etc...)
That's all! Folks!
Reserved
Shake
I was able to use application Shake from ADL Dev (com.adl.appshaker) to switch screen on with shake/twist of wrist. You just have to enable "activate when screen off" option - and it is little battery hungry.
Of course I have version 20140513.
I also strongly suspect, that you can force sensors to work when face is off, by switching into "Sports mode" (Run Settings->SMART MODE->Sports Mode)
Piw said:
I was able to use application Shake from ADL Dev (com.adl.appshaker) to switch screen on with shake/twist of wrist. You just have to enable "activate when screen off" option - and it is little battery hungry.
Of course I have version 20140513.
I also strongly suspect, that you can force sensors to work when face is off, by switching into "Sports mode" (Run Settings->SMART MODE->Sports Mode)
Click to expand...
Click to collapse
Thanks for the advice.... I just think since I already have Tasker on my TS, I want to find a way to not to use additional SW which always runs in background to monitor things... Since its battery hungry, maybe Shake also use the same trick as me......
As for Smart mode settings, I tried bdefore but none of them work for flick wrist to wake up... Maybe I missed something?
Sent from my HTC_One_max using XDA Premium HD app
might give this a shot since shake was waking up watch at wrong times and was destroying battery life, and i already have tasker on the watch and running so hopefully that will avoid the battery loss that shake had.
lssong99 said:
As for Smart mode settings, I tried bdefore but none of them work for flick wrist to wake up... Maybe I missed something?
Click to expand...
Click to collapse
I was just guessing, because it suppose to leave GPS and accelerometer working with screen off, to enable sport trackers and pedometers.
If it works? - I haven't tested yet...
Piw said:
I was just guessing, because it suppose to leave GPS and accelerometer working with screen off, to enable sport trackers and pedometers.
If it works? - I haven't tested yet...
Click to expand...
Click to collapse
Wow! It seems you are right! The watch DOES allow sensor to work on Sport mode after screen off, but the response from Tasker become very sluggish when screen-off!
I made a simple profile to detect shake action (if shake than beep), and when screen on, the watch beep in less than one second after shake began, but when screen-off (sport mode), It took Takers 5~6 seconds of continuous shaking to detect the shake event. Not very practical for a watch solution...
With my Backlight solution, although sometimes still hiccup happens, but my feeling is about 90% of time the watchface wakeup correctly...
tasker problems
lssong99 said:
Wow! It seems you are right! The watch DOES allow sensor to work on Sport mode after screen off, but the response from Tasker become very sluggish when screen-off!
I made a simple profile to detect shake action (if shake than beep), and when screen on, the watch beep in less than one second after shake began, but when screen-off (sport mode), It took Takers 5~6 seconds of continuous shaking to detect the shake event. Not very practical for a watch solution...
With my Backlight solution, although sometimes still hiccup happens, but my feeling is about 90% of time the watchface wakeup correctly...
Click to expand...
Click to collapse
i can not import to tasker tasker do not see it
pashka79 said:
i can not import to tasker tasker do not see it
Click to expand...
Click to collapse
Do you mean the Tasker cannot see the prj file?
For how to import project, you could check http://tasker.dinglisch.net/userguide/en/faqs/faq-how.html#q
and you need to put the unrared file (.xml) in /sdcard/tasker/projects for Tasker to see it...
How much does this cost in battery? If I don't use my watch I can get about 4 days out of it.... I know Shake stops the TS going into deep sleep, won't this do the same and annihilate battery??
death_entry said:
How much does this cost in battery? If I don't use my watch I can get about 4 days out of it.... I know Shake stops the TS going into deep sleep, won't this do the same and annihilate battery??
Click to expand...
Click to collapse
Don't know for tasker but I'm using shake app from market and I even I thought it'll drain my battery very fast - it didn't...
It's almost like I don't have it...
My battery can't hold on more then 24hours but I really use my watch and it's constantly connected to wifi and BT.
Sent from my C6903 using Tapatalk
funky0308 said:
Don't know for tasker but I'm using shake app from market and I even I thought it'll drain my battery very fast - it didn't...
It's almost like I don't have it...
My battery can't hold on more then 24hours but I really use my watch and it's constantly connected to wifi and BT.
Sent from my C6903 using Tapatalk
Click to expand...
Click to collapse
Ah that's prolly why you don't notice it running down... what do you use your watch for? Tbh i haven't used it for more than a watch lol/...
death_entry said:
Ah that's prolly why you don't notice it running down... what do you use your watch for? Tbh i haven't used it for more than a watch lol/...
Click to expand...
Click to collapse
Well as I have Z1, which is quite big, I'm using TS mainly to receive notifications (using swapplink).
I'm receiving many emails (I'm using Z1 as my business phone) so it's great that I can see on my TS subject of email and decide what will I do.
I have sim card in TS and I use it all the time, when I'm alone in a car (and that's 6 hours per day )
I found TS quite practical for companion
BTW...from today, I'm using this app to help me save my battery power on TS and Z1
http://forum.xda-developers.com/showthread.php?p=53078670
Sent from my C6903 using Tapatalk
lssong99 said:
Do you mean the Tasker cannot see the prj file?
For how to import project, you could check http://tasker.dinglisch.net/userguide/en/faqs/faq-how.html#q
and you need to put the unrared file (.xml) in /sdcard/tasker/projects for Tasker to see it...
Click to expand...
Click to collapse
I tried this and Tasker can't see the xml on my TS
Here's a workaround for those having issues seeing the xml file in Tasker
Using a file manager, navigate to the location of the xml file
"Open with.." and choose Tasker
You will then see a toast notificaiton saying "...can be opened in Tasker" (or something like that)
Open Tasker -> Preferences -> UI -> Untick "Beginner Mode"
Back to main Tasker screen
In the HOME icon (bottom left) -> Long press, and choose "Import", then look for the XML file, wherever you put it
Boom
Note: Make sure you have the correct app from the Play Store, and not from the Ostore (same app, different names)
death_entry said:
How much does this cost in battery? If I don't use my watch I can get about 4 days out of it.... I know Shake stops the TS going into deep sleep, won't this do the same and annihilate battery??
Click to expand...
Click to collapse
I am afraid that this will have an impact your battery. Basically to make TS responsive (light up as soon as you raise your hand), the screen/CPU is kept wake. Only LED backlight is disabled.
Although in my implement I put the CPU is slowest frequency and sleep Governor, but battery is around one day usage without radio on....
We need kernel tweak of this to achieve good battery life... Tasker is only... Tasker...
jeremy.chan said:
Here's a workaround for those having issues seeing the xml file in Tasker
Using a file manager, navigate to the location of the xml file
"Open with.." and choose Tasker
You will then see a toast notificaiton saying "...can be opened in Tasker" (or something like that)
Open Tasker -> Preferences -> UI -> Untick "Beginner Mode"
Back to main Tasker screen
In the HOME icon (bottom left) -> Long press, and choose "Import", then look for the XML file, wherever you put it
Boom
Note: Make sure you have the correct app from the Play Store, and not from the Ostore (same app, different names)
Click to expand...
Click to collapse
Thanks I see it now.
put the unzip file at that location and still Tasker cannot see it?
Hi do read the solution I provided
Tapa-ed from the Sony Z Ultra

[Q] Other ways to turn on/off the screen without using the hardware button

I'm wondering if there's a way (app or manual edit of system files) to make the hardware buttons less used to keep them from getting soft
and for that I'm mainly focusing on the power button as it is frequently used, I have two ideas:
- taking the gesture from the new M8 which is by double tapping the screen, if you're a developer please tell me if it's possible to take that function from the M8 maybe edit it and make it work on the One Max!
- We have a great special thing called fingerprint scanner, and since it's not that good at identifying the owner's fingerprint but always works at identifying fingerprints of people, maybe we can use it to wake up screen by simply swiping the finger over it!
So here is my question and here are my ideas, if you have a good answer for me please share it in the comments!
Thanks XDA!
Also looking for a way to do it, but in my case the reason is my power button stopped working and the only way to wake the device is by plugging a charger. What could I use else before having it fixed by service?
for switching off i use nova launcher with the app "screen off and lock"
DoubleTap on screen now the max going off. (i do this with all phones)
But switching on with doubleTap i always searching how it can work. I have
no idea
my understanding is that without a modded kernel, turning screen ON with touchscreen taps is a no go.
an alternate is to use something like the xposed sense 6 toolkit feature "wake screen with volume buttons". granted it still uses hardware buttons, but at least the power button wont have to take as much "abuse" anymore.
for turning screen off, sense 6 tookit offers gestures on the homescreen. i have mapped swipe down to screen off.
i vaguely remember reading about another xposed mod that can map double tap on status bar to screen off.
just my 2 cents!
edit: i m using another xposed mod called "sense 6 lockscreen mods" that enables double tap to screen off on the lockscreen.
Sent from my HTC One max using XDA Free mobile app
greddy said:
for switching off i use nova launcher with the app "screen off and lock"
DoubleTap on screen now the max going off. (i do this with all phones)
But switching on with doubleTap i always searching how it can work. I have
no idea
Click to expand...
Click to collapse
Try WTN by Wolandsoft. Works perfect for me. I was looking for a way to turn on the phone in the car while driving. This works perfectly.
https://play.google.com/store/apps/details?id=com.wolandsoft.wtn&hl=en
barrr said:
Try WTN by Wolandsoft. Works perfect for me. I was looking for a way to turn on the phone in the car while driving. This works perfectly.
https://play.google.com/store/apps/details?id=com.wolandsoft.wtn&hl=en
Click to expand...
Click to collapse
Try AutoScreenOnOff
https://play.google.com/store/apps/details?id=com.danielkao.autoscreenonoff#
Even better than WTN that I recommended. Just found this one last night. A lot smoother.

how i can double tap to wake in xiaomi redmi note 2

how?????
you can't
This seemingly small embellishment is just so darn useful it would be great if Xioami got around to incorporating it. I was using my old LG phone the other day to keep track of time while working on a dirty project, and the ability to double-tap to wake the screen with whatever portion of my fingers/knuckles which were clean at the moment was a real lifesaver. I forgot how truly useful it is, and I definitely miss it on the RN2!
try this en.miui.com/thread-125331-1-1 worked for me
socolino said:
try this en.miui.com/thread-125331-1-1 worked for me
Click to expand...
Click to collapse
Thanks, socolino, for the suggestion about the Knockr app (https://play.google.com/store/apps/details?id=tecnology.angs.knockr). I've taken a look, and, of course, while this app does its best to mimic DT2W, it is pretty much a kludge. It basically just turns the screen black to simulate it being shut off, but it actually keeps the phone awake. So this means a massive hit on battery life. And there is other collateral, too, because the phone doesn't actually go to sleep. For example, the notification LED does not get activated because the phone is not actually sleeping. And supposedly the power button doesn't turn the screen on as expected (i.e. get rid of the black mask).
Anyway, thanks again for the suggestion.
this feature is disabled in kernel, unless we will have source codes or xiaomi will anable this feature, there will be no dt2w
Yoni1581 said:
how?????
Click to expand...
Click to collapse
As a workaround, I use the WakeUp Touch L Free app. With the correct settings, it wakes the screen virtually every time by double tapping the proximity sensor. I haven't noticed any battery drain using it. Here are screenshots of the WakeUp Touch settings I use. Another couple of settings that are useful to modify: long press on WakeUp Touch in Notifications & assign it High Priority; lock WakeUp Touch in Recent Apps by dragging it down.
To turn the screen off via double tap, I use the Screen Off and Lock app in conjunction with Apex Launcher's double tap gesture [Nova & other launchers also have this gesture].

Recommendations for reproducing Motorola's Active Display?

My last phone before this one is the Droid Mini. So far the Z5C is infinitely better in everything (but my expectations/standards are pretty low...) except that the Active Display feature from Motorola was awesome. From a bit of Googling, there are some other apps that copy this functionality to various degrees, but maybe some of you can give more specific insight than the articles?
1.) First of all, I'm confused. This article below states that Motorola released the app on Google Play Store for the general Android population... but it doesn't come up when I search it on my Z5C. What the hell?
http://gadgetstouse.com/featured/to...lay-notifications-alerts-android-device/19901
2.) If the Moto app is not available, any opinions on the alternatives? From reading a few articles, sounds like Dynamic Notifications is my best bet. Thoughts?
I tried xposed module, but it used proximity sensor, so it is not the same thing. I also miss that feature a lot from my nexus 5x, double tap to wake is kind of replacement when phone is laying on the table. When you take it out from a pocket, pressing the button isn't such a big deal. I couldn't find any reasonable replacement so I learnt to live without it
I really don't understand why other manufacturers don't copy-cat this feature. It was without question the greatest feature of my old phone.
I tried out Dynamic Notifications, but it's weird. First, it didn't play nice with the existing lock-screen and login structure. When I had a notification, pressing the power button no longer took me to the lock screen -- instead it just turned off and locked the screen. It's as if Dynamic Notifications became a second lock screen, and the power button toggled it on/off, and I had to tap the home key to get to the actual lock screen. On top of that, after getting to the actual lock screen it seemed to somehow screw up the fingerprint login because I kept getting prompted to use my other login method (PIN in my case). Most weird of all, it had some crazy bug when I used Uber. I was trying to check where the Uber car was on the map, and it threw me to the Dynamic Notifications screen, with the Uber notification showing. I logged in again, pulled up Uber again, checked the location of the Uber on the map, and it instantly did it again! And again... So screwed up.
TL;DR: Do not use this app, at least not on this phone. It's buggy and/or just makes you jump through extra hoops when logging in.
Yeah I also have double tap enabled. It's okay I guess.
Nexus 5x had a dedicated hardware sensors for that matter, I guess that may be the problem. Anyway I agree with you that every manufacturer should implement it.
I would try AcDisplay for the lock screen and if you want raise to wake, try Gravity Screen . Be warned though, Gravity Screen is kind of glitchy with the fingerprint sensor, so I would just use AcDisplay. ^_^
dlee390 said:
I would try AcDisplay for the lock screen and if you want raise to wake, try Gravity Screen . Be warned though, Gravity Screen is kind of glitchy with the fingerprint sensor, so I would just use AcDisplay. ^_^
Click to expand...
Click to collapse
try use ambient display is an xposed module
dlee390 said:
I would try AcDisplay for the lock screen and if you want raise to wake, try Gravity Screen . Be warned though, Gravity Screen is kind of glitchy with the fingerprint sensor, so I would just use AcDisplay. ^_^
Click to expand...
Click to collapse
So I finally got around to trying out AcDisplay. That video that is on the app download page shows how you can wake up the phone using proximity sensors, when pulling it out of your pocket or even waving your hand over it... But none of this works at all. Not even a little bit. Does that mean that the Z5C does not have any proximity sensors built into it?

[APP]AMOLED Notification Light "NotifyBuddy"

Original Thread : https://forum.xda-developers.com/oneplus-6t/themes/app-amoled-notification-light-t3943715
So I was annoyed not having an LED notification light on oneplus 6t so I tried to make one of my own.
As OP6T has amoled display whenever a desired notification comes the app brings in a black screen with notification LED looking animation.
Though this is tested on OP6T, it should be working for most Android Oreo and later phones.
To use it:
Install App.
Disable Ambient Display and any battery optimisation for the app.
Give notification access permission.
Select apps you want notifications for, by choosing a color (Only apps you set a color to enables LEDs).
Note: 1. On successfully selecting a color for an app the text in which the App name is written should change to that color
2. Don't enable the LED for the "Phone App" as it will interfere when an incoming call is coming! Will fix this in next build
Thats it.
Note: To turn off the LED and to unlock phone double tap anywhere on the screen.
Also on pressing power button once the LED stops and on pressing it again it will bring you to lock screen.
App now available on Play Store, please rate and share if you liked the app.
Play Store Link: https://play.google.com/store/apps/details?id=com.xander.android.notifybuddy
Working Video: https://youtu.be/vFKiHS_ZD-k
If the app is not working check whether the Notification Service is running under Developer Option > Running Services, this service is required for the app to work as intended.
If it is not running after various troubleshoot measures, maybe send the logs.
Changelog:
Implemented burn in protection
Fixed proximity sensor bug
Switch enables LED with default color
Added search functionality
Now App list is sorted in alphabetical order
Fixed power button
Added settings for changing time interval and stop timer
Major bug fixes
Added System Apps
Added a switch to turn on/off notification LED
Give your feedback!!
Hi. I'm going to try it my question is if this would not burn the screen?
Can you explain how the stop timer works?
Cryte-k said:
Hi. I'm going to try it my question is if this would not burn the screen?
Can you explain how the stop timer works?
Click to expand...
Click to collapse
Nope it won't burn the screen as LED is shifting towards right every time.
Stop timer is the time after which the "LED" will stop after receiving notification.
please mention digits(seconds/minutes) in slider of led time interval & stop timer. working fine with S10.thanks
I couldn't make it work...
Great !!
Very simple & the first one that perfectly works with the screen off.
Next step a circle around the camera ?
Thanks for the work
It does use a bit of battery....
Great app. But the approximately Sensor doesn't responding. Does anybody confirm this?
If „don’t disturb“ is enable no notification light appears.
Is there any way of getting premium features without play services? I would love to use the unlock with fingerprint option

Categories

Resources