diff --git a/customization/edm_xts_stage/entry/src/main/ets/test/commom.ets b/customization/edm_xts_stage/entry/src/main/ets/test/commom.ets index a6540fcd9eb2329151d7283190c1559ef34fdd5e..0aab56c4b1045484495b18d6f3bb868015d944ad 100644 --- a/customization/edm_xts_stage/entry/src/main/ets/test/commom.ets +++ b/customization/edm_xts_stage/entry/src/main/ets/test/commom.ets @@ -13,6 +13,8 @@ * limitations under the License. */ +import enterpriseDeviceManager from '@ohos.enterpriseDeviceManager' + const WANT1 = { bundleName: "com.example.extensionzerotest", abilityName: "com.example.extensionzerotest.EnterpriseAdminAbility" @@ -39,7 +41,10 @@ const DEFAULT_USER_ID = 100; const TEST_USER_ID = 101; const ERR_USER_ID = 102; -const SUBSCRIBE_EVENTS: Array = [0,1]; +const SUBSCRIBE_EVENTS: Array = [ + enterpriseDeviceManager.ManagedEvent.MANAGED_EVENT_BUNDLE_ADDED, + enterpriseDeviceManager.ManagedEvent.MANAGED_EVENT_BUNDLE_REMOVED +]; const SUBSCRIBE_INVALID_EVENTS: Array = [20,21]; export {