Loading core/res/res/values/config.xml +3 −0 Original line number Diff line number Diff line Loading @@ -5758,6 +5758,9 @@ <!-- The action name for the default profcollect report uploader app. --> <string name="config_defaultProfcollectReportUploaderAction" translatable="false"></string> <!-- Names of packages excluded by Profcollect onCameraOpened observer. --> <string-array name="config_profcollectOnCameraOpenedSkipPackages" translatable="false"></string-array> <!-- The default value used for RawContacts.ACCOUNT_NAME when contacts are inserted without this column set. These contacts are stored locally on the device and will not be removed even if no android.account.Account with this name exists. A null string will be used if the Loading core/res/res/values/symbols.xml +1 −0 Original line number Diff line number Diff line Loading @@ -4415,6 +4415,7 @@ <java-symbol type="bool" name="config_profcollectReportUploaderEnabled" /> <java-symbol type="string" name="config_defaultProfcollectReportUploaderApp" /> <java-symbol type="string" name="config_defaultProfcollectReportUploaderAction" /> <java-symbol type="array" name="config_profcollectOnCameraOpenedSkipPackages" /> <java-symbol type="string" name="usb_device_resolve_prompt_warn" /> Loading services/profcollect/src/com/android/server/profcollect/ProfcollectForwardingService.java +10 −4 Original line number Diff line number Diff line Loading @@ -50,6 +50,7 @@ import com.android.server.wm.ActivityMetricsLaunchObserver; import com.android.server.wm.ActivityMetricsLaunchObserverRegistry; import com.android.server.wm.ActivityTaskManagerInternal; import java.util.Arrays; import java.util.concurrent.ThreadLocalRandom; import java.util.concurrent.TimeUnit; Loading Loading @@ -378,10 +379,15 @@ public final class ProfcollectForwardingService extends SystemService { @Override public void onCameraOpened(String cameraId, String packageId) { Log.d(LOG_TAG, "Received camera open event from: " + packageId); // Skip face auth and Android System Intelligence, since they trigger way too // often. if (packageId.startsWith("client.pid") || packageId.equals("com.google.android.as")) { // Skip face auth since it triggers way too often. if (packageId.startsWith("client.pid")) { return; } // Additional vendor specific list of apps to skip. String[] cameraSkipPackages = getContext().getResources().getStringArray( R.array.config_profcollectOnCameraOpenedSkipPackages); if (Arrays.asList(cameraSkipPackages).contains(packageId)) { return; } // Sample for a fraction of camera events. Loading Loading
core/res/res/values/config.xml +3 −0 Original line number Diff line number Diff line Loading @@ -5758,6 +5758,9 @@ <!-- The action name for the default profcollect report uploader app. --> <string name="config_defaultProfcollectReportUploaderAction" translatable="false"></string> <!-- Names of packages excluded by Profcollect onCameraOpened observer. --> <string-array name="config_profcollectOnCameraOpenedSkipPackages" translatable="false"></string-array> <!-- The default value used for RawContacts.ACCOUNT_NAME when contacts are inserted without this column set. These contacts are stored locally on the device and will not be removed even if no android.account.Account with this name exists. A null string will be used if the Loading
core/res/res/values/symbols.xml +1 −0 Original line number Diff line number Diff line Loading @@ -4415,6 +4415,7 @@ <java-symbol type="bool" name="config_profcollectReportUploaderEnabled" /> <java-symbol type="string" name="config_defaultProfcollectReportUploaderApp" /> <java-symbol type="string" name="config_defaultProfcollectReportUploaderAction" /> <java-symbol type="array" name="config_profcollectOnCameraOpenedSkipPackages" /> <java-symbol type="string" name="usb_device_resolve_prompt_warn" /> Loading
services/profcollect/src/com/android/server/profcollect/ProfcollectForwardingService.java +10 −4 Original line number Diff line number Diff line Loading @@ -50,6 +50,7 @@ import com.android.server.wm.ActivityMetricsLaunchObserver; import com.android.server.wm.ActivityMetricsLaunchObserverRegistry; import com.android.server.wm.ActivityTaskManagerInternal; import java.util.Arrays; import java.util.concurrent.ThreadLocalRandom; import java.util.concurrent.TimeUnit; Loading Loading @@ -378,10 +379,15 @@ public final class ProfcollectForwardingService extends SystemService { @Override public void onCameraOpened(String cameraId, String packageId) { Log.d(LOG_TAG, "Received camera open event from: " + packageId); // Skip face auth and Android System Intelligence, since they trigger way too // often. if (packageId.startsWith("client.pid") || packageId.equals("com.google.android.as")) { // Skip face auth since it triggers way too often. if (packageId.startsWith("client.pid")) { return; } // Additional vendor specific list of apps to skip. String[] cameraSkipPackages = getContext().getResources().getStringArray( R.array.config_profcollectOnCameraOpenedSkipPackages); if (Arrays.asList(cameraSkipPackages).contains(packageId)) { return; } // Sample for a fraction of camera events. Loading