FORUMS
Remove All Ads from XDA

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

442 posts
Thanks Meter: 3,372
 
By zst123, Inactive Recognized Developer on 25th May 2014, 07:39 AM
Post Reply Email Thread
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
Attached Thumbnails
Click image for larger version

Name:	main1.png
Views:	31239
Size:	40.1 KB
ID:	2761841   Click image for larger version

Name:	effect1.png
Views:	31784
Size:	48.4 KB
ID:	2761842   Click image for larger version

Name:	anim1.png
Views:	27361
Size:	1.3 KB
ID:	2761843  
The Following 135 Users Say Thank You to zst123 For This Useful Post: [ View ] Gift zst123 Ad-Free
25th May 2014, 07:40 AM |#2  
OP Inactive Recognized Developer
Flag Singapore
Thanks Meter: 3,372
 
Donate to Me
More
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
The Following 28 Users Say Thank You to zst123 For This Useful Post: [ View ] Gift zst123 Ad-Free
25th May 2014, 07:40 AM |#3  
OP Inactive Recognized Developer
Flag Singapore
Thanks Meter: 3,372
 
Donate to Me
More
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 [email protected] / @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 [email protected])
--> 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

The Following 18 Users Say Thank You to zst123 For This Useful Post: [ View ] Gift zst123 Ad-Free
25th May 2014, 08:13 AM |#4  
Senior Member
Thanks Meter: 473
 
More
Galaxy s3 i9300 4.3 mk6 stock touchwiz rom, agni kernel. This module isn't working and the last entry in the log is for hooking into the power manager sdk18. No mention of a fail or anything.
25th May 2014, 08:36 AM |#5  
Senior Member
Thanks Meter: 68
 
More
Great app
OK I think there maybe a conflict with GravityBox as I had to disable it to get your module to work. Can somebody else please confirm this.
And after the animation ends the screen flickers slightly before it turns off.
Overall it's a great first release and I can't wait to see what other modules you make.
25th May 2014, 09:18 AM |#6  
UnboundDemon's Avatar
Member
Flag Cochabamba, Bolivia
Thanks Meter: 16
 
More
Works on sgs4 with 4.3 only a little slow

Sent from my GT-I9500 using XDA Premium 4 mobile app
25th May 2014, 09:24 AM |#7  
Pocket Fan's Avatar
Member
Thanks Meter: 7
 
More
Unable to work on my stock 4.0.4 devices. (Unable to preview animation)
25th May 2014, 09:55 AM |#8  
big88moe's Avatar
Senior Member
Flag Dubai
Thanks Meter: 67
 
Donate to Me
More
I am using galaxy-s3 i9300 with Wanamlite JB 4.3 and boeffla Kernel and the module dosent seem to work at all. Nothing happens and even preview does nothing at all

Sent from my GT-I9300 Wanamlite v7.3 ( Android JB 4.3), boeffla Kernel, Xposed framework. using Tapatalk
25th May 2014, 10:11 AM |#9  
Junior Member
Thanks Meter: 0
 
More
Post
Works , S4 Gt-I9500 , KK 4.4.2

A bit laggy though.

keep up the good work
25th May 2014, 10:18 AM |#10  
AssToast's Avatar
Senior Member
Thanks Meter: 347
 
More
Works on Moto G but screen flashes when animation plays

Sent from my XT1033
25th May 2014, 10:26 AM |#11  
Junior Member
Thanks Meter: 0
 
More
Dosn't work in Xperia S (LT26i) Jelly bean 4.1.2
I try to all of the instructions said but, dosn't work the preview and the animation when i turn off the screen doesn't work too,
But i love the idea of this, i hope that in a future will works
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes