Rawr 17U - unofficial modified version of Rawr. Based on Rawr 0.5.1 by adityawarmanfw (GPL-3.0-only, see
NOTICEandLICENSE), synced with its main branch up to #171: github.com/adityawarmanfw/rawrModified by Paulo Gonçalves (@utalpt), November 2026. Not affiliated with or endorsed by the original author. Changes in this version are listed under What this fork adds. The release build installs as
x17u.rawr.camera("Rawr 17U") and the debug build asx17u.rawr.camera.debug, next to the official app.
![]() Photo: values under the picture |
![]() Film looks in the controls' room |
![]() Video |
![]() Held sideways with the side panel (Keep the bottom layout in landscape off) |
![]() Open Gate video: time code and time left |
![]() Looks over the picture |
|
- Release (recommended): latest release, file
rawr17u-<version>.apk. Installs asx17u.rawr.camera("Rawr 17U"); versions are named after the Rawr version they build on, e.g.0.5.1-17u.1, and each one installs over the previous. - Watch Remote: the watch app is
rawr17u-remote-wear-<version>.apkon the same release, installed on a Wear OS watch paired with the phone (same version as the phone app). - Test build: rawr-debug.apk
(release page). Every push to
xiaomi-17urebuilds it; install it over the previous one. - Lens setup (50 MP, 200 MP tele, vendor keys, merge limits) is built into the APK. If you restored an older backup or edited lenses, use Settings > Lenses > Reset to device default (bottom of the list) to get the current profile.
- Optional recommended settings:
presets/Rawr17U-recommended.zip. Import it with Settings > System > Backup & restore > Import Backup. It holds settings only (no lens profiles):- Multiframe on (Rexture, 17 frames, Chroma Denoise on)
- RAWR look contrast +61, capture sharpening Medium
- Highlight recovery off, distortion correction off, AgX preset Default
Everything the fork adds, kept here also once Ed has taken it into Rawr: those items say (Already in Rawr: Ed's #N), with the pull request it came in. Entry by entry, with how each was checked: CHANGELOG.md. Synced with Ed's main up to #171 (1 Dec 2026). Where each feature lives in the code, its commits and whether it is generic or 17U-only: Porting notes.
Photo: 50 and 200 MP
- 50 MP RAW on the main, tele and ultra-wide cameras: the viewfinder streams the binned 4:3 RAW at 30 fps with continuous and tap AF, and the shutter takes one full-size still. Multiframe merges up to 30 full-size frames (17 by default, memory-aware: strips when the merge does not fit). (Already in Rawr: Ed's #143, the 17 Ultra and 15 Ultra built-in profiles.)
- 200 MP tele at 3.2x and 4.3x:
200>50merges up to 6 frames into a 50 MP DNG (2x2 binning of the quad-Bayer blocks),200>25the same at 25 MP, and200 SFwrites one full 200 MP DNG (about 200 MB). (Already in Rawr: Ed's #143.) - Zero-copy 200 MP bursts: the GPU reduces each 200 MP frame straight from the camera buffer, with no CPU unpack; the 6 frames are in after about 1.5 s (2.7-4.7 s before). (Already in Rawr: Ed's #144.)
- The 200 MP JPEG developed straight from the 4x4 blocks (no stair-stepped edges from binning the remosaicked frame), with the fork's own fast 200 MP remosaic for the DNG (about 0.8-0.9 s on the 17U; the generic CPU remosaic took ~16 s). Ed's Rawr has since added its own GPU remosaic for these blocks (#129); the two have not been compared on the 17U.
- Lost companion buffers on full-size stills no longer fail the photo (Xiaomi's HAL drops the small companion output while the RAW arrives). (Already in Rawr: Ed's #143, as the per-lens ignoreLostCompanion workaround.)
- Focus after a 1x 50 MP single frame: the lens is held at its distance for a few frames after the still, so the viewfinder no longer jumps. (Already in Rawr: Ed's #141.)
- HDR+ Bracketed (Settings > Photo > Multiframe > Merge Algorithm, off by default): Ed's merge, which he removed
from his main earlier, brought back and reworked by Steve (his v26 patch) on top of Ed's HDR+ Quality: a burst
exposed darker so bright areas do not clip, brightened back, plus frames right after the shutter (brighter ones for
the shadows, a darker one for the highlights; hold still until the tick). It runs on its own copy of the merge code
and shaders, so Ed's HDR+ Quality and Rexture are unchanged, and
-Prawr.hdrb=falsebuilds without it. - Photo aspect ratios: 3:2 (35 mm), 5:4, 1:1, 16:9, 2.39:1 Scope and XPan 65:24, from the picker in the top bar. The JPEG and its gain map are cropped, the DNG stays full; 3:2 and 16:9 fill the screen width in the viewfinder, like 16:9 video.
- Digital zoom: pinch the viewfinder for up to 16x on the lens in use (Settings > Viewfinder & controls > Pinch to zoom), each lens with its own zoom. The JPEG is the zoomed area; the DNG stays the whole frame with the zoom in its EXIF. In HEVC and APV video the zoom set before recording is recorded (not in RAW video, not with gyro stabilisation). Focus, spot metering and face boxes follow the zoomed picture. No automatic lens change on a pinch (the grip's and the ring's stock-camera zoom do change lens, below).
- Padded raw edges dropped per lens (
image.cropEdges), for stills and the viewfinder. (Already in Rawr: Ed's #150.) - 1x 50>25: the main camera's 50 MP photo resampled to 25 MP (5792x4344) before it is stored and merged, like the tele's 200>25: faster merges and half-size DNGs (photo output Half (25 MP) in the lens editor).
- LOFIC on the main camera (needs Anton Tretiakov's X17U LOFIC RAW root module; from his specification, demo app and feedback; tested on xiaomi.eu builds 309 and 312 only - on other builds, HyperOS 4 among them, it may not work): a 1x LOFIC lens (Settings > Photo > Capture > LOFIC Lens, off by default) whose photo merges the LOFIC Long and Short of one frame into a 16-bit DNG and a JPEG through the Renderer, and a separate LOFIC Camera screen with his three setups. In Auto the photo takes its own exposure for the two readouts: shutter until the Short's highlights sit 0.75 EV under its clip, ISO above 50 only when the shutter is at its limit, and that limit from the gyroscope (up to 1/8 s when the phone is still, the camera's own when it is moving). A photo is four consecutive pairs stacked onto the steadiest one, the Long and the Short with the same alignment, averaged only where they agree within the noise (less noise in smooth areas, no ghosts, detail untouched). The viewfinder shows the Long and the Short merged, so highlights above the Long's clip keep their colour. Noise model, merge gain and merge band from measurements on the 17U. The DNG follows the layout Ed specified: 16-bit integers with black 1024 and white 65535, so raw developers such as Lightroom read its black level; it keeps the noise under black and has lens shading corrected in its values.
- Long exposure up to 120 s (Settings > Lenses > a lens > Advanced; 25 s before; asked for by dvrn.drmz): the 17U takes 30, 60 and 120 s in full. The countdown ends with the photo (the 17U reports a frame's start when it ends, so the countdown ran about 25 s past a 30 s photo), and the notification reads "Taking photos" while the exposure runs.
- Full-size photos keep the manual white balance of the viewfinder (the full-size still ran the camera's own auto WB). From apos-fandango's Rawr X14U (5d963407).
Lenses and controls
-
A fresh install starts on the main camera (1x / 23mm), not the profile's first lens; afterwards Rawr starts on the last lens used.
-
One lens button per focal length (0.6x, 1x, tele) with a variant picker:
Normal,50MP,200>50/200>25/200 SF,ISZ(in-sensor zoom) and the dual-gain readoutsDCG,DSG,DAG(14-bit, with a per-lens ISO cap). -
Tele optical zoom from 75 to 100 mm: the periscope moves to any focal length in between (one tele button, named by the zoom the optics are at, 3.2x to 4.3x), from a TELE cell in the exposure row. Settings
Viewfinder & controls > Tele Zoom Control picks the control: Bar (presets and a FOCAL tape above the exposure row), Tape (the FOCAL tape alone) or Wheel, Dial or Rocker on the viewfinder's edge, reused from the Telezoom module; Tele Zoom Always On keeps it on screen while the tele is selected (held sideways with the bottom layout kept, an edge style is the tape, opened from the TELE cell). The tele opens at 75 mm (3.2x); Settings > Lenses lists its modes as "Tele Normal", "Tele DCG"... (7 instead of 14: the 3.2x ones were the 4.3x ones at rest, spotted by @rifandaadam). EXIF and DNG name the real focal length. The vendor tags were found by Anton Tretiakov (@designation_zero).
-
Lens bar grouping (Auto / Grouped / All) and button size (Compact / Normal / Large), from the eye panel.
-
Exposure memory (Settings > Viewfinder & controls > Control Style): Per camera, each lens keeps its own exposure mode, ISO, shutter, EV and WB, or Shared, one set for every lens (focus stays per lens).
-
Lens per mode: Photo and Video each come back to the last lens used in them, also after the app is reopened (requested by Lynette on Telegram).
-
S/I Toggle (Settings > Photo > Capture, off by default): one tap switches between ISO priority and shutter priority, each entered with its saved value (ISO 50 and 1/1000 s by default; menus in third stops, ISO 50-6400 and 1/8000-1/30), from a top-bar button (long press: Auto) or an S / I tab on the fixed exposure cell (S⇄I on the shutter cell in Auto). Asked for by @iG0Lka_ru.
-
Xiaomi Photography Kit grip: read over USB while the viewfinder is open (the grip's USB reading thanks to apos-fandango's Rawr X14U): the dial turns both ways (EV by default), the red button records, a long shutter press no longer opens the system camera, and the zoom lever zooms like the stock camera: one zoom from 0.6x across the lenses and the tele's optics (75-100 mm) to 16x digital on the tele, changing lens on the way (the picture jumps a little there), and on in HEVC / APV recordings on the lens in use (those have no gyro stabilisation). Asked for by rayfon. Settings > Viewfinder & controls > Photography Kit (also on the settings home; both only while a grip is attached) chooses what the dial, lever, red button and half press do (the lever can also step lenses or move only the tele's optics). Without USB permission the shutter and lever work as keys.
-
Leitzphone ring: the ring around the camera of the 17 Ultra Leitzphone zooms like the stock camera, focuses manually or sets EV, shutter, ISO or the tele's optics (Settings > Viewfinder & controls > Focus ring, only on phones that have it), with speed and direction settings (reversed by default). The ring's reading comes from the fork author's Tele Zoom (utalpt/x17u-telezoom). Asked for by Psychofedex.
-
Each lens can keep its own frame count, look, tone and film.
-
Tap focus holds for (Settings > Viewfinder & controls): 2, 4, 6, 10, 20 or 30 s, or until the next tap, before continuous AF takes over again (4 s, as before, by default). From apos-fandango's Rawr X14U (dd8556fa).
-
AF-L holds the lens by distance once it has focused, where the camera reports a calibrated focus distance (some Xiaomi cameras drop an AF lock after a few seconds and refocus). From apos-fandango's Rawr X14U (f0b4127a, the native part).
-
Manual ISO shows the standard numbers on the third stops (80, 160, 320, 640, 1250 instead of 79, 159, 317, 635, 1270).
-
Top sheet: the quick panel (AE / metering, highlights, detail, frames per lens) and the eye panels (MONITORING, VF CONTROLS) as one sheet docked at the top of the viewfinder, with tabs and one row of chips; a swipe down from the top third or the eye button opens it, and the scopes move out of its way (portrait and landscape). Exposure row with tap-to-set slider bar, RESET and UNDO; camera controls persist across restarts.
-
AgX quick card with advanced grids, long-press help on controls; a dot marks a changed value on the film, AgX and tone cards.
Film
- Film sheet: turning FILM on opens the stocks as cards in tabs (presets, negative, cinema, slide, print paper, filter, grain, halation), with the tab's settings above them; tap a card to use it.
- Hold a card to compare without changing anything: the viewfinder splits down the middle, the look in use on the left and the held card on the right, with a line and both names. Halation cards fill the whole viewfinder, and grain cards open a grain loupe (the middle of the frame x4, the grain rendered at about a photo's pixel size, since the normal viewfinder renders the film too small for grain to show).
- RESET back to the preset in use (or the default look), with UNDO for 5 seconds; switching back to one of the last two stocks is instant (the film engines are kept).
- ALL PARAMS (the last tab of the film sheet): every film parameter in three rows in the sheet's space - sections, subsections, and the values five across. A section whose switch is off shows OFF and its values are dimmed (they stay editable); the idea comes from apos-fandango's Rawr X14U fork.
- A photo's look as a preset: every JPEG now carries the processing recipe a DNG already carries (Ed's), and "+ FROM PHOTO" in the PRESETS tab (or Import look file in Settings) turns a JPEG or DNG taken with Rawr into a preset named after the shot's time and film, never saving the same look twice; JPEGs exported from the Renderer carry the edited look. The idea of keeping each shot's recipe comes from apos-fandango's Rawr X14U fork.
- Themes (Leica, Mono, Steel, Sage, Custom), button shapes, and a layout that stays upright in landscape.
Viewfinder and settings
- Clean viewfinder: no look chips over the picture. A LOOK button left of the shutter (the gallery further out) shows the look in use, with a dot when its parameters were changed; a long press opens the Look settings. It opens a look sheet in the film sheet's format: the looks as swipeable cards, the parameters as tabs (TONE, COLOUR, OUTPUT; AgX RANGE, CURVE, LOOK and ADV) with RESET/UNDO; with Film on it opens the film sheet. PHOTO / VIDEO is a capsule.
- Capture screen, values under the picture and a panel beside it held sideways: in portrait the exposure
values are labelled tiles under the picture, each opening its value tape in place of the lens row, and FILM, LOOK
and WB open in the room of those tiles and the lens row; held sideways the controls stay under the picture
with their labels turned (Settings > Viewfinder & controls > Keep the bottom layout in landscape, on by default;
asked for by KavasCr on Telegram), or, with that off, form one panel beside the picture, laid out upright for either side, with the sheets over the picture, a camera switch on the lens row and,
in Open Gate video, a large time code with the recording time left; the controls stay while recording Open Gate;
the video codec (HEVC / APV / RAW) at a tap in the top bar; an optional double tap on the lens in use for its next
variant; a zoom chip counted from the 1x like the stock camera; three surfaces (Settings > Control Style > Surfaces: Matte dark, Matte, Glass).
debug.rawr.ui_values_below 0brings back the previous layout. - Scopes: translucent, borderless cards with the mode in the corner (LUMA, RGB, PARADE, VECTOR), lines at 0/50/100% and clipping in red, and an RGB PARADE waveform mode; they hide while a film card is held.
- Scrub readout: a slim capsule near the top of the viewfinder while a control is scrubbed.
- Viewfinder Resolution (Photo) and (Video) in Settings > Display, each its own: Photo High, Video Fast by default, so the GPU goes to the recording.
- Back to the viewfinder in about a second after leaving Rawr (gallery, home screen): the 17U often never reports the camera session closed, and Rawr waited 4 s for it before opening the camera again (now 1.2 s; the camera is closed either way).
- Phone turned to the right: the controls' text turns with the side the phone is turned to (it was upside down; reported by @kavascript).
- Shutter Sound (off by default): the system's camera sounds for photos and for the start and end of a recording, the start tone played before the microphone opens. Asked for by @iG0Lka_ru. On phones whose system asks for the sound (some regions require it), Follow System Shutter Rule decides whether that wins over the switch (on by default); found and written by Steve.
- Voice Shutter (Settings > Viewfinder & controls, off by default): say "Capture", "Cheese" or "Say cheese" to take a photo in Photo mode. An offline recognizer (Vosk's small English model, Apache-2.0) runs on the phone, only while the viewfinder is open; nothing is recorded or sent. Only the exact word fires (look-alikes such as "cheers" do not), so the pronunciation matters: "Capture" and "Say cheese" are the more reliable ones. Written by Steve.
- Watch Remote (Settings > Viewfinder & controls, off by default): the viewfinder on a paired Wear OS watch, which
takes photos, through Rawr Remote, the watch app (
rawr17u-remote-wear-<version>.apkon the release, installed on the watch). Written by Steve. - Settings by intent: Photo, Look, RAW development, Video, Viewfinder & controls, Lenses, System, About, with a search whose index is generated at build time from the settings pages (a result opens its page with the setting highlighted). The controls for photo and video are under Viewfinder & controls, Storage and Backup & restore under System, the Renderer under RAW development; About, with Credits, on the home. The lens editor keeps the basics on the lens page and the sensor tuning under Advanced.
White balance
- WB strip (portrait): PICK, AUTO, MANUAL, the camera's presets, SENSOR and the TEMP / TINT rails in a strip just above the exposure row, instead of a panel over the middle of the viewfinder.
- Pick neutral (WB panel > PICK NEUTRAL, then tap something truly white or grey): Rawr measures that area and switches to Manual with the temperature and tint that make it neutral; warm picks correct about halfway, keeping some of the light's warmth.
- Manual WB renders with the requested gains as white, so the JPEG matches the DNG (it took the HAL's own neutral before, a magenta cast). (Already in Rawr: Ed's #142.)
Language
- The interface in Portuguese, Spanish, French, German, Italian, Ukrainian and Polish (machine-made), Turkish (by @agabey_42), Bengali (by @arcticstellar) and Russian (machine-made, polished by Vete71ROK on Telegram), following the phone or chosen in Settings > System > Language, with Export / Import language file (JSON, English as the key) to correct a translation or add a language without a new build. The list of texts is generated from the sources at build time. The newer texts (136 since the first translations) are translated too.
Video
- Shutter as a speed (asked for by itzdfplayer on Telegram): the video shutter reads 1/48 at 24 fps for 180°; Settings > Video > Shutter as an angle shows the angles. Its tape has a label on every value.
- RAW video (testing) (Settings > Video > Codec: RAW): the sensor's RAW frames, losslessly compressed (lossless
JPEG / LJ92, as in compressed CinemaDNG) on the GPU with Vulkan compute (CPU NEON fallback, bit-identical; the
first frame of each take is decoded back and checked), written with the sound to one
.rrawfile; each frame carries its black and white levels, neutral, ISO and shutter. Open Gate only: the whole 4:3 sensor at 30 fps (4096x3072 on the 17U), the 4:3 Open Gate area above 30 fps (3408x2560), so framing to 16:9 or any aspect is done in editing. The viewfinder shows the camera's own processed stream while recording (no RAW development per frame), a BUFFER nn% readout warns before frames are lost, and Settings > Video > RAW > CinemaDNG converts a clip to DNGs and a WAV for DaVinci Resolve. On the 17U: 30 fps for 20 min 18 s in one take (36,420 of 36,420 frames, 205 GB, ~5 W); 60 fps about 2 minutes, then a pause of a few minutes - the phone's storage slows down after about 35 GB written in a row (not the heat). - 4K60 10-bit without dropped frames: a fast path that demosaics, shades, white-balances, applies the look and writes P010/NV12 for the encoder in one GPU pass (0 dropped frames over 3 minutes, phone at ~4-5 W instead of ~8-12 W), with the encoder fed straight from the GPU.
- APV (Settings > Video > Codec, on phones with a hardware APV encoder): Advanced Professional Video (RFC 9924), 4:2:2 10-bit, every frame a key frame, on the phone's hardware encoder, through the same pipeline, audio, metadata and recovery as HEVC; MP4 files that open in DaVinci Resolve, FFmpeg and Klipp. The bitrate is set in bits per pixel per frame (3.7 by default: about 1.84 Gb/s at 4K60), at most 2.1 Gb/s; LOG is signalled as in HEVC. The encoder is prepared while framing: 4K60 LOG at 59.94 fps over a minute on the 17U.
- 60 fps sensor modes: the blank rows they pad are left out of the viewfinder, metering and recording
(
image.cropEdgesHighFps), on the rear lenses and the front camera. (Already in Rawr: Ed's #150.) - Open Gate at 60 fps records 3408x2560 (4:3), the same box as the viewfinder; 4096x3072 at 30 fps.
- The tele's DCG and ISZ record at 30 fps (their sensor modes run 30; at 60 the camera HAL aborted), with the fps button showing 30 there; the ceiling check is the-marox's from his PR #3.
- Recording aspect ratios (cinema formats): 1.43:1 IMAX 70mm, 1.66:1 European, 1.85:1 Flat, 1.90:1 DCI / IMAX digital, 2:1 Univisium, 2.20:1 Todd-AO 70mm, 2.39:1 Scope, 2.76:1 Ultra Panavision 70 and XPan 65:24.
- Gyro stabilisation (Standard, Strong) and Level horizon, built on apos-fandango's gyro integrator from the Rawr X14U fork.
- Clean recording view (controls fade out, a swipe shows them) and Do not disturb while recording; the scopes refresh about 10 times a second while recording, to leave the GPU to the video.
- Light meter (lux, EV, colour temperature, flicker, laser distance), antibanding from the flicker sensor and a Gyroflow gyro log (.gcsv beside the video), from the-marox's PR #1. The same PR saves the readings with each photo: lux, colour temperature, flicker and laser distance in the DNG's metadata, the barometer's pressure in the EXIF, and, with location tagging on, the lens direction from the compass (GPSImgDirection).
Galaxy S23 Ultra
- Faster lens switching (median 2.6 s to 0.6-0.7 s) and app launch: the camera stays open across lens switches of the same logical camera, and RAW10 buffers are probed up front. (Already in Rawr: Ed's #140.)
Xiaomi 15 (by the-marox, PRs #2 to #5, #7 to #9, #13, #14 and #16)
- GLES bridge for RAW16 where the Vulkan driver refuses the camera buffers, and for RAW10, whose packed MIPI plane the bridge's compute shader decodes to 16-bit on the GPU (no CPU copy, no downgraded preview); 60 fps only where a sensor mode delivers the RAW stream (on the 17 Ultra, the same check now holds the tele's DCG and ISZ at 30 fps); sensed flicker for AE; ToF focus and light-sensor WB (both also work on the 17 Ultra); 1080p from the full sensor width. The mirrored-lens preview fix of #3 is (already in Rawr: Ed's #150).
- The HEVC encoder prepared before the shutter and split YUV drop counters (#7, #8), the sensor mode behind a
lens's fps ceiling named in the log (#9), the native build on a Windows host (#13). On the 17 Ultra they change
nothing by default for HEVC (
debug.rawr.video_encoder_prewarm=1anddebug.rawr.gles_bridge=1turn the prewarm and the bridge on); the APV encoder always uses the prewarm. - The 14 mm at 50 MP (RAW16 4080 wide) through the CPU upload, where the GPU paths gave a black viewfinder (#16).
Xiaomi 15 Ultra
- A 23mm DCG4 lens in the built-in profile, without root: the main camera's DCG sensor mode (14-bit) at 4096x2560. From Alessio's lens profile, tested by him on his 15 Ultra.
- A 95mm 50MP HR lens (asked for by 柴芜 on Telegram): the tele's 50 MP through a separate photo output,
with the light binned 4080x3072 viewfinder at 30 fps instead of the full 8160x6144 one of the 95mm 50MP
(High-res live). Each photo stops the viewfinder for about a second while the sensor switches mode. With Rexture it
merges up to 8 frames at 50 MP (the HAL returns each in the corner of the buffer; the fork's own copy of Ed's
full-size burst keeps that corner, where his burst drops it). The stream use case and buffer usage come from an
Unspektrawesome lens profile,
current_mode1 from Ed's 95mm 50MP (#143). Tested on a 15 Ultra. The merge base is the sharpest of the first frames, as in Ed's burst (#171; in testing on the 15 Ultra). - A 95mm 50MP HR Q lens (in testing): the same with Rawr's own remosaic of the raw 50 MP quad-Bayer (Ed's Detail remosaic, as his Q85 for the vivo X200 Ultra's HP9 tele) instead of the HAL's, to compare the two.
- A 95mm 50>25 lens: the same, resampled to 25 MP. (No 200 MP on the 15 Ultra's tele: its 16320x12288 mode on the still ends in a camera error.)
Renderer
- Sensor CFA (RAW tab): Auto finds a Quad Bayer block mosaic tagged as Bayer (for example 50 MP Xiaomi 15 Ultra DNGs from other apps) and remosaics it; large uncompressed DNGs open; optional Renderer icon in the app drawer and Settings > RAW development > Renderer. In Android's share and open-with list it carries the build's name ("Rawr 17U Renderer"), so several installed Rawr builds can be told apart.
Where each fork feature lives, so it can be taken one at a time. "First commit" is where it starts on
xiaomi-17u (git log --grep with the feature's name finds the follow-ups, and every CHANGELOG entry names what
changed). Generic runs on any phone Rawr supports; 17U depends on the Xiaomi 17 Ultra's camera (its vendor
tags, sensor modes or HAL behaviour) and is gated by lens profile or phone; Needs names what it depends on.
Credits are in the commits and in the code comments.
| Feature | Main code | First commit | Scope |
|---|---|---|---|
RAW video (LJ92 on the GPU, .rraw, CinemaDNG) |
cpp/video/RawVideoWriter, RawVideoGpu, shaders/raw_video_lj92_*.comp, RawVideoConvert; jni/RawVideoJni.cpp, jni/RawLj92Fast.h (NEON); video/RawVideoRecorder.kt (RawVideoArea), video/RawVideoConversion.kt, ui/RawVideoMonitorSurface.kt; SessionEngine::setVideoRawFrame, CameraDeviceSession::setMonitorTargeted |
7b8bb6fe | Generic (Vulkan compute; NEON fallback). Open Gate sizes come from the lens's VideoResolutionMode.OPEN_GATE |
| Long exposure to 120 s, countdown ends with the photo | LensProfiles.kt (EXTENDED_SHUTTER_MAX_NS), CameraRouting.h (kExtendedShutterMaxNs), NativeCameraController::cameraCaptureStarted (first-frame start clamp), StillProcessingService.kt |
64c1427c | Generic; the late start callback was seen on the 17U |
| Viewfinder Resolution Photo / Video | SettingsModels.kt (viewfinderDivisor, videoViewfinderDivisor), CaptureSettingsSync.kt, DisplaySettings.kt |
9f2caff7 | Generic |
| Camera stop waits 1.2 s | NativeCameraController.cpp (stopRetireTimeout, debug.rawr.stop_close_ms) |
54758dd4 | Generic; the missing close callback is the 17U's |
| Landscape right text | CapturePrimitives.kt (DeviceLandscapeSide), CaptureRoute.kt |
a186b428 | Generic |
| Full-size stills keep manual WB | CameraDeviceSession.cpp (CAMERA_STILL_WB_COPY) |
26029f8a (apos-fandango 5d963407) | Generic |
| Tap focus holds for | TapFocusHold.h, TapFocusPolicy.h, CameraFocusControls.cpp, TapFocusSettings.kt, CaptureSettings.kt |
5630ff51 (apos-fandango dd8556fa) | Generic |
| AF-L hold by distance | NativeCameraController (holdLockedFocusLocked), StillFocus.h, CameraRequestControls.cpp, CameraResultState.cpp |
f26ea408 (apos-fandango f0b4127a) | Generic; engages where focus distance is calibrated |
| APV video | cpp/video/HevcEncoderSetup, MovMuxer, ApvLogMetadata.h, VideoEncoderPrewarm* |
e8bd1884 | Needs a hardware APV encoder |
| Photography Kit grip | GripUsbReader.kt, GripSettings.kt, GripAttachActivity.kt, PhotographyKitSettings.kt |
fccdfd93 | Xiaomi grip over USB (any phone it attaches to) |
| Zoom like the stock camera (grip lever / dial, Leitzphone ring, zoom while recording) | MainActivity.kt (gripStockZoom, ringTurn), integration/LeitzRing.kt, GripSettings.kt, cpp/camera/DigitalZoom.h (videoLiveZoom), native/video_pipeline VideoDemosaic (setLiveZoom), video/VideoRecorder.cpp |
73fd9eed, 5d1aadb0, dde3e046, a2d75ab6 | Lens zoom factors from the lens ids ("0.6 ...", "1x ..."); ring: 17U Leitzphone |
| 1x 50>25 | cpp/capture/ReducedRaw, StillBinnedCorner.h, profiles/xiaomi_17_ultra.json, LensProfileCodec.kt |
be1747d0 | Generic (lens profile photo output Half) |
| LOFIC lens and LOFIC Camera | cpp/imaging/LoficGrab, jni/LoficJni.cpp, kotlin/.../lofic/* |
537375aa, 4f2e0d98, 75853e98 | 17U; needs Anton Tretiakov's LOFIC RAW root module |
| LOFIC exposure at the shutter, gyroscope shutter limit, merged viewfinder | lofic/LoficSaver.kt (autoExposure), lofic/LoficMotion.kt, cpp/imaging/LoficViewfinderMerge.h, native/raw_ingress/shaders/raw10_unpack.comp (mergeLofic), pipeline/RawCpuUploadPool.cpp (gpuUnpack), FrameSubmitCoordinator.cpp (loficView) |
de0fa778 | 17U; needs the same module |
| LOFIC multi-frame (consecutive pairs, stacked) | cpp/imaging/LoficStack.h, cpp/imaging/LoficGrab (follow), jni/LoficJni.cpp (stack*), lofic/LoficSaver.kt (Burst, moreFrames) |
e9a448c4 | 17U; needs the same module |
| Digital zoom | cpp/camera/DigitalZoom.h, encoding/jpeg/JpegAspectCrop.h (zoomCrop, resizePlanes), JpegCaptureWriter.cpp, native/video_pipeline (videoZoomRect), settings/model/DigitalZoomSettings.kt, ui/CaptureViewfinder.kt, ui/FocusControls.kt |
c180a45b | Generic (checked on the 17U only) |
| Capture screen: values under the picture, panel beside it held sideways, recording clock, camera switch, codec shortcut, surfaces | ui/CaptureLayout.kt (ValuesBelowPicture, turnedPanel), ui/CaptureControls.kt (RecordingClock), ui/LensGroups.kt (CameraSideSwitch), ui/CaptureTopBar.kt, ui/VideoTimingMonitor.kt, ui/CaptureTokens.kt (CaptureFlat), settings/model/LensDoubleTapSettings.kt |
6eca3142, 96a073fc | Generic (checked on the 17U only) |
| Dynamic Range Local (Steve) | ProcessingRecipe.h, StillRenderSequence.cpp, RendererEngine.cpp |
a36bfa3e | Generic |
| S/I Toggle | model/PriorityToggle.kt, PriorityToggleActions.kt, CaptureCompactControls.kt |
f98e3548 | Generic |
| HDR+ Bracketed (Ed's merge, reworked by Steve) | capture/multiframe/Bracket*, MultiframeCaptureCoordinator |
1e6a6194 | Generic; -Prawr.hdrb=false leaves it out |
| Merged bursts from the corner of the photo buffer (15U 95mm 50MP HR) | session/SessionCornerBurst.cpp (a copy of the plain path of Ed's prepareFullSizeBurst), streams.photo.keepCorner (CameraRouting.h, CameraProfileJson.cpp, CameraContextMetadata.h), dispatch in SessionEngine::prepareFullSizeBurst |
see the CHANGELOG | Generic (any lens with keepCorner); Ed's burst unchanged |
| Watch Remote, Voice Shutter, shutter sound rule (Steve) | wear/ (Rawr Remote), integration/WatchRemote.kt, WatchRemoteProtocol.kt; integration/CameraSounds.kt |
6a98ae3f; shutter sound 604ba56a | Generic (Watch Remote needs Wear OS) |
| Tele optical zoom 75-100 mm | model/TeleOpticalZoom.kt, ui/TeleZoomControl.kt, ui/TeleZoomEdgeControls.kt, CameraDeviceSession.cpp |
778ee536 | 17U (vendor tags found by Anton Tretiakov) |
| Photo aspect ratios | model/PhotoAspect.kt, encoding/jpeg/JpegAspectCrop.h, JpegCaptureWriter.cpp, CaptureTopBar.kt |
485a3603 | Generic |
| Video aspect ratios (cinema) | video/VideoAspect.kt, video_pipeline/VideoCrop.h, SessionEngine.cpp |
57372f10, 6026a5b5 | Generic |
| 4K60 10-bit fast path | cpp/video/VideoFastPath, shaders/video_fast_yuv.comp, VideoRecorder.cpp |
70181e75 | Generic shaders; tuned on the 17U |
| Gyro stabilisation, Level horizon | geometry/Stabilizer.h, jni/StabilizerJni.cpp, video/StabilizerSensor.kt |
507f4e87, d6251961 | Generic (apos-fandango's gyro integrator) |
| Clean recording view, DND while recording | CaptureLayout.kt (and the recording rate of the scopes) |
36752802 | Generic |
| Top sheet | ui/ViewfinderQuickRail.kt, CaptureViewfinder.kt |
1f66f6e1 | Generic |
| Film sheet, hold to compare, ALL PARAMS | ui/FilmStockSheet.kt, ui/FilmStrip.kt, CaptureFilmEvent.kt |
06d22725, 6eceae7e, afc69cc5 | Generic |
| Look from a photo (recipe in JPEGs) | settings/preferences/PhotoRecipe.kt, settings/ui/LookFiles.kt, JpegExif.cpp |
cdaba1c7 | Generic |
| LOOK button and look sheet | ui/LookSheet.kt, TonemapStrip.kt, CaptureControls.kt |
98d0ecf7 | Generic |
| Settings search (build-time index) | settings/ui/SettingsSearch.kt, index task in app/build.gradle.kts |
86fa8c72 | Generic |
| WB strip, Pick neutral | ui/WhiteBalanceSheet.kt, WhiteBalancePanel.kt; CameraWhiteBalanceControls.cpp, SessionFrameCallbacks.cpp |
23cb118a, 660a5547 | Generic |
| Languages with export / import | settings/ui/LanguageSettings.kt, i18n JSONs, template task in app/build.gradle.kts |
4f3578d5 | Generic |
| Lens bar grouping and size | ui/LensGroups.kt, DisplaySettings.kt |
89e6c7d9 | Generic |
| Manual ISO standard numbers; shutter marked speeds | integration/NativeCapabilityProjection.kt |
bb261bd7, b0f51138 | Generic |
| Auxiliary sensors, light meter, Gyroflow log (the-marox #1) | integration/AuxSensors.kt, video/GyroflowLogger.kt, metadata/AmbientMetadata.h |
7eb2e738 | Generic where the sensors exist |
Xiaomi's HAL only delivers full-size frames to an output created with the vendor stream use case 0x80103
(not listed in availableStreamUseCases), and the 200 MP stream also needs session operating mode 36868.
The NDK can set neither, so these lenses run on Rawr's Java Camera2 backend, which sets both through
OutputConfiguration and SessionConfiguration (any lens with a use case or operating mode uses it
automatically). The rest is configuration, from the lens profile:
| Viewfinder | Still stream | Notes | |
|---|---|---|---|
| 50 MP (main, UW) | 4096x3072 binned | 8192x6144 | current_mode 0 and xiaomi.remosaic.enabled 1, scope Still only |
| 50 MP (tele) | 4080x3072 binned | 8160x6144 | current_mode 1, scope Still only |
| 200 MP (tele) | 4080x3072 binned | 16320x12288 RAW10 | use case 0x80103, session op mode 36868, xiaomi.remosaic.enabled 1 on the still |
The full-size output needs a CPU + RenderScript reader (usage 0x100003) so Xiaomi's cameraserver accepts the
unadvertised size; 200>50 adds GPU_DATA_BUFFER (0x1100003) so the GPU can read the frame in place. The
session also needs a small companion output in the session (without it every request fails). The still
request carries the full-size and companion outputs only; adding the binned RAW stalls the HAL. Details,
logs and the failed attempts are in docs/xiaomi-17u-50mp.md.
An Android RAW based camera application with GPU image processing, film simulation, JPEG/DNG capture, video recording, and DNG renderer.
Requires RAW camera access and compatible Vulkan hardware. General device compatibility is not yet established.
Use JDK 17, an Android SDK, and uv on macOS or Linux. Install the pinned components:
sdkmanager 'platforms;android-36' 'build-tools;36.0.0' 'ndk;29.0.14206865' 'cmake;3.31.6'
export ANDROID_HOME=/path/to/android-sdk
./gradlew :app:assembleDebugDebug APK: app/build/outputs/apk/debug/app-debug.apk.
Install explicitly with adb install -r <apk>. The debug application ID is
com.rawr.camera.debug; release uses com.rawr.camera.
See build and signing, native architecture, and native modules.
./gradlew :app:testDebugUnitTest :app:testReleaseUnitTest :app:lintDebug :app:lintRelease
cmake -S tests -B tmp/host-tests -G Ninja -DCMAKE_BUILD_TYPE=Debug
cmake --build tmp/host-tests --parallel 4
ctest --test-dir tmp/host-tests --output-on-failure
uv run --no-project tools/release/repository_hygiene.pySee host tests for dependencies and sanitizers, and offline replay for the retained MoltenVK tools and limitations.
See LICENSE, NOTICE, and third-party notices.






