Bildschirmsperre deaktivieren geht nicht mehr.

docadams

docadams

Erfahrenes Mitglied
23
[EDIT] Unten habe ich die beiden Codes noch mal übersichtlicher gepostet.


Hallo,
ich habe ein OnePlusOne mit Cyanogen-OS12.0, vergleichbar mit Android 5.0.2. Ich kann es nicht 100%ig sagen, glaube aber, mein Problem tritt seit dem Update auf diese Version auf.

Ich hatte mir 2 Tasks zusammen gebaut, mit denen u.a. die Bildschirmsperre aktiviert, bzw. deaktiviert wird. In den Geräteeinstellungen ist sie aktiviert, nur wenn ich zu Hause bin, soll sie mittels des Tasks deaktiviert werden. Das klappt nicht mehr.
Wenn ich die Benutzer-Profile aktiviere, kann ich das steuern. Aber die sind mir immer noch zu unflexibel.

Die Profile sehen so aus:

Code:
<TaskerData sr="" dvi="1" tv="4.7u1m">

<Task sr="task29">

<cdate>1422565077816</cdate>

<edate>1432245821616</edate>

<id>29</id>

<nme>Unterwegs</nme>

<pri>10</pri>

<Action sr="act0" ve="7">

<code>11820</code>

<se>false</se>

<Bundle sr="arg0">

<Vals sr="val">

<com.intangibleobject.securesettings.plugin.extra.BLURB>GPS Enabled</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.ENABLED>true</com.intangibleobject.securesettings.plugin.extra.ENABLED>

<com.intangibleobject.securesettings.plugin.extra.ENABLED-type>java.lang.Boolean</com.intangibleobject.securesettings.plugin.extra.ENABLED-type>

<com.intangibleobject.securesettings.plugin.extra.SETTING>gps</com.intangibleobject.securesettings.plugin.extra.SETTING>

<com.intangibleobject.securesettings.plugin.extra.SETTING-type>java.lang.String</com.intangibleobject.securesettings.plugin.extra.SETTING-type>

<com.twofortyfouram.locale.intent.extra.BLURB>GPS Enabled</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>

<Action sr="act1" ve="7">

<code>590</code>

<Str sr="arg0" ve="3">%TIME</Str>

<Str sr="arg1" ve="3">.</Str>

<Int sr="arg2" val="0"/>

</Action>

<Action sr="act10" ve="7">

<code>425</code>

<Int sr="arg0" val="0"/>

</Action>

<Action sr="act11" ve="7">

<code>547</code>

<Str sr="arg0" ve="3">%zuHause</Str>

<Str sr="arg1" ve="3">nein</Str>

<Int sr="arg2" val="0"/>

<Int sr="arg3" val="0"/>

</Action>

<Action sr="act2" ve="7">

<code>559</code>

<se>false</se>

<Str sr="arg0" ve="3">Und tschüss.</Str>

<Str sr="arg1" ve="3">default:default</Str>

<Int sr="arg2" val="3"/>

<Int sr="arg3" val="5"/>

<Int sr="arg4" val="5"/>

<Int sr="arg5" val="1"/>

<Int sr="arg6" val="1"/>

<Int sr="arg7" val="0"/>

</Action>

<Action sr="act3" ve="7">

<code>559</code>

<se>false</se>

<Str sr="arg0" ve="3">Es ist %TIME1 uhr %TIME2</Str>

<Str sr="arg1" ve="3">com.google.android.tts:deu-deu</Str>

<Int sr="arg2" val="3"/>

<Int sr="arg3" val="5"/>

<Int sr="arg4" val="5"/>

<Int sr="arg5" val="0"/>

<Int sr="arg6" val="1"/>

<Int sr="arg7" val="0"/>

</Action>

<Action sr="act4" ve="7">

<code>11820</code>

<Bundle sr="arg0">

<Vals sr="val">

<com.intangibleobject.securesettings.plugin.extra.BLURB>Airplane Mode Disabled</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.ENABLED>false</com.intangibleobject.securesettings.plugin.extra.ENABLED>

<com.intangibleobject.securesettings.plugin.extra.ENABLED-type>java.lang.Boolean</com.intangibleobject.securesettings.plugin.extra.ENABLED-type>

<com.intangibleobject.securesettings.plugin.extra.SETTING>airplane_mode</com.intangibleobject.securesettings.plugin.extra.SETTING>

<com.intangibleobject.securesettings.plugin.extra.SETTING-type>java.lang.String</com.intangibleobject.securesettings.plugin.extra.SETTING-type>

<com.twofortyfouram.locale.intent.extra.BLURB>Airplane Mode Disabled</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>

<Action sr="act5" ve="7">

<code>11820</code>

<Bundle sr="arg0">

