Class: Google::Apis::AndroidmanagementV1::ExtensionConfig
- Inherits:
-
Object
- Object
- Google::Apis::AndroidmanagementV1::ExtensionConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/androidmanagement_v1/classes.rb,
lib/google/apis/androidmanagement_v1/representations.rb,
lib/google/apis/androidmanagement_v1/representations.rb
Overview
Configuration to enable an app as an extension app, with the capability of interacting with Android Device Policy offline. For Android versions 13 and above, extension apps are exempt from battery restrictions so will not be placed into the restricted App Standby Bucket (https://developer.android.com/ topic/performance/appstandby#restricted-bucket). Extensions apps are also protected against users clearing their data or force-closing the application, although admins can continue to use the clear app data command (https:// developer.android.com/management/reference/rest/v1/enterprises.devices/ issueCommand#CommandType) on extension apps if needed for Android 13 and above.
Instance Attribute Summary collapse
-
#notification_receiver ⇒ String
Fully qualified class name of the receiver service class for Android Device Policy to notify the extension app of any local command status updates.
-
#signing_key_fingerprints_sha256 ⇒ Array<String>
Hex-encoded SHA-256 hash of the signing certificate of the extension app.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ExtensionConfig
constructor
A new instance of ExtensionConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ExtensionConfig
Returns a new instance of ExtensionConfig.
2220 2221 2222 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 2220 def initialize(**args) update!(**args) end |
Instance Attribute Details
#notification_receiver ⇒ String
Fully qualified class name of the receiver service class for Android Device
Policy to notify the extension app of any local command status updates.
Corresponds to the JSON property notificationReceiver
2205 2206 2207 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 2205 def notification_receiver @notification_receiver end |
#signing_key_fingerprints_sha256 ⇒ Array<String>
Hex-encoded SHA-256 hash of the signing certificate of the extension app. Only
hexadecimal string representations of 64 characters are valid.If not specified,
the signature for the corresponding package name is obtained from the Play
Store instead.If this list is empty, the signature of the extension app on the
device must match the signature obtained from the Play Store for the app to be
able to communicate with Android Device Policy.If this list is not empty, the
signature of the extension app on the device must match one of the entries in
this list for the app to be able to communicate with Android Device Policy.In
production use cases, it is recommended to leave this empty.
Corresponds to the JSON property signingKeyFingerprintsSha256
2218 2219 2220 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 2218 def signing_key_fingerprints_sha256 @signing_key_fingerprints_sha256 end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2225 2226 2227 2228 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 2225 def update!(**args) @notification_receiver = args[:notification_receiver] if args.key?(:notification_receiver) @signing_key_fingerprints_sha256 = args[:signing_key_fingerprints_sha256] if args.key?(:signing_key_fingerprints_sha256) end |