From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "enum" |
|---|
| subject | "Format:DEX" |
|---|
| claim | "Hidden-API restrictions are stored per field and method in a DEX section of type 0xF000 (kDexTypeHiddenapiClassData); each flag is a uleb128 whose low 4 bits are the list value: 0 sdk, 1 unsupported (@UnsupportedAppUsage), 2 blocked, 3..7 max-target-O/P/Q/R/S, 0xF invalid; bit 4 marks core-platform-api and bit 5 test-api. Higher max-target values stay accessible to apps whose targetSdkVersion is not above that release." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:DEX" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "hiddenapi::ApiList value" |
|---|
| underlying_type | "uint32 (uleb128 in the section)" |
|---|
| values | | 0 | "kSdk" |
|---|
| 1 | "kUnsupported" |
|---|
| 2 | "kBlocked" |
|---|
| 3 | "kMaxTargetO" |
|---|
| 4 | "kMaxTargetP" |
|---|
| 5 | "kMaxTargetQ" |
|---|
| 6 | "kMaxTargetR" |
|---|
| 7 | "kMaxTargetS" |
|---|
| 15 | "kInvalid" |
|---|
| 16 | "domain bit kCorePlatformApi" |
|---|
| 32 | "domain bit kTestApi" |
|---|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "kValueBitSize = 4, enum Value, DomainApi bits at kValueBitSize and +1, comment on MaxTarget semantics." |
|---|
| repo | "https://android.googlesource.com/platform/art" |
|---|
| commit | "6484611fd45e69db9f33f98bfd6864014b030ecf" |
|---|
| path | "libartbase/base/hiddenapi_flags.h" |
|---|
| lines | "88-126" |
|---|
|
| type | "source" |
|---|
| detail | "kDexTypeHiddenapiClassData = 0xF000 in the map item type enum." |
|---|
| repo | "https://android.googlesource.com/platform/art" |
|---|
| commit | "6484611fd45e69db9f33f98bfd6864014b030ecf" |
|---|
| path | "libdexfile/dex/dex_file.h" |
|---|
| lines | "214" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Hidden API flag values" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T22:35:06.094Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T01:30:48.765Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read AOSP art libartbase/base/hiddenapi_flags.h at 6484611 lines 88-126: kValueBitSize 4, kSdk 0, kUnsupported 1, kBlocked 2, kMaxTargetO..S 3-7, kInvalid 15, DomainApi bits 4 and 5. Map type 0xF000 not re-read." |
|---|
|
|
|---|