This repository was archived by the owner on Jul 31, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMAGISK.py
More file actions
42 lines (35 loc) · 1.31 KB
/
MAGISK.py
File metadata and controls
42 lines (35 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/usr/bin/python3
# -*- coding: utf-8 -*-
# Energized Blu - Magisk Prop Creator
import urllib.request
import datetime
import os
import time
Blu = 'assets/Magisk/module.prop'
Blu_go = 'assets_go/Magisk/module.prop'
if not os.path.exists(os.path.dirname(Blu)):
os.makedirs(os.path.dirname(Blu))
with open(Blu, 'w') as f:
print('[+] Magisk Module.Prop Updater')
print('[+] Writing to file...')
f.write('''id=energizedblu''')
f.write('''\nname=Energized Blu''')
f.write('''\nversion=1.0.''' + time.strftime("%m.%j", time.gmtime()) + '''''')
f.write('''\nversionCode=''' + time.strftime("%j", time.gmtime()) + '''''')
f.write('''\nauthor=AdroitAdorKhan''')
f.write('''\ndescription=Lightweight Energized Protection.''')
f.write('''\nminMagisk=1500''')
print('[+] Done!')
if not os.path.exists(os.path.dirname(Blu_go)):
os.makedirs(os.path.dirname(Blu_go))
with open(Blu_go, 'w') as f:
print('[+] Magisk Module.Prop Updater')
print('[+] Writing to file...')
f.write('''id=energizedblugo''')
f.write('''\nname=Energized Blu go''')
f.write('''\nversion=1.0.''' + time.strftime("%m.%j", time.gmtime()) + '''''')
f.write('''\nversionCode=''' + time.strftime("%j", time.gmtime()) + '''''')
f.write('''\nauthor=AdroitAdorKhan''')
f.write('''\ndescription=Energized Go!''')
f.write('''\nminMagisk=1500''')
print('[+] Done!')