Environment should only warn when asked.
Instead of warning on Process.SYSTEM_UID, which is also used by the Settings app, change to have the parent process explicitly ask for warnings. Bug: 8667286 Change-Id: Ib26676694a4041ff4e6d3ffdcc14055b7eba13c7
This commit is contained in:
@@ -26,6 +26,7 @@ import android.content.pm.IPackageManager;
|
||||
import android.content.res.Configuration;
|
||||
import android.media.AudioService;
|
||||
import android.net.wifi.p2p.WifiP2pService;
|
||||
import android.os.Environment;
|
||||
import android.os.Handler;
|
||||
import android.os.HandlerThread;
|
||||
import android.os.Looper;
|
||||
@@ -1055,6 +1056,8 @@ public class SystemServer {
|
||||
// as efficient as possible with its memory usage.
|
||||
VMRuntime.getRuntime().setTargetHeapUtilization(0.8f);
|
||||
|
||||
Environment.setUserRequired(true);
|
||||
|
||||
System.loadLibrary("android_servers");
|
||||
init1(args);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user