Skip to content

Commit

Permalink
Add Android 14 baseline.
Browse files Browse the repository at this point in the history
Added a new baseline packages for U based on GSI build.

package_whitelists:
- added a mapping to API level 34 and the relevant baseline package
  filename.

risk_analyzer:
- added support for API level 34 and defined new risk classes pertaining
  to Android U.

Test:
The mods are tested on a Pixel 7 (panther) running
`google/panther/panther:14/UP1A.231005.007/10754064:user/release-keys`
and successfully scoring the Android 14 build (both with and without
gms).
  • Loading branch information
Billy Lau authored and billy-lau committed Feb 6, 2024
1 parent 79dc2be commit 0fb92fe
Show file tree
Hide file tree
Showing 3 changed files with 382 additions and 0 deletions.
352 changes: 352 additions & 0 deletions uraniborg/scripts/python/data/U-GSI.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,352 @@
{
"packagesAll": [
"com.android.ons",
"com.android.storagemanager",
"com.android.printspooler",
"com.android.ondevicepersonalization.services",
"com.android.emulator.multidisplay",
"android.ext.services",
"com.android.nearby.halfsheet",
"android.auto_generated_rro_vendor__",
"com.android.pacprocessor",
"com.android.microdroid.empty_payload",
"com.android.role.notes.enabled",
"com.android.permissioncontroller",
"com.android.systemui.accessibility.accessibilitymenu",
"com.android.phone.auto_generated_rro_vendor__",
"com.android.hotspot2.osulogin",
"com.android.media",
"com.android.virt",
"com.android.internal.systemui.navbar.transparent",
"com.android.cellbroadcastservice",
"com.android.wallpaper.livepicker",
"com.android.internal.systemui.navbar.gestural_narrow_back",
"com.google.pixel.camera.hal",
"com.android.mediaprovider",
"com.android.providers.telephony",
"com.android.contacts",
"com.android.btservices",
"com.android.internal.display.cutout.emulation.waterfall",
"com.android.deskclock",
"com.android.dreams.phototable",
"com.google.android.storagemanager.auto_generated_rro_vendor__",
"com.android.cts.ctsshim",
"com.android.providers.contacts",
"com.android.settings.auto_generated_rro_vendor__",
"com.android.wifi.resources",
"com.android.mtp",
"com.android.sharedstoragebackup",
"com.android.traceur.auto_generated_rro_vendor__",
"com.android.documentsui",
"com.android.permission",
"com.android.nfc",
"com.android.compos",
"com.android.launcher3",
"com.android.configinfrastructure",
"com.android.i18n",
"com.android.wifi",
"com.android.inputmethod.latin",
"com.android.bookmarkprovider",
"com.android.vpndialogs",
"com.android.networkstack.tethering",
"com.android.providers.media.module",
"com.android.nfc.auto_generated_rro_vendor__",
"com.android.adservices",
"android.ext.shared",
"com.android.emergency",
"com.android.ondevicepersonalization",
"com.android.internal.display.cutout.emulation.corner",
"com.android.credentialmanager",
"com.android.carrierdefaultapp",
"com.android.sdkext",
"com.android.conscrypt",
"com.android.sdksetup",
"com.android.internal.systemui.navbar.gestural_extra_wide_back",
"com.android.cellbroadcastreceiver",
"com.android.location.fused",
"com.android.statementservice",
"com.android.media.swcodec",
"com.android.ons.auto_generated_rro_vendor__",
"com.android.localtransport",
"com.android.providers.settings",
"com.android.neuralnetworks",
"com.android.systemui",
"com.android.sdksandbox",
"com.uraniborg.hubble",
"com.android.vndk.v31",
"com.android.bips",
"com.android.vndk.v30",
"com.android.companiondevicemanager",
"com.android.systemui.auto_generated_rro_vendor__",
"com.android.vndk.v33",
"com.android.uwb.resources",
"com.android.vndk.v32",
"com.android.vndk.v34",
"com.android.healthfitness",
"com.android.camera2",
"com.android.dreams.basic",
"com.android.quicksearchbox",
"com.android.printservice.recommendation",
"com.android.internal.systemui.navbar.gestural_wide_back",
"com.android.imsserviceentitlement",
"com.android.devicelock",
"com.android.wallpaperpicker",
"com.android.rkpdapp",
"com.android.shell",
"com.android.ipsec",
"com.android.backupconfirm",
"com.android.virtualmachine.res",
"com.android.calendar",
"com.android.settings",
"com.android.providers.userdictionary",
"com.android.wifi.dialog",
"com.android.settings.intelligence",
"com.android.theme.font.notoserifsource",
"com.android.bluetoothmidiservice",
"com.android.internal.display.cutout.emulation.double",
"com.android.carrierconfig",
"com.android.networkstack",
"com.android.dialer",
"com.android.apps.tag",
"com.android.phone",
"com.android.omadm.service.auto_generated_rro_vendor__",
"com.android.adservices.api",
"com.android.mms.service",
"com.android.egg",
"com.android.captiveportallogin",
"com.android.tethering",
"com.android.extservices",
"com.android.federatedcompute.services",
"com.android.inputdevices",
"com.android.calllogbackup",
"com.android.intentresolver",
"com.android.providers.partnerbookmarks",
"com.android.providers.calendar",
"com.android.internal.display.cutout.emulation.hole",
"com.android.uwb",
"org.chromium.webview_shell",
"com.android.externalstorage",
"com.android.apex.cts.shim",
"com.android.server.telecom",
"com.android.keychain",
"com.android.gallery3d",
"com.android.wallpaperbackup",
"com.android.managedprovisioning",
"com.android.soundpicker",
"com.android.vndk.v29",
"com.android.providers.media",
"com.android.modulemetadata",
"com.android.stk",
"com.android.health.connect.backuprestore",
"com.android.ext.adservices.api",
"com.android.runtime",
"com.android.internal.systemui.navbar.threebutton",
"com.android.resolv",
"com.android.adbd",
"com.android.systemui.gsi.overlay",
"com.android.wallpapercropper",
"android",
"com.android.cellbroadcastreceiver.module",
"com.android.os.statsd",
"com.android.webview",
"com.android.certinstaller",
"com.android.healthconnect.controller",
"com.android.se",
"com.google.pixel.wifi.ext",
"com.android.proxyhandler",
"com.android.simappdialog",
"com.android.musicfx",
"com.android.tzdata",
"com.android.music",
"com.android.messaging",
"com.android.providers.downloads",
"com.android.networkstack.tethering.emulator",
"com.google.android.widevine",
"com.android.packageinstaller",
"com.android.connectivity.resources",
"com.android.internal.display.cutout.emulation.tall",
"com.android.bluetooth",
"com.android.devicelockcontroller",
"com.android.appsearch",
"com.android.rkpd",
"com.android.cts.priv.ctsshim",
"com.android.internal.systemui.navbar.twobutton",
"com.android.providers.downloads.ui",
"com.android.compos.payload",
"com.google.android.flipendo.auto_generated_rro_vendor__",
"com.android.providers.blockednumber",
"com.android.internal.systemui.navbar.gestural",
"com.android.scheduling",
"com.android.traceur",
"com.android.cellbroadcast",
"com.android.safetycenter.resources",
"com.android.dynsystem",
"com.android.htmlviewer",
"com.android.art",
"com.android.cameraextensions"
],
"packagesNoCode": [
"com.android.healthfitness",
"com.android.vndk.v31",
"com.android.vndk.v33",
"com.android.ondevicepersonalization",
"com.android.internal.systemui.navbar.threebutton",
"com.android.uwb.resources",
"com.google.pixel.camera.hal",
"com.android.internal.systemui.navbar.gestural_wide_back",
"com.android.connectivity.resources",
"com.android.compos.payload",
"com.android.i18n",
"com.android.btservices",
"com.android.mediaprovider",
"com.android.networkstack.tethering.emulator",
"com.android.wifi",
"com.android.virt",
"com.android.vndk.v32",
"com.android.internal.display.cutout.emulation.waterfall",
"com.android.internal.display.cutout.emulation.hole",
"com.android.os.statsd",
"com.android.tethering",
"com.google.android.widevine",
"com.google.pixel.wifi.ext",
"com.android.uwb",
"com.android.extservices",
"com.android.theme.font.notoserifsource",
"com.android.cts.priv.ctsshim",
"com.android.compos",
"com.android.ipsec",
"com.android.permission",
"com.android.internal.systemui.navbar.gestural",
"com.android.devicelock",
"com.android.art",
"com.android.microdroid.empty_payload",
"com.android.internal.display.cutout.emulation.corner",
"com.android.virtualmachine.res",
"com.android.cts.ctsshim",
"com.android.conscrypt",
"com.android.cellbroadcast",
"com.android.vndk.v34",
"com.android.internal.systemui.navbar.gestural_extra_wide_back",
"com.android.media",
"com.android.wifi.resources",
"com.android.internal.systemui.navbar.gestural_narrow_back",
"com.android.neuralnetworks",
"com.android.internal.systemui.navbar.twobutton",
"com.android.systemui.gsi.overlay",
"com.android.tzdata",
"com.android.configinfrastructure",
"com.android.scheduling",
"com.android.rkpd",
"com.android.modulemetadata",
"android",
"com.android.internal.display.cutout.emulation.double",
"com.android.internal.display.cutout.emulation.tall",
"com.android.resolv",
"com.android.internal.systemui.navbar.transparent",
"com.android.media.swcodec",
"com.android.sdkext",
"com.android.runtime",
"com.android.appsearch",
"com.android.vndk.v30",
"com.android.apex.cts.shim",
"com.android.adbd",
"com.android.vndk.v29",
"com.android.adservices",
"com.android.role.notes.enabled"
],
"platformAppsAll": [
"com.android.ons",
"com.android.storagemanager",
"com.android.ondevicepersonalization.services",
"com.android.emulator.multidisplay",
"com.android.pacprocessor",
"com.android.role.notes.enabled",
"com.android.permissioncontroller",
"com.android.systemui.accessibility.accessibilitymenu",
"com.android.providers.telephony",
"com.android.sharedstoragebackup",
"com.android.documentsui",
"com.android.nfc",
"com.android.vpndialogs",
"android.ext.shared",
"com.android.emergency",
"com.android.credentialmanager",
"com.android.carrierdefaultapp",
"com.android.sdksetup",
"com.android.cellbroadcastreceiver",
"com.android.location.fused",
"com.android.statementservice",
"com.android.localtransport",
"com.android.providers.settings",
"com.android.systemui",
"com.android.bips",
"com.android.companiondevicemanager",
"com.android.shell",
"com.android.backupconfirm",
"com.android.settings",
"com.android.carrierconfig",
"com.android.phone",
"com.android.mms.service",
"com.android.egg",
"com.android.inputdevices",
"com.android.intentresolver",
"com.android.externalstorage",
"com.android.server.telecom",
"com.android.keychain",
"com.android.wallpaperbackup",
"com.android.managedprovisioning",
"com.android.stk",
"com.android.wallpapercropper",
"android",
"com.android.certinstaller",
"com.android.se",
"com.android.proxyhandler",
"com.android.messaging",
"com.android.packageinstaller",
"com.android.devicelockcontroller",
"com.android.traceur",
"com.android.dynsystem",
"com.android.cameraextensions"
],
"platformAppsNoCode": [
"android",
"com.android.role.notes.enabled"
],
"packagesSharedUid": {
"android.uid.phone": [
"com.android.ons",
"com.android.providers.telephony",
"com.android.phone",
"com.android.mms.service",
"com.android.stk"
],
"android.uid.system": [
"com.android.emulator.multidisplay",
"com.android.location.fused",
"com.android.localtransport",
"com.android.providers.settings",
"com.android.settings",
"com.android.inputdevices",
"com.android.server.telecom",
"com.android.keychain",
"com.android.wallpaperbackup",
"android",
"com.android.dynsystem"
],
"android.uid.nfc": [
"com.android.nfc"
],
"com.android.emergency.uid": [
"com.android.emergency"
],
"android.uid.systemui": [
"com.android.systemui"
],
"android.uid.shell": [
"com.android.shell"
],
"android.uid.se": [
"com.android.se"
]
}
}
1 change: 1 addition & 0 deletions uraniborg/scripts/python/package_whitelists.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ class BaselinePackages:
30: "data/R-GSI.json",
31: "data/S-GSI.json",
33: "data/T-GSI.json", # per https://developer.android.com/reference/android/os/Build.VERSION_CODES#TIRAMISU
34: "data/U-GSI.json", # per https://developer.android.com/reference/android/os/Build.VERSION_CODES#UPSIDE_DOWN_CAKE
}

@staticmethod
Expand Down
Loading

0 comments on commit 0fb92fe

Please sign in to comment.