File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 3535import java .io .PrintWriter ;
3636import java .io .StringWriter ;
3737import java .util .ArrayList ;
38- import java .util .Collections ;
3938import java .util .HashMap ;
4039import java .util .Map ;
4140import java .util .concurrent .atomic .AtomicInteger ;
@@ -902,22 +901,22 @@ public static boolean conditionallyEnableDebugLogging() {
902901 return false ;
903902 }
904903
904+ // Thread policy controls BlockGuard.
905905 int threadPolicyMask = StrictMode .DETECT_DISK_WRITE |
906906 StrictMode .DETECT_DISK_READ |
907907 StrictMode .DETECT_NETWORK ;
908908
909909 if (!IS_USER_BUILD ) {
910910 threadPolicyMask |= StrictMode .PENALTY_DROPBOX ;
911- if (IS_ENG_BUILD ) {
912- threadPolicyMask |= StrictMode .PENALTY_LOG ;
913- }
914911 }
915912 if (doFlashes ) {
916913 threadPolicyMask |= StrictMode .PENALTY_FLASH ;
917914 }
918915
919916 StrictMode .setThreadPolicyMask (threadPolicyMask );
920917
918+ // VM Policy controls CloseGuard, detection of Activity leaks,
919+ // and instance counting.
921920 if (IS_USER_BUILD ) {
922921 setCloseGuardEnabled (false );
923922 } else {
You can’t perform that action at this time.
0 commit comments