[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
Loading
Please register or sign in to comment