summaryrefslogtreecommitdiff
path: root/core/java/android/os/Build.java
Commit message (Collapse)AuthorAgeFilesLines
* frameworks/base - Tiramisu is now 33 #2Yurii Zubrytskyi2022-04-121-1/+1
| | | | | | | | Set current API level Test: Build and boot Bug: 225745567 Change-Id: If135d9795e812cc286c720b9351eaf6be621fd5b
* Fix KNOWN_CODENAMES javadoc to mention that all codenames are there.satayev2022-03-161-1/+1
| | | | | | Bug: 220153433 Test: atest BuildTest Change-Id: I93cade7cb11e34557445b74d1e1841508061d616
* Merge "Add Build.Version.RELEASE_OR_PREVIEW_DISPLAY" am: a789b92644 am: ↵Colin Cross2022-03-021-2/+9
|\ | | | | | | | | | | | | | | e3086a9896 am: ffa0f38936 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2003053 Change-Id: I21f5874867e74ca12334711adf1fbc6938c1a3ff
| * Merge "Add Build.Version.RELEASE_OR_PREVIEW_DISPLAY" am: a789b92644Colin Cross2022-03-021-2/+9
| |\ | | | | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2003053 Change-Id: Iab0ad2e55f21ba464ae1b7d4c3ac3252638f711b
| | * Add Build.Version.RELEASE_OR_PREVIEW_DISPLAYColin Cross2022-02-281-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Build.Version.RELEASE_OR_PREVIEW_DISPLAY propagates a string that contains a user-friendly version name for preview releases, or the Build.Version.RELEASE version for final releases. Test: manual Bug: 221950960 Change-Id: I31f8f67996e3e5e7edc00704b16b8df0db17d3a3
| * | Merge "Merge sc-v2-dev-plus-aosp-without-vendor@8084891" into stage-aosp-masterXin Li2022-02-141-1/+0
| |\ \ | | |/ | |/|
| | * Merge sc-v2-dev-plus-aosp-without-vendor@8084891Xin Li2022-02-111-1/+0
| | |\ | | | | | | | | | | | | | | | | | | | | Bug: 214455710 Merged-In: I8cfa435bb6233818adb9cc99dadeeb06a03443d5 Change-Id: Ib93992d88fd1704179009a3872798b9e7b83a6d1
* | | \ Merge "Use ro.build.version.known_codenames sysprop for KNOWN_CODENAMES." ↵Artur Satayev2022-02-141-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 19c5ee8bf1 am: 247988066c am: c8d4c8faf8 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1978331 Change-Id: I1062423fe2b0c8af78e7826c123a7d547704edcd
| * | | | Merge "Use ro.build.version.known_codenames sysprop for KNOWN_CODENAMES." ↵Artur Satayev2022-02-141-1/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 19c5ee8bf1 am: 247988066c Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1978331 Change-Id: Ifb3aec2d1e7aeb5aa24b6d1bf70ba6cd4fa987ed
| | * | | Merge "Use ro.build.version.known_codenames sysprop for KNOWN_CODENAMES."Artur Satayev2022-02-141-1/+1
| | |\ \ \
| | | * | | Use ro.build.version.known_codenames sysprop for KNOWN_CODENAMES.satayev2022-02-091-1/+1
| | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The sysprop is needed to avoid JNI when accessing KNOWN_CODENAMES from native code. Bug: 211747008 Test: atest android.os.cts.BuildTest#testBuildCodenameConstants Change-Id: I713a122655f5f8a6a2fed5cee61bbe4094acbeb8
* | | | | Merge "Expand javadoc for Build.VERSION.KNOWN_CODENAMES." am: 4ff7b1d723 am: ↵Treehugger Robot2022-02-111-1/+6
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | f8e89c239f am: 64d4a8e01a Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1979486 Change-Id: Ide5adfe60c9ce36948e22dea54b83667df55a8e7
| * | | | Merge "Expand javadoc for Build.VERSION.KNOWN_CODENAMES." am: 4ff7b1d723 am: ↵Treehugger Robot2022-02-111-1/+6
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | f8e89c239f Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1979486 Change-Id: I6617ac35d6946ed4f1884ba7a6f8c832f96cd4e5
| | * | | Expand javadoc for Build.VERSION.KNOWN_CODENAMES.satayev2022-02-101-1/+6
| | |/ / | | | | | | | | | | | | | | | | | | | | Bug: 211747008 Test: N/A Change-Id: I030076caae7b76a09a43aa5cd5fdf5671c09a832
| | * | Add constant for SC V2.Michael Wright2022-02-041-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 204295952 Test: N/A Merged-In: Ieecebfccf9366815c93d620b70aeabc1abcd3ebd Change-Id: I6597299374715153e8e63d43b44949df76f9ab26
* | | | Merge "Introduce Build.VERSION.KNOWN_CODENAMES." am: 4db55d2f36 am: ↵Artur Satayev2022-02-021-0/+13
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5901c38224 am: d9e5f4369e am: c4dcf0c319 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1966780 Change-Id: Icae3207485650b94c5abd26325ddb639a8a40646
| * | | Merge "Introduce Build.VERSION.KNOWN_CODENAMES." am: 4db55d2f36 am: ↵Artur Satayev2022-02-021-0/+13
| |\| | | | |/ | |/| | | | | | | | | | | | | | | | 5901c38224 am: d9e5f4369e Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1966780 Change-Id: Ib904befa95b89da857df5373033865a8e6c55c10
| | * Introduce Build.VERSION.KNOWN_CODENAMES.satayev2022-02-021-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | See go/mainline-sdk-codenames-issue. Known values are to be used to distinguish multiple pre-release codenames, and to allow in development artifacts to be installable on released versions of the platform for testing going forward. This does not change pre-T behaviour at large however. Bug: 211747008 Test: presubmit Change-Id: I0c8df8e767ea61b27bb53da53fb6c9b2c842dbbc
| * | Add constant for SC V2.Michael Wright2021-10-281-1/+8
| |/ | | | | | | | | | | | | Bug: 204295952 Test: N/A Merged-In: Ieecebfccf9366815c93d620b70aeabc1abcd3ebd Change-Id: Ieecebfccf9366815c93d620b70aeabc1abcd3ebd
* | Fix PackageManager did not recognize OTA when only upgrade productRhed Jao2021-11-191-2/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | - Introduce the PackagePartitions.FINGERPRINT to represent the fingerprint of the build and all system partitions. Using it to determine whether the system update has occurred. - Update PackageManager relating modules to replace Build.FINGERPRINT with the PackagePartitions.FINGERPRINT. Bug: 135224411 Test: atest PackagePartitionsTest Change-Id: I4c6244cd71cd0954b4d551f62b81b6ce3e2c4b17
* | Add constant for SC V2.Michael Wright2021-10-271-1/+8
| | | | | | | | | | | | Bug: 204295952 Test: N/A Change-Id: Ieecebfccf9366815c93d620b70aeabc1abcd3ebd
* | Merge "Rename VERSION_CODES.T to VERSION_CODES.TIRAMISU" into ↵Colin Cross2021-07-161-2/+2
|\| | | | | | | | | | | | | | | sc-dev-plus-aosp am: 3a873acfec am: 98f6af0e19 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15304989 Change-Id: Id39862a791e67c9c47c33b9aca5adefd08d428a5
| * Rename VERSION_CODES.T to VERSION_CODES.TIRAMISUColin Cross2021-07-151-2/+2
| | | | | | | | | | | | Bug: 186121492 Test: m checkbuild Change-Id: Ic3e542206ae75626fa361333f00de2937ef18a5f
* | Merge "Add android.os.Build.VERSION_CODES.T" into sc-dev-plus-aosp am: ↵Colin Cross2021-07-151-0/+5
|\| | | | | | | | | | | | | | | 3e1311a4b4 am: adb28d6357 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15286710 Change-Id: I4c55061aacf62269c985eef6623545986ffd1461
| * Merge "Add android.os.Build.VERSION_CODES.T" into sc-dev-plus-aospColin Cross2021-07-151-0/+5
| |\
| | * Add android.os.Build.VERSION_CODES.TColin Cross2021-07-141-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | Set to CUR_DEVELOPMENT. Bug: 186121492 Test: m checkbuild Change-Id: I2c92a1bc4b8bb2414e55bbd4f5cd0ac86e55e91a
* | | Merge "Consistent version documentation." into sc-dev am: af2d4c8c8f am: ↵Jeff Sharkey2021-07-141-26/+69
|\| | | | | | | | | | | | | | | | | | | | | | | 60374908ac Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15275398 Change-Id: I6ee74ee95c510229de34ea5acfc1482f4780c4b9
| * | Consistent version documentation.Jeff Sharkey2021-07-131-26/+69
| |/ | | | | | | | | | | | | | | Aligns description of all VERSION_CODES based on details at: https://en.wikipedia.org/wiki/Android_version_history Bug: 193421818 Change-Id: I0ccb2480b5255b0e3a61a82d6be75f746166e536
* | Merge changes from topic "may27-sdk" into sc-dev am: e6fb6087aa am: ↵Jeff Sharkey2021-06-021-1/+1
|\| | | | | | | | | | | | | | | b3a4448be3 am: 77499b3231 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14749815 Change-Id: I759a5582a387d95bb13ad726817b0bcba86e841d
| * platform/frameworks/base/ - S is now 31Jeff Sharkey2021-06-011-1/+1
| | | | | | | | | | | | Bug: 171506470 Test: Build Change-Id: I46d4df5f27783a96a58c966b113391ea3bc112cb
* | Merge "build: allow MEDIA_PERFORMANCE_CLASS for R" into sc-dev am: 22ceced5a7Lajos Molnar2021-05-111-1/+1
|\| | | | | | | | | | | Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14366303 Change-Id: I7380968507847218c71de9fd9e7a0becdaae7fd8
| * Merge "build: allow MEDIA_PERFORMANCE_CLASS for R" into sc-devLajos Molnar2021-05-111-1/+1
| |\
| | * build: allow MEDIA_PERFORMANCE_CLASS for RLajos Molnar2021-04-291-1/+1
| | | | | | | | | | | | | | | | | | | | | This is now defined for R and up. Bug: 186800737 Change-Id: I32774c7973f04cdf5271a285853b15195205c704
* | | Merge "Inline two constants from CorePlatform" am: dbf1544b68 am: e3eefd6d2e ↵Anton Hansson2021-05-111-1/+2
|\| | | | | | | | | | | | | | | | | | | | | | | am: 833e374197 am: 822d0ac2ba Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1699727 Change-Id: I2faa672e8c01056e5fe276dc871bae3211312c0c
| * | Merge "Inline two constants from CorePlatform" am: dbf1544b68 am: e3eefd6d2e ↵Anton Hansson2021-05-111-1/+2
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 833e374197 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1699727 Change-Id: Ibac0caf69f17c8f003a4a197654c176448a9b7b9
| | * \ Merge "Inline two constants from CorePlatform"Anton Hansson2021-05-111-1/+2
| | |\ \
| | | * | Inline two constants from CorePlatformAnton Hansson2021-05-101-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Inlining these constants allow the public api metalava run to depend on ART's public API rather than the "internal" CorePlatform API, which prevents picking up unintentional classes (such as annotations) from the CorePlatform API in the public stubs. Because these constants get inlined in the API/stubs, and the constants have been finalized for many years, they can never change. Because they cannot change, reusing the constant is of limited value. I've added some comments to point readers to other places the constant is used. Bug: 154796679 Test: m checkapi Change-Id: I0b347a2964cfe5a1206145fdc56934727b890469
* | | | | Merge "Add back @UnsupportedAppUsage to IS_DEBUGGABLE" am: b369ebee31 am: ↵Treehugger Robot2021-05-111-0/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6edf32bd8e am: 04b9df477a am: f6bb9a2050 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1701245 Change-Id: I5258331f7eeda96e74345f9145595f61a75e58e1
| * | | | Merge "Add back @UnsupportedAppUsage to IS_DEBUGGABLE" am: b369ebee31 am: ↵Treehugger Robot2021-05-111-0/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6edf32bd8e am: 04b9df477a Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1701245 Change-Id: I435f82920ceaf7ebd6d2d4a8f73b0a21a23f28ef
| | * | | Add back @UnsupportedAppUsage to IS_DEBUGGABLERemi NGUYEN VAN2021-05-101-0/+1
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The annotation was removed when adding the constant to the public API, but it was removed from the public API in favor of Build.isDebuggable() in a later change. Add back the @UnsupportedAppUsage annotation that should have been added back when removing the constant from the public API. Change-Id: Ic2fda01a8c0e90712a1b7b435443d32f7e226d33 Fixes: 187432390 Test: m
* | | | Merge "Document access to device identifiers on managed devices" into sc-dev ↵Eran Messeri2021-05-031-5/+3
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 84b3b6fb99 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14251404 Change-Id: If7656df1f2dcecb055c6ab5f68297f434e765ae2
| * | | Document access to device identifiers on managed devicesEran Messeri2021-04-291-5/+3
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | Document when, on a managed device or profile, the DPC can read hardware identifiers, and when it must use the new enrollment-specific ID. Bug: 172636282 Test: m docs Change-Id: I783725853d0654d49518a38d8d8d04b3ca7e3ab0
* | | Merge "Rename FIRST_SDK_INT to DEVICE_INITIAL_SDK_INT" into sc-dev am: ↵Paul Hu2021-04-131-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | 036d189a8d Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14134967 Change-Id: Iaae05598a4d39e4706a5cbbaf2dbc7e6f85de35b
| * | Merge "Rename FIRST_SDK_INT to DEVICE_INITIAL_SDK_INT" into sc-devPaul Hu2021-04-131-1/+1
| |\ \
| | * | Rename FIRST_SDK_INT to DEVICE_INITIAL_SDK_INTpaulhu2021-04-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As API review feedback, rename Build#VERSION#FIRST_SDK_INT to Build#VERSION#DEVICE_INITIAL_SDK_INT. As well as update all usage in frameworks and tests. Bug: 184735771 Test: m Change-Id: I72660959cb4e638a8e80fcf2f4e96ea172969f44
* | | | Merge "Replace IS_DEBUGGABLE with isDebuggable module API" am: ba77876dbd ↵Remi NGUYEN VAN2021-04-091-0/+15
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4290766ae7 am: 116bab20ab am: 6c9d7a5c75 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1667304 Change-Id: I53ddc1fffdd2ca55017f8cbac62a9a6e2b33aa9a
| * | | Merge "Replace IS_DEBUGGABLE with isDebuggable module API" am: ba77876dbd ↵Remi NGUYEN VAN2021-04-091-0/+15
| |\ \ \ | | |/ / | |/| / | | |/ | | | | | | | | | | | | am: 4290766ae7 am: 116bab20ab Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1667304 Change-Id: I3a64653b1a9cb283ba04d4c5a363d3b44fa7b987
| | * Replace IS_DEBUGGABLE with isDebuggable module APIRemi NGUYEN VAN2021-04-081-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce a Build.isDebuggable() getter instead of the IS_DEBUGGABLE static member. Also make it module API as APK modules now have access to module APIs in S, but also TestApi so it can be tested. Test: m Fixes: 182345786 Change-Id: I25d0848aee758792bbaba8ab73b5dd997a7250b3
* | | Merge "Address API feedback on SKU/ODM_SKU" am: 599f545969 am: 210b7a542b ↵Treehugger Robot2021-03-311-4/+9
|\| | | | | | | | | | | | | | | | | | | | | | | am: 5c9c0e7622 am: e221106bf4 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1658040 Change-Id: I765dcd0943699f767b9871c92baf330a3a4e9800
| * | Merge "Address API feedback on SKU/ODM_SKU" am: 599f545969 am: 210b7a542b ↵Treehugger Robot2021-03-311-4/+9
| |\| | | | | | | | | | | | | | | | | | | | | | am: 5c9c0e7622 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1658040 Change-Id: If53f5ea849f8d00bd1984f4740ddbd4350931561