private
void
handleBindApplication(AppBindData data) {
...
StrictMode.initThreadDefaults(data.appInfo);
StrictMode.initVmDefaults(data.appInfo);
String lgdDebugProcessStr = SystemProperties.get(
"lgd.dbg.process"
,
"none"
);
if
(!
"none"
.equals(lgdDebugProcessStr)) {
String curProcessName = data.processName;
int
lgdDebugSleepSeconds = SystemProperties.getInt(
"lgd.dbg.sleepSeconds"
,
30
);
String[] lgdDPs = lgdDebugProcessStr.split(
","
);
for
(String pn : lgdDPs) {
if
(pn.equals(curProcessName)) {
try
{
for
(
int
i =
0
; i < lgdDebugSleepSeconds; i++) {
Log.i(
"tag4LGD"
, curProcessName +
" keep sleep: "
+ (lgdDebugSleepSeconds - i));
Thread.sleep(
1000
);
}
Log.i(
"tag4LGD"
, curProcessName +
" running...."
);
}
catch
(InterruptedException e) {
Log.e(
"tag4LGD"
, curProcessName +
" do not want to sleep.."
, e);
}
}
}
}
if
(data.debugMode != ApplicationThreadConstants.DEBUG_OFF) {
...
}