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
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
- 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)
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
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 :)
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