Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

USER_PRESENT Intent for GO Locker

My app listens for the USER_PRESENT intent. However, custom lock-screen-replacements, such as WidgetLocker and GO Locker don't/can't send this protected broadcast.

WidgetLocker provides a workaround to this by broadcasting its own custom intents (e.g. com.teslacoilsw.widgetlocker.intent.UNLOCKED, see here). Does GO Locker provide similar intents? I wasn't able to find any information on this.

like image 513
Nick Avatar asked May 09 '12 11:05

Nick


2 Answers

I hope you don't mind that I'm posting this so late in this thread, but I needed to do exactly the same and found the Intent actions which they are using:

  • com.jiubang.goscreenlock.unlock
  • com.jiubang.goscreenlock.appunlock
  • com.jiubang.goscreenlock.close

Please note that I only managed to get the first one to work. I never saw the other two fired by GO Locker, but the second one looks like it could be used in some cases. Last one seems a bit ominous/unclear, so use it at your own risk.

If anyone is interested how I found these then it was by decompiling the GO Locker APK with apktool and grepping for package name patterns in the smali files (thank you for not being able to obfuscate string literals!).

like image 111
Martin Avatar answered Nov 02 '22 15:11

Martin


Which version of GO Locker are you using? Send me the .apk file and I may help you, cause I have had a similar problem before.[email protected]

I'm using Go Locker 1.35.1 and the intent should becom.gau.go.launcherex_action_send_togolock which is recieved by com.jiubang.goscreenlock.service.KeyguardReciever

Hope this will help you~

like image 1
wings Avatar answered Nov 02 '22 15:11

wings