Did the "stop" command brick my phone?


Question

I have a rooted Sony Xperia Z3+.



So I was mucking around in a root terminal (on my phone, not via adb), and I simply typed stop.



The phone seemed to instantly turn off, but it won't turn on again! What did I do? Sorry if this seems like a dumb question, but I cannot even find any infromation on the stop command by googling.


Answer

From @AndrewT 's comment, I gathered this:



Referring this answer on StackOverflow



What does stop do?



stop entered in a root terminal basically stops the Android process called zygote. This in turn stops all processes registered in the context of zygote, that is, all services (including system services) registered to zygote. This includes the SurfaceFlingerprocess responsible for rendering the Android UI.



So, nothing displays on your screen once you enter this command, but the Linux kernel below Android is still going, as you can check if you have a UART connection to the device, or have set it up to specially broadcast output to ADB even if zygote has stopped.



A power-on isn't possible after stop as technically the device isn't powered-off.



What is zygote?



zygote is the hosting process for any Android app. That is, it holds the context of the app and the app itself, and on versions of Android below 5.0, hosts the Dalvik VM instance for the app. It is a system-level process, started on boot.



So how can you recover your device?



Try a hard reboot. That is, pull out your battery, leave the device alone for 15 or so minutes, and then put it back in and boot it up again.



If your device lacks a removable battery, the workaround is to hold down the power button until the device vibrates or shows the bootloader splashscreen. This usually takes about anywhere from 10 seconds to 1 minute.



If you can get the bootloader splashscreen, you are (relatively) safe, you aren't hardbricked. Further steps can be added if Android fails to boot past that step. If that happens, and you have a custom recovery and a NANDroid backup, just restore that.



If you can't get the bootloader splashscreen, check if your device charges when connected to a mains source. If it does, you're still relatively safe and a restore is possible (but out of scope of this answer, as it is very device-specific).



If it doesn't even charge, a recovery may still be possible but you are effectively hardbricked. Maybe the service center can help you further.



Note that the cause of the soft or hardbrick wasn't the stop command, probably something else. What, can't be said without further details.


Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes