yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] jcase:
I actually use Galaxy Nexus for the development, it is one of my favorite phones of all time, and the GSM variant is quite nice. (Lets not talk about the CDMA variant, I was a tester for it for Verizon, I am not a fan of it).

For testing I use:

Galaxy Nexus

Nexus 4

Nexus 5

Galaxy Note2

Galaxy Note3

Galaxy s3

Galaxy s4

HTC One

HTC One XL

LG Flex

and some odd ball Chinese devices (mainly to see if it works at all, who knows with hackjobs they do)

2.0 will be more fine tuned, just because of the amount of code reduction that I am doing, currently the code base is about 60% of 1.x, including additional features. The PINService will now stop itself, instead of letting Android do it. These are just due to the rewrite, not purposeful optimizations. In 1.x I also allow the MainActivity to continue to live after no longer being in focus, I keep flopping back and forth on this. This is probably the greatest memory drain, along with the Alarm services I call (which are reduced in 2.0 already, and will probably only be used on 4.4.x devices in 2.0).

Play services, I haven't even implemented in 2.x yes, so I am not sure about them.

The amount of CPU utilization used in cleaning up is pretty small, I would have to see some conclusive stats, especially battery wise, to think otherwise on this.

The only part of TimePIN that should run often is the ReceiverService service, to keep the screen on IntentFilter active.

I do appreciate the input and will look at memory optimizations after 2.0 is in public alpha testing.
[Android Apps and Games] NovaSlim:
Thank you [MENTION=2376614]jcase[/MENTION] for this amazing app, I have been using it for the last 2 weeks on my Nexus 5 &7 and it just keeps getting better.
[Android Apps and Games] polobunny:
KitKat CM11 wonderfully breaking switches when using French locale.
[Android Apps and Games] 72off:
Love this app and now inserting my offset is almost an automatic thing :)

But I have a bug to report, this app crashes several times while I'm playing asphalt 8 on my moto g

This must not be a bug,but android way to deal with apps,but I get the crash message almost every 5 minutes

After closing the game time pin works fine,don't even need to restart the app
[Android Apps and Games] Cooptx:
Same here, I get random crashes except mine are when I am browsing the internet
[Android Apps and Games] jcase:
Can you provide the following:

Device model

Firmware version

TimePIN version

and a stack trace (logcat)

Thanks!

JC
[Android Apps and Games] jcase:
File this bug with cyanogenmod
[Android Apps and Games] polobunny:
Oh I know, don't worry, just thought maybe you'd be interested in a quickfix. Other toggles through the OS seem to overlap the content a bit rather than squeeze it in a tiny frame. :angel:
[Android Apps and Games] jcase:
I'll look into it but it needs to be filled with cm inc
[Android Apps and Games] polobunny:
Hehe way too lazy to do that. CM bug tracker prequesites being to submit a logcat for every dang issue, even those where a logcat won't do *** and only comment on M, RC and stables. Ima just wait patiently for someone else to notice. :p

On another note, are you looking for a French translation? I can whip it up real quick if you need. Just send me an XML/strings file/whatever and I'll do it when I get a bit of free time.
[Android Apps and Games] jcase:
I am! http://www.getlocalization.com/CunningLogic/
[Android Apps and Games] staplebox:
OP - Just taking up space here to say that this is one of the most creative and useful apps I have seen in a long time. Just an excellent idea and, from all the posting here, it seems like tireless pursuit of bug smashing perfection. I hope all the work pays off for you and that you keep on creating.
[Android Apps and Games] 72off:
Played 8 tracks on asphalt 8 and dont get The crashes

Maybe update 1.1.3.2 have fixed it

But as you changed how offset button works i notice that if i just look my offset and dont Save it,it will be redefined as 0000,so everytime i click on offset there is a need to Save it again.

Not a problem,but I have spent some time locked-out to figure it out
[Android Apps and Games] jcase:
Already addressed and will be pushing it today.

Stuck trying to figure out this odd stacktrace. Almost like someone was patching the app and removed the UpdateReceiver. Google collected it for me but it is seriously odd.
[Android Apps and Games] polobunny:
That's a weird one. I'd let it slip.

Edit: Like 50% done on the French translation. Trying to get some time to do it, I did some yesterday while waiting for certain things to load while my roast was cooking.
[Android Apps and Games] jcase:
No rush on the translations, likely to need some changes after 2.0 anyhow. I don't plan on adding translations until then.

Also got ahold of Ciwrl from CM Inc, that issue is being addressed
[Android Apps and Games] polobunny:
Well thank you kind sir.
[Android Apps and Games] Jfdude200:
Camera on Lock Screen