<Vals sr="val">

<com.intangibleobject.securesettings.plugin.extra.BLURB>Pattern Lock Enabled</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.ENABLED>true</com.intangibleobject.securesettings.plugin.extra.ENABLED>

<com.intangibleobject.securesettings.plugin.extra.ENABLED-type>java.lang.Boolean</com.intangibleobject.securesettings.plugin.extra.ENABLED-type>

<com.intangibleobject.securesettings.plugin.extra.SETTING>lock_pattern_autolock</com.intangibleobject.securesettings.plugin.extra.SETTING>

<com.intangibleobject.securesettings.plugin.extra.SETTING-type>java.lang.String</com.intangibleobject.securesettings.plugin.extra.SETTING-type>

<com.twofortyfouram.locale.intent.extra.BLURB>Pattern Lock Enabled</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">

<var>1</var>

</Int>

</Action>

<Action sr="act6" ve="7">

<code>812</code>

<Int sr="arg0" val="30"/>

<Int sr="arg1" val="0"/>

<Int sr="arg2" val="0"/>

</Action>

<Action sr="act7" ve="7">

<code>808</code>

<Int sr="arg0" val="1"/>

</Action>

<Action sr="act8" ve="7">

<code>433</code>

<Int sr="arg0" val="1"/>

</Action>

<Action sr="act9" ve="7">

<code>735</code>

<Int sr="arg0" val="2"/>

</Action>

<Img sr="icn" ve="2">

<nme>hd_aaa_ext_bike</nme>

</Img>

</Task>

</TaskerData>

bzw.

Code:
<TaskerData sr="" dvi="1" tv="4.7u1m">
<Task sr="task24">
<cdate>1422565077816</cdate>
<edate>1435744581018</edate>
<id>24</id>
<nme>Zu Hause</nme>
<pri>10</pri>
<Action sr="act0" ve="7">
<code>735</code>
<Int sr="arg0" val="0"/>
</Action>
<Action sr="act1" ve="7">
<code>11820</code>
<Bundle sr="arg0">
<Vals sr="val">
<com.intangibleobject.securesettings.plugin.extra.BLURB>Airplane Mode Enabled</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.ENABLED>true</com.intangibleobject.securesettings.plugin.extra.ENABLED>
<com.intangibleobject.securesettings.plugin.extra.ENABLED-type>java.lang.Boolean</com.intangibleobject.securesettings.plugin.extra.ENABLED-type>
<com.intangibleobject.securesettings.plugin.extra.SETTING>airplane_mode</com.intangibleobject.securesettings.plugin.extra.SETTING>
<com.intangibleobject.securesettings.plugin.extra.SETTING-type>java.lang.String</com.intangibleobject.securesettings.plugin.extra.SETTING-type>
<com.twofortyfouram.locale.intent.extra.BLURB>Airplane Mode Enabled</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>
<Action sr="act10" ve="7">
<code>11820</code>
<Bundle sr="arg0">
<Vals sr="val">
<com.intangibleobject.securesettings.plugin.extra.BLURB>GPS Disabled</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.ENABLED>false</com.intangibleobject.securesettings.plugin.extra.ENABLED>
<com.intangibleobject.securesettings.plugin.extra.ENABLED-type>java.lang.Boolean</com.intangibleobject.securesettings.plugin.extra.ENABLED-type>
<com.intangibleobject.securesettings.plugin.extra.SETTING>gps</com.intangibleobject.securesettings.plugin.extra.SETTING>
<com.intangibleobject.securesettings.plugin.extra.SETTING-type>java.lang.String</com.intangibleobject.securesettings.plugin.extra.SETTING-type>
<com.twofortyfouram.locale.intent.extra.BLURB>GPS Disabled</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>
<Action sr="act11" ve="7">
<code>30</code>
<Int sr="arg0" val="0"/>
<Int sr="arg1" val="5"/>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
</Action>
<Action sr="act12" ve="7">
<code>590</code>
<label>aufgeteilte zeit</label>
<Str sr="arg0" ve="3">%TIME</Str>
<Str sr="arg1" ve="3">.</Str>
<Int sr="arg2" val="0"/>
</Action>
<Action sr="act13" ve="7">
<code>559</code>
<se>false</se>
<Str sr="arg0" ve="3">Willkommen zu hause.</Str>
<Str sr="arg1" ve="3">com.google.android.tts:deu-deu</Str>
<Int sr="arg2" val="3"/>
<Int sr="arg3" val="5"/>
<Int sr="arg4" val="5"/>
<Int sr="arg5" val="1"/>
<Int sr="arg6" val="1"/>
<Int sr="arg7" val="0"/>
</Action>
<Action sr="act14" ve="7">
<code>559</code>
<se>false</se>
<Str sr="arg0" ve="3">Es ist %TIME1 uhr %TIME2</Str>
<Str sr="arg1" ve="3">com.google.android.tts:deu-deu</Str>
<Int sr="arg2" val="3"/>
<Int sr="arg3" val="5"/>
<Int sr="arg4" val="5"/>
<Int sr="arg5" val="1"/>
<Int sr="arg6" val="1"/>
<Int sr="arg7" val="0"/>
</Action>
<Action sr="act15" ve="7">
<code>426</code>
<Int sr="arg0" val="1"/>
<Int sr="arg1" val="1"/>
<Int sr="arg2" val="1"/>
</Action>
<Action sr="act2" ve="7">
<code>425</code>
<label>WLAN an</label>
<Int sr="arg0" val="1"/>
</Action>
<Action sr="act3" ve="7">
<code>30</code>
<on>false</on>
<Int sr="arg0" val="0"/>
<Int sr="arg1" val="10"/>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
</Action>
<Action sr="act4" ve="7">
<code>547</code>
<Str sr="arg0" ve="3">%zuHause</Str>
<Str sr="arg1" ve="3">ja</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
</Action>
<Action sr="act5" ve="7">
<code>30</code>
<Int sr="arg0" val="0"/>
<Int sr="arg1" val="5"/>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
</Action>
<Action sr="act6" ve="7">
<code>11820</code>
<se>false</se>
<Bundle sr="arg0">
<Vals sr="val">
<com.intangibleobject.securesettings.plugin.extra.BLURB>Pattern Lock Disabled</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.ENABLED>false</com.intangibleobject.securesettings.plugin.extra.ENABLED>
<com.intangibleobject.securesettings.plugin.extra.ENABLED-type>java.lang.Boolean</com.intangibleobject.securesettings.plugin.extra.ENABLED-type>
<com.intangibleobject.securesettings.plugin.extra.SETTING>lock_pattern_autolock</com.intangibleobject.securesettings.plugin.extra.SETTING>
<com.intangibleobject.securesettings.plugin.extra.SETTING-type>java.lang.String</com.intangibleobject.securesettings.plugin.extra.SETTING-type>
<com.twofortyfouram.locale.intent.extra.BLURB>Pattern Lock Disabled</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>
<Action sr="act7" ve="7">
<code>812</code>
<Int sr="arg0" val="45"/>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="0"/>
</Action>
<Action sr="act8" ve="7">
<code>808</code>
<Int sr="arg0" val="0"/>
</Action>
<Action sr="act9" ve="7">
<code>810</code>
<Int sr="arg0" val="87"/>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
</Action>
<Img sr="icn" ve="2">
<nme>hd_aaa_ext_armchair</nme>
</Img>
</Task>
</TaskerData>

