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

Method clean

cSploit/src/org/csploit/android/core/System.java:1190–1224  ·  view source on GitHub ↗
(boolean releaseLocks)

Source from the content-addressed store, hash-verified

1188 }
1189
1190 public static void clean(boolean releaseLocks){
1191 setForwarding(false);
1192
1193 try{
1194 if(releaseLocks){
1195 Logger.debug("Releasing locks.");
1196
1197 if(mWifiLock != null && mWifiLock.isHeld())
1198 mWifiLock.release();
1199
1200 if(mWakeLock != null && mWakeLock.isHeld())
1201 mWakeLock.release();
1202 }
1203
1204 RemoteReader.terminateAll();
1205
1206 GitHubParser.resetAll();
1207
1208 synchronized (mTargets) {
1209
1210 for (Target t : mTargets)
1211 for (Session s : t.getSessions())
1212 s.stopSession();
1213
1214 mTargets.clear();
1215 }
1216
1217 Client.Disconnect();
1218 mCoreInitialized = false;
1219 Services.getNetworkRadar().onAutoScanChanged();
1220 }
1221 catch(Exception e){
1222 errorLogging(e);
1223 }
1224 }
1225
1226}

Callers 1

onDestroyMethod · 0.95

Calls 11

setForwardingMethod · 0.95
debugMethod · 0.95
terminateAllMethod · 0.95
resetAllMethod · 0.95
DisconnectMethod · 0.95
getNetworkRadarMethod · 0.95
errorLoggingMethod · 0.95
getSessionsMethod · 0.80
stopSessionMethod · 0.80
clearMethod · 0.80
onAutoScanChangedMethod · 0.80

Tested by

no test coverage detected