[MOD][XPOSED][4.0+] ScreenOffAnimation v1.3 - Custom Screen On & Off Animation

Search This thread

dfcPE

Senior Member
May 30, 2015
94
22
I am using Lollipop and the module is working.

Sent from my GT-I9505 using Tapatalk
 

dlads

Senior Member
Aug 24, 2010
16,758
6,466
Liverpool
Nothing Phone 2
okay ur right. i reboot several times i didnt count how often i reboot but in the end it works :).

Are you running android 5.1 ????

---------- Post added at 01:27 PM ---------- Previous post was at 01:26 PM ----------

I am using Lollipop and the module is working.

Sent from my GT-I9505 using Tapatalk

What version of android are you using ?? I have this working perfectly for android 5.0.2 but when i update to android 5.1 it does not work.
 

dfcPE

Senior Member
May 30, 2015
94
22
Are you running android 5.1 ????

---------- Post added at 01:27 PM ---------- Previous post was at 01:26 PM ----------



What version of android are you using ?? I have this working perfectly for android 5.0.2 but when i update to android 5.1 it does not work.

Lollipop 5.0.1
 

dlads

Senior Member
Aug 24, 2010
16,758
6,466
Liverpool
Nothing Phone 2
Has someone tried it with Xperia Stock based Rom?

Sent from my Xperia Z LB + ROM ExistenZ Y v2.0 LP 5.0.2 + XDR + Xposed v70 + StereoMOD + Dolby ATMOS + SoundMod Xperia Z v2 + Project Desire v3.0 + ViPER4Android

Which xperia? Personally no although whilst I had a z1, screen off animations did work I have no problem assuming that this would be no different, also that it will more than likely not work on 5.1

---------- Post added at 04:10 AM ---------- Previous post was at 04:09 AM ----------

My apologies for bumping this thread, but has development ceased for this mod? Will 5.1.XX get an update?
 

Gralalo

Member
Mar 8, 2015
6
0
Has someone tried it with Xperia Stock based Rom?

Sent from my Xperia Z LB + ROM ExistenZ Y v2.0 LP 5.0.2 + XDR + Xposed v70 + StereoMOD + Dolby ATMOS + SoundMod Xperia Z v2 + Project Desire v3.0 + ViPER4Android

I have been using since 4.4.4 On my Xperia z2 and now in 5.1.1 It still works. There has only been one problem and it's when screen on animation is enabled, the screen goes Completely on and then off after about 100ms and then only screen on animation starts. But everything else works.
 

realista87

Senior Member
Sep 3, 2011
798
100
marche
Redmi Note 10 Pro
i've installed it on a stock lenovo k3 note rom and does work.. works PERFECTLY. it only needed not 1 but 2 phone reboot to fully work and now i love it :)

but same little probem like Gralalo : when screen on animation is enabled, the screen goes Completely on and then off after about 100ms and then only screen on animation starts
but i can say i also had that little but ON KITKAT...... .... my preferred animation is always optimus g circle............. it's the best!!! but i don't understand why there are a lot more animation for screen OFF (10 animations) compared to sreen ON (6)....
 
Last edited:

-Rye-

Senior Member
Dec 30, 2012
117
11
Quick question:

Where are the animations stored ?

I'd like to add my own/replace an existing one.

