MCPcopy Index your code
hub / github.com/cSploit/android / shutdownCoreDaemon

Method shutdownCoreDaemon

cSploit/src/org/csploit/android/core/System.java:297–309  ·  view source on GitHub ↗

shutdown the core daemon

()

Source from the content-addressed store, hash-verified

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

Callers 1

onHandleIntentMethod · 0.95

Calls 10

isConnectedMethod · 0.95
ConnectMethod · 0.95
getCorePathMethod · 0.95
isAuthenticatedMethod · 0.95
LoginMethod · 0.95
errorMethod · 0.95
ShutdownMethod · 0.95
DisconnectMethod · 0.95
getNetworkRadarMethod · 0.95
onAutoScanChangedMethod · 0.80

Tested by

no test coverage detected