Tasker Tip: app context in profiles for apps normally not listed
(e.g. package installer)
I'm using a screen filter app (Pixel Battery Saver - saves battery on AMOLED displays) which has Tasker integration. So I was looking for a way to disable it while in the package installer, because otherwise you can't press install (safety feature in Android). But unfortunately the Package Installer (amongst other system apps) are not shown inside Tasker.
So I searched and stumbled upon this, in case you want to read the whole post: http://goo.gl/tBOntI
Long story short, you can monitor any application as long as you have the package name and activity name of it.What you have to do:
* create a profile, select app and in the list select any app you want (Google Books in this example)
* add the task you want to execute (you can always change that later)
* export the profile as xml on your SD card
it should look something like this:
<class cl="TaskerData" sr="">
<class cl="Profile" sr="prof130">
<class cl="AppContext" sr="con0" ve="2">
<class cl="Task" sr="task132">
<class cl="Action" sr="act0" ve="3">
<class cl="IntArg" sr="arg0">
All you have to do now is to replace the now replace the highlighted parts with the ones from the app you want to monitor.
For the Package Installer, replace
"com.google.android.apps.books.app.HomeActivity" with " com.android.packageinstaller.PackageInstallerActivity
"Books" with " Package Installer
" (or anything you want it to say in Tasker)
and "com.google.android.apps.books" with " com.android.packageinstaller
Now save the xml and import the profile in Tasker and tada
it's there and working!
Let me know if you have any problems setting this up or found this little tutorial helpful and I might share some more little tricks in the future.