Well I was just wondering if you could at least make the camera app on the lock screen an option. I do not always have time to process what the pin would be if I want to take a quick picture. (I am in NO way an Apple fan, but they were able to have a camera on their lock screen.) By the way, I still love your app:D and will definitely continue to use it. Just a helpful suggestion.
[Android Apps and Games] polobunny:
That's not TimePIN related at all.
[Android Apps and Games] jcase:
Actually, some of my phones do this, so if the stock lockscreen allows it then your phone will as well. I will look at the options to do it
[Android Apps and Games] Dynte36:
Cant't log in with PIN

Hi.

I've used this fo a while and it's perfect, until today.

Updated it this morning and after that I can't come in to the phone.

Always "Wrong PIN".

Doesn't matter if I restart and type in the original PIN, "Wrong PIN".

HTC One X

Cyanogenmod 11.0
[Android Apps and Games] jcase:
Shoot me an email, since you are on Cyanogenmod we can bypass the lockscreen and figure out what is going on

JC
[Android Apps and Games] nelsdzyre:
same. I've emailed you.
[Android Apps and Games] Dynte36:
I had to get it on so I started from the beginning again with the phone.

I'll send you an mail for this can happend again.

Dynte36
[Android Apps and Games] MartiniGM:
Sony SmartWatch 2

The Pebble-function looks interesting, but since I've got a Sony SW2 support for this device would be even more interesting. I don't know if this is easily implemented with Pebble support already on board?

Anyways.. File it under "feature request low priority". ;)

Edit: perhaps the pin could be exported as a Tasker variable and then sent to SW2 using the already existing Tasker notification plugin?
[Android Apps and Games] jcase:
Link me to the plugin please
[Android Apps and Games] MartiniGM:
The app is called Tasker - Smart Notifier. The apk is available at Google Play and source code is actually available at Github.
[Android Apps and Games] polobunny:
First link wrongly formatted

https://play.google.com/store/apps/details?id=com.babanomania.tasker.notifier
[Android Apps and Games] MartiniGM:
It sure was. :eek: The next time I use the "insert link"-button on selected text in Dolphin Browser, I'll use 30 seconds to check the link afterwards. ;)
[Android Apps and Games] jcase:
So yes less than 10mb doable, this is early 2.0 build with no google IAP billing, and PINService stops itself unless absolutely needed. I expect more memory usage as it creeps a bit in size, particularly when IAP gets added.

JC
[Android Apps and Games] tariq2kn:
It is giving 176 wakeup triggers in about 4 hours standby & 45 mins of device wakeup.
[Android Apps and Games] karanrajpal14:
Hey, I'm really loving this app so far. You've done an amazing job! Kudos! I just have one request, could you consider adding Tasker plug-ins for turning time pin on and off? Because I only need it when I'm outside home and I use autolocation plug in to determine that. Combining this with Tasker would make it a bomb!

Thanks!
[Android Apps and Games] jcase:
It has tasker support already
[Android Apps and Games] jcase:
Not seeing this, what are you using to monitor it? Requires premium and turning it on in settings.

It will probably be free in 2.0, but havent decided.
[Android Apps and Games] jcase:
I ordered one today after looking at the API, expect 2.0 support
[Android Apps and Games] tariq2kn:
I'm using the Wakelock Detector & the playstore free version of Timepin. Second to the list was greenify with 2 wake counts. Unfortunately, I'd to uninstall the timepin :o, can't compromise with the battery as I get 0.5%/hr. drainage :D
[Android Apps and Games] jcase:
TimePIN doesn't even hold the permission to perform wake locks, not showing up on mine after two weeks of running.

By chance did you change the kernel or flash anythnig that might have changed the UIDs? That was the issue with the data consumption post (UIDs getting swapped with an app that actually consumes data).

Either way, 2.0 runs about 1/20 as often will be here soon.
[Android Apps and Games] tariq2kn:
I've installed the Boeffla Kernel on my S3 4.3, but I'm not sure of the UID changing. I'll look into it.
[Android Apps and Games] jcase:
Changing your kernel can screw up all kinds of stats. I can't reproduce such wakelocks, on 1.1.x nor 2.0. I encourage you to give it another try, especially after the 2.0 update.
[Android Apps and Games] zorka:
Auto Dismiss Pebble notification after unlock

Is it possible to auto dismiss the notification on the pebble when you succesfully unlock your phone ?

Just an idea. Now I sometimes forget to dismiss the notification on the pebble and it seems to stay there forever ......(well, until I dismiss it ;) )
[Android Apps and Games] Cooptx:
[MENTION=2376614]jcase[/MENTION]

