12 Commits
Author SHA1 Message Date
Leeroy 6afd984180 Remote Analyzer and Welcome Plugins, Refactors
REFACTORS and OPTIMIZATIONS, PLUGIN and HOST API changes
* Re-ordered strucct variables for less padding and smaller compiled code.

HOST API: All plugins now use the same host api, and the host api has been extended to support.
* Changed Tool Scene Host to Shared Plugin Host (and renamed sources)
* Got rid of ProtoPirateToolScenePluginKind, and fixed the header hell that came with it!
* ToolScenes are now SharedPlugins, we can refactor HOST API etc now.
* Header Cleanup in Main App header file
* Moved host api header file into helpers

REFACTORS: Removed all API Host #defines from all plugins.
* The code was ugly, I never liked it but followed convention
* The AI found bug in unload caused by them was enough reason to kill them
* Move Sub Decode and Timing Tuner plugin code logic from scenes source to plugins/XXX_plugin.c
* Standarizes the 2 Tool Scenes with the other plugins.
* Remove shared plugin pointers for each type, replaced with ONE void *
* Remove all the Entry Point Checks in Plugins.
* Remove plugin path from all plugins, use it once.

PLUGIN CHANGES: Use Same SharedPlugin Struct for all Plugins that dont need to expose functions.
* API of ALL Plugins is now the Size of the Host API, or PluginStruct if no API.
* This only leaves Config and Bruteforce having own structs, as they have own API.
* Remove emulate_plugin pointer from main app, we dont need it.
* Remove plugin_ensure_loaded for Sub Decode and Timing Tuner, make it consistent and save 0.5Kb on FAP size.
* PSA BF is now BRUTEFORCE, we have Renault as well now.
* Made plugin names shorter, and removed plugin_names from the descriptor as we dont use them. (Save FAP Size)

* SUB DECODE: Pack Context Struct for RAM, replace FuriStrings with char *
* IF we can't determine BF, Pop an (Error) widget button.
* Added INLINING in Plugin Host API (Compiler seems to already inline!)
* Added Error button if can't load BF plugin. (Added to Saved Info too)
* BRUTEFORCE speed improvement. (Don't update UI as often)

Added REMOTE ANALYZER to ProtoPirate.
* Is in its own plugin
* Has ENABLE_REMOTE_ANALYZER
* Looks at Modulation Type, automatically selects AM and FM for you.
* Has new UI, with instructions and history shows preset.
* Put Menu under Saved Remotes

Added WELCOME SCREEN to ProtoPirate
2026-10-04 22:22:12 +11:00
Leeroy 71f7cb93a8 REFACTOR: Fix Encapsulation issues in plugins.
* Removed dependencies on App Struct in Plugin Module
* Cleaned up headers
* Only check navigation events if plugin doesnt handle the event
2026-09-29 15:53:35 +10:00
Leeroy 78aeb859a8 Renamed Plugins to save RAM. 2026-09-26 12:20:24 +10:00
zero-mega 1287d10fa0 move newer Renault variants into Renault V1
add hitag2 seed bruteforce for serial derived keys (this is not Hitag2Hell on flipper)

fix Fiat V1 encoder

fix Kia V7 encoder

remove untested porsche protocol

merge Mitsubishi protocol into Kia V0
2026-09-14 16:43:41 +02:00
0mega 62b31bfe95 More Memory optimizations and new protocols
- Split RX registries into more plugins: AM, AM VAG, FM, FM F4, and FM Honda1
- Add per-protocol TX plugins so emulation loads only the selected encoder
- Sub Decode (enabled by default) and Timing Tuner as plugins
- Max history increased to 20 signals
- Fix Sub Decode and simplified UI
- Add Check Saved setting ported from dexter_pester PR !
- Fix Fiat V1 decoder and add HITAG2 key TX support
- Add Renault V0, Fiat V2, Honda V2, Ford V3 (& US variant) Thanks Ash

Sorry this is a lot at once x)
2026-06-30 21:28:26 +02:00
MX f14c40089d apply fbt formatting
FAP Build / ufbt: Build for Momentum dev (push) Successful in 59s
FAP Build / ufbt: Build for Momentum release (push) Successful in 1m0s
FAP Build / ufbt: Build for OFW dev channel (push) Successful in 52s
FAP Build / ufbt: Build for OFW release channel (push) Successful in 1m1s
FAP Build / ufbt: Build for Unleashed release (push) Successful in 1m4s
FAP Build / ufbt: Build for Unleashed dev (push) Successful in 1m3s
2026-06-12 17:11:09 +03:00
MX f45c2a8907 Merge remote-tracking branch 'pp_net/zero-mega' into pp_main
FAP Build / ufbt: Build for Momentum dev (push) Successful in 1m0s
FAP Build / ufbt: Build for Momentum release (push) Successful in 1m0s
FAP Build / ufbt: Build for OFW dev channel (push) Successful in 54s
FAP Build / ufbt: Build for OFW release channel (push) Successful in 59s
FAP Build / ufbt: Build for Unleashed dev (push) Successful in 58s
FAP Build / ufbt: Build for Unleashed release (push) Successful in 58s
2026-06-04 18:52:32 +03:00
zero-mega 25be4e177b Add Honda V1 Protocol (Thanks Ash) 2026-06-04 12:43:59 +02:00
Myte d4ee2e59aa Move KIA V2 protocol from FM to AM (ASK/OOK) registry
KIA V2 uses Manchester encoding and was historically decoded successfully
under ASK presets. The recent AM/FM plugin split placed it in the FM
registry based on its flag, but real-world KIA V2 fobs operate on ASK.

Changes:
- protocols/kia_v2.c: SubGhzProtocolFlag_FM -> SubGhzProtocolFlag_AM
- protopirate_fm_plugin.c: remove kia_v2 include and registry entry
- protopirate_am_plugin.c: add kia_v2 include and registry entry
- application.fam: move kia_v2.c source from FM plugin to AM plugin
2026-06-03 23:30:28 +03:00
zero-mega 3fea523302 Add Emulate and PSA BF as plugins too 2026-05-22 17:52:55 +02:00
zero-mega 3919826ec4 Fix keystore for FM protocols plugin
Fix KIA V5 encoder and KIA V3/4 encoder (CRC bruteforce...)

Add support for Ford V1 different fobs (no decryption yet) (Jaguar, Landrover, Range Rover 2018)
Add Ford V3 decoder (no decryption yet) (Ford Focus/Ranger 2020)
Thanks to Ash for thoses last two :)
2026-05-19 18:27:48 +02:00
0mega 3612385fcc New AM/FM protocol registry plugin split
More shared helpers in protocols_commons
Storage and history improvements
Add Chrysler V0, Ford V2 (simple replay encoder), Land Rover V0
Fix Fiat V0, Subaru & Kia V5
2026-05-05 20:13:02 +02:00