Skip to content

[Discussion] Modify device tree to enable home bar, Dynamic Island, etc #34

@khanhduytran0

Description

@khanhduytran0

Hi. This is more like of a discussion, not an issue (could you enable Discussions and move it there? thanks)

Currently the VM thinks it's running in a home button type device.
I have a fork of devicetree-parse that outputs json and allows rebuilding device tree from it. I can enable home bar by setting home-button-type. However only swipe to unlock works, I'm not sure why other scenarios don't work. I guess you can automate this part in the patch script for now.

-  {"name": "home-button-type", "length": 12, "flags": 32768, "disp": 3, "value": "syscfg/home" },
+  {"name": "home-button-type", "length": 4, "flags": 0, "disp": 1, "value": 2 },

Additionally, you can set a custom serial number

-  {"name": "serial-number", "length": 29, "flags": 32768, "disp": 3, "value": "syscfg/SrNm/0x20,zeroes/0x20" },
+  {"name": "serial-number", "length": 10, "flags": 0, "disp": 3, "value": "AAAAAAAAAA" },

I tried enabling Dynamic Island by setting artwork-device-subtype, but MobileGestalt refused to change it for some reason so it doesn't take effect

-  {"name": "artwork-device-subtype", "length": 12, "flags": 32768, "disp": 3, "value": "syscfg/ards" },
+  {"name": "artwork-device-subtype", "length": 4, "flags": 0, "disp": 1, "value": 2556 },

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions