[Microsoft Surface Duo ROMs, Kernels, Recoveries, &] nqtspinner:
View attachment 5937777​

AOSP GSI for Surface Duo​

Hello everyone, after a long tease, finally I have a build of Pixel Experience with some modifications to run on Surface Duo.

The experience is still very preliminary, with almost no UI customization. The only work done is to react to posture changes.

As such, I would suggest this build to be installed using DSU Sideloader instead of directly flashed onto device, so you can try out the experience and get back to a more stable, stock Microsoft Duo OS experience.

Download Link:​

https://github.com/thai-ng/treble_build_aosp/releases/tag/v2023.11.29

Features:​

- Android 14 based

- Screen and touch react to posture changes

- Sleep/Wake based on posture

- Disable hinge gap

Bugs:​

- You tell me (sorry, I have always wanted to type that)

- I have noticed some funny behavior with screen timeout and waking, but haven't tested it properly yet

- UI is not modified for dual screen, so you will have UI elements under the hinge.

- Microsoft Launcher is crashing

- Auto Rotate is always enabled right now

- Disabling hinge gap will cause touch near the center of the screen to be inaccurate.

Installation Guide (DSU)​

Prerequisite:

- Unlocked bootloader

- Have at least 32Gb of storage left

1. Download and install DSU Sideloader from https://github.com/VegaBobo/DSU-Sideloader

2. Download Pixel Experience GSI for Surface Duo from https://github.com/thai-ng/treble_build_aosp/releases/tag/v2023.11.29

3. Follow instruction in DSU Sideloader to install the build. I recommend changing the userdata partition size to be 16Gb at least, but can be larger if you want to use it more substantially.

Installing using DSU Sideloader will mean whenever I release a new build, you will need to sideload it again, losing all userdata of the build in the process. This is expected, as I don't think the build is necessarily ready to be daily driven.

Installation Guide (fastboot)​

If you are well acquainted with ROM flashing and are not afraid of messing around with fastboot and recovery images, this is for you. The upside is that you can update whenever I release new builds without losing data. I will write out the general steps here. If you cannot figure out how to do this from the steps, this is not for you yet.

1. Unlock bootloader

2. Reboot into fastbootd

3. Delete system_ext and product partition, alternatively delete the inactive system_a/b slot.

4. Flash the system.img onto system partition

5. Reboot

6. ??

7. Profit

Changelog:​

2023-11-28:

- Fix touch issue for Surface Duo 2 when device is folded and flipped.

2023-07-15 - v0.0.4:

- Automatic brightness now works.

- 90Hz refresh rate on Duo 2.

- Rounded corner (will add option for this later, maybe).

- Updated to Android-13.0.0_r63 (from Pixel Experience).

2023-07-10 - v0.0.3

- Build now works with Duo 2.

- Flex mode works for Youtube and other apps.

- Rotation lock works.

2023-07-04 - v0.0.2:

- Remove displaymask feature to prevent Microsoft apps from crashing

- Add toggle to disable Hinge Gap

- Add device folding state support.

- Split screen divider matches hinge size

2023-06-22 - v0.0.1: Initial release.

Photos:​

View attachment 5937779View attachment 5937781View attachment 5937783View attachment 5937785View attachment 5937787