Skip to content
owngoal-devPublic

About

Locks the iOS Camera to the physical lens for the chosen zoom factor, disables auto-macro, and warns when too close to focus. Rootless and roothide packages.

Resources

Stars

3 stars

Watchers

0 watching

Forks

Repository files navigation

LensLock

简体中文 | 日本語

Keeps the iOS Camera (com.apple.camera) on the physical lens matching your selected zoom factor on multi-camera iPhones running custom firmware — no settings pane needed.

Built with Apelin and packaged for both rootless (arm64, arm64e) and roothide (arm64e).

Features

  • Physical lens lock (on by default): Launching Camera or returning to the foreground always starts locked. 0.5x uses the ultra-wide lens, 1x–2.99x uses the main wide lens, and 3x+ uses the optical telephoto lens — regardless of low light or close distance, including during video recording. Re-locking at 3x switches immediately from a main-sensor crop back to the optical telephoto lens.
  • Auto-macro permanently disabled: Even when unlocked for automatic lens fallback, ultra-wide auto-macro stays off and the macro flower button is removed.
  • Push up on the zoom bar to toggle: Push upward on the zoom bar (with damped travel, SF Symbol lock transition, haptic feedback, and a top status capsule) to switch between Lens Locked and Auto Lens Switching. Opening the zoom dial is reserved for horizontal drags and press-and-hold so the two gestures never conflict.
  • Closest-focus warning: When autofocus settles at the active lens's near stop, the native yellow top badge displays "May be out of focus" (过近,可能失焦). Real AE/AF lock takes precedence, and the warning is suppressed while recording.

Requirements

iOS 16.0+ (SF Symbol transition uses iOS 17+)
Device Multi-camera iPhone with virtual camera lens switching
Custom firmware rootless or roothide with mobilesubstrate (ElleKit)
Verified iPhone16,1 (iPhone 15 Pro) on iOS 17.3.1, roothide

Install

Install the .deb for your bootstrap (iphoneos-arm64 for rootless, iphoneos-arm64e for roothide) from Releases or the OwnGoal source https://apt.owngoal.dev/. No respring is required — reopen Camera after installing.

License

MIT License, see LICENSE.

About

Locks the iOS Camera to the physical lens for the chosen zoom factor, disables auto-macro, and warns when too close to focus. Rootless and roothide packages.

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages