mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-13 01:48:35 -07:00
Temporarily backport app updates from apps repo
This commit is contained in:
@@ -10,7 +10,7 @@ App(
|
||||
],
|
||||
stack_size=1 * 1024,
|
||||
fap_description="Mf Classic key finder",
|
||||
fap_version="1.0",
|
||||
fap_version="1.1",
|
||||
fap_icon="mfkey.png",
|
||||
fap_category="NFC",
|
||||
fap_author="@noproto",
|
||||
|
||||
14
applications/external/mfkey32/mfkey32.c
vendored
14
applications/external/mfkey32/mfkey32.c
vendored
@@ -13,14 +13,13 @@
|
||||
#include <input/input.h>
|
||||
#include <stdlib.h>
|
||||
#include "mfkey32_icons.h"
|
||||
#include <assets_icons.h>
|
||||
#include <inttypes.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stdint.h>
|
||||
#include <unistd.h>
|
||||
#include <storage/storage.h>
|
||||
#include <lib/nfc/helpers/mf_classic_dict.h>
|
||||
#include <toolbox/stream/buffered_file_stream.h>
|
||||
#include <lib/toolbox/args.h>
|
||||
#include <lib/flipper_format/flipper_format.h>
|
||||
#include <dolphin/dolphin.h>
|
||||
@@ -124,10 +123,15 @@ typedef struct {
|
||||
size_t remaining_nonces;
|
||||
} MfClassicNonceArray;
|
||||
|
||||
struct MfClassicDict {
|
||||
typedef enum {
|
||||
MfClassicDictTypeSystem,
|
||||
MfClassicDictTypeUser,
|
||||
} MfClassicDictType;
|
||||
|
||||
typedef struct {
|
||||
Stream* stream;
|
||||
uint32_t total_keys;
|
||||
};
|
||||
} MfClassicDict;
|
||||
|
||||
static const uint8_t table[256] = {
|
||||
0, 1, 1, 2, 1, 2, 2, 3, 1, 2, 2, 3, 2, 3, 3, 4, 1, 2, 2, 3, 2, 3, 3, 4, 2, 3, 3, 4, 3,
|
||||
@@ -1333,8 +1337,8 @@ int32_t mfkey32_main() {
|
||||
}
|
||||
}
|
||||
|
||||
view_port_update(view_port);
|
||||
furi_mutex_release(program_state->mutex);
|
||||
view_port_update(view_port);
|
||||
}
|
||||
|
||||
furi_thread_free(program_state->mfkeythread);
|
||||
|
||||
Reference in New Issue
Block a user