FORUMS
Remove All Ads from XDA

AppContext [0.4.7] - Better application context for Tasker with Xposed! [4.0.3+]

51 posts
Thanks Meter: 55
 
By JayShortway, Member on 17th June 2017, 07:10 PM
Post Reply Email Thread
Announcement from JayShortway: Service support is here! (Experimentally, but still.)

AppContext was featured on XDA Portal!

AppContext - Better application context for Tasker with Xposed!

Hi everyone!

After years of reading, flashing, and gaining a lot of Android-knowledge on XDA-Developers, I felt it was time to create my own Xposed Module.
So hereby I proudly present to you my first app:


AppContext
Better application context for Tasker with Xposed!

Now available on Google Play, XDA Labs and the Xposed Module Repository.

With AppContext, you can have Tasker react on running applications, without the downsides of the default implementation.

The default application context of Tasker has several downsides:
• it is inaccurate (in Android versions after KitKat)
• it needs an accessibility service (which disables screen lock for enhanced data encryption, but this can be re-enabled)
• it checks frequently which app is running
Especially the last point is inconvenient, as frequent checks may drain battery and infrequent checks means Tasker is slow to react.

AppContext solves these problems by utilizing the power of Xposed! It hooks directly into the Activity-class, letting Tasker react immediately when an app starts. This means no more periodic checking which app is running, so no more battery drain and no more slow reactions. It's also perfectly accurate and doesn't need an accessibility service, so your device's screen lock can be used for enhanced data protection again.
(Experimental support for reacting on Services is also present.)

AppContext may also work with other apps using the Locale API, such as Locale, Llama, Automate, Automagic and others. However, this is not tested extensively.

To support development, AppContext contains non-intrusive ads. These can be removed with a small in-app purchase. (Note that if you donate through PayPal on XDA, ads are not removed. Nevertheless, it is still highly appreciated)

Please understand that AppContext is still considered to be in beta. There may be bugs. Please report them in this thread, or by using the in-app Feedback button or sending an email to shortwaystudio@gmail.com.
Constructive criticism is highly appreciated!

DOWNLOAD
Google Play
XDA Labs
Xposed Module Repository

Get AppContext on Google Play!

COMPATIBILITY
• Android 4.0.3 and higher
• Xposed Framework
• Tasker (or equivalent)

CREDITS
• Crafty Apps EU/Pent for creating Tasker
• rovo89 for creating the Xposed Framework
• Google Play and the Google Play logo are trademarks of Google Inc.

XDA:DevDB Information
AppContext, Xposed for all devices (see above for details)

Contributors
JayShortway
Xposed Package Name: io.shortway.appcontext

Version Information
Status: Beta
Current Beta Version: 0.4.7
Beta Release Date: 2017-10-14

Created 2017-06-17
Last Updated 2017-10-14
Attached Thumbnails
Click image for larger version

Name:	Screenshot_1496141470.png
Views:	2312
Size:	174.5 KB
ID:	4185203   Click image for larger version

Name:	Screenshot_1496140914.jpg
Views:	2298
Size:	164.8 KB
ID:	4185204   Click image for larger version

Name:	Screenshot_1496140923.png
Views:	2240
Size:	192.0 KB
ID:	4185205   Click image for larger version

Name:	Screenshot_1496224742.jpg
Views:	2160
Size:	255.1 KB
ID:	4185206   Click image for larger version

Name:	Screenshot_1496225504.png
Views:	2044
Size:	254.4 KB
ID:	4185207   Click image for larger version

Name:	Screenshot_1496225511.png
Views:	1980
Size:	133.6 KB
ID:	4185208  
The Following 12 Users Say Thank You to JayShortway For This Useful Post: [ View ] Gift JayShortway Ad-Free
 
 
17th June 2017, 07:10 PM |#2  
Changelog
0.4.7 (Announcement)
Please report any bugs by using the in-app Feedback button, or by sending an email to shortwaystudio@gmail.com.
  • [FEATURE] The Requirements-section collapses automatically when all are met.
  • [FEATURE] Works with *official* Xposed for Nougat! Yay!
  • [FIX] A crash preventing AppContext to be launched is fixed.
  • [FIX] Minor bug fixes.


0.4.6 - Yet another minor one (Announcement)
Please report any bugs by using the in-app Feedback button, or by sending an email to shortwaystudio@gmail.com.
  • [FEATURE] The Requirements are more descriptive.
  • [FEATURE] Merged the 2 Tasker requirements ('installed' and 'enabled').
  • [FEATURE] You can now collapse the Requirements-section.
  • [FIX] Some bugs in the Dialogs are fixed.
  • [FIX] Internal code restructuring.
  • [ALSO] Migrated to the Play Billing Library.
