Commit Graph

14105 Commits

Author SHA1 Message Date
Willy-JL
fa359af54e BadKB: Sync UI and code improvements from OFW PR 2025-04-03 06:50:04 +01:00
Willy-JL
7f46fe5d5c Merge remote-tracking branch 'ofw/dev' into mntm-dev --nobuild 2025-04-03 06:19:15 +01:00
Willy-JL
858526cae1 Revert "[FL-3909] CLI improvements, part I (#3928)" --nobuild
This reverts commit 0f831412fa.

This was reverted by OFW right after it was made, back in October 2024.
They are now getting back to implementing these features differently.
Thus, a revert is in order. But neofetch is staying :)
2025-04-03 02:22:36 +01:00
Anna Antonenko
13333edd30 [FL-3954, FL-3955] New CLI architecture (#4111)
* feat: FuriThread stdin

* ci: fix f18

* feat: stdio callback context

* feat: FuriPipe

* POTENTIALLY EXPLOSIVE pipe welding

* fix: non-explosive welding

* Revert welding

* docs: furi_pipe

* feat: pipe event loop integration

* update f18 sdk

* f18

* docs: make doxygen happy

* fix: event loop not triggering when pipe attached to stdio

* fix: partial stdout in pipe

* allow simultaneous in and out subscription in event loop

* feat: vcp i/o

* feat: cli ansi stuffs and history

* feat: more line editing

* working but slow cli rewrite

* restore previous speed after 4 days of debugging 🥲

* fix: cli_app_should_stop

* fix: cli and event_loop memory leaks

* style: remove commented out code

* ci: fix pvs warnings

* fix: unit tests, event_loop crash

* ci: fix build

* ci: silence pvs warning

* feat: cli gpio

* ci: fix formatting

* Fix memory leak during event loop unsubscription

* Event better memory leak fix

* feat: cli completions

* Merge remote-tracking branch 'origin/dev' into portasynthinca3/3928-cli-threads

* merge fixups

* temporarily exclude speaker_debug app

* pvs and unit tests fixups

* feat: commands in fals

* move commands out of flash, code cleanup

* ci: fix errors

* fix: run commands in buffer when stopping session

* speedup cli file transfer

* fix f18

* separate cli_shell into modules

* fix pvs warning

* fix qflipper refusing to connect

* remove temp debug logs

* remove erroneous conclusion

* Fix memory leak during event loop unsubscription

* Event better memory leak fix

* unit test for the fix

* improve thread stdio callback signatures

* pipe stdout timeout

* update api symbols

* fix f18, formatting

* fix pvs warnings

* increase stack size, hope to fix unit tests

* cli: revert flag changes

* cli: fix formatting

* cli, fbt: loopback perf benchmark

* thread, event_loop: subscribing to thread flags

* cli: signal internal events using thread flags, improve performance

* fix f18, formatting

* event_loop: fix crash

* storage_cli: increase write_chunk buffer size again

* cli: explanation for order=0

* thread, event_loop: thread flags callback refactor

* cli: increase stack size

* cli: rename cli_app_should_stop -> cli_is_pipe_broken_or_is_etx_next_char

* cli: use plain array instead of mlib for history

* cli: prepend file name to static fns

* cli: fix formatting

* cli_shell: increase stack size

* cli: fix rpc lockup

* cli: better lockup fix

* cli: fix f18

* fix merge

---------

Co-authored-by: Georgii Surkov <georgii.surkov@outlook.com>
Co-authored-by: あく <alleteam@gmail.com>
2025-04-02 22:10:10 +04:00
Eric Betts
5786066512 BLE advertising improvements (#4151)
* Support longer advertised BLE UUID

* BLE: support manufacturer data

* Don't pair when GapPairingNone

* Add PR feedback

---------

Co-authored-by: hedger <hedger@users.noreply.github.com>
2025-04-01 22:37:40 +04:00
WillyJL
bd1e395b08 Docs: Fix doxygen references from PR 4168 (#4169)
* Docs: Fix doxygen references from PR 4168

* Update JS GUI adapter table

---------

Co-authored-by: hedger <hedger@users.noreply.github.com>
2025-04-01 20:16:14 +04:00
Anna Antonenko
0103b8c7c5 [FL-3961] New JS value destructuring (#4135)
* js: value destructuring and tests

* js: temporary fix to see size impact

* js_val: reduce code size 1

* i may be stupid.

* test: js_value args

* Revert "js: temporary fix to see size impact"

This reverts commit f51d726dbafc4300d3552020de1c3b8f9ecd3ac1.

* pvs: silence warnings

* style: formatting

* pvs: silence warnings?

* pvs: silence warnings??

* js_value: redesign declaration types for less code

* js: temporary fix to see size impact

* style: formatting

* pvs: fix helpful warnings

* js_value: reduce .rodata size

* pvs: fix helpful warning

* js_value: reduce code size 1

* fix build error

* style: format

* Revert "js: temporary fix to see size impact"

This reverts commit d6a46f01794132e882e03fd273dec24386a4f8ba.

* style: format

---------

Co-authored-by: hedger <hedger@users.noreply.github.com>
2025-04-01 18:50:08 +04:00
Willy-JL
d93ff9bdb0 Merge remote-tracking branch 'ofw/dev' into mntm-dev 2025-04-01 11:15:53 +00:00
Willy-JL
77e43fff4f ESP Flasher Bump Marauder 1.3.0, FlipperHTTP 1.8.2 --nobuild 2025-04-01 11:05:43 +00:00
WillyJL
d34ff3310d JS: Update and fix docs, fix Number.toString() with decimals (#4168)
* Update and fix JS docs

This could really use some automation, atleast for API reference
There are TypeScript definitions and typedocs, we don't need to be monkeys copying and reformatting this to API reference by hand

* Fix bugged character

* JS: Fix Number.toString() with decimals

* Fix

* Forgot this one

* docs: mention per-view child format

* Added @portasynthinca3 to docs' codeowners

* Updated CODEOWNERS

---------

Co-authored-by: Anna Antonenko <portasynthinca3@gmail.com>
Co-authored-by: hedger <hedger@nanode.su>
Co-authored-by: hedger <hedger@users.noreply.github.com>
2025-04-01 15:02:12 +04:00
Willy-JL
7422b69c4a Apps: Add NFC APDU Runner (by SpenserCai) 2025-04-01 10:59:41 +00:00
Willy-JL
8104e9ef9a Apps: Add Passport Reader (by bettse) 2025-04-01 10:50:37 +00:00
Anna Antonenko
933134ed94 [FL-3962] BadUSB arbitrary key combinations (#4156)
* badusb: arbitrary modifier key combinations

* badusb: format code

* badusb: add const

* Revert "badusb: add const"

This reverts commit 6ae909fd5d3a5b614712fc92fadda98a6ced2893.

---------

Co-authored-by: hedger <hedger@users.noreply.github.com>
2025-04-01 14:35:11 +04:00
Willy-JL
9960664b45 Update apps
- Authenticator: Fix HOTP counter not increasing when "OK" button is long-pressed (by akopachov)
- FlipSocial: New server backend (by jblanked)
- FlipWiFi: Update FlipperHTTP, improve handling of connection errors and network names with symbols (by jblanked)
- FlipWorld: Added tutorial, many bugfixes and improvements (by jblanked)
- KeyCopier: Add QR code for TalkingSasquach's video (by zinongli), improved UI/workflow to select key format (by Offreds)
- PC Monitor: Add QR code to install desktop app, code refactoring, blue LED blink while receiving data, keep enable backlight during communication (by TheSainEyereg)
- Sub-GHz Bruteforcer: Add support for Princeton PT2262 24bit (by SpenserCai)
- Tuning Fork: New tunings for Ukelele (by portalsoup), Banjo, Cigar Box 3 and 4 strings (by GrafOrlok), Guitar 6 and 7 strings, Bass 7 strings, UI improvements, code refactor (by besya)
2025-04-01 10:32:57 +00:00
Willy-JL
bcde1c6f24 Apps: Add A33 Flipper Blackhat (by o7-machinehum) 2025-04-01 09:38:07 +00:00
Willy-JL
42845c79c7 Update docs for BLE_ID and BT_ID 2025-04-01 09:32:47 +00:00
Willy-JL
0f191d69a3 Sync from OFW PR --nobuild 2025-04-01 09:10:16 +00:00
Willy-JL
b4955fe1a6 JS: Fix Number.toString() with decimals --nobuild 2025-04-01 07:47:57 +00:00
Willy-JL
823a1d9253 Painfully update most JS docs by hand 2025-04-01 07:47:57 +00:00
Willy-JL
a0619c01d7 Merge remote-tracking branch 'ofw/dev' into mntm-dev --nobuild 2025-04-01 07:42:00 +00:00
WillyJL
0eb3fc33dd NFC: Fix NDEF parser for MIFARE Classic (#4153)
* Add div() to API

* Revert "Add div() to API"

This reverts commit e03b5c4244.

* Use / and %

* NFC: More MFC NDEF fixes

* Simplify duplicated code in MFC data generator

* NFC: Print NDEF hex data with pretty format

* NFC: Consider NDEF strings with last \0 byte as text

* Pretty Format: Add padding to last line to keep table width

---------

Co-authored-by: hedger <hedger@users.noreply.github.com>
2025-04-01 00:34:54 +04:00
Yukai Li
f6916fe616 Fix DWARF dead code elimination and linking (#4144)
Co-authored-by: hedger <hedger@users.noreply.github.com>
2025-03-31 22:32:58 +04:00
Konstantin Volkov
a0645bc6f4 HID Ble: increased stack and improvements (#4149)
* increased hid remote stack, increased swipe speed, added enterprise sleep

* decreased extra stack by 256b

* app: remote: bumped version and increased stack sizes

---------

Co-authored-by: doomwastaken <k.volkov@flipperdevices.com>
Co-authored-by: hedger <hedger@users.noreply.github.com>
Co-authored-by: hedger <hedger@nanode.su>
2025-03-31 21:33:17 +04:00
WillyJL
8871df863b NFC: Support DESFire Transaction MAC file type (#4159)
* NFC: Support DESFire Transaction MAC file type

* Fix typo

---------

Co-authored-by: hedger <hedger@users.noreply.github.com>
2025-03-31 21:22:16 +04:00
WillyJL
17759a9e4b NFC: Fix crash on ISO15693-3 save when memory is empty or cannot be read (#4165)
* NFC: Possibly fix ISO15693-3 save crash with no data

* Also prevent malloc(0) if block size or count is 0

---------

Co-authored-by: hedger <hedger@users.noreply.github.com>
2025-03-31 20:59:12 +04:00
WillyJL
6962e9ce34 Infrared: Fix universals sending (#4132)
Co-authored-by: hedger <hedger@users.noreply.github.com>
2025-03-31 20:52:15 +04:00
hedger
5fcaef25b0 Stricter constness for const data (#4126)
* libs: stricter constness for saving RAM with .rodata section; fbt: sdk: fixed signature generation for nested const params

* hal: additional fixes for constness in USB subsystem

* debug apps: additional usb-related fixes

* mjs: more consts for token parser

* fatfs: const driver struct

* hal: more consts for ble & nfc vars

* hal: made FuriHalSpiBusHandle static

* hal: made FuriHalI2cBusHandle static

* usb: restored previous api

* linter fixes

* API fixes
2025-03-31 19:23:32 +04:00
WillyJL
3bd6ee03ef GUI: Fix widget text scroll with 256+ lines (#4160)
Co-authored-by: hedger <hedger@users.noreply.github.com>
2025-03-31 19:11:05 +04:00
Konstantin Volkov
cf63b38ce0 [FL-3972]: Added Doom animation (#4164)
* added new doom animation, updated manifests, re-enabled some animations

* added doom animation to manifest

* reverted manifest to original, new animation added

* fixed metadata and images

* removed old holiday animation

---------

Co-authored-by: doomwastaken <k.volkov@flipperdevices.com>
Co-authored-by: hedger <hedger@users.noreply.github.com>
2025-03-31 18:36:17 +04:00
Evgeny E
bcbf78a45d github: support bound and symlinked devices (#4163)
* Fix unaccessible flipper for binded access points

workaround to work with symlinked devices

* Fix return None if Flipper not started

* exception handling

* decreased timeouts

* Check environment variables for flipper path
2025-03-31 17:20:25 +04:00
Anna Antonenko
79bb24406e Reduced ieee754 parser size (#4154)
Co-authored-by: hedger <hedger@users.noreply.github.com>
2025-03-31 08:24:27 +04:00
Willy-JL
12f65f17aa Wardriver: Fix swapped Channel/RSSI (by jamisonderek) 2025-03-27 06:54:05 +00:00
knrn64
54adc38b3a Documentation: new doc on Storage module and JS cleanup (#4161)
- Add new doc on Storage module
- Improve formatting in the JS section for better readability
2025-03-26 18:29:26 +04:00
Willy-JL
bf991f3101 NFC Maker: Support MIFARE Classic and SLIX, UI Improvements 2025-03-26 11:47:10 +00:00
Willy-JL
9887be24ac Merge branch 'fix/mfc-ndef' into mntm-dev --nobuild 2025-03-26 11:44:55 +00:00
Willy-JL
71be991a15 Merge branch 'feat/desfire-transaction-mac' into mntm-dev --nobuild 2025-03-26 11:38:40 +00:00
Willy-JL
ebb6194155 Merge branch 'fix/widget-textscroll-256' into mntm-dev 2025-03-26 11:35:11 +00:00
Willy-JL
303444df7a Merge remote-tracking branch 'ofw/dev' into mntm-dev --nobuild 2025-03-26 11:30:06 +00:00
Willy-JL
d02f13bef1 GUI: Fix widget text scroll with 256+ lines 2025-03-26 07:37:43 +00:00
Willy-JL
a7409edd62 Simplify duplicated code in MFC data generator 2025-03-26 07:31:18 +00:00
Willy-JL
caae101942 NFC: More MFC NDEF fixes 2025-03-26 07:30:33 +00:00
Willy-JL
a914b309aa Fix typo 2025-03-25 09:20:56 +00:00
Willy-JL
beb8a8c702 NFC: Support DESFire Transaction MAC file type 2025-03-25 09:13:25 +00:00
Willy-JL
a9c24e229a Use / and % 2025-03-24 01:05:46 +00:00
Willy-JL
849d68cbb7 Revert "Add div() to API"
This reverts commit e03b5c4244.
2025-03-24 01:05:23 +00:00
Willy-JL
e03b5c4244 Add div() to API 2025-03-20 23:42:48 +00:00
Ruslan Nadyrshin
02dedd60f3 Add guides on Getting Started with JS (#4150)
- Get started section added to the JS docs
- Small fixes in the JS modules docs
2025-03-19 02:08:23 +10:00
Evgeny E
9a8dcc340f fix: flipper detected before it was rebooted (#4146) 2025-03-12 13:25:37 +00:00
Willy-JL
f104bc89d2 FBT: Start debug session quicker --nobuild 2025-03-11 03:44:59 +00:00
WillyJL
cef20b3a5e JS: Fix gui.js stopwatch example borders (#4131) 2025-03-05 18:11:51 +04:00