Skip to content

Commit 0551a6c

Browse files
committed
DroidConsole: Added Miscellaneous option
Signed-off-by: NotZeetaa <rodrigo2005contente@gmail.com>
1 parent 364824d commit 0551a6c

1 file changed

Lines changed: 106 additions & 7 deletions

File tree

DroidConsole

Lines changed: 106 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ CONFIG=/data/adb/modules/DroidConsole/config.sh
55
S2=/sys/devices/system/cpu/cpufreq/schedutil
66
SC=/sys/devices/system/cpu/cpu0/cpufreq/schedutil
77
KGSL=/sys/class/kgsl/kgsl-3d0/
8+
WINDOW=/data/system/users/0/settings_secure.xml
89

910
# Functions
1011
red() {
@@ -311,6 +312,98 @@ ram() {
311312
reset
312313
}
313314

315+
window_feature() {
316+
clear
317+
red
318+
animation_title
319+
echo "**********************************"
320+
animation_title
321+
echo " × Window ignore secure × "
322+
animation_title
323+
echo "**********************************"
324+
green
325+
space
326+
animation
327+
echo "1 - Enable window ignore secure feature"
328+
animation
329+
echo "2 - Disable window ignore secure feature"
330+
animation
331+
echo "3 - Go back"
332+
animation
333+
echo "4 - Main"
334+
animation
335+
echo "5 - Exit"
336+
reset
337+
space
338+
echo "Your input: "
339+
read input
340+
case $input in
341+
1)
342+
if grep -q "window_ignore_secure" $WINDOW; then
343+
settings put secure window_ignore_secure "1"
344+
fi
345+
;;
346+
2)
347+
if grep -q "window_ignore_secure" $WINDOW; then
348+
settings put secure window_ignore_secure "0"
349+
fi
350+
;;
351+
3)
352+
misc
353+
;;
354+
4)
355+
main
356+
;;
357+
5)
358+
leave
359+
;;
360+
*)
361+
red
362+
echo "Invalid input!"
363+
reset
364+
;;
365+
esac
366+
}
367+
368+
misc() {
369+
clear
370+
red
371+
animation_title
372+
echo "*****************************"
373+
animation_title
374+
echo " × Miscellaneous × "
375+
animation_title
376+
echo "*****************************"
377+
green
378+
space
379+
animation
380+
echo "1 - Window ignore secure feature"
381+
animation
382+
echo "2 - Main"
383+
animation
384+
echo "3 - Exit"
385+
reset
386+
space
387+
echo "Your input: "
388+
read input
389+
case $input in
390+
1)
391+
window_feature
392+
;;
393+
2)
394+
main
395+
;;
396+
3)
397+
leave
398+
;;
399+
*)
400+
red
401+
echo "Invalid input!"
402+
reset
403+
;;
404+
esac
405+
}
406+
314407
main() {
315408
clear
316409
echo -en "\e[40m\e[37m"
@@ -330,13 +423,15 @@ main() {
330423
animation
331424
echo "3 - RAM tweaks"
332425
animation
333-
echo "4 - Github"
426+
echo "4 - Miscellaneous"
427+
animation
428+
echo "5 - Github"
334429
animation
335-
echo "5 - About"
430+
echo "6 - About"
336431
animation
337-
echo "6 - Donate"
432+
echo "7 - Donate"
338433
animation
339-
echo "7 - Exit"
434+
echo "8 - Exit"
340435
space
341436
reset
342437
echo "Your input: "
@@ -351,7 +446,11 @@ main() {
351446
3)
352447
ram
353448
;;
449+
354450
4)
451+
misc
452+
;;
453+
5)
355454
clear
356455
blue
357456
animation
@@ -376,7 +475,7 @@ main() {
376475
fi
377476
reset
378477
;;
379-
5)
478+
6)
380479
animation
381480
echo "******************************************************************************************************************************"
382481
animation
@@ -400,11 +499,11 @@ main() {
400499
leave
401500
fi
402501
;;
403-
6)
502+
7)
404503
am start -a android.intent.action.VIEW -d "http://notzeetaa.github.io/Donate-NotZeetaa"
405504
main
406505
;;
407-
7)
506+
8)
408507
leave
409508
;;
410509
*)

0 commit comments

Comments
 (0)