Stock 4.4.2 Moto G

Latest PlayStore app version

I can't get a logcat because debugging isn't enabled. The phone froze and became non responsive. Upon restart, neither default pin nor time pin work. I am locked out of the device. Is there anyway to unlock the device without factory restoring it?

Option to log in with gmail password does not appear after 100 failed attempts.
[Android Apps and Games] jcase:
I think I can bypass it on motoG, send me an email.

JC
[Android Apps and Games] Cooptx:
Would hangouts work? Or just email you at jcase@cunninglogic.com
[Android Apps and Games] jcase:
hangouts is fine but sometimes i dont get MSGs on it, not super sure what is up with that
[Android Apps and Games] 72off:
just came here to say that i love this app and everything still ok (as a DEV you must be wating for a comment like that)

it's hard to love an app this way but cant tell your friends about it because they might figure your pattern :/

but,when the 2.0 is near ,just call-me so i can update the translations

like I said before:

- the widget on the lock screen would be very usefull to avoid being locked out

-i'd love to use this with variables like:

just tell-me if it's possible
[Android Apps and Games] jcase:
Sure thing.

Anything is possible but my plate is full so no guarantees . But as far as friends guessing it, use an offset and they will have no clue.
[Android Apps and Games] LavanF:
Multi user problem

I have 2 user accounts on my Nexus 7v2 (one adminstrative for me and one gaming account for my son).

The issue can be replicated like this:

1. Switch to and unlock the secondary account.

2. Wait until the TimePIN should have switched to a new PIN.

3. Lock the device

4. Switch on the device.

5. Select the primary account.

6. Try to unlock.

7. Invalid PIN.

8. Switch the device off and back on.

9. Try to unlock.

10. Success.

My guess is that TimePIN can't/doesn't detect the user change which causes the PIN not to get updated correctly.

This is in the free version btw.
[Android Apps and Games] jcase:
You have to remember TimePIN is just a normal app, it is not a system mod. It runs in the context of the account that has it installed.

With that said. I am looking into dealing with multiple accounts, but this might require root or a system mod to do so.

JC
[Android Apps and Games] Charmacas:
Great idea! :)

I also REEEEALLY hope that 2.0 is right about the corner. I already bought the app but wait for the memory optimized 2.0 version. ;)
[Android Apps and Games] jcase:
It is coming along well, I am taking my time and ensuring it is working well.

I've made a plugin interface, and will be providing an opensource example (widget) with it. Jeremy Kane will be writing the tasker/locale plugin for it, that will be an intermediate between the two apps (since he is far more familiar with the tasker/locale API than I) and making it free.

Today my sony smart watch arrives, so that is the task for today.
[Android Apps and Games] polobunny:
I've noticed like the others that the Tasker plugin does not work properly, it doesn't re-enable TimePIN (or any PIN for that matters) upon the task running. I use a wifi connected to disable and on exit task to re-enable TimePIN.

Hopefully this will be resolved in the next iteration. =)
[Android Apps and Games] jcase:
Describe your tasker settings, and what is going on.

It is working on latest build for myself and the person rewriting the plugin for us, previous build had issues with exit tasks.
[Android Apps and Games] polobunny:
I have a Profile set with Wifi connected SSID. Task is set to disable TimePIN via plugin "TimePIN Disable All". Exit task is "TimePIN Enabled"

Expected behavior:

When I move out of wifi range and it disconnects (with screen off), TimePIN should become instantly active and on next screen on event I should be prompted to enter my PIN.

Instead, currently I can access my phone as if I was still connected to wifi. On next screen off THEN screen on, TimePIN is finally active.
[Android Apps and Games] jcase:
Try using two profiles, one for connect one for disconnect and tell me if it works for you. Make sure you are running the latest version.

Part of the problem here my be the lockNow bug, I can dig up the google issue if you want. I had to use a work around for it. Android maintains two device admin lists, and after an update it gets desynced. App will be admin on one and not the other. As a work around i stopped using lockNow, as it would cause a crash in this case. I will re-introduce the lockNow function of device admin api with 2.0, for devices without hte bug, once I can confirm what versions of android actually have it and what do not.

JC
[Android Apps and Games] WibblyW:
I have the same problem using Llama. TimePIN will not reliably re-activate when the plugin is fired (when WiFi goes off). Other actions fire ok. Works fine if I disable WiFi manually with the screen on, but not when the screen is off and WiFi goes way.