0.4.5 - Another minor update (Announcement)
Please report any bugs by using the in-app Feedback button, or by sending an email to shortwaystudio@gmail.com.
  • [FEATURE] Opening an existing Context now shows a Snackbar with 'Configure' button.
  • [FEATURE] The Requirements-section is clearer.
  • [FEATURE] Minor optimizations. Mainly foundations to be implemented later.
  • [FIX] Rewrote some of the Dialogs.
  • [FIX] Minor bugfixes.
0.4.4 - Minor update (Announcement)
Please report any bugs by using the in-app Feedback button, or by sending an email to shortwaystudio@gmail.com.
  • [FEATURE] Compiled for Android 8.0 Oreo. (No Xposed for Oreo, so ¯\_(ツ)_/¯.)
  • [FEATURE] Slight optimizations.
  • [FIX] All currently reported bugs fixed.
  • [FIX] Some UI tweaks.
0.4.3 - Moar bugfixes (Announcement)
Please report any bugs by using the in-app Feedback button, or by sending an email to shortwaystudio@gmail.com.
  • [FEATURE] Changed hooking of Services again, to prevent some problems.
  • [FEATURE] Toggling the experimental Services feature now requires a reboot to take effect.
  • [FEATURE] Moved 'Ignore Recents' to experimental features.
  • [FEATURE] Improved app detection.
  • [FIX] Another attempt to fix random crashes.
  • [FIX] Fixed some Xposed-related errors.
0.4.2 - Another bugfix release. (Announcement)
Please report any bugs by using the in-app Feedback button, or by sending an email to shortwaystudio@gmail.com.
  • [FEATURE] Completely different way of hooking Services...
  • [FEATURE] ...which removes the reboot requirement...
  • [FEATURE] ...and should work much better.
  • [FIX] Another attempt to fix random crashes. If they still occur, please keep reporting them. Thanks!
  • [FIX] Minor bug-fixes.
  • Tested on unofficial Xposed for Nougat.
  • Some code restructuring.
0.4.1 - Bugfix release. (Announcement)
Please report any bugs by using the in-app Feedback button, or by sending an email to shortwaystudio@gmail.com.
  • [FIX] Sometimes not all apps were shown in the 'Pick apps' screen. Shouldn't happen anymore. (Thanks for testing @Infy_AsiX & @JKL22.)
  • [FIX] Some Xposed-related errors were fixed. (Thanks for testing @JKL22.)
  • [FIX] Hopefully fixed the random crashes. If not, please keep reporting them. Thanks!
0.4 - Service support is here! (Experimentally, but still.) (Announcement)
Please report any bugs by using the in-app Feedback button, or by sending an email to shortwaystudio@gmail.com.
  • [FEATURE] Now supports Services for Event Contexts. Enable it under 'Experimental features'.
  • [FEATURE] Completely rewrote the 'Pick apps' screen.
  • [FEATURE] The Search bar is now a Search button.
  • [FIXED] Tasker blurbs are a bit clearer now.
  • [FIXED] The website-version of Tasker is properly recognized.
  • [FIXED] Some other minor bugs.
0.3.2 - Another bugfix release. (Announcement)
Please report any bugs in this thread, or by using the in-app Feedback button or sending an email to shortwaystudio@gmail.com.
  • [FIXED] AppContext recognizes the Xposed Framework properly when installed (systemlessly) via Magisk.
  • [FIXED] The search bar was sometimes unresponsive. Not anymore.
  • [FIXED] The minimum Xposed Framework version required was downgraded to 86, as per request.
  • [FIXED] Some other minor bugs.
0.3.1 - Bugfix release. (Announcement)
Please report any bugs in this thread, or by using the in-app Feedback button or sending an email to shortwaystudio@gmail.com.
  • [FIXED] If AppContext's module is enabled, it won't complain about not being able to find the Xposed Framework.
  • [FIXED] Pressing 'back' when picking apps to act on does not crash the app anymore.
  • [FIXED] The Tasker blurb in a State profile makes sense now.
0.3 - Initial release.
  • Please report any bugs in this thread, or by using the in-app Feedback button or sending an email to shortwaystudio@gmail.com.
The Following 6 Users Say Thank You to JayShortway For This Useful Post: [ View ] Gift JayShortway Ad-Free
17th June 2017, 07:10 PM |#3  
Known Issues
0.4.7
  • Support for Services is still experimental, and is completely disabled by default.


The following issues are fixed in the current version.

0.4.6 - Yet another minor one.
  • Support for Services is still experimental, and is completely disabled by default.
0.4.5 - Another minor update.
  • Support for Services is still experimental, and is completely disabled by default.
0.4.4 - Minor update.
  • Support for Services is still experimental, and is completely disabled by default.
