com.didiglobal.booster.instrument.ResChecker Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of booster-android-instrument-res-check Show documentation
Show all versions of booster-android-instrument-res-check Show documentation
booster-android-instrument-res-check
package com.didiglobal.booster.instrument;
import android.app.Application;
import android.os.Process;
import android.util.Log;
import static com.didiglobal.booster.instrument.Constants.TAG;
/**
* @author neighbWang
*/
public class ResChecker {
public static void checkRes(final Application app) {
if (null == app.getAssets() || null == app.getResources()) {
final int pid = Process.myPid();
Log.w(TAG, "Process " + pid + " is going to be killed");
Process.killProcess(pid);
System.exit(10);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy