yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] happywillow0:
Device Encryption and Assessability Services

Hey everyone! I'm pretty new here but have been using TimePIN on my phone for a while. Since they finally pushed out 5.1 for the Moto series, I miss using TimePIN.

A couple pages back, someone posted an email from jcase citing issues encryption and specifically, disk encryption and the lockscreen password. I noticed that there was an warning message in the new Lollipop phones that said:

So, that got me digging. I found some information but not a lot and wanted some thought on it.

I first found this bug report 79309, and these two instructions on the accessibility service from LastPast and 1Password. (Sorry, spam protection prevents me from linking anything.)

This points to an interesting scenario where the lock screen doesn't actually impart device encryption. This lead me to Android's the documentation for encryption states:

The last sentence seems to interesting. While the phone does use the PIN to encrypt the data, changing doesn't actually affect the data and will not require re-encryption. In simpler terms, the PIN code protects the encryption key that in which protects the phone data.

More digging, I found other bug report (79342) on ActiveSync and encryption requirements and the general Google Support page on encryption on Nexus devices which says:

Pulling everything together, on Lollipop devices, there is one option to not require a PIN on startup. This means the phone stays encrypted with the generated encryption key but the startup of the phone does not require entering a PIN to start up.

tldr;

In theory, TimePIN can work with device encryption but will require the PIN on startup to be disabled.

This can be done by requesting the accessibility service which does it automatically or prompting the user during setup. This allows the phone to be encrypted, Startup normally without a PIN. At this time, TimePIN as an app can start with the system and do its normal thing of resetting back to the default PIN and the Time/Date pin after that.

Each time the PIN changes, the system re-encryptes the master key but not the disk itself.

What do you guys think?
[Android Apps and Games] alcaponed:
How did you get this thing?? I put my name down in two stores and signed up for alerts, yet no contact :(
[Android Apps and Games] TYMO68:
I think this is DOA. JCase doesn't even respond or follow up on this mod anymore.......unfortunately.
[Android Apps and Games] lunarmoog:
I had TimePIN running under lollipop. Last night my phone's battery died, and now it appears that the TimePIN failsafe has failed and I can no longer unlock my phone. No matter how many times I reset I cannot get in with my default PIN, and no matter how long I wait the PIN is not set according to the time.

How can I regain access to my phone?

Android Device Manager refuses to set a lock password because a PIN is already set.

I used Cerberus to send a command to launch TimePIN, but it did not help.

This old hack from 2011 did not work either.

SOLVED

The method in this thread worked for me. The flashable zip did not work, but I just booted into the recovery and used the ADB method. Worked like a charm!
[Android Apps and Games] yurkennis:
How you made it run under Lollipop? Or are you actually imply a different app, like Smart Phone Lock or Dynamic Pin?
[Android Apps and Games] MrBrainGames:
Great idea :)
[Android Apps and Games] lunarmoog:
I had restored TimePIN from a Titanium backup without realizing that it was not supported under Lollipop.
[Android Apps and Games] endlesstrail:
It's a shame this isn't being updated for Lollipop.

It was working fine for me as I updated my Z3 Compact from KitKat 4.4.4 to Lollipop 5.1.1 Didn't know it didn't properly worked as the OS updates completed successfully. When I need to change the settings, I realised that it didn't respond to any selection. I think it just needs a minor update just to get it working again.
[Android Apps and Games] cLogic:
FYI

so ... I FINALLY downloaded and installed the JDK and android SDK and Studio

I have been a professional software developer and occasional professional sysadmin for windoze, unix and linux since 1989

I have worked extensively with C, SQL, sh/bash scripting, javascript, etc but I have never worked with raw java

I have worked with different IDE's but have never used Android Studio

so ... of course there WILL be a learning curve

TimePIN is a great app ... and is easily the app that I miss the most since "upgrading" from kitkat to lollipop and marshmallow (this weekend)

I would like to develop a new version that works for at least android 5+

is it an ambitious first project? definitely! lol

however as a professional developer I KNOW that the best way for Me to understand and become proficient in a new language/environment is to build a real project .. besides .. learning is supposed to be fun ;)

when there is something worth showing/testing, I'll create a new thread and post the link here
[MENTION=2376614]jcase[/MENTION] if you have any insights/tips .. I would be grateful

