[GUIDE][Difficulty: Intermediate] Automatically Check MD5 Sum of Downloaded File! - Tasker Tips & Tricks

If you're a user who likes to take control of your own device by flashing custom ROMs, kernels, etc then you are likely someone who downloads a lot of files off of sites like AndroidFileHost.com. You will notice that each and every file on hosting sites like this include the MD5 sum for you to compare when you finish downloading it.
It's super important that you compare the MD5 sums before flashing a critical file such as a radio or bootloader, to ensure that you aren't flashing a corrupted file. But it's a nuisance to do so on mobile, because you need to manually find the file in your file explorer app and copy/paste the MD5 sum into a text box in order to compare the sums.
I stopped and thought to myself, why not automate this with Tasker? I looked it up and was surprised to not have found this mentioned anywhere, but it's possible and actually quite easy to do!
Here's a gif of it in action: https://gfycat.com/FlusteredHardtofindAquaticleech
How it works: You copy the md5 sum to your clipboard BEFORE downloading, then when the download finishes you are prompted whether or not you want to compare values. If you press yes, then Tasker will calculate the MD5 sum of the downloaded file and compare it to what's in your clipboard.
Prerequisites
Notification Listener or AutoNotification. I personally use AutoNotification but for the sake of this tutorial I set it up using Notification Listener because it's free to use.
Snackbar Tasker Plugin. Not required (though if you import my profile it uses it) but it beats having to create a scene with buttons. I've set up the tutorial to only use the free features of the app.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Instructions
Create a new profile and name it 'Check MD5 Sums.' For the context, go to Events --> Plugins --> Notification Listener. Select "Posted" and scroll down and pick your browser app. I personally use Chrome Dev so I selected that.
Task --> If. Set it to If %nltext ~ Download complete. (Or whatever sub-text your notification says when your browser app tells you a download has been completed.) This is so the task will trigger when it detects that a download has been completed, as indicated by the browser notification.
Plugins --> Snackbar Tasker Plugin. Select "Bottom Sheet." For the title, make it something like "Check MD5 Sums?", for Items make it "Yes,No" and for commands make it "Y,N".
Task --> If. Set it to If %bs_command ~ Y.
Code --> Run Shell. For the code make it
Code:
ls /sdcard/Download
Set it to store result in %files.
(Change whatever is after /sdcard/ to the path of your download folder. /sdcard/Download is the default for most people)
Variables --> Variable Split. Split %files.
Variables --> Array Pop. Pop %files, position 1, and set it to %download.
Code --> Run Shell. For the code make it
Code:
md5sum /sdcard/Download/%download
Set it to store result in %md5. Again, change the download directory as needed.
Variables --> Variable Split. Split %md5. Don't set a splitter.
Alert --> Flash. Text: "MD5 Sums Match!" Check If and set it to If %md51 ~ %CLIP.
Alert --> Flash. Text: "MD5 Sums are Mismatched!" Check If and set it to If %md51 !~ %CLIP.
Task --> End If.
Task --> End If.
Here are screenshots of the Task:
EDIT: If you've been having issues with this profile, please see my updated profile in this post for a new XML file you can import: http://forum.xda-developers.com/showpost.php?p=66549048&postcount=18. This one should fix all of the issues you guys have had. Plus it uses better logic now, and will only prompt you if you download a .img or .zip file.

Good idea, thanks for sharing!
Sent from my SM-G935F using Tapatalk

This is awesome!! But in my case the script doesn't get triggered. Notification Listener doesn't recognize "Download completed", in fact "Download abgeschlossen" in german. What am I missing? I'm gonna try it with another browser.
Edit: On Cyanogenmod the triggered app with Notification Listener should be "downloads". Now at least the task is triggered, but I always get the message, that the MD5 missmatches, no matter what I download. What am I missing?
What does the array pop do? I never used it. Could it be that I have to enter another position? What's that position?

Ok sorry, I now got it :laugh: I'm so dumb

Here's a quick explanation behind the logic flow of the task for those of you who need to tweak it a bit to get it working on your device:
Context: Tasker detects that a download has finished (it checks this by listening for a notification saying a download is complete, it doesn't actually monitor the folder).
Task: 1) Prompt to ask you if you want to check MD5 values. Not every download you make will need you to check the MD5 value, of course, so there's no point in having it do it every time.
2) If yes, then use a shell command to pull a list of all files within your download directory.
3) Split the variable that holds that file list, because we don't want to deal with every single file, we only want the most recent one.
4) When we array pop the element '1' we are popping variable %files1, in other words, the most recent file in your downloads folder. This pulls the filename of your download.
5) Use a shell command to calculate the MD5 of that file.
6) Compare the output of that shell command (the MD5 sum) with the value in the clipboard.
7) If they match, flash that they match. If they don't, flash that they don't.
The logic is pretty straightforward, but if anyone has issues post em below.

Follow_and_Feel said:
Ok sorry, I now got it :laugh: I'm so dumb
Click to expand...
Click to collapse
I am also dumb, and probably dumber. What did you change?
I had to change the notification listen to Downloads Manager, so that worked, but I still get mismatches. I'm also on CM13.
My default download folder is the same as in the profile. I tried the other formulation too (/emulated/0/... Etc) but no difference :/
OP: have you tried your profile with both Tasker and NL set not to show notifications themselves? I hate having screen real estate taken up by persistent notifications, so I tend to ignore everything! At present, everything is still visible, but I'm curious.

ememeh said:
I am also dumb, and probably dumber. What did you change?
I had to change the notification listen to Downloads Manager, so that worked, but I still get mismatches. I'm also on CM13.
My default download folder is the same as in the profile. I tried the other formulation too (/emulated/0/... Etc) but no difference :/
OP: have you tried your profile with both Tasker and NL set not to show notifications themselves? I hate having screen real estate taken up by persistent notifications, so I tend to ignore everything! At present, everything is still visible, but I'm curious.
Click to expand...
Click to collapse
Can you post the error you're getting?
PS Those notifications on my status bar are from my todo-list, not from Tasker or NL.

I'm getting the mismatch notification, even tho the md5s should match.

ememeh said:
I'm getting the mismatch notification, even tho the md5s should match.
Click to expand...
Click to collapse
Do an Alert --> Flash on %md51 as well as on %CLIP. See if they both actually match.

