Restart cell phone automatically

Ares

New member
Hello, I would like to create a macro where I automatically restart my cell phone every week. Can someone help me to create a macro. Thank you.
 

Yogi

Member
Hello, I would like to create a macro where I automatically restart my cell phone every week. Can someone help me to create a macro. Thank you.
Hi,
if it is enough for you that the power menu gets shown and you press "Restart"
here we go (I didn't investigate in a UI Click etc.)
You can use a Constraint "Not in Call" etc.:
restart.png
Regards
Fritz
 

mapriex

Active member
my suggestion:
1) root your device
2) and choose day and time
 

Attachments

  • Screenshot_20240109-200147.png
    Screenshot_20240109-200147.png
    113.4 KB · Views: 6

mapriex

Active member
here aswell from the pm conversation:

hello, just google around. there are many tutorials to root a certain phone. if you know your android version: google: how to root android xx
 

Endercraft

Moderator (& bug finder :D)
You shouldn't go for root unless you're fine with the huge security risk (also resets your device). I wouldn't encourage rooting unless the action has no other option. A lot of actions (including reboot) can be done by adb:


Run the command svc power reboot when you're done with the setup.
 

Yogi

Member
is it possible to give me a step by step instruction
of course and in German also.
It is ok if someone shows you the tricky way by rooting the phone, but there is also always a risk.
So we keep it simple.

GERMAN - Deutsch
Damit es leichter wird, stelle vielleicht die Sprache für MD in den "Einstellungen->Sprache" auf Englisch.
Kannst ja dann wieder zurückstellen...
Fortsetzung folgt
1_MD.png
Auslöser (Trigger) mit "+" im roten Feld hinzufügen
2_MD.png
Unter "Date/Time" den "Day/Time" Auslöser auswählen
3_MD.png
Die gewünschten Tage/Uhrzeit auswählen und mit Ok bestätigen
4_MD.png
Eine "Action" hinzufügen mit "+" und "If confirmed Then" auswählen
5_MD.png
Einen Text wie z.B. hier eintragen und "OK"
6_MD.png
Eine neue "Action" mit "+" und unter "Device Actions" die Aktion "Android Shortcut" auswählen
7_MD.png
und hier dann "Power Options auswählen" und "OK"
 

Yogi

Member
German - Deutsch - Fortsetzung

8_MD.png
Nächste "Action" mit "+" Eine Pause einfügen mit "Wait Before next action"
9_MD.png
1 Sekunde könnte reichen, einfach ausprobieren und "OK"
10_MD.png
Noch eine "Action" hinzufügen "UI Interaction"
11_MD.png"Click" auswählen12_MD.png
"Text content" auswählen
13_MD.png
und hier wichtig!! den Text hinschreiben, der bei Deinem Power Dialog für Neustart steht. Bei mir ist es einfach "Neustart" und "OK"

Warum man das mit dem "If" Konstrukt macht?
Weil für dieses Makro das Handy entsperrt und Interaktionsbereit sein muss, deswegen wird ein Dialog angezeigt, wo Du Dich noch entscheiden kannst ob Neustart oder nicht.

Hoffe es hilft weiter,
Grüße
Fritz
 
Top