until further notice,

cheers! :D

.
[Android Apps and Games] jcase:
cLogic, heh CunningLogic is the name I used to pub apps under.

No tips really, its pretty simple however risky. Be wary of changing pin on devices that may be encrypted, watch out for some devices that fail to consistently send the on boot broadcast.
[Android Apps and Games] cLogic:
main issue for Me, for now, is trying to find the section/library/apis in this language that I need to hook into to get/put from/into ..

struct(s) containing datetime, how to write to .pin, how to read/write app prefs, etc

thanks for the warning :good: .. I just read this interesting info ... could this be part of the issue ?

set the RECEIVE_BOOT_COMPLETED permission in the app manifest properly ... android:enabled="false" ...

so that the receiver will not be called unless the app explicitly enables it.

This prevents the boot receiver from being called unnecessarily

however, creating a valid BroadcastReceiver does Not mean that the app will receive the ACTION_BOOT_COMPLETED broadcast!

in the app, when the user activates your service, enable the receiver

pm.setComponentEnabledSetting(receiver, PackageManager.COMPONENT_ENABLED_STATE_ENABLED, PackageManager.DONT_KILL_APP);

once you enable the receiver this way, it will stay enabled, even if the user reboots the device.

In other words, programmatically enabling the receiver overrides the manifest setting, even across reboots.

The receiver will stay enabled until your app disables it

I really like this language so far, lol

also trying to decide what is best strategy in this language for changing the .pin ... using a one-minute alarm or hooking into the system clock for minute change

I prefer hooking into the system clock for accuracy, but not sure on the performance impact, yet

EDIT:> nevermind! just realized I will be tapping into when the lockscreen activates, Not updating the pin EVERY minute while screen is on!! lol

thanks for TimePIN and any help :good:

.
[Android Apps and Games] Masrepus:
That's cool that you wanna do a remake! Let's hope that you'll be successful!

If you have any java questions etc just post here. I'm sure there will always be anybody who knows how to solve that :good:
[Android Apps and Games] ashish_zarekar:
request

please make it open source so i can use it as my project :D :p:angel::highfive::laugh: :fingers-crossed:

please
[Android Apps and Games] Anmol0022:
Wow really it will be so great if it works on lollipop was using it for years on my jelly bean but installed cm lollipop but no compatibility cant wait for it to work again
[Android Apps and Games] mmonaghan34:
Seems to be an interesting concept, would be nice if it were available in the UK and had lollipop support too
[Android Apps and Games] ChongoDroid:
CopperheadOS has the disk encryption and lockscreen password separated. I wonder if some sort of TimePin implementation could be used there.

God I miss using my Pebble for something cool.
[Android Apps and Games] markeemarku:
works great in my samsung galaxy chat

i have no problems like the reported earlier bugs on my first time use of this app to my samsung galaxy chat b5330..it runs smoothly...i just wanted also to request that if the next release of the version of timepin,the pattern lock will be supported a feature may be included to little tweak the appearance of the lockscreen's ui that you can change the trails colors and the dots colors and lastly an unlimited attempt tweak...tweaks which are offered by an xposed module named lockscreen tweakbox...but i want you to be unique a little to avoid conflict from the idea of the original author of the concept,.last request may you make those paid features free on the next release however for a limited time...thank you very much
[Android Apps and Games] Chirag_Galani:
Ok guys.

I have some good news. DroidLock: Dynamic Lockscreen has been launched in beta which serves almost all of the TimePin functionality as well as some extra features. It supports devices belonging to Android 4.0 - 6.0 (Yes, Marshmallow too)

Currently in beta so you have to join the G+ community before installing the app.

Thread Link: http://xdaforums.com/android/apps-games/app-droidlock-dymanic-lockscreen-t3371652/
[Android Apps and Games] Jdgp42:
+1 on this
[Android Apps and Games] kuduku:
Tried it on a XOLO 500 , faced the same exact issue . Gets disabled after enabling reverse .
[Android Apps and Games] Sedariya11:
I really like the concept. Its an amazing and very simple concept. As soon as i saw it i paid for it. :good:
[Android Apps and Games] gamepro602:
Its funny you say that because the ROM I have already has this?

