Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1a576fe3 authored by Ale Nijamkin's avatar Ale Nijamkin
Browse files

[flexiglass] Fixes crashloop on Wear

Wear System UI crashes because DeviceEntryInteractor which is depended
upon by LogContextInteractorImpl, in turn, pulls in many dependencies
and some of those dependencies cause runtime crashes either immediately
or soon after.

By making the dependencies and properties of DeviceEntryInteractor lazy,
we avoid pulling in those dependencies and their instantiation-time
side-effects.

To deploy System UI on a Wear device:
- lunch and flash a wear device with mp droid
- skip the setup wizard using:
$ adb shell am broadcast -a com.google.android.clockwork.action.TEST_MODE
- make sure remount by running this command, twice:
$ adb remount -R && adb wait-for-device root && adb remount
- make local changes to System UI
- deploy those changes by running:
$ make ClockworkSystemUI && adb shell stop && adb sync && adb shell start

Bug: 412766066
Test: manually deployed on a Wear device and turned on Flexiglass. The
crashloop is gone and the systemui process remains running
Flag: com.android.systemui.scene_container

Change-Id: Iecf147276e04596f22ad7761a5f640cb42b557cf
parent 6d70581d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment