Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Only test tags you own or are allowed to test.
1. Build the Flipper app from this repository and install it via `ufbt`. The first launch creates `apps_data/tagtinker/dropped/` on your SD card.
2. Open **[i12bp8.github.io/TagTinker](https://i12bp8.github.io/TagTinker/)** in any browser, pick your tag profile, drop an image, tweak, and download the BMP.
3. Copy the BMP into `apps_data/tagtinker/dropped/` on the SD card (over `qFlipper`, USB MTP, or whatever you use).
4. On the Flipper open `Targeted Payloads → <your tag> → Set Image`, pick the BMP, choose a page, send.
4. On the Flipper open `Targeted Payloads`. If your tag is not listed yet, add it first with `+ Scan NFC` or `+ Type Barcode`. Then open `<your tag> → Set Image`, pick the BMP, choose a page, send.

## Development

Expand Down
15 changes: 14 additions & 1 deletion scenes/tagtinker_scene_target_menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
enum {
TargetMenuScanNfc = 99,
TargetMenuAddNew = 100,
TargetMenuHint = 101,
};

static void target_menu_cb(void* ctx, uint32_t index) {
Expand All @@ -18,11 +19,19 @@ void tagtinker_scene_target_menu_on_enter(void* ctx) {
TagTinkerApp* app = ctx;

submenu_reset(app->submenu);
submenu_set_header(app->submenu, "Targeted Payloads");
/* Issue #40: with no saved tag there is no "Set Image" anywhere yet, and
* users looked for their BMPs here. Say what to do first. */
submenu_set_header(
app->submenu, app->target_count ? "Targeted Payloads" : "Add your tag first");

/* Add new target */
submenu_add_item(app->submenu, "+ Scan NFC", TargetMenuScanNfc, target_menu_cb, app);
submenu_add_item(app->submenu, "+ Type Barcode", TargetMenuAddNew, target_menu_cb, app);
if(app->target_count == 0) {
/* Not a command: selecting it does nothing (see on_event). */
submenu_add_item(
app->submenu, "Then: tag > Set Image", TargetMenuHint, target_menu_cb, app);
}

/* List saved targets */
for(uint8_t i = 0; i < app->target_count; i++) {
Expand All @@ -47,6 +56,10 @@ bool tagtinker_scene_target_menu_on_event(void* ctx, SceneManagerEvent event) {
return true;
}

if(event.event == TargetMenuHint) {
return true;
}

if(event.event == TargetMenuAddNew) {
/* Go to barcode input, then come back */
scene_manager_set_scene_state(
Expand Down