Normally (though NOT always) a screen on/off cycle re-activates TimePIN. Sometimes it just seems to happen on it's own after some time as far as I can tell.
[Android Apps and Games] jcase:
Plugin is being rewritten for 2.0 by someone more familiar with the api
[Android Apps and Games] polobunny:
I will check and see if that fixes it. Gonna try to gather up some time to finish the translation too, even though 2.0 is about to be unveiled. :p
[Android Apps and Games] Pkt_Lnt:
Here is mine, much like your profile, and it works as expected. I do a bunch of things when I connect to home wifi ssid, including disable TimePIN; I reverse most of those with an exit task when I disconnect from home wifi ssid, including TimePIN active. It does come up locked the first time I access my phone. Samsung S4 Active International, AOSP 4.3.1 rom

Here is my profile, in case it helps.

Profile: WiFi Home (24)
State: Wifi Connected [ SSID:*DanceClub* MAC:* IP:* ]
Enter: Anon (39)
Abort Existing Task
A1: GV Settings [ Configuration:Goog:off; Gala:off; VoIP:on; Stra:off; Package:com.steelgirder.LocaleGVSettingsPlugin Name:GV Settings Timeout (Seconds):0 ]
A2: Secure Settings [ Configuration:SIP Call Options/For all calls when data is available Package:com.intangibleobject.securesettings.plugin Name:Secure Settings Timeout (Seconds):0 ]
A3: Secure Settings [ Configuration:SIP Receive Calls Enabled Package:com.intangibleobject.securesettings.plugin Name:Secure Settings Timeout (Seconds):0 ]
A4: Secure Settings [ Configuration:Unknown Sources Enabled Package:com.intangibleobject.securesettings.plugin Name:Secure Settings Timeout (Seconds):0 ]
A5: Secure Settings [ Configuration:USB Debugging Enabled Package:com.intangibleobject.securesettings.plugin Name:Secure Settings Timeout (Seconds):0 ]
A6: TimePIN [ Configuration:Disable All Package:com.cunninglogic.dynamicpin Name:TimePIN Timeout (Seconds):0 ]
A7: Play Ringtone [ Type:Notification Sound:Postman Stream:5 ]
A8: Select profile [ Configuration:ctm Package:com.velis.auto.brightness Name:Select profile Timeout (Seconds):0 ]

Exit: Anon (46)
Abort Existing Task
A1: Secure Settings [ Configuration:Airplane Mode Disabled Package:com.intangibleobject.securesettings.plugin Name:Secure Settings Timeout (Seconds):0 ]
A2: Secure Settings [ Configuration:SIP Call Options/Ask for each call Package:com.intangibleobject.securesettings.plugin Name:Secure Settings Timeout (Seconds):0 ]
A3: Secure Settings [ Configuration:SIP Receive Calls Disabled Package:com.intangibleobject.securesettings.plugin Name:Secure Settings Timeout (Seconds):0 ]
A4: Secure Settings [ Configuration:Unknown Sources Disabled Package:com.intangibleobject.securesettings.plugin Name:Secure Settings Timeout (Seconds):0 ]
A5: Secure Settings [ Configuration:USB Debugging Disabled Package:com.intangibleobject.securesettings.plugin Name:Secure Settings Timeout (Seconds):0 ]
A6: Secure Settings [ Configuration:Wireless ADB Disabled Package:com.intangibleobject.securesettings.plugin Name:Secure Settings Timeout (Seconds):0 ]
A7: TimePIN [ Configuration:TimePIN Enabled Package:com.cunninglogic.dynamicpin Name:TimePIN Timeout (Seconds):0 ]
A8: Media Volume [ Level:15 Display:off Sound:off ]
A9: Play Ringtone [ Type:Notification Sound:Postman Stream:5 ]
A10: Select profile [ Configuration:brt Package:com.velis.auto.brightness Name:Select profile Timeout (Seconds):0 ]
[Android Apps and Games] polobunny:
So I've checked, doesn't fix my issue. Still have to wake up the phone a first time (shows unlocked) and next time I turn the screen on then it's finally protected via TimePIN.
[Android Apps and Games] jcase:
I've gotta take care of some obligations today, but tomorrow I will send and send you a build to test with.
[Android Apps and Games] polobunny:
It's alright, no hurry. In the mean time I have TimePIN always enabled. :silly:
[Android Apps and Games] WibblyW:
Me too please :)

For the record I tried a single condition/action in Llama that attempted to switch TimePIN on and say 'TimePIN on' using TTS. I get the announcement but the reliability of actually setting TimePIN on is the same. Same on both stock unrooted Kitkat N4 and 2013 N7.

