[MOD][Xposed] Multiple Widgets and Camera on secure lockscreen

Status
Not open for further replies.
Search This thread

MohammadAG

Inactive Recognized Developer
Sep 7, 2009
1,080
5,504
29
Jerusalem
mohammadag.xceleo.org
Android 4.2 introduced lockscreen widgets, which allow you to glance at your widgets without unlocking your device, even when it's secure.
Samsung decided to rip this apart, and disable widgets if the device is secured.

This mod fixes that, all while enabling a secure camera on the lockscreen when swiping right (Gallery button won't be shown).

Compatibility:
This mod should work on all TouchWiz 4.2 ROMs, unless Samsung decides to break it later on.
Tested and/or reported working on:
  • Samsung Galaxy S4
  • Samsung Galaxy S3 with 4.2.2 leak
  • Samsung Galaxy Note 3
  • Samsung Galaxy Note 2 with 4.3 leak

Source:
The mod is open source, and licensed under GPLv3: https://github.com/MohammadAG/Xposed-Samsung-Multiple-Widgets

Download:
http://dl-count.xposed.info/modules/com.mohammadag.multiplewidgets_v5_a98dbe.apk

Changelog:
[1.6]
  • Added settings activity to select whether or not to force a camera widget (Note 3 users, you'll need to check this)
[1.5]
  • Support for 4.3, tested on the Galaxy Note 2, will most probably work on the Note 3.
  • Force the camera widget to appear, this should help S3 owners, as well as any user with a 4.3 device that doesn't have Samsung's shiny new camera.
[1.1]
  • Widgets can now be edited in secure mode.
  • You can now toggle between Favorite Shortcuts and Secure Camera in Lockscreen Settings (stock Settings app).
[1.0]
  • Initial release.

Support development:
If you found this mod useful, consider donating with PayPal.
 
Last edited:

Redflea

Senior Member
Nov 23, 2009
1,970
495
Genius!!

Works perfectly!!

Installed, enabled, rebooted, swiped to the right on lock screen and secure camera opens and works.

So happy about this, thanks very, very much!

Donating now.

Sent from my SCH-I545 using Tapatalk 2
 
  • Like
Reactions: yulaws

bonstio

Senior Member
Jan 10, 2011
189
39
Installed, rebooted, no dice. Does this work with pattern lock screen? I was hoping it would. I dug around in settings and found nothing changed. Am I holding it wrong?
 

MohammadAG

Inactive Recognized Developer
Sep 7, 2009
1,080
5,504
29
Jerusalem
mohammadag.xceleo.org
Installed, rebooted, no dice. Does this work with pattern lock screen? I was hoping it would. I dug around in settings and found nothing changed. Am I holding it wrong?

I use this with pattern lock.

You have Xposed framework installed right? If so, try turning off security, and checking if multiple widgets are enabled in settings then turning it back on.

Sent from my GT-I9500 using xda app-developers app
 
  • Like
Reactions: manbat

bonstio

Senior Member
Jan 10, 2011
189
39
I use this with pattern lock.

You have Xposed framework installed right? If so, try turning off security, and checking if multiple widgets are enabled in settings then turning it back on.

Sent from my GT-I9500 using xda app-developers app

Oh. Egg -> Face. I missed the big 'Xposed' in the title. Reinstalled and works great! Thanks. No, really - thanks a lot :)
 
  • Like
Reactions: MohammadAG

Redflea

Senior Member
Nov 23, 2009
1,970
495
Installed, rebooted, no dice. Does this work with pattern lock screen? I was hoping it would. I dug around in settings and found nothing changed. Am I holding it wrong?

As noted above, you have to have the exposed framework app installed, and then need to go into the Xposed installer and enable the module as well.

The Xposed framework app is here: http://forum.xda-developers.com/attachment.php?attachmentid=1957219&d=1368387321

Framework thread is here: http://forum.xda-developers.com/showthread.php?t=1574401

I have had one glitch so far - I wake up phone and swipe to the left on the lock screen to enable the camera, and the screen goes to the intermediate grey screen showing the camera icon and then the screen goes all black and the camera doesn't open, even if I wait 15 seconds or longer.

I then hit home and swipe left again and the grey screen w/the camera icon appears and the camera opens as it should.

Can others report if they are seeing this? Mohammed - any suggestions?

---------- Post added at 11:59 AM ---------- Previous post was at 11:54 AM ----------

DOH - just remembered, I still have your previous version (http://forum.xda-developers.com/showthread.php?t=2231649) of this module installed. I assume that should be disabled and uninstalled, right?
 

MohammadAG

Inactive Recognized Developer
Sep 7, 2009
1,080
5,504
29
Jerusalem
mohammadag.xceleo.org
As noted above, you have to have the exposed framework app installed, and then need to go into the Xposed installer and enable the module as well.

The Xposed framework app is here: http://forum.xda-developers.com/attachment.php?attachmentid=1957219&d=1368387321

Framework thread is here: http://forum.xda-developers.com/showthread.php?t=1574401

I have had one glitch so far - I wake up phone and swipe to the left on the lock screen to enable the camera, and the screen goes to the intermediate grey screen showing the camera icon and then the screen goes all black and the camera doesn't open, even if I wait 15 seconds or longer.

I then hit home and swipe left again and the grey screen w/the camera icon appears and the camera opens as it should.

Can others report if they are seeing this? Mohammed - any suggestions?

---------- Post added at 11:59 AM ---------- Previous post was at 11:54 AM ----------

DOH - just remembered, I still have your previous version (http://forum.xda-developers.com/showthread.php?t=2231649) of this module installed. I assume that should be disabled and uninstalled, right?

I'd say the glitch is because of Samsung's own camera code, I got a similar thing where the camera opened and threw me back to the lockscreen. In any case my code just disables their Easy Mode implementation.

My previous tweak shouldn't do anything actually, the old camera was SamsungCamera, this one is SamsungCamera2, so my mod won't find anything to mod.

Sent from my GT-I9500 using xda app-developers app
 

Redflea

Senior Member
Nov 23, 2009
1,970
495
I'd say the glitch is because of Samsung's own camera code, I got a similar thing where the camera opened and threw me back to the lockscreen. In any case my code just disables their Easy Mode implementation.

My previous tweak shouldn't do anything actually, the old camera was SamsungCamera, this one is SamsungCamera2, so my mod won't find anything to mod.

Sent from my GT-I9500 using xda app-developers app

Thanks, Mohammad. I've only seen it "get stuck" launching the camera a couple more times, and I've learned that if I don't see it transition from the camera icon to the camera screen within a short period of time, to just hit home and swipe again and it always works the second time.

So maybe there is some race condition (maybe not quite the right term) when the phone is first waking up on the lock screen and I swipe to the camera, and when I go back to the lock screen and swipe to the camera again the phone is now ready to launch the camera.

In any case, this solves the one remaining issue I had w/staying on stock/rooted TW for now (aside from fast USB charging), so I'm quite happy! I've been running CM pretty much exclusively on my phones since my OG Droid years ago, but I'm going to stay w/the stock TW ROM for now until I decide how badly I want to have access to the TW features that I'll lose if I go AOSP. Then I can decide if I want AOSP, modified TW, or stock.
 

elindros97

Member
Jul 18, 2013
10
0
No Dice!!!

Android 4.2 introduced lockscreen widgets, which allow you to glance at your widgets without unlocking your device, even when it's secure.
Samsung decided to rip this apart, and disable widgets if the device is secured.

This mod fixes that, all while enabling a secure camera on the lockscreen when swiping right (Gallery button won't be shown).

Compatibility:
This mod should work on all TouchWiz 4.2 ROMs, unless Samsung decides to break it later on.
Tested and/or reported working on:
  • Samsung Galaxy S4
  • Samsung Galaxy S3 with 4.2.2 leak


I've read this entire thread fully and am running a Samsung Galaxy S4 on AT&T SGH-I337 running Andoird 4.2.2 on baseband I337UCUAMDL and kernel 3.4.0-453947. I rooted using Motochopper and have TWRP recovery installed. I was able to successfully install the XDA Framework and download this mod and enable it. This is what I am experiencing:

1. With no passcode lock at all, I am able to swipe from right to left and see a bunch of shortcuts. I am also able to swipe from left to right and add widgets.

2. With a passcode added and no 'secure email account' attached to my device, I am still able to swipe from right to left to see shortcuts and from left to right to see widgets.

3. However, once I setup my work email MS Exchange, which does require a passcode lock, the mod only partially works. I am still able to swipe from right to left to see the shortcuts (although to access anything I still must enter my code). But I am not completely unable to swipe from left to right to see the widgets.

I was using Nova Launcher and thought this was the problem. But even after completely removing Nova Launcher and going back to the stock TouchWiz - same problem.

Any ideas???
 

aussiepunk

Member
Sep 12, 2009
31
2
Sunnyvale
Seeing only a page of shortcuts, not a baddass secure camera

I have a Verizon Galaxy S4 with CleanROM 1.6.5 and no other mods. I have the Google Apps Device Policy installed and active which I have configured (as I'm the Google Apps Admin) to allow lock screen widgets.

I downloaded and installed the XPosed framework from here with ES File Manager http://forum.xda-developers.com/attachment.php?attachmentid=1970286&d=1368825478 and rebooted.

I installed the Multiple Widgets apk from here http://mohammadag.xceleo.org/public/Android/Xposed/GalaxyS4MultipleWidgets.apk and installed it with ES File Manager then enabled the Widget in the XPosed framework and rebooted.

When I swipe to the left I get a + which enables me to use very useful full-screen widgets such as calendar (from my Simple Calendar app) messaging, Google Now etc.

When I swipe to the right all I get is a page of shortcuts which all require my pin to access. Help I am dying to get a slick Secure Camera shortcut!

EDIT: I figured it out!! Instructions for anyone else with the same problem I was having.

  1. You have to disable the Google Apps Device Policy, you're going to have to remove your account that requires it.
  2. Touch Settings/My Device/Lock Screen/Screen Lock/Swipe
  3. Touch Lock Screen Widgets/Favorite Apps or Camera/Camera/Save
  4. Touch Back/Screen Lock then choose your security type

Then go back in and add your corporate account that requires the Google Apps Device Policy and away you go.
 
Last edited:
  • Like
Reactions: LeDeveloper

coolnessQ

Senior Member
Aug 8, 2012
955
295
26
Rotterdam
First bug found:(

Game: Drakrider
Version: v1.0.0

Error log:
ErrorCode = 80
2013/07/19 00:44:47
com.mohammadag.multiplewidgets
samsung
GT-I9505
4.2.2
002e3bf0-01332ada-077b30f2
95d4d097-859beca2-a7608af2
763a92a2-cc2eae70-09f8b99a


Verstuurd van mijn GT-I9505 met Tapatalk
 

MohammadAG

Inactive Recognized Developer
Sep 7, 2009
1,080
5,504
29
Jerusalem
mohammadag.xceleo.org
First bug found:(

Game: Drakrider
Version: v1.0.0

Error log:
ErrorCode = 80
2013/07/19 00:44:47
com.mohammadag.multiplewidgets
samsung
GT-I9505
4.2.2
002e3bf0-01332ada-077b30f2
95d4d097-859beca2-a7608af2
763a92a2-cc2eae70-09f8b99a


Verstuurd van mijn GT-I9505 met Tapatalk

What type of error log is that?

Sent from my GT-I9500 using xda app-developers app
 

coolnessQ

Senior Member
Aug 8, 2012
955
295
26
Rotterdam
What type of error log is that?

Sent from my GT-I9500 using xda app-developers app

The game Drakerider creates that, this only happend to me when i used hacking tools on the app itself, but now only when i have your xposed mod enabled than it will create that error log, its a weird Security created by SQUARE ENIX :)

Verstuurd van mijn GT-I9505 met Tapatalk
 

MohammadAG

Inactive Recognized Developer
Sep 7, 2009
1,080
5,504
29
Jerusalem
mohammadag.xceleo.org
The game Drakerider creates that, this only happend to me when i used hacking tools on the app itself, but now only when i have your xposed mod enabled than it will create that error log, its a weird Security created by SQUARE ENIX :)

Verstuurd van mijn GT-I9505 met Tapatalk

Oh yeah, I think I've seen someone report that about Final Fantasy. I think rovo89 mentioned that the only fix would be to disable the mod while playing the game.

Honestly I'd complain ti Square Enix, this is one of those DRM methods that only harms the user.

Sent from my GT-I9500 using xda app-developers app
 

coolnessQ

Senior Member
Aug 8, 2012
955
295
26
Rotterdam
Oh yeah, I think I've seen someone report that about Final Fantasy. I think rovo89 mentioned that the only fix would be to disable the mod while playing the game.

Honestly I'd complain ti Square Enix, this is one of those DRM methods that only harms the user.

Sent from my GT-I9500 using xda app-developers app

Its a sad thing to see, because i really liked the mod, can you make a fix around this bug? Ive posted the files online for the GT-I9505, apk+obb the site in my twitter can bring you to the files, im from the media share team there :)



Verstuurd van mijn GT-I9505 met Tapatalk
 

elindros97

Member
Jul 18, 2013
10
0
Android 4.2 introduced lockscreen widgets, which allow you to glance at your widgets without unlocking your device, even when it's secure.
Samsung decided to rip this apart, and disable widgets if the device is secured.

This mod fixes that, all while enabling a secure camera on the lockscreen when swiping right (Gallery button won't be shown).

Compatibility:
This mod should work on all TouchWiz 4.2 ROMs, unless Samsung decides to break it later on.
Tested and/or reported working on:
  • Samsung Galaxy S4
  • Samsung Galaxy S3 with 4.2.2 leak


I've read this entire thread fully and am running a Samsung Galaxy S4 on AT&T SGH-I337 running Andoird 4.2.2 on baseband I337UCUAMDL and kernel 3.4.0-453947. I rooted using Motochopper and have TWRP recovery installed. I was able to successfully install the XDA Framework and download this mod and enable it. This is what I am experiencing:

1. With no passcode lock at all, I am able to swipe from right to left and see a bunch of shortcuts. I am also able to swipe from left to right and add widgets.

2. With a passcode added and no 'secure email account' attached to my device, I am still able to swipe from right to left to see shortcuts and from left to right to see widgets.

3. However, once I setup my work email MS Exchange, which does require a passcode lock, the mod only partially works. I am still able to swipe from right to left to see the shortcuts (although to access anything I still must enter my code). But I am not completely unable to swipe from left to right to see the widgets.

I was using Nova Launcher and thought this was the problem. But even after completely removing Nova Launcher and going back to the stock TouchWiz - same problem.

Any ideas???

Anybody???

Sent from my SAMSUNG-SGH-I337 using xda app-developers app
 
Last edited:
Status
Not open for further replies.

Top Liked Posts

  • There are no posts matching your filters.
  • 94
    Android 4.2 introduced lockscreen widgets, which allow you to glance at your widgets without unlocking your device, even when it's secure.
    Samsung decided to rip this apart, and disable widgets if the device is secured.

    This mod fixes that, all while enabling a secure camera on the lockscreen when swiping right (Gallery button won't be shown).

    Compatibility:
    This mod should work on all TouchWiz 4.2 ROMs, unless Samsung decides to break it later on.
    Tested and/or reported working on:
    • Samsung Galaxy S4
    • Samsung Galaxy S3 with 4.2.2 leak
    • Samsung Galaxy Note 3
    • Samsung Galaxy Note 2 with 4.3 leak

    Source:
    The mod is open source, and licensed under GPLv3: https://github.com/MohammadAG/Xposed-Samsung-Multiple-Widgets

    Download:
    http://dl-count.xposed.info/modules/com.mohammadag.multiplewidgets_v5_a98dbe.apk

    Changelog:
    [1.6]
    • Added settings activity to select whether or not to force a camera widget (Note 3 users, you'll need to check this)
    [1.5]
    • Support for 4.3, tested on the Galaxy Note 2, will most probably work on the Note 3.
    • Force the camera widget to appear, this should help S3 owners, as well as any user with a 4.3 device that doesn't have Samsung's shiny new camera.
    [1.1]
    • Widgets can now be edited in secure mode.
    • You can now toggle between Favorite Shortcuts and Secure Camera in Lockscreen Settings (stock Settings app).
    [1.0]
    • Initial release.

    Support development:
    If you found this mod useful, consider donating with PayPal.
    8
    I already said, I'll look into it when I can. I have no 4.4 Samsung device.

    I'm closing this thread as it's flooding my inbox, pull requests still accepted tho.

    Sent from my Xperia Z1 using Tapatalk
    3
    I'll try to get the Note 3 for a couple hours tonight. Will see what happens then.

    Sent from my C6903 using Tapatalk
    3
    @MohammadAG, any plans to update the APP to work on 4.4.2 TouchWiz?

    I may be getting access to a Note 3 today, if this affects that, yes, otherwise, no, until the Note 2 gets 4.4.2.

    Sent from my C6903 using Tapatalk
    2
    is it possible to incorporate this mod into the module?
    it enables all widgets on lockscreen I believe.

    http://forum.xda-developers.com/showthread.php?t=2562788