Send spoids in provisioning requests
[ Merge of http://go/wvgerrit/87283 ] SPOIDs (Stable Per-Origin IDentifiers) were not correctly being set during CdmEngine construction. This resulted in SPOID values not being sent in provisioning requests. This caused the serial number in the drm certificate to not be stable after a reprovision. This behaviour appears to be true going back to O. CdmEngine no longer takes a SPOID in the constructor since not all callers use SPOIDs. A setter has been added in its place. Previously spoid had a default argument to the constructor. Bug: 142368328 Test: android unit/integration tests Change-Id: I711346df609636ecf1475dc37873454a7ef000c0
This commit is contained in:
@@ -343,6 +343,7 @@ class CdmEngine {
|
||||
app_package_name_ = app_package_name;
|
||||
}
|
||||
virtual const std::string& GetAppPackageName() { return app_package_name_; }
|
||||
virtual void SetSpoid(const std::string& spoid) { spoid_ = spoid; }
|
||||
|
||||
protected:
|
||||
friend class CdmEngineFactory;
|
||||
@@ -353,8 +354,7 @@ class CdmEngine {
|
||||
friend class TestLicenseHolder;
|
||||
|
||||
CdmEngine(FileSystem* file_system,
|
||||
std::shared_ptr<metrics::EngineMetrics> metrics,
|
||||
const std::string& spoid = EMPTY_SPOID);
|
||||
std::shared_ptr<metrics::EngineMetrics> metrics);
|
||||
|
||||
private:
|
||||
// private methods
|
||||
|
||||
Reference in New Issue
Block a user