? Powered By My Moga Pro ?
[Android Apps and Games] Masrepus:
Ya nearly every cus rom has that ^^

---------------------------------

Phone : My new Nexus 4!

OS:

Pure KitKat 4.4.2 stock, no root, no mods (but only for the first time ;D)

---------------------------------

Gesendet von Tapatalk
[Android Apps and Games] Huese:
Very nice.

This App as an App only protector would be great.
[Android Apps and Games] fabio000:
Can I use this app with the "unlock with wifi"?
[Android Apps and Games] jcase:
I will add an unlock with wifi feature soon
[Android Apps and Games] seahorsepip:
As said above most custom roms have it and gravity box for xposed has it too ;)

---------- Post added at 09:49 PM ---------- Previous post was at 09:43 PM ----------

@jcase

Great app I instantly bought the extras too, for that price I can't just leave those features :P

Anyway the feature that I woudl find amazing would be a secondary pin so we got your custom pin after combining time with math and now instead of entering that we enter a different pin, like the custom pin with another offset on top of it.

After that we can see some apps that were hidden before ^^

I think this isn't possible without root and migth even require a additional xposed module to do some launcher stuff root maybe can't do :/

This idea might be just too far fetched xD
[Android Apps and Games] jcase:
Not a debugging feature, feature for giving out free licenses.
[Android Apps and Games] jcase:
shoot me an email, will add features soon, family stuff going on now
[Android Apps and Games] xxerkxx:
App works as intended on my HTC One . Great idea!
[Android Apps and Games] vickyjusme:
Great app. Using it on Vipers 5.0 in sensation and no bugs for me :D
[Android Apps and Games] ravian29:
i am locked, can not use default pin and the time pin both........ it still saying wrong pin........ restart and trying again does not work :rolleyes:
[Android Apps and Games] Shamestick:
I really like the idea of this app and using it has been nice and even entertaining to me just because the password is always changing, but oh wait it's still just up in the top right corner for me to see :D one thing I have noticed though is when having TimePIN enabled the lockscreen things (clock, pin buttons, etc.) will flash after unlocking device, and this doesn't happen when using only stock pin unlock. Perhaps it's because both this and the stock one are trying to open up the pin or something?
[Android Apps and Games] zatom:
Ideas

Hi jcase,

Great App, god job!

Just a few ideas for next features:

1. Giving possibility to hide notification from the notification center (it make sense not to inform the world about the fact that the given phone is protected by TimePin. It names suggests to much how to try to observe the changing pin)

2. Adding App Locker functionality by also pin based on time/date. It happens a lot when mobile phones are borrowed for various reasons (friends, colleagues, children, wife, etc). In this case a 2 level security would be available with changing pin based on time/date: first the lock screen to protect access to the phone and the 2nd level for protecting selected apps.

It would be great to have both security levels optional, but it is important to be able to use both in the same time.

3. Tasker integration

With these features this would be the ultimate security apps.

Let me know if you need a beta tester.

Keep doing this high-quality work! Best wishes to you and your family.

p.s. You mentioned in an earlier post that there is a feature for giving out free licences. How is it possible to get one? :)
[Android Apps and Games] JoeFCaputo113:
Don't know if this has been discussed.... But quick pin unlock would be great!

Sent from a Galaxy 4 light years away
[Android Apps and Games] j0hn0n1:
This app is a great idea, but I've noticed something that I would class as a security problem.

If anybody has access to your device for even a short time if you let them use it (possibly a friend, etc...), they can easily figure out the pass key that you have used or disable the app altogether.

The app should be hidden or a least password protected to view or change any settings ( which it is, but) if I open the app settings using the icon in the notification panel or the app shortcut it asks for my password, but if I retract the keypad using the down arrow, and then use the back button it drops me right into the app settings. I can now switch it off altogether or figure out the method you have use to lock the device.

If you could make it a hidden app that can be launch through a gesture or the dialler then it would be brilliant.. Anyway its still a great app..

Thanks ...John...
[Android Apps and Games] polobunny:
#1 can be done with any Jellybean device.

Vote +1 for Tasker integration. Then we can have location or wifi based lock/unlock and so on.
[Android Apps and Games] Huese:
Same Problem for me, right now. What can I do?
[Android Apps and Games] jcase:
1)

