8677 Commits
Author SHA1 Message Date
MX 6f9d96f6ac show half rate keeloqs as KeeloqHR 2026-11-22 12:01:24 +03:00
MX e1439e8665 undo crypt key, half rate remotes were found 2026-11-22 03:27:47 +03:00
MX 58510b5db4 bump apps tag 2026-11-22 03:02:22 +03:00
MX 075b3dbc86 upd changelog 2026-11-22 02:08:34 +03:00
MX 20d82a1612 Merge remote-tracking branch 'OFW/dev' into dev 2026-11-22 02:06:22 +03:00
Théo BARRAGUÉandMistral Vibe e459e2d939 fix: badusb MOUSESCROLL/MOUSEMOVE read past end of line without argument (ducky_script_commands.c) (#4521)
strcspn(line, " ") returns strlen(line) when the command has no
argument, so &line[strcspn(line, " ") + 1] pointed one byte past the
NUL terminator and strint_to_int32 parsed uninitialized memory (error
with garbage text, or a mouse_scroll/mouse_move executed with a garbage
value). Use ducky_get_command_len() like every other command in the file,
and reject MOUSEMOVE with a missing second argument with a proper
"Invalid Number" script error.

Generated by Mistral Vibe.

Co-authored-by: Mistral Vibe <vibe@mistral.ai>
2026-11-22 02:05:55 +03:00
MX 369fca6f81 update changelog 2026-11-22 01:52:48 +03:00
jeje77131andClaude 3414ad8975 Furi: realloc() copies only the old block, calloc() checks for overflow (#1243)
realloc() copied the new size out of the old block, so growing a block
read past its end: neighbouring heap data was copied into the new block,
and a block near the end of the heap could be read past the heap itself.
Copy the smaller of the old block's usable size and the new size. The
new memmgr_heap_get_block_size() reads the former from the block header.

calloc() multiplied count by size unchecked: calloc(0x40000001, 4)
wrapped to 4 bytes and returned a 4-byte block for a 4 GiB request.
Check with __builtin_mul_overflow() and stop on "out of memory", as for
any allocation that cannot be served.

The realloc() fault was reported in
flipperdevices/flipperzero-firmware#1274, and the same fix was proposed
in #977 (closed unmerged) and flipperdevices/flipperzero-firmware#4360
(open).


Claude-Session: https://claude.ai/code/session_0178Lh3xS7wvbg3ge5jTuQU7

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-22 01:48:19 +03:00
jeje77131andClaude edc5e57dda SubGHz: terminate the name when renaming a file with a long name (#1242)
Renaming a saved signal copies its name into file_name_tmp with
strncpy(..., SUBGHZ_MAX_LEN_NAME). A name of 64 characters or more
leaves the buffer unterminated, and the next byte of struct SubGhz
(state_notifications, 1 by then) ends up in the name. FatFs takes that
control character for the end of the path, so saving without any change
renames the file to its first 64 characters without the .sub extension,
and it drops out of the Saved list.

Use strlcpy(). OFW's version of this scene already does, since
flipperdevices/flipperzero-firmware#3866 replaced strncpy throughout,
and the change was also part of #977, as a compiler warning fix.


Claude-Session: https://claude.ai/code/session_0178Lh3xS7wvbg3ge5jTuQU7

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-22 01:48:08 +03:00
jeje77131andClaude 04c8423cd0 GPS, Network: unsubscribing waits for a running callback (#1241)
gps_on_location() and network_on_event() read the callback and its
context under the lock, released it, then made the call. So
gps_set_location_callback() and network_set_event_callback() could
return while the old callback was still running, or about to start,
with a context the app frees right after unsubscribing.

Hold a recursive callback mutex across the call, and take it in the
setters: once a setter returns, the old callback has finished and will
not be called again. It is a separate mutex from the RPC bridge's, so a
callback can still send through the service. The guarantee, and the rule
that comes with it (do not call the setter while holding a lock the
callback takes), are documented in the headers.


Claude-Session: https://claude.ai/code/session_0178Lh3xS7wvbg3ge5jTuQU7

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-22 01:47:56 +03:00
jeje77131andClaude 5f6fb7caff SubGHz: serialize the receive history between the worker and the GUI (#1240)
A decoded signal is added to the history on the radio worker thread,
while the receiver and info scenes read, rebuild and delete from the
same history on the app thread, without a lock.

The visible result, with "Delete old signals when memory is full" on:
open the oldest signal, let a new one arrive, press Send. The open item
has been deleted and the info screen still shows it, but Send transmits
the signal that moved into its slot, and the screen then redraws with
that one.

- Guard the history with a mutex, held by the add-to-history callback,
  the list rebuild, Hold Right delete, the info screen's lookups and the
  status bar update. It is never held across a radio stop.
- Keep the open item when old signals are dropped: the next oldest goes
  instead.
- Re-read the chosen index under the lock and bound-check it on the info
  screen. Look the signal up under the lock, but transmit outside it.

The new fields go at the end of struct SubGhz, so plugin offsets stay put.


Claude-Session: https://claude.ai/code/session_0178Lh3xS7wvbg3ge5jTuQU7

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-22 01:47:43 +03:00
jeje77131andClaude 7a06653e3a GUI: TextInput: stop the draw callback writing past its buffer (#1239)
The draw callback kept strlen() in a uint8_t and copied the text into a
VLA of that size, then inserted the cursor and the "..." marker in place.
Every redraw with the cursor shown wrote 1 to 4 bytes past the VLA, on
the GUI thread's stack. A text of 256 characters or more also read as
its length modulo 256: the field looked empty or cut short, and the
cursor was clamped there, so typing went in at the wrong position.

Keep the length in a size_t and copy only a window around the cursor,
at most 127 characters on each side, into a buffer sized for the cursor
and the ellipsis.


Claude-Session: https://claude.ai/code/session_0178Lh3xS7wvbg3ge5jTuQU7

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-22 01:47:32 +03:00
MX 3c339de144 Merge remote-tracking branch 'OFW/dev' into dev 2026-11-21 21:49:19 +03:00
MX f99001a8d0 upd docs 2026-11-21 21:48:53 +03:00
MX a922b3d46d various fixes and docs updates 2026-11-21 21:41:35 +03:00
MX e62d78cd70 faac fix!
thanks @Anat01y for help and research
2026-11-21 21:41:19 +03:00
Zu 0c87c9e2df Fix BLE key storage callback lifetime across radio restarts (#4515) 2026-11-21 18:31:46 +03:00
MX 7f31d0cca5 upd changelog 2026-11-20 04:43:09 +03:00
MX d21fc9789b add extra freqs 2026-11-20 01:34:15 +03:00
MMX 000b238e79 bump apps tag 2026-11-19 22:24:38 +03:00
Mykhailo ShevchukandClaude Opus 5 0190352dc7 bump apps tag
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-11-19 19:40:20 +02:00
MX 95a8412667 fbt format [ci skip] 2026-11-19 19:36:09 +03:00
MX ca4a076a4c upd changelog and bump apps tag 2026-11-19 17:17:58 +03:00
ANTONiO 690af3d02b BadUSB: add DUCKY_LANG native layout support (#1218) (#1224)
* BadUSB: add native Ducky language layouts

Add the native .kl layout loader and DUCKY_LANG script command. This feature-only commit uses the existing default keyboard layout and does not change its persistence.

* BadUSB: register DUCKY_LANG command

Register the per-script DUCKY_LANG command in the BadUSB command table.

* BadUSB: load native layout for each script

Add DUCKY_LANG execution, per-script layout state, and ASCII-safe HID string mapping. Existing persistent default layout remains unchanged.

* BadUSB: pass selected layout into script

Pass the existing selected keyboard layout into BadUsbScript at open; this does not alter layout persistence.

* BadUSB: retain default layout for script reset

Keep the existing selected layout as the per-script reset mapping for DUCKY_LANG.

* BadUSB: load native .kl layouts

Load validated 095E native keyboard maps for DUCKY_LANG, with safe en-US fallback and explicit ASCII limitation.

* BadUSB: pass selected layout to script runner

Pass the existing selected keyboard layout through the work scene to the script runner for DUCKY_LANG.

* Fix: remove nested layout loader path

Remove the accidental nested helper path before adding the source at its proper location.

* BadUSB: add native .kl layout loader

Add the DUCKY_LANG loader under the existing BadUSB helpers directory.
2026-11-19 17:06:31 +03:00
MX 7aff434a09 Merge remote-tracking branch 'origin/dev' into dev [ci skip] 2026-11-19 16:53:26 +03:00
Lechnio 058eaa817f SubGHz: move signal and radio settings to .fal plugins (#1222) 2026-11-19 16:52:38 +03:00
MX 62ed7711ef sim800 app 2026-11-19 16:51:20 +03:00
MX abb117fdd5 add the app to the system 2026-11-19 12:17:30 +03:00
Lechnio 6c4574bcb2 SubGHz: add Edit to RAW More menu (#1221) 2026-11-19 11:57:09 +03:00
Lechnio 3bc4785f8c SubGHz: drop unknown bits from saved IgnoreFilter (#1220) 2026-11-19 11:55:38 +03:00
Lechnio 99a9ba4fd8 Sub-GHz: verify Feron checksum (#1219) 2026-11-19 11:55:13 +03:00
Firat Hajiyev 5ab2996a79 Fix Gallagher EM4305 bit offset (#1217)
Use the shared EM4305 request builder so Gallagher writes consume encoded bits 0 through 95 instead of 1 through 96. Add a regression that compares all three data words with the equivalent T5577 frame.

Assisted-by: Codex (GPT-5) <noreply@openai.com>
2026-11-18 23:47:31 +03:00
MX 53818b18f6 bump apps tag 2026-11-16 07:13:34 +03:00
MMX 32b0bf4069 upd changelog 2026-11-14 18:27:23 +03:00
MMX 5244f024f3 Merge remote-tracking branch 'flipperdevices/dev' into dev 2026-11-14 18:22:17 +03:00
project516 a8a24de3ff fix: resolve PVS-Studio warnings reported on dev (#4517) 2026-11-14 18:15:03 +03:00
MX 1a5676a0a6 no mf id in belkorn :(( 2026-11-13 15:31:44 +03:00
Rafael Fadel 82ed10e91c SubGHz: fix subghz rx, tx and tx_from_file over the CLI failing on the internal radio (#1216)
The CLI checks the result of subghz_devices_begin() since #1171, but the
internal CC1101 has no begin hook and subghz_devices_begin() returned false
for any device without one. Every CLI rx/tx on device 0 stopped at
"Device 0 failed to start", and the failure path shut the radio down.

A device with no begin hook has nothing to start, so starting it succeeds.
The external module still reports its real self-test result.

Fixes #1215
2026-11-13 13:00:50 +03:00
MX 62e9217319 gt in add manually advanced 2026-11-13 04:21:27 +03:00
MX da7020b312 bump apps tag 2026-11-13 03:36:09 +03:00
MX 53ff663b65 smol fix for belkorn 2026-11-13 03:26:11 +03:00
MX edc19780ed subghz add belkorn protocol
also improve history display, and some other small things
2026-11-13 03:11:29 +03:00
MX c16f66d8ea simplify add manually list and allow freq preset selection 2026-11-12 05:56:30 +03:00
MX 512289b7c0 bump apps tag 2026-11-12 04:49:15 +03:00
MX 2f47ba8943 oops [ci skip] 2026-11-12 04:29:09 +03:00
MX 25d23c93fa small fix for nfc related apps from catalog [ci skip] 2026-11-12 04:23:31 +03:00
MX d2754d73e0 apply some subghz fixes 2026-11-12 00:22:19 +03:00
MX 5befd04d96 clear changelog 2026-11-11 22:52:58 +03:00
github-actions[bot] e43be5aff7 issue templates: set Found-in-version stable option to unlshd-095 [ci skip] 2026-11-11 17:15:50 +00:00
MX 268be2c23b fix chlog [ci skip] 2026-11-11 01:34:11 +03:00