ememeh said:
I'm getting the mismatch notification, even tho the md5s should match.
Click to expand...
Click to collapse
Well, what I was missing too, is that you (of course) have to copy the MD5sum from the file you're downloading, in order for the profile to compare them (into the clipboard)
That's what I didn't realize (it's not in the OP neither). And then suddenly the %CLIP variable started making sense :laugh:
So I guess you've missed that too?

Follow_and_Feel said:
Well, what I was missing too, is that you (of course) have to copy the MD5sum from the file you're downloading, in order for the profile to compare them
That's what I didn't realize (it's not in the OP neither). And then suddenly the %CLIP variable starts making sense :laugh:
So I guess you've missed that too?
Click to expand...
Click to collapse
It is in the OP, but it's not actually part of the Task itself (because that would be impossible to automate):
"How it works: You copy the md5 sum to your clipboard BEFORE downloading, then when the download finishes you are prompted whether or not you want to compare values. If you press yes, then Tasker will calculate the MD5 sum of the downloaded file and compare it to what's in your clipboard."
Sorry for the confusion, though.

Nope, I always copied the md5 first :/

MishaalRahman said:
It is in the OP, but it's not actually part of the Task itself (because that would be impossible to automate):
"How it works: You copy the md5 sum to your clipboard BEFORE downloading, then when the download finishes you are prompted whether or not you want to compare values. If you press yes, then Tasker will calculate the MD5 sum of the downloaded file and compare it to what's in your clipboard."
Sorry for the confusion, though.
Click to expand...
Click to collapse
Haha no problem Mishaal :laugh: I was just too blind.
ememeh said:
Nope, I always copied the md5 first :/
Click to expand...
Click to collapse
Ok what error do you get then? Maybe something not set up properly?

MishaalRahman said:
Do an Alert --> Flash on %md51 as well as on %CLIP. See if they both actually match.
Click to expand...
Click to collapse
Would I do that in a separate profile/task? I'm new to Tasker. If it's difficult, no worries.

MishaalRahman said:
It is in the OP, but it's not actually part of the Task itself (because that would be impossible to automate):
"How it works: You copy the md5 sum to your clipboard BEFORE downloading, then when the download finishes you are prompted whether or not you want to compare values. If you press yes, then Tasker will calculate the MD5 sum of the downloaded file and compare it to what's in your clipboard."
Sorry for the confusion, though.
Click to expand...
Click to collapse
So here's my issue: When it does the array pop of file1, it grabs the first file in my folder, where all the files are arranged alphabetically. How do you get this array to pull the most recently downloaded file? Because it keeps grabbing the first file alphabetical file and not the most recently downloaded file.

misterpyrrhuloxia said:
So here's my issue: When it does the array pop of file1, it grabs the first file in my folder, where all the files are arranged alphabetically. How do you get this array to pull the most recently downloaded file? Because it keeps grabbing the first file alphabetical file and not the most recently downloaded file.
Click to expand...
Click to collapse
Hmm, popping the first element is what worked for me. I don't know why it's alphabetically arranged for you. Are you sure this is the case? If it is, then you will have to do some clever manipulation by doing a File --> Test File and test the last modified time. You would have to do this for every file in the directory by iterating over a for loop, and finding the file that matches the most recent time.

MishaalRahman said:
Hmm, popping the first element is what worked for me. I don't know why it's alphabetically arranged for you. Are you sure this is the case? If it is, then you will have to do some clever manipulation by doing a File --> Test File and test the last modified time. You would have to do this for every file in the directory by iterating over a for loop, and finding the file that matches the most recent time.
Click to expand...
Click to collapse
Yes, I'm sure. And that's a good idea. I'll take a crack at that and report back.

misterpyrrhuloxia said:
Yes, I'm sure. And that's a good idea. I'll take a crack at that and report back.
Click to expand...
Click to collapse
Whoa, that's a huge image! Anyways, don't fret about it. I figured it all out. You're right, the profile was only popping the first element! I didn't notice that at first because in my testing my downloads folder was always empty before downloading a new file
In any case, I've solved the issue and it should work with ANY number of files in the directory. I've also taken a suggestion in my article's comments about it being annoying in prompting you for every file, so now it will only prompt you for the file extensions you choose. Right now I've set it to only ask for .img and .zip.
Attached below is my full, personal set-up. I use AutoNotification and Snackbar Plugin Pro, so you can simply change those around to use the free options, but the rest of the task can simply be copied over.

MishaalRahman said:
Attached below is my full, personal set-up. .
Click to expand...
Click to collapse
Mind posting the description?
Sent from my SM-G935F using Tapatalk

MishaalRahman said:
Whoa, that's a huge image! Anyways, don't fret about it. I figured it all out. You're right, the profile was only popping the first element! I didn't notice that at first because in my testing my downloads folder was always empty before downloading a new file
In any case, I've solved the issue and it should work with ANY number of files in the directory. I've also taken a suggestion in my article's comments about it being annoying in prompting you for every file, so now it will only prompt you for the file extensions you choose. Right now I've set it to only ask for .img and .zip.
Attached below is my full, personal set-up. I use AutoNotification and Snackbar Plugin Pro, so you can simply change those around to use the free options, but the rest of the task can simply be copied over.
Click to expand...
Click to collapse
That's awesome! It didn't work for me neither, because the first file in my case was a download folder from the app XDA Labs. Had to delete it
RuggedHunter said:
Mind posting the description?
Sent from my SM-G935F using Tapatalk
Click to expand...
Click to collapse
Yeah +1. I don't know why, but I can't seem to import any of your .xml files into tasker. It'd be nice, if you found the time to post a step by step guide regarding the modified script. Or maybe even update the OP
EDIT: I tried again to import it. I always get the error message: "Tasker is not able to load this data"
EDIT 2: I feel really stupid right now. I can import it. For christs sake - stupidity at its best :laugh:

Related

[5/12] Advanced Feed Development

Alright everyone, I'm Trailblazer101, an Android Developer who likes to take advantage of, and make better, the unique features of the phones I purchase. I started off with the Samsung Continuum back in 2010, which had a ticker ahead of its time, and went from there. I work 2 jobs, so time is tight sometimes, but I still manage to work on these things, a fun passion/hobby.
Status Updates
Code:
5/12
--- I got my patch working, and tested it out with a simple demo that takes advantage of the new capabilities. I've posted a Guide below!
5/10
--- Now that Verizon users have root, I will begin testing this myself :) Thanks to those who helped me figure out what we'd have to do, so I can get started right off the bat! I'll keep you posted.
What is this?!!
Okay, so by default the Feeds that you can make are restricted to the capabilities of a RemoteView. This severely limits what you can do with the Feed. Take a look here to see what exactly is supported, by default: http://stackoverflow.com/a/16089389
However, any Samsung App (which includes a few signed by Samsung on the Galaxy Apps Exclusives page) has the ability to put whatever it wants on the screen, just like a regular App. I've now extended that invitation on over to you/us!
Guide
The steps to take advantage of this is a little convoluted, so let me break it down for you easy!
STEP 1:
You have to flash my patch to allow this development to actually work. You can download it here: View attachment Trailblazer101_S6Edge_Advanced_Feeds_Patch.zip. Then flash it using FlashFire, or extract the zip and put everything where it needs to go, making sure to set the permissions appropriately!
STEP 2:
Now you can start developing your new Custom Feed! I would suggest using my simple demo project as your base, and going from there! You can find that here: View attachment EdgeScreen-BACKUP.zip. Extract it and take a look at the source!
STEP 3:
From here on out is where things get tricky... Without changing a thing, if you build from source and try to debug, it won't work. Why? Because the API that Samsung gives developers, like us, is different than the one they use for themselves. So Here's what you gotta do-- without changing a thing, build the Project. The best way to do that without debugging within Android Studio is to go to Gradle Projects -> :app -> Tasks -> build -> assembleDebug. This'll make the built apk and put it within "..\.EdgeScreen-BACKUP\app\build\outputs\apk\app-debug.apk".
STEP 4:
I'm assuming you have the latest Java Development Kit, and Android SDK, installed and configured properly, with their paths in the PATH variable, accordingly. You should also know how to use apktool for decompilation, at least a little I've compiled a toolkit folder based off of the test Project I shared above, which includes apktool, the NEW Samsung API files, the original built apk, and the already modified decompiled source/apk. You can download that here: View attachment Decompilation_Data.zip. Then, open a Command Prompt window and "cd" to the extracted folder.
STEP 5:
Decompile the built apk, which should be the same as the one in the extracted folder, using apktool like this:
Code:
.\apktool\apktool d -f TestFeed_orig.apk
STEP 6:
Compare the decompiled folder "TestFeed_orig" with my already modified "TestFeed_modded" one. I suggest using WinMerge! You'll see that the 'TestFeed_orig\smali\com\samsung\android\sdk' folder is very different. That's what I was talking about before, how Samsung Feeds have more options in their API. So delete the 'TestFeed_orig\smali\com\samsung' folder, and replace with the one in the '---SAMSUNG API---' folder.
STEP 7:
Continue comparing the two folders. Basically the rest of the changes are just getting our application to call the new Samsung API properly, instead of the stubs I was using in the Project. There aren't many changes you have to make, but they're all important!
STEP 8:
Once the two folders are the same, recompile it using apktool, like so:
Code:
.\apktool\apktool b TestFeed_orig
STEP 9:
Sign the new compiled apk stored in 'TestFeed_orig\dist' using your signing key. You can make your own, then use it to sign the app, following the instructions here: Official Instructions for Manual Signing.
STEP 10:
Install the newly signed apk, and enable the Feed by going to: Settings-> Edge screen -> Information stream -> Manage Feeds -> *ENABLE* FeedsCocktailExample! You may have to restart, or just hit 'reorder' in the top left. That sometimes fast-triggers it. Now turn off the screen, do the Feed Gesture to get it to turn on, and you should see our Custom Feed! It doesn't look like much, but it's using a custom view, HorizontalTextView, that would not work otherwise.
From here the options are endless. You can follow these steps and my Sample Project to play a video for a feed, if you wanted! Whatever strikes your fancy!
If you followed these steps and appreciate the help, show this thread some love, and maybe. Well i'd say buy me a beer, but it'll probably go to textbooks instead
Developer/Advanced Information!
We can make our own Feeds no problem, without root, they are just forced to use a RemoteView directly, which for all intents and purposes, is a pain in the kiester. Instead, it would be a lot nicer/convenient, without even mentioning the more advanced functionality we could bring, to use our own Views. However the version of SlookCocktailManager.UpdateCocktail that allows this is only found within a more advanced API, one I/no typical user don't have access to directly. BUT, I can still access it by decompiling for example the Edge RSS app from the Samsung AppStore, and putting/replacing the "sdk" folder from that into my own decompiled app, and recompiling. Easy enough, with apktool! (Of course with the headache of adding in my own temporary shell classes, in the project, so that I can actually write the calls, and just change the reference within the smali code once that sdk is replaced) The problem is, even when you do this, and it builds fine, installs great, and even begins initializing properly, we get an error from within CocktailBarService, the file I'm having you replace. More specifically, I tracked down the actual problem, and it comes back to "CocktailWhiteList", a class within CocktailBarServices, then checks the signature of the calling application, our Custom Feed, and sees if it comes from Samsung. This none of my expertise can fix, without being rooted, but trust me I tried. Now that we are rooted I was able to patch said apk, and get my own apps to work! Hurray!
cocktailbar service crashes when going into 'edge screen' option in settings menu.
logcat attached
Edit: sorry didn't rename cocktail bar (cocktailbarservice_signed to cocktailbarservice)
now it doesn't visibly crash, it just wont let me go into 'edge screen' option in settings menu
new log cat uploaded
This man looks promising! You have my S6 edge as soon as I have an official TWRP with working backup and restore
ktetreault14 said:
This man looks promising! You have my S6 edge as soon as I have an official TWRP with working backup and restore
Click to expand...
Click to collapse
I will help as well, when these tools are out for us..
Thanks for bringing cool stuff like this to the phone at this early date!
ktetreault14 said:
This man looks promising! You have my S6 edge as soon as I have an official TWRP with working backup and restore
Click to expand...
Click to collapse
How deep are you willing to go? Because it would be awesome if you could clear dalvik-cache, since I see this, right off the bat:
Code:
: Failed to find OatDexFile for DexFile /system/priv-app/CocktailBarService/CocktailBarService.apk ( canonical path /system/priv-app/CocktailBarService/CocktailBarService.apk) with checksum 0xfbfcb9f7 in OatFile /data/dalvik-cache/arm64/[email protected]@[email protected]@classes.dex
EDIT: could you also make sure that you set the right permissions for the apk? I'm getting the impression that they might be off with:
Code:
msg=audit(1429397519.049:355): auid=4294967295 uid=10001 gid=10001 ses=4294967295 subj=u:r:untrusted_app:s0 pid=12605 comm="ktailbarservice" reason="memory violation" sig=11
EDIT2: We might have to disable SELinux... That's rather unfortunate/puts a rather large damper on things, until custom kernels come out at least... After starting a root shell, can you try:
Code:
setenforce 0
I don't know if it'll work, but if that goes through successfully try and launch the Edge Settings Screen again!
EDIT3: Do'h. It may have been something really simple *crosses fingers* Could you please re-download the CocktailBarService, and try doing the same thing you did last time, with right permissions, and maybe a dalvik-cache wipe if it doesn't work!?
Tried the new apk you uploaded. Getting a force close still when trying to open. I changed SELINUX to permissive, wiped dalvik, even tried deleting arm64 folder as well. No luck.
04-19 00:25:09.907 E/AndroidRuntime(15867): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.samsung.android.app.cocktailbarservice/com.samsung.android.app.cocktailbarservice.settings.EdgeScreenSettingsMain}: java.lang.SecurityException: Permission Denial: get/set setting for user asks to run as user -2 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL
Was searching through logcat and found this. May this have something to do with the issue?
wase4711 said:
I will help as well, when these tools are out for us..
Thanks for bringing cool stuff like this to the phone at this early date!
Click to expand...
Click to collapse
Don't mean to hijack thread, but "Tool" is already available here:
NB: Chrome and IE don't translate into "Save file" - Use Mozilla which does > copy to phone and flash.
https://blck.io/twrp-2.8.6.0-zeroltetmo.img
Perfectly working on T-Mobile S6 Edge
Will
RoM_Addict said:
Don't mean to hijack thread, but "Tool" is already available here:
NB: Chrome and IE don't translate into "Save file" - Use Mozilla which does > copy to phone and flash.
https://blck.io/twrp-2.8.6.0-zeroltetmo.img
Perfectly working on T-Mobile S6 Edge
Will
Click to expand...
Click to collapse
that version doesn't work properly for me and many others; waiting for an "official" version from the TWRP folks..
trailblazer101 said:
How deep are you willing to go? Because it would be awesome if you could clear dalvik-cache, since I see this, right off the bat:
Code:
: Failed to find OatDexFile for DexFile /system/priv-app/CocktailBarService/CocktailBarService.apk ( canonical path /system/priv-app/CocktailBarService/CocktailBarService.apk) with checksum 0xfbfcb9f7 in OatFile /data/dalvik-cache/arm64/[email protected]@[email protected]@classes.dex
EDIT: could you also make sure that you set the right permissions for the apk? I'm getting the impression that they might be off with:
Code:
msg=audit(1429397519.049:355): auid=4294967295 uid=10001 gid=10001 ses=4294967295 subj=u:r:untrusted_app:s0 pid=12605 comm="ktailbarservice" reason="memory violation" sig=11
EDIT2: We might have to disable SELinux... That's rather unfortunate/puts a rather large damper on things, until custom kernels come out at least... After starting a root shell, can you try:
Code:
setenforce 0
I don't know if it'll work, but if that goes through successfully try and launch the Edge Settings Screen again!
EDIT3: Do'h. It may have been something really simple *crosses fingers* Could you please re-download the CocktailBarService, and try doing the same thing you did last time, with right permissions, and maybe a dalvik-cache wipe if it doesn't work!?
Click to expand...
Click to collapse
Hi trailblazer, I set the permissions the same as the original apk ,
right lets try again: I've downloaded the new version and set permissions, wiped dalvik-cache but when trying to disable SELinux i get
tmp-mksh: 0 : not found.
and when going into 'edge screen' settings i get unfortunsatly cocktailbar service has stopped.
Catlog attached:
I used this to modify SELINUX. For anyone else who is helping out, try this.
[4/19] QuickLaunch Demo And Advanced Feed Development Request For Rooted Users
b-reezy said:
I used this to modify SELINUX. For anyone else who is helping out, try this.
Click to expand...
Click to collapse
I sent you a PM! I explicitly declared that permission for each activity, so let's see how it goes now! I put the same apk I sent you now on the OP, so the other testers can try it! In the mean-time, I do have something real for you guys to play with! It's the QuickLaunch window, customizable and all (from hitting the Feeds Settings Icon). I'll put that in the OP with the tag "WORKS(Kinda)"!
One thing, which is a big reason why I'm trying to do it this way-- clicking the icons launches the app, it just doesn't turn the screen back on! I've tracked it down, and it seems as if when the Feed Screen is on, it has the SCover flag set to on, manually, but when a user clicks a button from another Feed, it turns that flag back off, thus turning the screen back on. The easiest/cleanest way for us to do that too would be our Custom Feed Panel implementing the same OnClickHandler that the others do, just can't without doingwhat we're trying to do!
EDIT: Please still use the QuickLaunch apk with the tag "Signed" though for testing the replacement of CocktailBarService! My new one just does it the bad way, and had to get rid of the code for trying the good.
(There's other ways to turn the screen on, but the way I'm trying to do it does it easily, and allows for more advanced functionality!)
FOR DEVELOPERS:
If you are interested in taking what I have and running with it/collaborating, I am more than willing to send all sources of what I have so far, my resources that I've been using, along with all information gathered so far. Just ask!
Hopefully this will become available for non-rooted. I am DIEING to get more functionality out of the Edge API for this phone. The feed is an awesome option, but having to swiping finger is a pain in the @$$. A double tap on the edge or an automatic turn on would be AWESOME when Texts or missed calls are there.
b-reezy said:
I used this to modify SELINUX. For anyone else who is helping out, try this.
Click to expand...
Click to collapse
BTW.. can be disabled in the kernel source also.. I did that in m8 times
trailblazer101 said:
I sent you a PM! I explicitly declared that permission for each activity, so let's see how it goes now! I put the same apk I sent you now on the OP, so the other testers can try it! In the mean-time, I do have something real for you guys to play with! It's the QuickLaunch window, customizable and all (from hitting the Feeds Settings Icon). I'll put that in the OP with the tag "WORKS(Kinda)"!
One thing, which is a big reason why I'm trying to do it this way-- clicking the icons launches the app, it just doesn't turn the screen back on! I've tracked it down, and it seems as if when the Feed Screen is on, it has the SCover flag set to on, manually, but when a user clicks a button from another Feed, it turns that flag back off, thus turning the screen back on. The easiest/cleanest way for us to do that too would be our Custom Feed Panel implementing the same OnClickHandler that the others do, just can't without doingwhat we're trying to do!
EDIT: Please still use the QuickLaunch apk with the tag "Signed" though for testing the replacement of CocktailBarService! My new one just does it the bad way, and had to get rid of the code for trying the good.
(There's other ways to turn the screen on, but the way I'm trying to do it does it easily, and allows for more advanced functionality!)
FOR DEVELOPERS:
If you are interested in taking what I have and running with it/collaborating, I am more than willing to send all sources of what I have so far, my resources that I've been using, along with all information gathered so far. Just ask!
Click to expand...
Click to collapse
Liking the Quicklaunch app , are you still needing testers? or have you got all the info you need?
Alex-V said:
BTW.. can be disabled in the kernel source also.. I did that in m8 times
Click to expand...
Click to collapse
Exactly and imo its better if its done this way..
for anyone interested
you need to edit the security/selinux/selinuxfs.c file from source
FIND:
Code:
selinux_status_update_setenforce(new_value);
#else
ADD RIGHT BELOW "#else":
Code:
new_value = 0;
So it becomes:
Code:
selinux_status_update_setenforce(new_value);
#else
new_value = 0;
or use this one (from the G925F source)
friedrich420 said:
Exactly and imo its better if its done this way..
for anyone interested
you need to edit the security/selinux/selinuxfs.c file from source
FIND:
Code:
selinux_status_update_setenforce(new_value);
#else
ADD RIGHT BELOW "#else":
Code:
new_value = 0;
So it becomes:
Code:
selinux_status_update_setenforce(new_value);
#else
new_value = 0;
or use this one (from the G925F source)
Click to expand...
Click to collapse
yeah.. that's the one I used.. I'm still for and back to root or not..means for me.. develop roms and kernels ..or use it as it is.. lol..
friedrich420 said:
Exactly and imo its better if its done this way..
for anyone interested
you need to edit the security/selinux/selinuxfs.c file from source
FIND:
Code:
selinux_status_update_setenforce(new_value);
#else
ADD RIGHT BELOW "#else":
Code:
new_value = 0;
So it becomes:
Code:
selinux_status_update_setenforce(new_value);
#else
new_value = 0;
or use this one (from the G925F source)
Click to expand...
Click to collapse
Hii my friend, i also still , have a non rooted S6 Edge :thumbup:
Hey guys, I finished the QuickLaunch Feed and posted it in the Apps Folder here:
Click Me!
I did manage to get it to turn the screen on, then, with the clicking of the shortcuts, and it still launches it once unlocked (if you have a lockscreen). I am going to begin work on a music player Feed, now
I will continue development on more advanced Feeds, and also delve into enhancing the edge in other ways, once we Verizon users get root (or until I win the lottery and get a Sprint version ). I see all these great opportunities to make it better, I just can't do anything with it until I'm rooted, since this didn't go as well as I planned. Where we are stuck at now is this, and where it would be too much of a pain for me to do without a phone of my own to test one:
We need to re-sign the system with a signature key we have access to. This includes framework, apps, and the priv-apps signed with the samsung key. Then I can go about doing what I wanted to do, but otherwise, it's a no go.
A developer who does have a Sprint or T-Mobile version with root, I can tell you the information I gathered so far. I have seen where the 'turn screen on gesture' is stored, and all these other great things, I just can't right now
trailblazer101 said:
Hey guys, I finished the QuickLaunch Feed and posted it in the Apps Folder here:
Click Me!
I did manage to get it to turn the screen on, then, with the clicking of the shortcuts, and it still launches it once unlocked (if you have a lockscreen). I am going to begin work on a music player Feed, now
I will continue development on more advanced Feeds, and also delve into enhancing the edge in other ways, once we Verizon users get root (or until I win the lottery and get a Sprint version ). I see all these great opportunities to make it better, I just can't do anything with it until I'm rooted, since this didn't go as well as I planned. Where we are stuck at now is this, and where it would be too much of a pain for me to do without a phone of my own to test one:
We need to re-sign the system with a signature key we have access to. This includes framework, apps, and the priv-apps signed with the samsung key. Then I can go about doing what I wanted to do, but otherwise, it's a no go.
A developer who does have a Sprint or T-Mobile version with root, I can tell you the information I gathered so far. I have seen where the 'turn screen on gesture' is stored, and all these other great things, I just can't right now
Click to expand...
Click to collapse
very nice.. thanks my friend ?
This is just sounding AWESOME! I am on AT&T so will have to wait as well for Root. I was wondering if there is a possability for the edge to just turn on, on its own without the need to swipe the screen? Like when a new notification comes in it will just scroll across the edge (or maybe the icon will blink on and off until you see it and swipe).
I still feel the swipe is to hard to do consistantly and would rather use a double tap or something if the auto on isn't possible.