Its a work around for this bug https://code.google.com/p/android/issues/detail?id=63793. I will allow fake notifications instead.

2)

App locker isnt my goal here but I will look into it.

3)

Already in the works (if you decompile the app you will see parts of it) , will finish when daughter is out of hospital.

Email me
[Android Apps and Games] polobunny:
I read about your daughter in the changelog. Hope all is fine.
[Android Apps and Games] ghale:
Yes, thinks at your daughter first...

Inviato dal mio GT-I9505 utilizzando Tapatalk
[Android Apps and Games] HarlyFan:
I use an app called Delayed Lock which disables the lock screen on Wifi and a location basis is there any chance your app can be made to work with this app, your app is great but it currently will not work with this other app. Bummer!
[Android Apps and Games] polobunny:
It doesn't work because the pin is changed every time without Delayed Lock knowing. I use that app too, and it's only logical that it's broken by TimePIN.

That's why some people are asking for Tasker support, so then the same functionality could be done with Tasker. =)
[Android Apps and Games] ravian29:
The best way to handle this problem is restore your device (if you have nandroid backup) or restore from begning i am not sure about factory data resest. To get your data back you can use nandroid manager from play store (if you are using nandroid data backup) or use titanium backup or any other software. You need to make updated backup using software to minimise the data lose

Important: To make new backup using titanium backup or any other software you need to bypass the passpord, to do that please follow this

1. Download aroma file manager

2. Copy it to your sd card or phone memory (connect your phone to pc and see if it works)

3. Reboot your phone in recovery mode and

4. Install / flash aroma file manager

5. A file manager will run in the cwm / twrp recovery, nevigate to /data/system

6. You need to delete locksettings.db and locksetting.db-shm

7. Reboot your phone and bam,,, no password needed... Your phone will run without password

8. Make backup using titanium backup or any other software

9. Restore your phone and restore your data using your backup

Note: noobs stay away or do not blame me, i tried to help because i have wasted my atleast 4 hour on this so i am trying to save yours. Please use Bypassing password only for saving your data, do not play with other people phone using this method. Respect their privacy.

Sent from my SM-N9005
[Android Apps and Games] an0n981:
Couldn't this be done directly in the built-in twrp file manager?
[Android Apps and Games] polobunny:
Yes. Or adb shell. Many ways to skin a cat.
[Android Apps and Games] Felimenta97:
I kinda found a problem: If you have DayDream enabled, the system will consider the time that the time it entered the state was the time the screen was turned on. So, for example. If it turns the screen on at 10:20pm, and I decide to use my device (in this case, my tablet) at 10:30pm, it will think set the PIN (in the deafult mode) to 1020, not 1030, which is what it was, theorically, it is supposed to be.

I'm not sure if that can be changed, or it is a system limitation, but if it can be changed, I'd appreciate it.
[Android Apps and Games] polobunny:
Turn off and then on the screen then enter pin. I imagine if you had a lockscreen delay of 15 days that could create an issue too, but the solution seems simple. :p
[Android Apps and Games] Felimenta97:
I know that (forgot to mention)... It's something really small. But IF it can be worked over (even if setting as lowest priority) WOULD be nice. That, however, doesn't make the app bad at all. :)
[Android Apps and Games] scrack26:
If you're using Xposed Framework with GravityBox, you're in luck, include it in the "Ongoing notification blocker"

Also would like to thank jcase for this awesome app, as soon as i downloaded and tested, no hesitation and bought the premium features. thanks!
[Android Apps and Games] Census Taker:
I have an issue with the app crashing. Installation and initial setup went fine. The app behaves exactly as expected during normal use, but when I try to change settings, after entering the default pin as requested to get access, the app force closes. I have sent the standard crash report generated by the device and am on the pro version on rooted odexed stock samsung jellybean 4.12 CMG1.

More importantly, I really hope all goes well with your daughter. :)
[Android Apps and Games] pjilka:
Currently it seems it works on a 12 hour clock. Would it be possible to add an option for 24 hour clock for those of us who can read the time :p
[Android Apps and Games] kuduku:
Works fine on both handsets after your update , excellent app
[Android Apps and Games] rami78:
Excellent application, truly top notch. Paid for the full version within minutes of installing. Highly recommended !
[Android Apps and Games] scrack26:
I am on 24hour clock. And it's working fine.
[Android Apps and Games] polobunny:
Same here. 24 hours clock and works fine. Make sure your phone is set to use the 24 hours clock.
[Android Apps and Games] pjilka:
Ah my bad.

