In most cases it is enough of functional of system_settings_form for saving settings and dont care 'bout submit ops. But what to do if it you need to add additional button to form?
One day my phone got veeeeeery slow. Killing apps in Settings — Application is not the real way for me and I started to Terminal. Of course, my device rooted. So, all command done in SU mode.
I saw a weird (lol) proc called system_server. So I decided to kill it. He he. Device did soft reboot and display rectangle with text «Safe mode» in left bottom corner.
$ ps -m 10 -s vss
Weird, I think) I actualy did nothin. Netwrok was working, so I open browser to search the answer.
Common user most of time doesn't care about RAM of his android device, about processes that running on background etc.
User who know what is RAM install apps to clear it. But we are not common users and wont install apps to kill. We gonna kill them ourselves.
You must be root, have busybox and terminal emu installed.
You can use am force-stop <package name>.
or am kill <package name>.
am kill only kills "processes that are safe to kill": i.e. a process with no running services or activities.