[GUIDE][Difficulty: Beginner] Take a Picture and Grab Location on Failed Unlock

Hello everyone. Here's a quick and easy Tasker profile for anyone wanting to beef up the security on their phone. There are many apps that can do this for you, but if you would like to customize exactly what information gets recorded and where it gets sent to then implementing this feature in Tasker is your best bet.
Prerequisites
Secure Settings plug-in
Cloud Sync plug-in such as Dropsync or Foldersync (OPTIONAL)
Pushbullet or Join for notifying your other devices (OPTIONAL)
Instructions
Ensure that Secure Settings is set as a Device Administrator by opening the app and going to the Preferences screen. This is so the plugin has the ability to monitor unlocking attempts.
Open Tasker, and create a new profile by clicking on the + sign on the bottom-right. Name your profile 'Discreet Picture' or whatever it is you like.
Create a "State" context and select "Secure Settings" under the "Plugin" state category.
Press the pencil icon to open up Secure Setting's options. Expand the "Conditions" arrow and choose the "Failed Login Attempts" option.
Under "Maximum Failed Login Attempts" enter the number of failed login attempts that must occur before the context is fired. Also, double check that "Device Admin Enabled" is already checked. If not, go back and enable it.
Click the save icon up top to exit configuring the Secure Settings context. When you're back in the Tasker screen, press your back key to exit setting up the context.
Tasker will now ask you to set up a new task associated with this context. Click on "New Task" and optionally give the task a name. Before we move on, here's a picture of what the context screen should look like.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Now that you've set up the context, it's actually time to set up the task that fires when an incorrect lock-screen input is detected. For each instruction listed below, press "+" at the bottom to bring up the list of Actions you can choose from.
Variables --> Variable Convert. Under Name type in %TIMES or select it from the list of built-in variables by pressing on the note icon. Under Function, choose "Seconds to Medium Date Time" and under Store Result In type in %date.
Media --> Take Photo. Under Camera pick the Front camera. For the filename, type in %date. Deselect "Insert in Gallery" to ensure that the photo can't be seen in any gallery apps. Select "Discreet" to disable the shutter sound when Tasker takes the photo. For Resolution, you can pick whatever you want, however I would recommend selecting a high resolution to get a clear picture. Leave everything else as default.
OPTIONAL: If your phone is rooted, you can toggle location services to ensure it's on by going to Secure Settings and selecting Location Mode under the System+ dropdown. You would first have to enable the System+ Module within Secure Settings before the application will allow you to select this option, however. If you are unrooted, then your only option to automate enabling location services is to use an app like AutoInput to simulate touch inputs.
Location --> Get Location. For source, I would recommend "Any" to ensure Tasker can get an accurate lock on your location.
OPTION A: Phone --> Send SMS. Under Number, you can choose a telephone number to send an SMS with the location to. Just put %LOC under Message and Tasker will populate the SMS Message with whatever GPS coordinates it pulled earlier.
OPTION B: Plugin --> Pushbullet. Open Pushbullet settings, and select the device you want to push to. For the title, you can set something that will alert you. In the message, put %LOC under Message to populate the GPS coordinates.
OPTION C: File --> Write File. Under File, type in /sdcard/DCIM/Tasker/%date.txt in order to write to a text file named with the date that the incorrect attempt was made. Under Text, type in %LOC.
OPTION C (cont.): Plugin --> Dropsync/Foldersync. Make Tasker perform a manual sync of the /sdcard/DCIM/Tasker folder. I recommend you set up either app to upload the file then delete it from your phone.
That's it! Your phone should now notify you with a picture and a location whenever an incorrect unlock attempt has been made.
this is genius. should be a security feature in android
I'm missing where the photo is attached to the sms. Does that only work with option c?
kkbarrier said:
I'm missing where the photo is attached to the sms. Does that only work with option c?
Click to expand...
Click to collapse
Good point! I based it off of my own set-up, which uses Option C, but unfortunately you can't automatically compose and then send an MMS without the screen being temporarily unlocked then locked, as Tasker only allows you to compose an MMS but not immediately send it. You would have to quickly unlock the screen in the background, then use AutoInput to paste the message and send it to the right number. But temporarily unlocking it when it's in a thief's possession would be risky, no?
This is useless. (especially peoples like me steal a smart phone) there will be no internet connection and if the there is an internet connection thief will not try to guess the password or pattern he will flash twrp and remove the /data/system/gesture.key and he will get access easily hahahahha lol
lol
DarkFrenzy said:
This is useless. (especially peoples like me steal a smart phone) there will be no internet connection and if the there is an internet connection thief will not try to guess the password or pattern he will flash twrp and remove the /data/system/gesture.key and he will get access easily hahahahha lol
Click to expand...
Click to collapse
My phone's twrp will be locked!!:silly:
Paramvir Singh said:
My phone's twrp will be locked!!:silly:
Click to expand...
Click to collapse
Can flash any other recovery or unlock it hahahha
Sent from my ASUS_T00F using XDA Free mobile app
hmm
DarkFrenzy said:
Can flash any other recovery or unlock it hahahha
Sent from my ASUS_T00F using XDA Free mobile app
Click to expand...
Click to collapse
right bro just joking...
DarkFrenzy said:
This is useless. (especially peoples like me steal a smart phone) there will be no internet connection and if the there is an internet connection thief will not try to guess the password or pattern he will flash twrp and remove the /data/system/gesture.key and he will get access easily hahahahha lol
Click to expand...
Click to collapse
I can't say i fully agree. Ofcourse one can get their phone stolen by someone that knows their way around a phone BUT, seeing as 90%+ of phone users worldwide have no clue what "TWRP" or "Custom Recovery" is, i think this feature will work great for many users.
One can ofcourse be unlucky and get their phone stolen, but mostly phones are lost / forgot somewhere.
Thanks for this @MishaalRahman, great feature!
- Renolz
renolz said:
I can't say i fully agree. Ofcourse one can get their phone stolen by someone that knows their way around a phone BUT, seeing as 90%+ of phone users worldwide have no clue what "TWRP" or "Custom Recovery" is, i think this feature will work great for many users.
One can ofcourse be unlucky and get their phone stolen, but mostly phones are lost / forgot somewhere.
Thanks for this @MishaalRahman, great feature!
- Renolz
Click to expand...
Click to collapse
I doubt most people in the 90%+ can even follow half this tutorial; before we get to TWRP. Unless this gets an easier way to do this, I don't see it helping that many users outside XDA
Aeonia said:
I doubt most people in the 90%+ can even follow half this tutorial; before we get to TWRP. Unless this gets an easier way to do this, I don't see it helping that many users outside XDA
Click to expand...
Click to collapse
Agreed!
- Renolz
10 times failed attempt then erase the phone.use the open recovery script
Great idea but it´s a lot easier if you use a Anti-Theft App like eg. Cerberus if you´re rooted anyway
not getting through!
i did exactly the same thing but im not getting any pics taken! Should tasker also be set to device admin ??
DarkFrenzy said:
This is useless. (especially peoples like me steal a smart phone) there will be no internet connection and if the there is an internet connection thief will not try to guess the password or pattern he will flash twrp and remove the /data/system/gesture.key and he will get access easily hahahahha lol
Click to expand...
Click to collapse
Deleting gesture.key removes security lock?
I'm attaching the screen shots here!!
Sent from my XT1092 using Tapatalk
'Discrete Picture'
Click to expand...
Click to collapse
While this is still true, the word you're looking for is discreet. Wildly different meanings.
DarkFrenzy said:
This is useless. (especially peoples like me steal a smart phone) there will be no internet connection and if the there is an internet connection thief will not try to guess the password or pattern he will flash twrp and remove the /data/system/gesture.key and he will get access easily hahahahha lol
Click to expand...
Click to collapse
This is not useless at all. I wouldn't rely on this method to recover my phone if it's stolen, I just want to know if someone tries to unlock it without my permission
And people do try to unlock it when they find it, unless they know further about Android and its possibilities.
akaHardison said:
10 times failed attempt then erase the phone.use the open recovery script
Click to expand...
Click to collapse
This is a good idea, and especially great now that Marshmallow gives you so many chances to unlock! However, I'm a bit wary trusting things not to go wonky on me and randomly wiping my phone...call me paranoid.
Gorgtech said:
Great idea but it´s a lot easier if you use a Anti-Theft App like eg. Cerberus if you´re rooted anyway
Click to expand...
Click to collapse
Yup, Cerberus can do it, but it's a paid service.
Me_Ashish_ said:
Deleting gesture.key removes security lock?
Click to expand...
Click to collapse
If you have TWRP, then yes essentially anyone can remove the security from your phone. IF they know what file they need to delete. This is why you should flash your ROM and then flash stock recovery + lock bootloader again if you truly want to run custom but still be secure.
JeyanthMandava said:
I'm attaching the screen shots here!! View attachment 3675101View attachment 3675102View attachment 3675103View attachment 3675104View attachment 3675105View attachment 3675108View attachment 3675109
Sent from my XT1092 using Tapatalk
Click to expand...
Click to collapse
Check to make sure that there's no .nomedia file in /sdcard/DCIM/Tasker preventing it from showing up. Try connecting your phone to your computer to double check.
FenrirMX said:
While this is still true, the word you're looking for is discreet. Wildly different meanings.
Click to expand...
Click to collapse
Oops.
DarkFrenzy said:
This is useless. (especially peoples like me steal a smart phone) there will be no internet connection and if the there is an internet connection thief will not try to guess the password or pattern he will flash twrp and remove the /data/system/gesture.key and he will get access easily hahahahha lol
Click to expand...
Click to collapse
This will only work for pattern lock, if the user has pin lock it won't work.
Me_Ashish_ said:
Deleting gesture.key removes security lock?
Click to expand...
Click to collapse
Only the pattern lock.

