Merge "[Bugfix]Avoid device reboot caused by SecurityException." into main