Change-Id: Ic21ae50e5421a8c711e133ffe2ff218160382297
Fixes:
74260094
Test: builds, boots, and graphicsstats still works
mInitialized = true;
mAppContext = context.getApplicationContext();
- nSetDebuggingEnabled(
- (mAppContext.getApplicationInfo().flags & ApplicationInfo.FLAG_DEBUGGABLE) != 0
- || Build.IS_DEBUGGABLE);
initSched(renderProxy);
- initGraphicsStats();
+
+ if (mAppContext != null) {
+ final boolean appDebuggable =
+ (mAppContext.getApplicationInfo().flags & ApplicationInfo.FLAG_DEBUGGABLE)
+ != 0;
+ nSetDebuggingEnabled(appDebuggable || Build.IS_DEBUGGABLE);
+ initGraphicsStats();
+ }
}
private void initSched(long renderProxy) {