Hat sich da etwas hinsichtlich der OS-Version verändert oder hab ich ohnehin das falsch programmiert?
 
Zuletzt bearbeitet:
Description/Beschreibung ist besser lesbar als xml
 
Danke für den Hinweis. Meinst du das so?

Code:
Unterwegs (29)
A1: Secure Settings [ Konfiguration:GPS Enabled Paket:com.intangibleobject.securesettings.plugin Name:Secure Settings Timeout (Sekunden):0 Task Weiter Ausführen Nach Fehler:An ]
A2: Variable Aufteilen [ Name:%TIME Teiler:. Basis löschen:Aus ]
A3: Vorlesen [ Text:Und tschüss. Maschine: Stimme:default:default Stream:3 Tonhöhe:5 Geschwindigkeit:5 Respect Audio Focus:An Network:An sofort mit Task fortfahren:Aus Task Weiter Ausführen Nach Fehler:An ]
A4: Vorlesen [ Text:Es ist %TIME1 uhr  %TIME2 Maschine: Stimme:com.google.android.tts:deu-deu Stream:3 Tonhöhe:5 Geschwindigkeit:5 Respect Audio Focus:Aus Network:An sofort mit Task fortfahren:Aus Task Weiter Ausführen Nach Fehler:An ]
A5: Secure Settings [ Konfiguration:Airplane Mode Disabled Paket:com.intangibleobject.securesettings.plugin Name:Secure Settings Timeout (Sekunden):0 ]
A6: Secure Settings [ Konfiguration:Pattern Lock Enabled Paket:com.intangibleobject.securesettings.plugin Name:Secure Settings Timeout (Sekunden):1 ]
A7: Display Timeout [ Sek.:30 Min.:0 Std.:0 ]
A8: Auto-Helligkeit [ setzen:An ]
A9: Mobile Daten [ setzen:An ]
A10: Mobile Daten 2G/3G [ Modus:Bevorzugt 3G ]
A11: Wi-Fi [ setzen:Aus ]
A12: Variable Setzen [ Name:%zuHause Zu:nein Mathematisch:Aus Hinzufügen:Aus ]