Thanks in advance for a reply.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 133
    Xposed-ScreenOffAnimation
    (Custom Screen On & Off Animation for all ROMs)

    This module is an experiment to bring custom screen off animation to all ROMs without modifying native codes.
    As of v1.2, it added screen on animation too.

    Instructions
    • Ensure you have a custom recovery ready to flash Xposed-Disabler-Recovery.zip.
    (If anything goes wrong while booting, you can always flash it, reboot & disable this module)
    • Install ScreenOffAnimation
    • Enable ScreenOffAnimation in Xposed Installer
    • Reboot
    • Turn off your ROM's native screen off animation (if any)
    • Turn off your ROM's native screen on animation (if any)
    • Change the settings in the module to your likings!

    Note: All the animations are not ported (but recreated) from ROMs because the implementation is different, so there might be slight visual differences from the original...

    Video
    Video is based on the pre-release version on v1.0. Improvements have been made to some animations.
    Screenshots
    In the Attachments

    Source Code
    This module is open-source, licensed under GPLv3. The source can be found here
    • Developers: You may contribute by sending pull-requests or opening an issue on Github with coding tips.
    • Translators: You may contribute your translations by sending pull-requests or posting the file in this thread.
    (Do a search to see if others have already translated to your language before doing so).
    The latest English version can be found here.

    How Does It Work?

    This module does the following for screen off animation:
    • Before the screen off method, add our code
    • Grab the screenshot
    • Add a black view to the screen
    • Add the screenshot we grabbed
    • Animate the screenshot on the black view
    • Once the screenshot is completely out of the screen, call the native code to turn off screen

    This module does the following for screen on animation:
    • After the screen on method, add a black screen
    • Animate the black screen out

    (This is simplified. You may see the actual source code to have a better understanding)
    Special Thanks
    rovo89 and Tungstwenty for Xposed Framework
    XpLoDWilD for the Scale Down screen off animation idea
    LG for the Optimus G screen off animation idea
    Google for the Android Lollipop screen off animation idea
    Chandra Sekhar for this blog post
    Malcolm Hall for SleepFX Tiles Fade animation idea
    If I have missed out anyone that should be thanked, feel free to PM me and I will add it in :)
    27
    Downloads
    Main Download: Xposed Repository

    • Mirror Download: My Google Drive
    (If you want to mirror my files, I'm fine as long as you link back also to this original thread)


    Compatibility
    This should work on all ROMs on Android 4.0 to 4.4 except those mentioned below

    Gingerbread Support?
    I do not plan to add Gingerbread support. This module relies on native code (to screenshot the screen) which was only added in ICS & above
    However, if anybody knows a simple way to screenshot the screen in Gingerbread, feel free to contact me.​


    Bugs with ROMs
    Screen On Animation doesn't work properly on these ROMs
    • TouchWiz
    • Color OS
    • Android 4.1.2 and below
    Screen Off Animation doesn't work properly on these ROMs
    • TouchWiz (with S View Cover)Turning off the screen with the S View Cover closed will not turn off the screen until you open it again. More Info Here
    17
    Newest Changelog

    Version 1.3 (22 October 2014 / 1705 / GMT+8)

    • Main Changes + Fixes:
    --> Prevent duplicated Screen On Animation
    --> Fix screen on Fade Tiles restarting halfway (seen in Fade Tiles)
    --> Try to disable native screen off animation on Android 4.2.1 and below
    --> Add Vertu Sig. Touch Screen On + Off Animation
    --> Add Android 5.0 Lollipop Fade Screen Off Animation

    • Code Refactoring:
    --> Simplify Animation Listener codes
    --> Integrate interval codes into a new SeekBar class
    --> Add helper methods to improve code readability
    --> Tiny optimization to screenshot code

    • Translations:
    --> Update Polish translation (by @godlesplay)
    --> Update Hungarian Translation (by @szunyi77)
    --> Update French Translation (by jkabiche@Github / @jose404)
    --> Update Chinese (China & Taiwan) Translation (by @Pocket Fan)

    Older Changelog




    Version 1.2 (16 June 2014 / 1535 / GMT+8)
    • Main Changes:
    --> Add Screen On Animation (see Note below)
    --> Add Random Animation Option
    --> Add new sliding ui for screen on animations
    --> Prevent some cases of screen off animation when turning on screen + Possible fix for S View cover bug (not tested)

    • Translations:
    --> Update Polish translation (by @godlesplay)
    --> Update Hungarian Translation (by @szunyi77)
    --> Update French Translation (by jkabiche@Github)
    --> Update Chinese (China) Translation

    • Code Refactoring:
    --> Rename the helper method to finish animation
    --> Refactor screen off methods to make way for screen on methods
    --> Move ScreenOff.Implementation out into another class
    --> Reduce some errors
    --> Small UI Changes
    --> UI Changes to make way for screen on animation



    Version 1.1.1 (2 June 2014 / 1150 / GMT+8)
    • Add FadeTiles Screen Off Animation
    • Move interpolator out of scale_down.xml (Code Refactoring)
    • Prevent duplicated animations when one is already showing
    • Add Spanish Translations (by @badkill)
    • Add German Translation (by @AssaSsiNMiLeS)
    • Add Hungarian Translation (by @szunyi77)



    Version 1.1.0 (31 May 2014 / 1050 / GMT+8)
    • Fix a possible system crash
    • Fix animation not showing for screen timeout on Android 4.2.1 & above
    • Reduce excess logging to Xposed Installer
    • Change minimum speed 100ms
    • Change Speed Bar to intervals of 10ms
    • Tweak CRT animations
    • Add attempt to auto-disable native screen off animation for Android 4.2.1 & above
    • Add French Translation (by @jose404)
    • Add Italian Translation (by @teorouge)
    • Add Portuguese (Portugal) Translation (by @mauam)
    • Add Portuguese (Brazil) Translation (by @zanini007)
    • Add Polish translation (by @godlesplay)


    Version 1.0.3 (26 May 2014 / 1840 / GMT+8)
    • Rewrote hooks (should fix some JB devices not loading at all)
    • Improve Context retrieving (should fix Preview function not working)
    • Improve hooks on Android 4.2.1 and below
    • Tweak the delay before removing the black view (should fix flickering after animating)
    • Fix Navigation Bar still showing while animating on Android 4.4
    • Add Chinese (China+Taiwan) Translations (by @Pocket Fan)


    Version 1.0 (25 May 2014 / 1340 / GMT+8)
    • First Release

    12
    <b>
    Version 1.2 (16 June 2014 / 1535 / GMT+8)
    </b>
    • Main Changes:
    --> Add Screen On Animation (see Note below)
    --> Add Random Animation Option
    --> Add new sliding ui for screen on animations
    --> Prevent some cases of screen off animation when turning on screen + Possible fix for S View cover bug (not tested)

    • Translations:
    --> Update Polish translation (by @godlesplay)
    --> Update Hungarian Translation (by @szunyi77)
    --> Update French Translation (by jkabiche@Github)
    --> Update Chinese (China) Translation

    • Code Refactoring:
    --> Rename the helper method to finish animation
    --> Refactor screen off methods to make way for screen on methods
    --> Move ScreenOff.Implementation out into another class
    --> Reduce some errors
    --> Small UI Changes
    --> UI Changes to make way for screen on animation


    Note: Screen On Animations may start animating before the screen turns on. I have added a short delay before animating. It may be too short or too long depending on your device, but I add an option to control it in the future.




    You said in a post that you can add a fade screen on animation, could you please add it in your next update? Thanks in advance
    I would love to see a simple fade turn on animation

    Sent from my GT-I9500
    This is pretty great. Thank you. Is random all screens a possibility in the future? Great work already!
    Random option is not possible? I like that.
    Are screen on animations coming soon? Dont want to put pressure on you, just asking

    Added.

    As you say, it is impossible to animate a screenshot during the screen on due to the initial "blink". The only proper way to do it is to animate something on top of the screen, something like a fade, an opening circle, an opening horizontal bar from the center, black tiles, etc.

    One question/request: it is possible to stop the animation if a touch is detected? I have a long fade set, and when the fade starts, I innately touch the screen to stop the animation, but it doesn't react.

    Something else: is an awesome module which works great considering this is the 3rd or 4th version of it. Great work.
    You actually gave me a great idea with the black tiles and opening circle! I have added it in ;)
    "Opening horizontal bar" doesn't look nice, so I didn't add it in, but I'll try tweaking it around.

    I actually prevented the touch from stopping the animation because it might interfere with the below app when you touch the screen (eg, You might accidentally press a button on the app when stopping the animation). I'll see if there's a way to work-around it.

    I noticed that the horizontal screen off animation is vertical when the device is in landscape mode.
    An option to interchange them would be better.
    Or two settings. One animation for landscape mode and one for portrait.?
    The animations follow the orientation/rotation of the device. It is possible to disable it but a little complicated, so it may take some time.

    After used the apk in the attachment you mean the v 1.1.1 s view cover ? I can't turn my screen off again. ........ Maybe I can't use it
    It means your ROM is having trouble running the animation itself. I don't think there is a way to fix it because it uses very generic code.

    The MOD is rocking but some times i have to press the power button twice or thrice to wake the device
    can u improvize on ""CRT horizontal"" like the Google nexus 4
    -- I have done a partial for for the power button bug.
    -- I can only recreate CRT animation to a certain extent. I'm planning to further improve it, but it might not be perfect.
    12
    Unofficial version

    Hello everyone!

    As we know, the last version was uploaded a long time ago. I've recently worked on the source of this app and I also made some commit, but @zst123 hasn't merged it yet.

    Today, I share to you an unofficial version, which has many improvements:
    - Disable native screen off animation on all 5.0+ ROMs
    - Add more animations: scale down bottom, 3D flip, windows phone 8, 3D flip tiles
    - Bigger tiles for FadeTiles (to reduce delay time)

    Since I don't have main developer's digital signature, you must UNINSTALL OLD VERSION before installing this one.