0.4.3 - Moar bugfixes.
  • Support for Services is still experimental, and is completely disabled by default.
0.4.2 - Another bugfix release.
  • Support for Services is still experimental, but should work much better.
0.4.1 - Bugfix release.
  • Support for Services is still experimental.
0.4 - Service support is here!
  • Support for Services is still experimental.
  • Some apps do not show up in the 'Pick apps' screen.
  • AppContext sometimes force-closes.
0.3.2 - Another bugfix release.
  • None yet.
0.3.1 - Bugfix release.
  • None yet.
0.3 - Initial release.
  • Currently doesn't detect systemless Xposed via Magisk.
  • Pressing back when selecting apps to act on causes a crash. Instead, please tap either 'SAVE' (upper right) or 'X' (upper left).
  • A typo in the Tasker blurb.
The Following User Says Thank You to JayShortway For This Useful Post: [ View ] Gift JayShortway Ad-Free
18th June 2017, 06:32 AM |#4  
Member
Thanks Meter: 55
 
More
Oneplus one, running CM13 (sultan's) with my own custom kernel.

Seems to be working fine!
The Following User Says Thank You to Bladehawkz For This Useful Post: [ View ] Gift Bladehawkz Ad-Free
18th June 2017, 06:57 AM |#5  
Senior Member
Thanks Meter: 70
 
More
Oneplus3t with magisk and systemless xposed, The App does not detect xposed is installed and module has been activated!
The Following User Says Thank You to lover For This Useful Post: [ View ] Gift lover Ad-Free
18th June 2017, 12:05 PM |#6  
Quote:
Originally Posted by Bladehawkz

Oneplus one, running CM13 (sultan's) with my own custom kernel.

Seems to be working fine!

Thanks for the feedback, good to hear

Quote:
Originally Posted by lover

Oneplus3t with magisk and systemless xposed, The App does not detect xposed is installed and module has been activated!

Thank you for letting me know! I've put it on the Known Issues list, and I'm working on it!
18th June 2017, 01:06 PM |#7  
Zoltair Wright's Avatar
Senior Member
Nashville, USA
Thanks Meter: 6
 
More
Quote:
Originally Posted by JayShortway

• it needs an accessibility service, which prevents using screen lock to enhance data encryption

FYI you can still use disk encryption password with accessibility services. when you enable the service it disables the 'require passcode on boot' but you can just re-enable from the security settings and it works

great module by the way! thanks
The Following 3 Users Say Thank You to Zoltair Wright For This Useful Post: [ View ] Gift Zoltair Wright Ad-Free
18th June 2017, 01:49 PM |#8  
Quote:
Originally Posted by Zoltair Wright

FYI you can still use disk encryption password with accessibility services. when you enable the service it disables the 'require passcode on boot' but you can just re-enable from the security settings and it works

great module by the way! thanks

That's interesting! Very unclear communication from Android though. I'll add your info to the first post, thanks for letting me know!
(And glad you like the module. )
18th June 2017, 04:34 PM |#9  
Senior Member
Thanks Meter: 15
 
More
Don't know if i posted this right but the message shown in "not running" state is the same as the running one in tasker. Shouldnt it say when "this app is not running" or something like that?

A great module and very reliable

Xperia Z running RR 5.7.4 with xposed v87 for MM
Attached Thumbnails
Click image for larger version

Name:	Screenshot_20170618-233040.png
Views:	242
Size:	105.9 KB
ID:	4186007  
The Following User Says Thank You to pjohn23 For This Useful Post: [ View ] Gift pjohn23 Ad-Free
18th June 2017, 07:17 PM |#10  
Quote:
Originally Posted by pjohn23

Don't know if i posted this right but the message shown in "not running" state is the same as the running one in tasker. Shouldnt it say when "this app is not running" or something like that?

A great module and very reliable

Xperia Z running RR 5.7.4 with xposed v87 for MM

Yes you're right! Thanks for the info and the screenshot. It's supposed to say "is in the foreground" or "is not in the foreground", but I see that "is" and "is not" have disappeared. Will be fixed in the next update.
Good to hear the module is reliable!
The Following User Says Thank You to JayShortway For This Useful Post: [ View ] Gift JayShortway Ad-Free
19th June 2017, 02:41 PM |#11  
Senior Member
Thanks Meter: 574
 
More
Interesting Module. I always thought Tasker's app detection was a bit unreliable. Never thought it could be improved though. Thanks!

Wonder if Tasker Dev (Pent) will/can implement this as a "fix"
The Following User Says Thank You to Stupifier For This Useful Post: [ View ] Gift Stupifier Ad-Free
Post Reply Subscribe to Thread

Tags
appcontext, shortway, tasker, xposed

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

Advanced Search
Display Modes