Wednesday, April 8, 2015

DIY Smart Cover TaskerFiles


Description


This profile locks the phone when closing the flap of a modified wallet-style phone cover (see below.)


note Below are two versions, the first basic version is likely to be better on battery, and will only use the magnet to lock the screen. The second relies on the SecureSettings plugin, and will wake the screen when the cover is opened.


Usage


1) Cut a small square from a flat refrigerator magnet


2) Find the spot in your phone that has the magnetometer by using the magnet and the Scan button on the Magnetic Field context


3) Using clear tape or other adhesive attach the magnet to the opposite spot on the phone cover flap so that it falls on that spot when closed.


4) Import the profile, and adjust the Magnetic Field value to within range of the values seen during step 2 - the goal is to be high enough to avoid false positives while still reliably activating when closing the flap.


Profile Description - Lock only



Profile: SmartCase (2) Cooldown: 10 State: Display State [ Is:On ] State: Magnetic Field [ Axis:All From:1000 To:Any ] State: Not Power [ Source:Any ] Enter: Lock (3) A1: System Lock

Instructions - Lock only


Copy XML data below into a file, and import into Tasker (check Sidebar for instructions).





<TaskerData sr="" dvi="1" tv="4.6u3m"> <Profile sr="prof2" ve="2"> <cdate>1428162421216</cdate> <cldm>10</cldm> <edate>1428530324556</edate> <id>2</id> <mid0>3</mid0> <nme>SmartCase</nme> <State sr="con0" ve="2"> <code>123</code> <Int sr="arg0" val="1"/> </State> <State sr="con1" ve="2"> <code>106</code> <Int sr="arg0" val="0"/> <Int sr="arg1" val="1000"/> <Int sr="arg2" val="1000"/> </State> <State sr="con2" ve="2"> <code>10</code> <pin>true</pin> <Int sr="arg0" val="0"/> </State> </Profile> <Task sr="task3"> <cdate>1428162436559</cdate> <edate>1428530324556</edate> <id>3</id> <nme>Lock</nme> <Action sr="act0" ve="7"> <code>16</code> </Action> </Task> </TaskerData>



Profile Description - Lock and Unlock



Profile: SmartCase (2) Cooldown: 10 State: Magnetic Field [ Axis:All From:1000 To:Any ] State: Not Power [ Source:Any ] Enter: Lock (3) A1: System Lock Exit: ScreenOn (4) A1: Secure Settings [ Configuration:Screen & Keyboard Lights On 5 Seconds Package:com.intangibleobject.securesettings.plugin Name:Secure Settings Timeout (Seconds):0 ]

Instructions - Lock and Unlock


Copy XML data below into a file, and import into Tasker (check Sidebar for instructions).





<TaskerData sr="" dvi="1" tv="4.6u3m"> <Profile sr="prof2" ve="2"> <cdate>1428162421216</cdate> <cldm>10</cldm> <edate>1428549158063</edate> <id>2</id> <mid0>3</mid0> <mid1>4</mid1> <nme>SmartCase</nme> <State sr="con0" ve="2"> <code>106</code> <Int sr="arg0" val="0"/> <Int sr="arg1" val="1000"/> <Int sr="arg2" val="1000"/> </State> <State sr="con1" ve="2"> <code>10</code> <pin>true</pin> <Int sr="arg0" val="0"/> </State> </Profile> <Task sr="task3"> <cdate>1428162436559</cdate> <edate>1428530324556</edate> <id>3</id> <nme>Lock</nme> <Action sr="act0" ve="7"> <code>16</code> </Action> </Task> <Task sr="task4"> <cdate>1428548385397</cdate> <edate>1428548870628</edate> <id>4</id> <nme>ScreenOn</nme> <Action sr="act0" ve="7"> <code>11820</code> <Bundle sr="arg0"> <Vals sr="val"> <com.intangibleobject.securesettings.plugin.extra.BLURB>Screen &amp; Keyboard Lights On 5 Seconds</com.intangibleobject.securesettings.plugin.extra.BLURB> <com.intangibleobject.securesettings.plugin.extra.BLURB-type>java.lang.String</com.intangibleobject.securesettings.plugin.extra.BLURB-type> <com.intangibleobject.securesettings.plugin.extra.SETTING>wake_device</com.intangibleobject.securesettings.plugin.extra.SETTING> <com.intangibleobject.securesettings.plugin.extra.SETTING-type>java.lang.String</com.intangibleobject.securesettings.plugin.extra.SETTING-type> <com.intangibleobject.securesettings.plugin.extra.WAKE_LOCK_DURATION>5000</com.intangibleobject.securesettings.plugin.extra.WAKE_LOCK_DURATION> <com.intangibleobject.securesettings.plugin.extra.WAKE_LOCK_DURATION-type>java.lang.Long</com.intangibleobject.securesettings.plugin.extra.WAKE_LOCK_DURATION-type> <com.intangibleobject.securesettings.plugin.extra.WAKE_LOCK_TYPE>full</com.intangibleobject.securesettings.plugin.extra.WAKE_LOCK_TYPE> <com.intangibleobject.securesettings.plugin.extra.WAKE_LOCK_TYPE-type>java.lang.String</com.intangibleobject.securesettings.plugin.extra.WAKE_LOCK_TYPE-type> <com.twofortyfouram.locale.intent.extra.BLURB>Screen &amp; Keyboard Lights On 5 Seconds</com.twofortyfouram.locale.intent.extra.BLURB> <com.twofortyfouram.locale.intent.extra.BLURB-type>java.lang.String</com.twofortyfouram.locale.intent.extra.BLURB-type> <net.dinglisch.android.tasker.subbundled>true</net.dinglisch.android.tasker.subbundled> <net.dinglisch.android.tasker.subbundled-type>java.lang.Boolean</net.dinglisch.android.tasker.subbundled-type> </Vals> </Bundle> <Str sr="arg1" ve="3">com.intangibleobject.securesettings.plugin</Str> <Str sr="arg2" ve="3">Secure Settings</Str> <Int sr="arg3" val="0"/> </Action> </Task> </TaskerData>







Submitted April 09, 2015 at 08:51AM by cognitivegear http://ift.tt/1CiOY9N TaskerFiles

No comments:

Post a Comment