shutdown the core daemon
()
| 295 | * shutdown the core daemon |
| 296 | */ |
| 297 | public static void shutdownCoreDaemon(){ |
| 298 | if(!Client.isConnected() && !Client.Connect(getCorePath() + "/cSploitd.sock")) { |
| 299 | return; // daemon is not running |
| 300 | } |
| 301 | if(!Client.isAuthenticated() && !Client.Login("android", "DEADBEEF")) { |
| 302 | Logger.error("cannot login to daemon"); |
| 303 | } |
| 304 | Client.Shutdown(); |
| 305 | Client.Disconnect(); |
| 306 | |
| 307 | mCoreInitialized = false; |
| 308 | Services.getNetworkRadar().onAutoScanChanged(); |
| 309 | } |
| 310 | |
| 311 | public static void initCore() throws DaemonException, SuException { |
| 312 |
no test coverage detected