# ScreenRotation **Repository Path**: qy-tech/ScreenRotation ## Basic Information - **Project Name**: ScreenRotation - **Description**: Android system screen rotation demo - **Primary Language**: Kotlin - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-09-14 - **Last Updated**: 2022-05-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Screen Rotation Demo Code ## Framework Since IWindowManager is a hide api, we can only use reflection or add framework.jar to call it, we directly add framework.jar to the project ## System Signed Since the freezeRotation requires SET_ORIENTATION permission , we add permission and used system signature You should add the following code for system signature ``` android:sharedUserId="android.uid.system" ``` ## Demo apk We have added the compiled [app](https://github.com/qy-tech/ScreenRotation/releases) , you can use it directly