Can I have tasker automatically delete a file within root?

I am sure many of us are playing Fire Emblem Heroes. Every time I load the game I keep getting an Error 803-3001. A temporary fix that I found so far is just manually delete a file: data/data/com.nintendo/zaba/shared_prefs/deviceAccount:.xml and then relink my account Error 3
I am quite new to tasker and starting to explore it more. I found that I can create a widget short that would launch apps and more. It looks like one option is set commands through secure settings. I assume I can set a command to delete that xml file and then have it launch the game. I don't know how to quite do this and thus
I did notice that Tasker has a delete file function but I don't think it work for root.
I am hoping to get some help on how to do this, so I don't brick my device.
I'm pretty much a Tasker n00b, but I imagine you'd want something along the lines of:
code action ---> run shell
command 'rm /data/data/com.nintendo/zaba/shared_prefs/deviceAccount.xml' with 'use root' checked
maybe add a wait action like 1 second or something, and then the launch app action and make a widget.
I think...that's off my head and I don't have my phone with me.
Andromeda_Station said:
I'm pretty much a Tasker n00b, but I imagine you'd want something along the lines of:
code action ---> run shell
command 'rm /data/data/com.nintendo/zaba/shared_prefs/deviceAccount.xml' with 'use root' checked
maybe add a wait action like 1 second or something, and then the launch app action and make a widget.
I think...that's off my head and I don't have my phone with me.
Click to expand...
Click to collapse
Yeah I tried that and got error 255. See attached screenshot.
I also read somewhere there may be permission issues with the file. I did try to set the permission of the file first (I know you can do it in tasker, but I did it manually, where chmod=777).
Huh...not a real helpful error lol.
Might be worth installing a terminal emulator and doing the command through that and see what happens? Maybe get a more informative error. I wonder, if maybe the 'su' command needs to be issued first even though 'use root' is checked.
Andromeda_Station said:
Huh...not a real helpful error lol.
Might be worth installing a terminal emulator and doing the command through that and see what happens? Maybe get a more informative error. I wonder, if maybe the 'su' command needs to be issued first even though 'use root' is checked.
Click to expand...
Click to collapse
i did a stupid coding errror...
So the post states data/data/com.nintendo/zaba/shared_prefs/deviceAccount:.xml
I copied and pasted this path from the URL posted. when trying it the first time.. I couldn't much info on the error from the screenshot.
So I took your advice and downloaded a terminal emulator... the one I used didn't let me copy and paste so I typed out the wrong path from the URL posted.. and it gave me a "file not found" error...
When checking solid explorer, it is actually /com.nintendo.zaba.. now it works with the initial tasker shell.
Thanks for all your help.
Now only if I can instead make a widget tasker shortcut, make an icon within my app drawer for this "batch" file.
Ah, nice
I've never tried this, but I remember reading if you create the tasks/profile in their own project it can be exported as an apk.
edit: here's what I saw I think:
https://www.reddit.com/r/tasker/comments/1pi6nd/how_do_i_create_an_app_from_a_profile/
Andromeda_Station said:
Ah, nice
I've never tried this, but I remember reading if you create the tasks/profile in their own project it can be exported as an apk.
edit: here's what I saw I think:
https://www.reddit.com/r/tasker/comments/1pi6nd/how_do_i_create_an_app_from_a_profile/
Click to expand...
Click to collapse
Thanks! I will look into it.

