Jolla Tablet Announced: The Second Sailfish OS Device

A little over a year ago, Jolla released its first smartphone with the brand new Jolla … more

Android One Devices Get Unofficial CM12 Port

Android One was initially announced right before Android Lollipop. By releasing these cheap, yet … more

WhatsApp Decides to Protect Your Data

When Facebook bought WhatsApp for the absurdly large sum of $19bn back in February, they took the tech … more

Bring Back LTE on the Google Nexus 4 Running Lollipop

One of the predecessors of the latest, largest, and greatest Gooogle Nexus 6(theGoogle … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[APP] LockPicker - disable Exchange lock screen (OPEN SOURCED)

OP j0bro

30th March 2010, 03:39 PM   |  #1  
j0bro's Avatar
OP Senior Member
Flag Eindhoven
Thanks Meter: 49
 
287 posts
Join Date:Joined: May 2006
More
Update: I decided to discontinue work on LockPicker and therefore open source it. Find the code here. If anyone manages to make this work on Android 2.2+, please let me know!

Disables the Exchange lock screen when it's part of the server's security policy.

Works on HTC Sense only.
NOTE: Froyo is not supported!

Changelog:
v0.95: Added Wildfire (QVGA) support, automatic account detection, added korean translation, fixed chinese translation
v0.94: Android 1.5+ compatible
v0.93: Added es,fr,de,nl,cn
v0.92: Notifications optional
v0.91: fixed FC on startup
v0.9: initial release

Search for Market > Applications > Tools > LockPicker



My thanks go to tamburylar for his find which inspired me to create the app!
Last edited by j0bro; 29th April 2011 at 07:16 PM.
30th March 2010, 06:46 PM   |  #2  
alias_neo's Avatar
Senior Member
Flag Wilmslow
Thanks Meter: 203
 
2,073 posts
Join Date:Joined: Jun 2006
More
Nice
Hey, thanks for creating this.

I know there are a few people out there that will appreciate it.

Unfortunately I can't give feedback myself since my exchange server, although asks for me to enable security doesn't ever enforce it, so I never get the lock screen problem.

Good work though and I hope it comes in useful for the other guys that aren't as lucky with their server.
30th March 2010, 07:03 PM   |  #3  
j0bro's Avatar
OP Senior Member
Flag Eindhoven
Thanks Meter: 49
 
287 posts
Join Date:Joined: May 2006
More
Quote:
Originally Posted by alias_neo

Hey, thanks for creating this.

I know there are a few people out there that will appreciate it.

Unfortunately I can't give feedback myself since my exchange server, although asks for me to enable security doesn't ever enforce it, so I never get the lock screen problem.

Good work though and I hope it comes in useful for the other guys that aren't as lucky with their server.

Hey, no problem. Creating the icons was probably the most work!
It is idle under normal circumstances and consumes next to no resources, only a tiny amount of memory to run the service.
Only when the server pushes the policy again, it will quickly disable the lock screen and go back to sleep
30th March 2010, 07:06 PM   |  #4  
alias_neo's Avatar
Senior Member
Flag Wilmslow
Thanks Meter: 203
 
2,073 posts
Join Date:Joined: Jun 2006
More
Great
Quote:
Originally Posted by j0bro

Hey, no problem. Creating the icons was probably the most work!
It is idle under normal circumstances and consumes next to no resources, only a tiny amount of memory to run the service.
Only when the server pushes the policy again, it will quickly disable the lock screen and go back to sleep

Nicely done. It'll be interesting to see how people get on with it. The security enforcement seems to be a massive annoyance for those suffering from it.
30th March 2010, 11:53 PM   |  #5  
gudge's Avatar
Senior Member
Thanks Meter: 7
 
172 posts
Join Date:Joined: Sep 2009
Quote:
Originally Posted by j0bro

Hi all,

I just whipped an app together that disables the Exchange lock screen as soon as the server has enforced its policy by using a background service and an observer on the system setting. This requires no polling, scripting, etc. and survives reboots/enforcements.

Search for Market > Applications > Tools > LockPicker

Any comments/issues are appreciated

Sounds great, but I don't see it in the marketplace ?

BTW, is it just for the stock exchange client, or will this work with Touchdown etc

Thanks
31st March 2010, 08:21 AM   |  #6  
j0bro's Avatar
OP Senior Member
Flag Eindhoven
Thanks Meter: 49
 
287 posts
Join Date:Joined: May 2006
More
Quote:
Originally Posted by gudge

Sounds great, but I don't see it in the marketplace ?

BTW, is it just for the stock exchange client, or will this work with Touchdown etc

Thanks

You must have Android 2.1 running, since this is made natively for that version (Exchange integrated)
31st March 2010, 09:49 AM   |  #7  
Senior Member
Thanks Meter: 1
 
238 posts
Join Date:Joined: Oct 2009
Quote:
Originally Posted by j0bro

Hi all,

I just whipped an app together that disables the Exchange lock screen as soon as the server has enforced its policy by using a background service and an observer on the system setting. This requires no polling, scripting, etc. and survives reboots/enforcements.

Search for Market > Applications > Tools > LockPicker

Any comments/issues are appreciated

Thanks, works perfect
31st March 2010, 03:12 PM   |  #8  
Senior Member
Flag Utrecht
Thanks Meter: 2
 
166 posts
Join Date:Joined: Nov 2006
More
Downloaded this for my Milestone running 2.1. At first it seemed to work. After I rebooted though the application forcecloses (right at boot). When I start the application after booting it seems to keep running (though I'm not sure if I can actually see the service in my task manager) but does nothing to prevent me from having to enter that stupid password : (

I'm happy to help if I can do anything to help you with this issue. Don't know if it's possible to access log files on Android and perhaps send it or something.
31st March 2010, 03:55 PM   |  #9  
Member
Thanks Meter: 0
 
35 posts
Join Date:Joined: Feb 2010
I have FC after reboot but LockPicker still works well.
31st March 2010, 04:07 PM   |  #10  
Senior Member
Flag Utrecht
Thanks Meter: 2
 
166 posts
Join Date:Joined: Nov 2006
More
Found out how to log errors in application. Here is a piece of the log file relating to lockpicker:

Code:
I/ActivityManager( 1281): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=nl.fotoniq.android.lockpicker/.LockPicker }
I/ActivityManager( 1281): Displayed activity nl.fotoniq.android.lockpicker/.LockPicker: 329 ms (total 329 ms)
I/NotificationService( 1281): enqueueToast pkg=nl.fotoniq.android.lockpicker callback=android.app.ITransientNotification$Stub$Proxy@4519dc58 duration=0
I/NotificationService( 1281): enqueueToast pkg=nl.fotoniq.android.lockpicker callback=android.app.ITransientNotification$Stub$Proxy@451b5340 duration=0
E/LockPickerService( 1837): Setting not found
E/LockPickerService( 1837): android.provider.Settings$SettingNotFoundException: lockscreen.lockexchange.enable
E/LockPickerService( 1837): at android.provider.Settings$System.getInt(Settings.java:656)
E/LockPickerService( 1837): at nl.fotoniq.android.lockpicker.LockPickerService.disableExchangeLockscreen(LockPickerService.java:101)
E/LockPickerService( 1837): at nl.fotoniq.android.lockpicker.LockPickerService.onStartCommand(LockPickerService.java:67)
E/LockPickerService( 1837): at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2873)
E/LockPickerService( 1837): at android.app.ActivityThread.access$3500(ActivityThread.java:119)
E/LockPickerService( 1837): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1926)
E/LockPickerService( 1837): at android.os.Handler.dispatchMessage(Handler.java:99)
E/LockPickerService( 1837): at android.os.Looper.loop(Looper.java:123)
E/LockPickerService( 1837): at android.app.ActivityThread.main(ActivityThread.java:4363)
E/LockPickerService( 1837): at java.lang.reflect.Method.invokeNative(Native Method)
E/LockPickerService( 1837): at java.lang.reflect.Method.invoke(Method.java:521)
E/LockPickerService( 1837): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
E/LockPickerService( 1837): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
E/LockPickerService( 1837): at dalvik.system.NativeStart.main(Native Method)
Seems lockpicker can't find the settings on my device or something.

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes