mobileCapabilityFloor function

Map<String, ToolCapability> mobileCapabilityFloor({
  1. required MobileTier tier,
})

The capability floor the tier flavor implies, for the three mobile availability ids (mobile, mobile_automation, mobile_shell).

  • store: launch/logs present; the accessibility surface and the Shizuku shell are absent with mobileSideloadGateReason.
  • god: everything present at the floor. mobile.shell still answers the named Shizuku not running error at runtime when the bridge is off (UT-tier-3) — the floor says the wiring EXISTS, the bridge says whether it is awake.

Implementation

Map<String, ToolCapability> mobileCapabilityFloor({required MobileTier tier}) =>
    switch (tier) {
      MobileTier.store => const {
        'mobile': ToolCapability.available(),
        'mobile_automation': ToolCapability.absent(mobileSideloadGateReason),
        'mobile_shell': ToolCapability.absent(mobileSideloadGateReason),
      },
      MobileTier.god => const {
        'mobile': ToolCapability.available(),
        'mobile_automation': ToolCapability.available(),
        'mobile_shell': ToolCapability.available(),
      },
    };