Working :good:
[Android Apps and Games] Census Taker:
Update on this issue,. I have removed and reinstall the app on my Note 10.1 tablet and carried out a few tests with the following results.

All works fine so long as the tablet is in portrait mode.

Set up the app in landscape mode and all works fine as far as locking and unlocking is concerned. Any attempt to enter setup in landscape mode causes the app to force close. Returning to portrait mode means everything then returns to normal.

Solution for me is to lock the app so it can only run in portrait mode; no big deal but this may help with future development of this great app!
[Android Apps and Games] MartiniGM:
Tasker = YEY!

Wow, we've got Tasker support!!

I will definitely buy this app now!!

D'oh, even though I'm able to select TimePIN plugin, I'm unable to enter plugin configuration data.

So I'll continue my current workaround, a Tasker profile with WiFi connected state and "SecureSettings->Root Actions->Power Button Lock->Off" AND "SecureSettings->Root Actions->Lock Screen Timeout-> 30 mins" as Enter Task and "SecureSettings->System+ Actions->Power Button Lock->On" AND "SecureSettings->System+ Actions->Lock Screen Timeout-> 10 secs" as Exit Task.

When I'm connected to the selected WiFi networks turning the screen off with power button won't activate TimePIN and when I'm not connected it TimePIN will be activated by the power button. Changing lock screen timeouts to a higher value at home is much safer than totally disabling the lock screen, although that will work as well.
[Android Apps and Games] Pkt_Lnt:
It worked fine for me, but I did reboot after buying the Time PIN premium and enabling Tasker Support, then configured Tasker.
[Android Apps and Games] gamepro602:
[MENTION=2376614]jcase[/MENTION]

I don't know if this is a bug or not but after the update to 1.1 I got this

(Though I do get the message ?)

? Powered By My Moga Pro ?
[Android Apps and Games] kathas:
Any plans to integrate with Cover? Right now when I use cover comes up first, I swipe to unlock and then get promoted for pin. So it does work, but it is awkward that time pin comes up second.
[Android Apps and Games] jcase:
Haha, I removed it in 1.1.1.1, that was only live for about 2 hours. Attached is 1.1.1.1 if it isnt on the play store yet.

That screen just means you have Freedom or L Patcher installed on your phone.

I hope you enjoyed the song, it is one of my favorites.

JC
[Android Apps and Games] polobunny:
I understand the concern, but L Patcher has some legitimate uses, such as removing ad frames. ;)

Edit: Oh and 1.1.1 is what shows in the play store as of this exact moment.
[Android Apps and Games] gamepro602:
I enjoyed it to, perfect song ?

? Powered By My Moga Pro ?
[Android Apps and Games] jcase:
Playstore takes a while to update.

The patcher is less than legitimate and actually it and Freedom have caused me a lot of bad bug reports/stacktraces (mostly in the past). So even if it has a "legit" use, it costs time. Time = money.
[Android Apps and Games] polobunny:
For all intents and purposes, disabling the notification via App info in Android >= 4.2 does not impact reliability. I've been using this method for a lot of apps and it's just like they had their notification in the notification panel, including big apps such as Tasker. :good:
[Android Apps and Games] jcase:
polobunny, I have not had time to verify if this is correct or not (I need to check out the source code). I did include a "ghost notification" with no text or icon in the latest builds.
[Android Apps and Games] polobunny:
You'll have to take my word. Or check later. :p

Less than legitimate??

Like said, I understand the concern, but alienating potential customers for the fact they use another software on their phone probably isn't good practice. Nevermind the snooping on your part. ;)

I use it exclusively with publicly available as well as personal patches to remove tid bits and disable components I do not like. There's enough apps that don't offer a paid version to get rid of ads or won't let you stop them from spying on your habits, so there's no alternative other than patching. I could go the long way and do everything myself manually in a painstakingly fashion but there's no use re-inventing the wheel. Its just a shame it's powers greatly exceed ad removal and components disabling.