Loading services/profcollect/src/com/android/server/profcollect/ProfcollectForwardingService.java +12 −0 Original line number Diff line number Diff line Loading @@ -70,6 +70,7 @@ public final class ProfcollectForwardingService extends SystemService { private int mUsageSetting; private boolean mUploadEnabled; private static boolean sVerityEnforced; private boolean mAdbActive; private IProfCollectd mIProfcollect; Loading Loading @@ -117,6 +118,13 @@ public final class ProfcollectForwardingService extends SystemService { mUsageSetting = -1; } // Check verity, disable profile upload if not enforced. final String verityMode = SystemProperties.get("ro.boot.veritymode"); sVerityEnforced = verityMode.equals("enforcing"); if (!sVerityEnforced) { Log.d(LOG_TAG, "verity is not enforced: " + verityMode); } mUploadEnabled = context.getResources().getBoolean(R.bool.config_profcollectReportUploaderEnabled); Loading Loading @@ -373,6 +381,10 @@ public final class ProfcollectForwardingService extends SystemService { Log.i(LOG_TAG, "Upload is not enabled."); return; } if (!sVerityEnforced) { Log.i(LOG_TAG, "Verity is not enforced."); return; } Intent intent = new Intent() .setPackage("com.android.shell") .setAction("com.android.shell.action.PROFCOLLECT_UPLOAD") Loading Loading
services/profcollect/src/com/android/server/profcollect/ProfcollectForwardingService.java +12 −0 Original line number Diff line number Diff line Loading @@ -70,6 +70,7 @@ public final class ProfcollectForwardingService extends SystemService { private int mUsageSetting; private boolean mUploadEnabled; private static boolean sVerityEnforced; private boolean mAdbActive; private IProfCollectd mIProfcollect; Loading Loading @@ -117,6 +118,13 @@ public final class ProfcollectForwardingService extends SystemService { mUsageSetting = -1; } // Check verity, disable profile upload if not enforced. final String verityMode = SystemProperties.get("ro.boot.veritymode"); sVerityEnforced = verityMode.equals("enforcing"); if (!sVerityEnforced) { Log.d(LOG_TAG, "verity is not enforced: " + verityMode); } mUploadEnabled = context.getResources().getBoolean(R.bool.config_profcollectReportUploaderEnabled); Loading Loading @@ -373,6 +381,10 @@ public final class ProfcollectForwardingService extends SystemService { Log.i(LOG_TAG, "Upload is not enabled."); return; } if (!sVerityEnforced) { Log.i(LOG_TAG, "Verity is not enforced."); return; } Intent intent = new Intent() .setPackage("com.android.shell") .setAction("com.android.shell.action.PROFCOLLECT_UPLOAD") Loading