Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 9892548d authored by Vladimir Komsiyski's avatar Vladimir Komsiyski
Browse files

Support CDM-less virtual devices.

 - New VDMInternal#createVirtualDevice, which creates a VD with
   CDM association id = 0 and display name from the params. The
   name is required in this case (it's optional otherwise)
 - The VD is fully functional, it just doesn't have a persistent id.
 - The VD is also visible via the public VDM APIs. This is by design,
   because if any activity ever runs on such device its deviceId will
   not be the default one and the app must be able to get to that
   VirtualDevice and its capabilities.
 - Never assume that VirtualDeviceImpl#mAssociationInfo is not null

Not testable in CTS and not really flaggable. A flag disabling the new functionality will effectively crash system server when off.

Fix: 341060398
Test: manual
Flag: EXEMPT behavioural change

Change-Id: I65eca165362b0ef819d55b743de8a7780646c26e
parent 9962f020
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment