How xgj236/xtcrotatefix works
XTCRotateFix is an LSPosed module that restores screen rotation on supported XTC w5100 watches without modifying ROM files. The user workflow is to enable the module for the Android system framework, then use its companion app to toggle automatic rotation, choose a fixed orientation, or set the default. The hook operates inside system_server, patches rotation behavior, and receives app control commands. README-documented installation and device scope are included; the hook excerpt is partial, so unsampled internal relationships are omitted.
Main entry points: RotateFixHook.java Rotation hooks · MainActivity.java Rotation controls · XTCRotateFix.apk Module APK
Components 8
Control app
- Rotation controls
lspmod/java/com/xgj/rotatefix/MainActivity.java
System hook
- Rotation hooks
lspmod/java/com/xgj/rotatefix/RotateFixHook.java
Rotation framework
- System settings
- Display rotation
Other components
- Watch user
- Android system
- LSPosed manager
- Module APK
lspmod/XTCRotateFix.apk
Connections 7
- Watch user → Rotation controls: controls
lspmod/java/com/xgj/rotatefix/MainActivity.java - Rotation controls → System settings: reads and writes
lspmod/java/com/xgj/rotatefix/MainActivity.java - Rotation controls → Rotation hooks: broadcasts commands
lspmod/java/com/xgj/rotatefix/MainActivity.java - Android system → Rotation hooks: loads in framework
lspmod/java/com/xgj/rotatefix/RotateFixHook.java - Rotation hooks → System settings: writes settings
lspmod/java/com/xgj/rotatefix/RotateFixHook.java - Rotation hooks → Display rotation: patches behavior
lspmod/java/com/xgj/rotatefix/RotateFixHook.java - LSPosed manager → Module APK: installs and enables
README.md