A Hardware Hacking Tool with Web-Based CLI That Speaks Every Protocol
C arduinobluetoothcan-busdebuggingeepromesp32flipperzerogpiohardware-hackingi2cjtagopenocdprotocolspwmradiorfidspisubghzuartwifi
add flash shell to provider
Geo264fd2d6f83a
diff --git a/src/Providers/DependencyProvider.cpp b/src/Providers/DependencyProvider.cppindex b1ac4be5..9ff33683 100644--- a/src/Providers/DependencyProvider.cpp+++ b/src/Providers/DependencyProvider.cpp@@ -34,6 +34,7 @@ DependencyProvider::DependencyProvider(ITerminalView &terminalView, IDeviceViewbinaryAnalyzeManager(terminalView, terminalInput),userInputManager(terminalView, terminalInput, argTransformer),sdCardShell(sdService, terminalView, terminalInput, argTransformer),+ spiFlashShell(spiService, terminalView, terminalInput, argTransformer, userInputManager, binaryAnalyzeManager),universalRemoteShell(terminalView, terminalInput, infraredService, argTransformer, userInputManager),i2cEepromShell(terminalView, terminalInput, i2cService, argTransformer, userInputManager, binaryAnalyzeManager),horizontalSelector(deviceView, deviceInput),@@ -44,7 +45,7 @@ DependencyProvider::DependencyProvider(ITerminalView &terminalView, IDeviceViewinfraredController(terminalView, terminalInput, infraredService, argTransformer, userInputManager, universalRemoteShell),utilityController(terminalView, deviceView, terminalInput, pinService, userInputManager, argTransformer),hdUartController(terminalView, terminalInput, deviceInput, hdUartService, uartService, argTransformer, userInputManager),- spiController(terminalView, terminalInput, spiService, sdService, argTransformer, userInputManager, binaryAnalyzeManager, sdCardShell),+ spiController(terminalView, terminalInput, spiService, sdService, argTransformer, userInputManager, binaryAnalyzeManager, sdCardShell, spiFlashShell),jtagController(terminalView, terminalInput, jtagService, userInputManager),twoWireController(terminalView, terminalInput, userInputManager, twoWireService),threeWireController(terminalView, terminalInput, userInputManager, threeWireService, argTransformer),@@ -119,6 +120,7 @@ BinaryAnalyzeManager &DependencyProvider::getBinaryAnalyzeManager() { return binSdCardShell &DependencyProvider::getSdCardShell() { return sdCardShell; }UniversalRemoteShell &DependencyProvider::getUniversalRemoteShell() { return universalRemoteShell; }I2cEepromShell &DependencyProvider::getI2cEepromShell() { return i2cEepromShell; }+SpiFlashShell &DependencyProvider::getSpiFlashShell() { return spiFlashShell; }// SelectorsHorizontalSelector &DependencyProvider::getHorizontalSelector() { return horizontalSelector; }diff --git a/src/Providers/DependencyProvider.h b/src/Providers/DependencyProvider.hindex 2e20b450..b32cff07 100644--- a/src/Providers/DependencyProvider.h+++ b/src/Providers/DependencyProvider.h@@ -56,6 +56,7 @@ and injecting shared instances of core components#include "Shells/SdCardShell.h"#include "Shells/UniversalRemoteShell.h"#include "Shells/I2cEepromShell.h"+#include "Shells/SpiFlashShell.h"#include "Config/TerminalTypeConfigurator.h"class DependencyProvider@@ -129,6 +130,7 @@ public:SdCardShell &getSdCardShell();UniversalRemoteShell &getUniversalRemoteShell();I2cEepromShell &getI2cEepromShell();+ SpiFlashShell &getSpiFlashShell();// SelectorsHorizontalSelector &getHorizontalSelector();@@ -202,7 +204,8 @@ private:SdCardShell sdCardShell;UniversalRemoteShell universalRemoteShell;I2cEepromShell i2cEepromShell;-+ SpiFlashShell spiFlashShell;+// SelectorsHorizontalSelector horizontalSelector;