How to use linux cmd shutdown the Android system?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to use linux cmd shutdown the Android system?

Jump to solution
1,073 Views
Danial
Contributor II

I want to use api shutdown the Android system, but I can't.

When I use the api shutdown the Android system, it reboot,

I find there isn't shutdown cmd in kernel. I need this function,

what should I do?

Labels (1)
0 Kudos
1 Solution
629 Views
4guin4g4
Contributor IV

Try

halt now

it forces the system to shut down, but it does not save or takes care about anything.

View solution in original post

0 Kudos
1 Reply
630 Views
4guin4g4
Contributor IV

Try

halt now

it forces the system to shut down, but it does not save or takes care about anything.

0 Kudos