Sfoglia il codice sorgente

Use "Flipper Application Manifest Format"

Etienne Sellan 3 anni fa
parent
commit
19ac1838e6
4 ha cambiato i file con 15 aggiunte e 12 eliminazioni
  1. 2 2
      README.md
  2. 11 0
      application.fam
  3. 0 8
      manifest.json
  4. 2 2
      sentry_safe.c

+ 2 - 2
README.md

@@ -6,8 +6,8 @@ Flipper zero exploiting vulnerability to open any Sentry Safe and Master Lock el
 
 
 ### Installation
 ### Installation
 
 
-[Comming soon]
-~~This plugin use manifest, so you can install it using [Flipperzero Plugins Manager](https://github.com/H4ckd4ddy/flipperzero-plugins-manager)~~
+- Clone this repository in the applications folder of your firmware
+- Add "sentry_safe" in one of menus in applications/meta/application.fam
 
 
 ### Usage
 ### Usage
 
 

+ 11 - 0
application.fam

@@ -0,0 +1,11 @@
+App(
+    appid="sentry_safe",
+    name="Sentry Safe",
+    apptype=FlipperAppType.PLUGIN,
+    entry_point="sentry_safe_app",
+    cdefines=["APP_SENTRY_SAFE"],
+    requires=["gui"],
+    stack_size=1 * 1024,
+    icon="A_Plugins_14",
+    order=40,
+)

+ 0 - 8
manifest.json

@@ -1,8 +0,0 @@
-{
-	"plateform": "flipperzero",
-	"type": "plugin",
-	"name": "Sentry Safe",
-	"author": "H4ckd4ddy",
-	"url": "https://github.com/H4ckd4ddy/flipperzero-sentry-safe-plugin",
-	"destination_menu": "plugins"
-}

+ 2 - 2
sentry_safe/sentry_safe.c → sentry_safe.c

@@ -38,9 +38,9 @@ static void sentry_safe_render_callback(Canvas* const canvas, void* ctx) {
     // Message
     // Message
     canvas_set_font(canvas, FontPrimary);
     canvas_set_font(canvas, FontPrimary);
 
 
-    canvas_draw_frame(canvas, 28, 4, 73, 24);
+    canvas_draw_frame(canvas, 22, 4, 84, 24);
     canvas_draw_str_aligned(canvas, 64, 15, AlignCenter, AlignBottom, "BLACK <-> GND");
     canvas_draw_str_aligned(canvas, 64, 15, AlignCenter, AlignBottom, "BLACK <-> GND");
-    canvas_draw_str_aligned(canvas, 64, 25, AlignCenter, AlignBottom, "GREEN <-> C1");
+    canvas_draw_str_aligned(canvas, 64, 25, AlignCenter, AlignBottom, "GREEN <-> C1 ");
     canvas_draw_str_aligned(canvas, 64, 50, AlignCenter, AlignBottom, status_texts[sentry_state->status]);
     canvas_draw_str_aligned(canvas, 64, 50, AlignCenter, AlignBottom, status_texts[sentry_state->status]);
 
 
     release_mutex((ValueMutex*)ctx, sentry_state);
     release_mutex((ValueMutex*)ctx, sentry_state);