pub struct AdbShellDpm { /* private fields */ }

Implementations

Sets component as active admin.

Options are:

  • --user user_id: Specify the target user. You can also pass --user current to select the current user.

Sets component as active admin and its package as profile owner for an existing user.

Options are:

  • --user user_id: Specify the target user. You can also pass –user current to select the current user.
  • --name name: Specify the human-readable organization name.

Sets component as active admin and its package as device owner.

Options are:

  • --user user_id: Specify the target user. You can also pass –user current to select the current user.
  • --name name: Specify the human-readable organization name.

Disables an active admin. The app must declare android:testOnly in the manifest. This command also removes device and profile owners.

Options are:

  • --user user_id: Specify the target user. You can also pass –user current to select the current user.

Clears the device’s record of previously-set freeze periods for system OTA updates. This is useful to avoid the device’s scheduling restrictions when developing apps that manage freeze-periods. See [Manage system updates].

Supported on devices running Android 9.0 (API level 28) and higher.

Forces the system to make any existing network logs ready for retrieval by a DPC. If there are connection or DNS logs available, the DPC receives the onNetworkLogsAvailable() callback. See Network activity logging.

This command is rate-limited. Supported on devices running Android 9.0 (API level 28) and higher.

Forces the system to make any existing security logs available to the DPC. If there are logs available, the DPC receives the onSecurityLogsAvailable() callback. See Log enterprise device activity.

This command is rate-limited. Supported on devices running Android 9.0 (API level 28) and higher.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.