Code:
Zu Hause (24)
A1: Mobile Daten 2G/3G [ Modus:Nur 2G ]
A2: Secure Settings [ Konfiguration:Airplane Mode Enabled Paket:com.intangibleobject.securesettings.plugin Name:Secure Settings Timeout (Sekunden):0 ]
<WLAN an>
A3: Wi-Fi [ setzen:An ]
A4: [X] Warte [ MS:0 Sekunden:10 Minuten:0 Std.:0 Tage:0 ]
A5: Variable Setzen [ Name:%zuHause Zu:ja Mathematisch:Aus Hinzufügen:Aus ]
A6: Warte [ MS:0 Sekunden:5 Minuten:0 Std.:0 Tage:0 ]
A7: Secure Settings [ Konfiguration:Pattern Lock Disabled Paket:com.intangibleobject.securesettings.plugin Name:Secure Settings Timeout (Sekunden):0 Task Weiter Ausführen Nach Fehler:An ]
A8: Display Timeout [ Sek.:45 Min.:0 Std.:0 ]
A9: Auto-Helligkeit [ setzen:Aus ]
A10: Display Helligkeit [ Level:87 Schutzmaßnahmen deaktivieren:Aus Aktueller Level ignorieren:Aus Sofortige Auswirkung:Aus ]
A11: Secure Settings [ Konfiguration:GPS Disabled Paket:com.intangibleobject.securesettings.plugin Name:Secure Settings Timeout (Sekunden):0 ]
A12: Warte [ MS:0 Sekunden:5 Minuten:0 Std.:0 Tage:0 ]
<aufgeteilte zeit>
A13: Variable Aufteilen [ Name:%TIME Teiler:. Basis löschen:Aus ]
A14: Vorlesen [ Text:Willkommen zu hause. Maschine: Stimme:com.google.android.tts:deu-deu Stream:3 Tonhöhe:5 Geschwindigkeit:5 Respect Audio Focus:An Network:An sofort mit Task fortfahren:Aus Task Weiter Ausführen Nach Fehler:An ]
A15: Vorlesen [ Text:Es ist %TIME1 uhr  %TIME2 Maschine: Stimme:com.google.android.tts:deu-deu Stream:3 Tonhöhe:5 Geschwindigkeit:5 Respect Audio Focus:An Network:An sofort mit Task fortfahren:Aus Task Weiter Ausführen Nach Fehler:An ]
A16: Wi-Fi Netz [ Aktion:Erneut verbinden Zwingen:An Fehler melden:An ]
 
Ja,
wie schaust du ob du zuhause/nicht zuhause bist? (über Standort?)
Ich verwende z.b. das (Android 5.1) und funktioniert eigentlich (bei mir allerdings über wlan da ich das immer an hab)
Code:
Profile: HeimWLAN ja/nein (2)
    State: Wifi Connected [ SSID:FRITZ!Box Fon WLAN 7360 MAC:xyz IP:* ]
Enter: Pin-Aus (7)
    A1: Notify Cancel [ Title:PIN aktiviert Warn Not Exist:Off ]
    A2: Secure Settings [ Configuration:Clear Password Package:com.intangibleobject.securesettings.plugin Name:Secure Settings Timeout (Seconds):0 ]
    A3: Variable Set [ Name:%Zuhause To:1 Do Maths:Off Append:Off ]
    A4: Notify [ Title:PIN deaktiviert Text: Icon:null Number:0 Permanent:Off Priority:3 ]
Exit: Pin-An (8)
    A1: Notify Cancel [ Title:PIN deaktiviert Warn Not Exist:Off ]
    A2: Secure Settings [ Configuration:Set Pin Package:com.intangibleobject.securesettings.plugin Name:Secure Settings Timeout (Seconds):0 ]
    A3: Variable Set [ Name:%Zuhause To:0 Do Maths:Off Append:Off ]
    A4: Notify [ Title:PIN aktiviert Text: Icon:null Number:0 Permanent:Off Priority:3 ]
 
Zuletzt bearbeitet:
Hallo,
Auslöser soll einmal NFC-Tag sein.
Aber das ist nicht das Problem, sondern die nicht (mehr) funktionierende Bildschirmsperr-Umschaltfunktion.
Der Code mag sicher nicht optimal sein, aber ich komme nicht aus der Programmiererecke und es sind meine ersten Gehversuche ;-)
 

Ähnliche Themen

X
Antworten
7
Aufrufe
711
xyzUpdate
X
E
Antworten
5
Aufrufe
378
TinTin2030
TinTin2030
X
Antworten
4
Aufrufe
938
xyzUpdate
X
Zurück
Oben Unten