[APP][NST/G] Reading Now button menu

See post #50 for a new user-customizable version, RN Menu 2.0!
*Updated to v. 1.1.1--more accurate placement of menu in landscape*
Version 1.2.1 substitutes FastMode2 for NoRefresh.
This app is a toggle which places a small menu directly below the status bar "reading now" button and extends the function of that button. While the app can be used as a stand-alone toggle, it is best used by reassigning the "reading now" button with Nook Touch ModManager to the app. No function is lost, as the first item on the short menu is "reading now". As currently configured, the menu options are:
1. Reading Now (same as original stock button function)
2. Orientation (a landscape/portrait toggle using Rotation Locker)
3. No Refresh
4. Set Cover (which potentially sets the screensaver image to the current book cover)
See screenshot below.
While the app is not user-configurable (maybe some day, probably not) now that I have produced a template to work with it is reasonably easy to customize and I would entertain requests for specific items--assuming I can figure out how to implement them! There have been other approaches to setting a menu in this position, but they have involved modding jars and have been limited to specific firmwares. This app should run on all firmwares and does not require modification of any jar files. If you don't like it, you just uninstall it and it's over and done with. For me, this project has been a proof of concept and I've learned a lot. Maybe an extended power menu is next?
Requirements
--Rotation Locker (attached below) (required for Orientation option)
--No Refresh Toggle (I am running NoRefreshToggle-debug2, but it may not matter--someone can let me know?)
--Root (required for Set Cover option and for menu itself as of v.1.1.1)
--sqlite3 (available in this post where the screensaver option setup is explained in detail)
--As this is a Tasker-generated app (but does not require Tasker to run!) there is a dependency on two library files normally installed with GApps. If you do not have GApps installed on your device, you can still use this app by copying the two attached files into the locations shown below (the xml file is zipped so you can download it rather than view it):
/system/etc/permissions/com.google.android.maps.xml
/system/framework/com.google.android.maps.jar
Set permissions for both files to rw-r--r-- and reboot. Without these files resident, the app will not install.
---------------------------------------------------
How to use
The best implementation is to reassign the "reading now" button to this app using Nook Touch ModManager. When that is done, tapping on the "reading now" icon will produce the menu and you can make your selection from there. If you inadvertently tap the icon, you can dismiss the menu by tapping again. It's a toggle. Starting with v. 1.1.1, root is required to allow the app to query the current screen orientation. This enables a more accurate placement of the menu in landscape mode.
The screen orientation by default is, of course, Portrait, so the toggle goes immediately to Landscape. Landscape runs as a background service (notification) to lock in the feature since some apps resist the change. Selecting orientation again returns you to Portrait and ends the background service until the next selection. It's also possible to exit Landscape by tapping on the notification. This brings up the three-line menu (invisible text unless you have altered your background image colors). The top option is Portrait.
The first time you select Set Cover you will be asked to allow root access. This part of the app includes shell commands and thus needs root access.
That's it! I'd appreciate bug reports and/or suggestions and welcome requests for customized menus (at least for now!). Enjoy!
@nmyshkin I really appreciate you continuing to develop this wonderful device. Thank you for everything you've done on the NST.
I have a request, if you have time and it's not too much trouble.
1. Reading Now
2. Renate's Temblast Library (which I use as a quick list of what I'm currently reading)
3. Fastmode2
4. Your new USB Audio Toggle
ALinkToTao said:
I have a request, if you have time and it's not too much trouble.
1. Reading Now
2. Renate's Temblast Library (which I use as a quick list of what I'm currently reading)
3. Fastmode2
4. Your new USB Audio Toggle
Click to expand...
Click to collapse
I can do that easily if I know how the library is supposed to work. Is it just sending an intent, starting an app or....?
Also, there's nothing magic about 4 items, so if you want fewer or more, that's doable.
Edit: I've looked at the Library app. Very straightforward tap-and-go. So just let me know if you want any more (or fewer) items and I'll get on it.
nmyshkin said:
I can do that easily if I know how the library is supposed to work. Is it just sending an intent, starting an app or....?
Also, there's nothing magic about 4 items, so if you want fewer or more, that's doable.
Edit: I've looked at the Library app. Very straightforward tap-and-go. So just let me know if you want any more (or fewer) items and I'll get on it.
Click to expand...
Click to collapse
Wow! That's awesome! Yeah, I think those four would be awesome!
Could you also make one with
1. Reading Now
2. Renate's Temblast Library
I have bought and rooted many NST's for friends and having just those two options will be very convenient for them... They aren't really techy, so too many options would just confuse them.
That would be useful for them when I make other NST's. I'm planning on making 3 more, so I think that would be great! The one with 4 options on it, I'd be using personally.
ALinkToTao said:
Wow! That's awesome! Yeah, I think those four would be awesome!
Could you also make one with
1. Reading Now
2. Renate's Temblast Library
I have bought and rooted many NST's for friends and having just those two options will be very convenient for them... They aren't really techy, so too many options would just confuse them.
That would be useful for them when I make other NST's. I'm planning on making 3 more, so I think that would be great! The one with 4 options on it, I'd be using personally.
Click to expand...
Click to collapse
These are the apps you're looking for {waves hand vaguely}.
Thanks so much! I'll put it to use and see how it runs. I'm sure it will be great.
It runs great! I have noticed that this theoretically could be used to have a second quicknav menu. You can activate it also by programming one of the side buttons to show/hide it. Great job!
If someone didn't want to run the launcher, this could save them from using it with their most used apps on this.
@nmyshkin ... thanks ... I would be interested in this app, I wanted to have the default 'reading now' on nook reader ... and a customizable option so i can probable configure some other reading apps and their last read book directly opening when the option is invoked ...
Update
_____________
I tried installing your app from OP for 1.2.1 ... but it did not install ... If its not too much trouble can you make one that runs on 1.2.2 and share the same ?
thank.s
aiamuzz said:
@nmyshkin ... thanks ... I would be interested in this app, I wanted to have the default 'reading now' on nook reader ... and a customizable option so i can probable configure some other reading apps and their last read book directly opening when the option is invoked ...
Update
_____________
I tried installing your app from OP for 1.2.1 ... but it did not install ... If its not too much trouble can you make one that runs on 1.2.2 and share the same ?
thank.s
Click to expand...
Click to collapse
The app should run on FW 1.2.2. If you can't install maybe you forgot to copy the two small dependency files?
nmyshkin said:
/system/etc/permissions/com.google.android.maps.xml
/system/framework/com.google.android.maps.jar
Set permissions for both files to rw-r--r-- and reboot. Without these files resident, the app will not install.
Click to expand...
Click to collapse
Edit: or, did you forget to install Rotation Locker first? Because that app is one of the menu options, it's seen as a dependency and my app will not install if it doesn't see it there.
As I made it, however, the app will not do what you want. It is not programmable by the user. At the time I made it I was just starting out with making apps with Tasker. I suppose it would be possible now to produce an app that is more flexible, but it would not be very user friendly because there is no way to predict what someone might want to do and therefore code would almost certainly need to be sussed out and written in by the user. That doesn't sound like something people would really want. In any case I'm still bogged down in my Dictionary project so.....
If you have a static set of wishes, that would be easier.
In any case I'm still bogged down in my Dictionary project so.....
If you have a static set of wishes, that would be easier.
Click to expand...
Click to collapse
Oh Dictionary project for our Nook Simple Touch and Glowlight ?
Is it interesting ? If so pleas share the link to ...
Static set of wishes ... It has a limitation of 4 buttons only ?
1. Nook continue to the Last read book and position.
2. Amazon app so that will direct the user to the amazon app with the last book open.
3. App Drawer
4. Nook Clear Screen
these would be my 4 if 4 is the limitation ... however if more were to be accommodated then ...
5. File Manager(Root Browser)
6. Statusbar - Glowlight
Would a cleaner implementation for the 5th & 6th options and others separately as an app that can be mapped with NTMM to the Statusbar - Glowlight button(primarily because this part is accessible directly from the book you are reading in the default nook reader, some ting of a quickaccess tiles/lists with the below ...
1. Glowligh & Wifi
2. File Manager(Root Browser)
3.
4.
5.
aiamuzz said:
Oh Dictionary project for our Nook Simple Touch and Glowlight ?
Is it interesting ? If so pleas share the link to ...
Click to expand...
Click to collapse
Not ready yet, but slowly getting there. The app is complete. Still testing to be sure it won't destroy the NST/G. I have a few more dictionaries to complete.
aiamuzz said:
Static set of wishes ... It has a limitation of 4 buttons only ?
Click to expand...
Click to collapse
That's how it is now, but any number of buttons can be added. Do you really want a laundry list?
aiamuzz said:
1. Nook continue to the Last read book and position.
2. Amazon app so that will direct the user to the amazon app with the last book open.
3. App Drawer
4. Nook Clear Screen
these would be my 4 if 4 is the limitation ... however if more were to be accommodated then ...
5. File Manager(Root Browser)
6. Statusbar - Glowlight
Click to expand...
Click to collapse
Mmmm.... See below.
aiamuzz said:
Would a cleaner implementation for the 5th & 6th options and others separately as an app that can be mapped with NTMM to the Statusbar - Glowlight button(primarily because this part is accessible directly from the book you are reading in the default nook reader, some ting of a quickaccess tiles/lists with the below ...
1. Glowligh & Wifi
2. File Manager(Root Browser)
3.
4.
5.
Click to expand...
Click to collapse
So you seem to be describing (kinda) my QuickTiles app. Have you looked at it?
Take a look at that (which includes the Nook Clear Screen option and the Glowlight and WiFi controls, but not a file manager option) and see if that would meet your needs. Modules could be added but I did sort of want to keep it to display/mode functions, rather than turning it into a sort of launcher.
After that, confirm your choices for the ReadingNow menu and I'll see what I can come up with. Not sure about the Kindle app opening to the last book, but the info must be somewhere that could be poked at.
Not ready yet, but slowly getting there. The app is complete. Still testing to be sure it won't destroy the NST/G. I have a few more dictionaries to complete.
Click to expand...
Click to collapse
that's good to know ... its for NST/NSTG ... I just can't seem to part with this device myself ... and you are developing things for it ... can't get any better than that !
After that, confirm your choices for the ReadingNow menu and I'll see what I can come up with. Not sure about the Kindle app opening to the last book, but the info must be somewhere that could be poked at.
Click to expand...
Click to collapse
as far as the kindle app and its last read book is concerned, you don't have to dig deep ... when i read a book on kindle and exit out of the app without hitting the back button ... the app will start with the last book open.
The following sequence/order should be good enough for 4 entries ...
1. App Drawer
2. Nook continue to the Last read book and position.
3. Amazon app so that it will direct the user to the amazon app with the last book open.
4. Nook Clear Screen
thanks for all the help ...
(the xml file is zipped so you can download it rather than view it):
Click to expand...
Click to collapse
I can't seem to extract the xml file from this zip file ... or ... should i just rename the extension to .xml ?
aiamuzz said:
I can't seem to extract the xml file from this zip file ... or ... should i just rename the extension to .xml ?
Click to expand...
Click to collapse
Huh. Wonder how/when that happened? Try it again. I uploaded a new copy and downloaded it to test. Worked fine this time.
nmyshkin said:
Huh. Wonder how/when that happened? Try it again. I uploaded a new copy and downloaded it to test. Worked fine this time
Click to expand...
Click to collapse
No problem ... i was able to download that xml file from one of your other threads whose pre-requisite too was to have these very same 2 files to be present on the device.
I opened your RN app and the drop down did open on the top left book icon ... but this opens only one time ... Does one have to reconfigure using NTMM so it opens every time ?
aiamuzz said:
No problem ... i was able to download that xml file from one of your other threads whose pre-requisite too was to have these very same 2 files to be present on the device.
I opened your RN app and the drop down did open on the top left book icon ... but this opens only one time ... Does one have to reconfigure using NTMM so it opens every time ?
Click to expand...
Click to collapse
I downloaded and installed the apk (1.1.1) from the first post. It runs fine for me. Did you get and approve the SU prompt?
There's nothing special to be done with NTMM other than assign the app to the "reading now" soft button.
Did you by any chance reinstall over a previous installation when you were having trouble? If so, you need to do a complete uninstall before reinstalling on apps like this with toggles. If the toggle variable has been messed up it will stay that way unless you do a fresh install since installing over an existing app of the same version preserves the data (like the state of the toggle variable).
@nmyshkin ... thanks i figured ... Is it just me or the Nook Book Button app seems to be a little quicker(about 2-3 seconds) quicker than your RN app to show the drop down menu on invocation.
Not sure if its just me and my device or its across the board.
Cheers.
aiamuzz said:
@nmyshkin ... thanks i figured ... Is it just me or the Nook Book Button app seems to be a little quicker(about 2-3 seconds) quicker than your RN app to show the drop down menu on invocation.
Not sure if its just me and my device or its across the board.
Cheers.
Click to expand...
Click to collapse
No, it's not just you. I could change it like I did QuickTiles so that it responds more quickly but as I don't use it any longer, I have never revisited it. It would involve an "always on" overlay of the button.
The following sequence/order should be good enough for 4 entries ...
Click to expand...
Click to collapse
1. App Drawer
Click to expand...
Click to collapse
2. Nook continue to the Last read book and position.
Click to expand...
Click to collapse
3. Amazon app so that it will direct the user to the amazon app with the last book open.
Click to expand...
Click to collapse
4. Nook Clear Screen
Click to expand...
Click to collapse
Oh you can make it snappy ? Thanks whenever you find time to work on this request, please do remember to make it fast and responsive ...

Tasker no longer turning wifi on/off?

I've had basically the same profiles/tasks for years now. Suddenly, my wifi isn't turning off/on when it should be. Is there a permission or something that might have gotten changed?
S9 Android v8.0
Tasker v5.6
I've restarted the phone and disabled/enabled Tasker.
Edit: I also put the Profile description text into pastebin and shared it here which exposed data that messed up my IFTTT webhook task... so that sucks. And, apparently, it was all for nothing because I'm not getting any help...
You need to provide more information about the profile. What is the context (trigger) to run the task that contains a WiFi on/off action? It's good to post your profile when it's not working as expected.
Make sure the profile is named - not a default name assigned by tasker. To name the profile if it isn't already, long press on the name to highlight the profile and, at the top, tap the square with the A.
Then long press on the name to highlight the profile. Go to the 3-dot menu and select export -> Description to Clipboard.
Now you'll be able to paste it. Be aware, it easier to use something like pastebin.com / hastebin.com and link to a post here. If you paste in a post here, the forum software will convert semicolons with characters directly after to emoticons making it very hard to read.
How's this?: https://pastebin.com/baWtQSFn
I guess everyone knows my location now... That's why I didn't want to paste that kind of info. Seems like a bad idea for privacy/security....
Edit: And now part of that profile (IFTTT lights) keeps getting triggered... Is it because I posted the info publicly and someone hacked it? WTF is going on?
And now part of that profile (IFTTT lights) keeps getting triggered... Is it because I posted the info publicly and someone hacked it? WTF is going on?

Categories

Resources