1| Change Type | Old Version | New Version | d.ts File | 2| ---- | ------ | ------ | -------- | 3|Added|NA|Class name: ChargeType;<br>Method or attribute name: NONE|@ohos.charger.d.ts| 4|Added|NA|Class name: ChargeType;<br>Method or attribute name: WIRED_NORMAL|@ohos.charger.d.ts| 5|Added|NA|Class name: ChargeType;<br>Method or attribute name: WIRED_QUICK|@ohos.charger.d.ts| 6|Added|NA|Class name: ChargeType;<br>Method or attribute name: WIRED_SUPER_QUICK|@ohos.charger.d.ts| 7|Added|NA|Class name: ChargeType;<br>Method or attribute name: WIRELESS_NORMAL|@ohos.charger.d.ts| 8|Added|NA|Class name: ChargeType;<br>Method or attribute name: WIRELESS_QUICK|@ohos.charger.d.ts| 9|Added|NA|Class name: ChargeType;<br>Method or attribute name: WIRELESS_SUPER_QUICK|@ohos.charger.d.ts| 10|Added|NA|Class name: power;<br>Method or attribute name: function isStandby(): boolean;|@ohos.power.d.ts| 11|Deprecated version changed|Class name: power;<br>Method or attribute name: function isScreenOn(): Promise\<boolean>;<br>Old version information: |Class name: power;<br>Method or attribute name: function isScreenOn(): Promise\<boolean>;<br>New version information: 9<br>Substitute API: power#isActive|@ohos.power.d.ts| 12|Deprecated version changed|Class name: runningLock;<br>Method or attribute name: function isRunningLockTypeSupported(type: RunningLockType): Promise\<boolean>;<br>Old version information: |Class name: runningLock;<br>Method or attribute name: function isRunningLockTypeSupported(type: RunningLockType): Promise\<boolean>;<br>New version information: 9<br>Substitute API: RunningLock#isSupported|@ohos.runningLock.d.ts| 13|Deprecated version changed|Class name: runningLock;<br>Method or attribute name: function createRunningLock(name: string, type: RunningLockType): Promise\<RunningLock>;<br>Old version information: |Class name: runningLock;<br>Method or attribute name: function createRunningLock(name: string, type: RunningLockType): Promise\<RunningLock>;<br>New version information: 9<br>Substitute API: RunningLock#create|@ohos.runningLock.d.ts| 14|Deprecated version changed|Class name: RunningLockType;<br>Method or attribute name: BACKGROUND = 1<br>Old version information: |Class name: RunningLockType;<br>Method or attribute name: BACKGROUND = 1<br>New version information: 10<br>Substitute API: |@ohos.runningLock.d.ts| 15|Error code added|Class name: batteryStats;<br>Method or attribute name: function getBatteryStats(): Promise\<Array\<BatteryStatsInfo>>;<br>Old version information: |Class name: batteryStats;<br>Method or attribute name: function getBatteryStats(): Promise\<Array\<BatteryStatsInfo>>;<br>New version information: 202,4600101|@ohos.batteryStatistics.d.ts| 16|Error code changed|Class name: batteryStats;<br>Method or attribute name: function getBatteryStats(callback: AsyncCallback\<Array\<BatteryStatsInfo>>): void;<br>Old version information: 401|Class name: batteryStats;<br>Method or attribute name: function getBatteryStats(callback: AsyncCallback\<Array\<BatteryStatsInfo>>): void;<br>New version information: 202,401,4600101|@ohos.batteryStatistics.d.ts| 17|Error code changed|Class name: batteryStats;<br>Method or attribute name: function getAppPowerValue(uid: number): number;<br>Old version information: 4600101|Class name: batteryStats;<br>Method or attribute name: function getAppPowerValue(uid: number): number;<br>New version information: 202,4600101|@ohos.batteryStatistics.d.ts| 18|Error code changed|Class name: batteryStats;<br>Method or attribute name: function getAppPowerPercent(uid: number): number;<br>Old version information: 4600101|Class name: batteryStats;<br>Method or attribute name: function getAppPowerPercent(uid: number): number;<br>New version information: 202,4600101|@ohos.batteryStatistics.d.ts| 19|Error code changed|Class name: batteryStats;<br>Method or attribute name: function getHardwareUnitPowerValue(type: ConsumptionType): number;<br>Old version information: 401,4600101|Class name: batteryStats;<br>Method or attribute name: function getHardwareUnitPowerValue(type: ConsumptionType): number;<br>New version information: 202,401,4600101|@ohos.batteryStatistics.d.ts| 20|Error code changed|Class name: batteryStats;<br>Method or attribute name: function getHardwareUnitPowerPercent(type: ConsumptionType): number;<br>Old version information: 401,4600101|Class name: batteryStats;<br>Method or attribute name: function getHardwareUnitPowerPercent(type: ConsumptionType): number;<br>New version information: 202,401,4600101|@ohos.batteryStatistics.d.ts| 21|Error code changed|Class name: brightness;<br>Method or attribute name: function setValue(value: number): void;<br>Old version information: 401,4700101|Class name: brightness;<br>Method or attribute name: function setValue(value: number): void;<br>New version information: 202,401,4700101|@ohos.brightness.d.ts| 22|Error code changed|Class name: power;<br>Method or attribute name: function shutdown(reason: string): void;<br>Old version information: 201,401,4900101|Class name: power;<br>Method or attribute name: function shutdown(reason: string): void;<br>New version information: 201,202,401,4900101|@ohos.power.d.ts| 23|Error code changed|Class name: power;<br>Method or attribute name: function reboot(reason: string): void;<br>Old version information: 201,401,4900101|Class name: power;<br>Method or attribute name: function reboot(reason: string): void;<br>New version information: 201,202,401,4900101|@ohos.power.d.ts| 24|Error code changed|Class name: power;<br>Method or attribute name: function wakeup(detail: string): void;<br>Old version information: 401,4900101|Class name: power;<br>Method or attribute name: function wakeup(detail: string): void;<br>New version information: 202,401,4900101|@ohos.power.d.ts| 25|Error code changed|Class name: power;<br>Method or attribute name: function suspend(isImmediate?: boolean): void;<br>Old version information: 4900101|Class name: power;<br>Method or attribute name: function suspend(isImmediate?: boolean): void;<br>New version information: 202,4900101|@ohos.power.d.ts| 26|Error code changed|Class name: power;<br>Method or attribute name: function setPowerMode(mode: DevicePowerMode, callback: AsyncCallback\<void>): void;<br>Old version information: 201,401|Class name: power;<br>Method or attribute name: function setPowerMode(mode: DevicePowerMode, callback: AsyncCallback\<void>): void;<br>New version information: 201,202,401,4900101|@ohos.power.d.ts| 27|Error code changed|Class name: power;<br>Method or attribute name: function setPowerMode(mode: DevicePowerMode): Promise\<void>;<br>Old version information: 201,401|Class name: power;<br>Method or attribute name: function setPowerMode(mode: DevicePowerMode): Promise\<void>;<br>New version information: 201,202,401,4900101|@ohos.power.d.ts| 28|Access level changed|Class name: ConsumptionType;<br>Method or attribute name: CONSUMPTION_TYPE_INVALID = -17<br>Old version information: |Class name: ConsumptionType;<br>Method or attribute name: CONSUMPTION_TYPE_INVALID = -17<br>New version information: systemapi|@ohos.batteryStatistics.d.ts| 29|Access level changed|Class name: ConsumptionType;<br>Method or attribute name: CONSUMPTION_TYPE_APP<br>Old version information: |Class name: ConsumptionType;<br>Method or attribute name: CONSUMPTION_TYPE_APP<br>New version information: systemapi|@ohos.batteryStatistics.d.ts| 30|Access level changed|Class name: ConsumptionType;<br>Method or attribute name: CONSUMPTION_TYPE_BLUETOOTH<br>Old version information: |Class name: ConsumptionType;<br>Method or attribute name: CONSUMPTION_TYPE_BLUETOOTH<br>New version information: systemapi|@ohos.batteryStatistics.d.ts| 31|Access level changed|Class name: ConsumptionType;<br>Method or attribute name: CONSUMPTION_TYPE_IDLE<br>Old version information: |Class name: ConsumptionType;<br>Method or attribute name: CONSUMPTION_TYPE_IDLE<br>New version information: systemapi|@ohos.batteryStatistics.d.ts| 32|Access level changed|Class name: ConsumptionType;<br>Method or attribute name: CONSUMPTION_TYPE_PHONE<br>Old version information: |Class name: ConsumptionType;<br>Method or attribute name: CONSUMPTION_TYPE_PHONE<br>New version information: systemapi|@ohos.batteryStatistics.d.ts| 33|Access level changed|Class name: ConsumptionType;<br>Method or attribute name: CONSUMPTION_TYPE_RADIO<br>Old version information: |Class name: ConsumptionType;<br>Method or attribute name: CONSUMPTION_TYPE_RADIO<br>New version information: systemapi|@ohos.batteryStatistics.d.ts| 34|Access level changed|Class name: ConsumptionType;<br>Method or attribute name: CONSUMPTION_TYPE_SCREEN<br>Old version information: |Class name: ConsumptionType;<br>Method or attribute name: CONSUMPTION_TYPE_SCREEN<br>New version information: systemapi|@ohos.batteryStatistics.d.ts| 35|Access level changed|Class name: ConsumptionType;<br>Method or attribute name: CONSUMPTION_TYPE_USER<br>Old version information: |Class name: ConsumptionType;<br>Method or attribute name: CONSUMPTION_TYPE_USER<br>New version information: systemapi|@ohos.batteryStatistics.d.ts| 36|Access level changed|Class name: ConsumptionType;<br>Method or attribute name: CONSUMPTION_TYPE_WIFI<br>Old version information: |Class name: ConsumptionType;<br>Method or attribute name: CONSUMPTION_TYPE_WIFI<br>New version information: systemapi|@ohos.batteryStatistics.d.ts| 37|Access level changed|Class name: BatteryStatsInfo;<br>Method or attribute name: uid: number;<br>Old version information: |Class name: BatteryStatsInfo;<br>Method or attribute name: uid: number;<br>New version information: systemapi|@ohos.batteryStatistics.d.ts| 38|Access level changed|Class name: BatteryStatsInfo;<br>Method or attribute name: type: ConsumptionType;<br>Old version information: |Class name: BatteryStatsInfo;<br>Method or attribute name: type: ConsumptionType;<br>New version information: systemapi|@ohos.batteryStatistics.d.ts| 39|Access level changed|Class name: BatteryStatsInfo;<br>Method or attribute name: power: number;<br>Old version information: |Class name: BatteryStatsInfo;<br>Method or attribute name: power: number;<br>New version information: systemapi|@ohos.batteryStatistics.d.ts| 40|Permission changed|Class name: runningLock;<br>Method or attribute name: function createRunningLock(name: string, type: RunningLockType): Promise\<RunningLock>;<br>Old version information: |Class name: runningLock;<br>Method or attribute name: function createRunningLock(name: string, type: RunningLockType): Promise\<RunningLock>;<br>New version information: ohos.permission.RUNNING_LOCK|@ohos.runningLock.d.ts| 41|Function changed|Class name: power;<br>Method or attribute name: function suspend(): void;|Class name: power;<br>Method or attribute name: function suspend(isImmediate?: boolean): void;|@ohos.power.d.ts| 42