Curiously, Llama has a lock screen action (that I'm not using), but the warning text seems to indicate a similar issue to what we're seeing here. I wonder what the 'force' option does?

https://www.dropbox.com/s/e6zkq3fwi84yuwo/Screenshot_2014-02-25-16-39-38.png
[Android Apps and Games] jcase:
I'm going to guess the force option uses the lockNow function of the device admin API, which I had to remove from TimePIN due to a bug in device admin (Verified by Google's Android team to me). It can cause crashes when the two device admin lists desync. I'm bringing it back for 2.0, as I am checking both lists before actually using it to avoid the crashes.

You are right, this should absolutely fix the issue, problem is that it brings more issues on devices running anything other than 4.4.2 (which the lockNow bug is fixed in). Right now I am using a somewhat hacky work around the depreciated KeyguardLock api, which is no longer actually supported.

So this is likely fixed in 2.0 already, for 4.4.2 and devices with both admin lists already synced (desync happens at update, running the app after the update will detect it in 2.0, and ask you to reauthorize it as a device admin, forcing it to resync). If not synced in 2.0, it will continue to use the hacky work around.

It truely sucks how many bugs I have found in the device admin api. Here is another one I found on some devices, no clue what is causing it. Google asked for an example, and I also forwarded it to Motorola's security team (since it was occurring on their phones). TimePIN is actually off the device admin list, but it still shows it as being on it no matter what, until you exit the screen. Failure to update the listview I guess.

[YOUTUBE]97TpUw8YxYw[/YOUTUBE]
[Android Apps and Games] polobunny:
Can't believe such a "simple" bug like this got through. Looking forward your hacky workaround. :p
[Android Apps and Games] jcase:
Hacky work around is actually what is causing your issue now.

Work around in 2.0 is readding the lockNow, and only using it when it is not prone to causing a crash, using hacky work around otherwise.

JC
[Android Apps and Games] WibblyW:
So the KeyguardLock api you are using now isn't reliable in 4.4.2 (which is why I see the problem), but is reliable (if unsupported) prior to 4.4.2, right?

When you say "desync happens at update" what do you mean? Update of TimePIN, a new app that wants admin permission, or update of something else?
[Android Apps and Games] jcase:
On SOME devices, it desyncs when app using the API updates. When it was occuring I had no idea what was going on, and used the depreciated api to attempt to do the same API.

The Device admin lockNow function is reliable only when both lists are synced, which should be always on 4.4.2, and most of the time elsewhere.

The Keyguard API has been depreciated for quite some time actually.

and is likely going away in the near future. It is less than reliable, but was the only choice at that moment.

Now that the problem is understood, I have been able to deal with it better in 2.0
[Android Apps and Games] Hackevre:
Would it be possible to have a setting where if we disable timepin via tasker, we have to input our password at once before it actually disables itself?

Thanks!

Conversely, anyone know how to manually set something up like this?
[Android Apps and Games] polobunny:
+1 on the suggestion. I was a Delayed Lock user prior to using TimePIN and I really liked this security feature.
[Android Apps and Games] Pkt_Lnt:
Optional please, if implemented. When at home and I can go in and out of wifi range 30 times on a day off as I work around the property.
[Android Apps and Games] polobunny:
You need an extender man.

Also agreed on optional. No reason it should be enforced. =)
[Android Apps and Games] The_Steph:
JC,

I was wondering if adding an option to support next minute code when TimePIN is enabled could be added in a next release. I am often forced to type the code again because the time has changed (and using reverse option I have to clear it completely before retyping it).

Another point, I find the enter keyy quite useless as when you type the proper code the mobil unlocks immediately. What do you think of removing it or adding an option to force pressing it to validate the entered code?

Whatever you do. TimePIN rocks. Keep up the good work.
[Android Apps and Games] Pons:
This is probably based on your device not updating it quickly enough. I set a simple pin lock for testing purposes. At 1442, I entered 1443 and waited. When a minute was up, and the clock said 1443, my previously entered 1443 let me in.

This is more dependent on your ROM. Screenshot attached of CM11M3.

When at the unlock screen, I don't think TimePIN uses a special numpad, just the ROM's. It looks the same to me, at least. Now including a special numpad with no Return key would be bad in the case of screwing over ROMs which use the Return key. And for those who don't...well it tricks the stealer into thinking they have to press it.
[Android Apps and Games] Pkt_Lnt:
Quick Unlock at the bottom does this in CM. Other ROMs have it too. Gravity Box is what I use on JB AOSP phone and KK AOSP tablet to accomplish this without hitting enter.