Hello guys,I really want to play Puzzle and Dragons on my device but it is rooted. So I use terminal emulater and type following:
setprop ro.secure 1
setprop ro.debuggable 0
setprop persist.sys.usb.config mtp
Then I type getprop ro.secure in terminal emulater but it show 0!
Can anyone tell me how to make it be 1?
I really want to play pad!
Related
You most likely need root access for this, and it's best to make two scripts.
This also needs to be done via ADB or some kind of script launcher that does not depend on Android to be running.
The idea for these is to allow full unencumbered access to the tablet/phone frame-buffer, so that you can do things like run Xorg directly on the hardware.
I have tested this on ALL my rooted devices via ADB, and it works!
PLEASE NOTE!
The second script will RESTART android even if it is running! Use with care!
I didn't take the time to write the code to check the property to see if android is already running!
Code:
file: /system/xbin/stopandroid
#!/system/bin/sh
setprop ctl.stop media
setprop ctl.stop zygote
sleep 1
setprop ctl.stop bootanim
sleep 1
setprop ctl.stop media
setprop ctl.stop zygote
sleep 1
setprop ctl.stop bootanim
exit 0
file: /system/xbin/restartandroid
#! /system/bin/sh
setprop ctl.stop media
setprop ctl.stop zygote
setprop ctl.stop bootanim
setprop ctl.start bootanim
setprop ctl.start zygote
setprop ctl.start media
exit 0
THANK YOU!!!
But seriously, thank you. I have been working on a project and it has been a pain to do because I have not found an appropriate way to shutdown the android user interface. Thank you
I know this is an old thread but just in case someone find it usefull I drop this here: There are already two built-in commands for starting/stopping Zygote and all it's relatives:
Code:
stop
To restart all again
Code:
start
It's that easy
Besides being more simple, the only difference I see compared with your method is your method keeps surfaceflinger service running and the simpler method keeps mediaserver service running. But both can be handled by "setprop ctl.*" to suit your needs.
I hope it helps
Hello,
I try to define multi users on mine android.
With adb shell su:
# setprop fw.max_users 2
# pm get-max-users
2
#pm create-user lotte
Everything like OK.
But after a reboot the value of pm-get-max-users is 1 again.
JohnKersten said:
Hello,
I try to define multi users on mine android.
With adb shell su:
# setprop fw.max_users 2
# pm get-max-users
2
#pm create-user lotte
Everything like OK.
But after a reboot the value of pm-get-max-users is 1 again.
Click to expand...
Click to collapse
Me too LG L9 cyanogenmod 4.2.2
Hello all. I need to stop Zygote and make script something like this:
Code:
setprop ctl.stop media
setprop ctl.stop zygote
setprop ctl.stop bootanim
sleep 1
setprop ctl.start bootanim
setprop ctl.start media
setprop ctl.start zygote
sleep 1
exit 0
How can i do this on Android without ADB. The main goal is to make programm that can start by user. Can anyone help any idea.
One fix i need to do some monipulations with file system when Zygote stop. May be something with ADB or i think wrong way?
I work hard to turn on diag mode in Sony Xperia M4 to connect it to QPST or CDMA. I tried many things I've found on the Internet, but still it isn't working. Windows should see new COM Port in Device Manager, but nothing appears, just phone and adb driver. I don't know if I should try harder if there is something that can be done or I'm just wasting my time because diag mode is locked and nothing can be done. Phone is rooted. tried:
https://forum.xda-developers.com/cr...ad-progress-please-leave-im-updating-t2871269
*#*#8778#*#*
adb shell su setprop persist.usb.eng 1
setprop sys.usb.config diag,adb
setprop sys.usb.config rndis, diag
setprop usb.rndis.enable 1
setprop sys.usb.config acm,diag,mtp,adb
echo diag > /sys/class/android_usb/android0/f_diag/clients
echo diag,adb,serial > /sys/class/android_usb/android0/functions
##3424#
*#*#717717#*#*
**#0808#
Nothing worked to make com port appear. One thing is interesting that after setprop persist.usb.eng 1 and debugging on - even phone and adb is not visible to windows.
i wanted to edit this file in /proc/sys/fs/inotify/max_user_instances
& make the file written as 0 . so, something like this, echo 0 > /proc/sys/fs/inotify/max_user_watches
but i cant edit this file at all... i tried to change permission to 777, -> 'modification failed'
i thought to use magisk module, then i heard - module cant edit /proc folder
now, is there any way to esit this file in any ways??? plz help me!!!
any knowledge appreciated
You must be root in order to edit the file.
Code:
adb devices
adb shell "su -c 'echo 0 > /proc/sys/fs/inotify/max_user_watches'"
jwoegerbauer said:
You must be root in order to edit the file.
Code:
adb devices
adb shell "su -c 'echo 0 > /proc/sys/fs/inotify/max_user_watches'"
Click to expand...
Click to collapse
i hav root
do i run this in android terminal? (termux) or from pc?
i ran the su -c line with & without quote... files is not changing
permission 664
jwoegerbauer said:
You must be root in order to edit the file.
Code:
adb devices
adb shell "su -c 'echo 0 > /proc/sys/fs/inotify/max_user_watches'"
Click to expand...
Click to collapse
holy cow!!
it worked!!! i xonmo why it didnt worked at first time
i will really appreciate, sir. if u tell me what does "su -c" do???
u really helped me!!! thanks a lot