mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-12 23:18:35 -07:00
BLE Spam add some help messages to config menus
This commit is contained in:
2
applications/external/ble_spam/ble_spam.c
vendored
2
applications/external/ble_spam/ble_spam.c
vendored
@@ -102,7 +102,7 @@ static Attack attacks[] = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
.title = "Windows Device Found",
|
.title = "Windows Device Found",
|
||||||
.text = "Requires enabling SwiftPair",
|
.text = "No cooldown, short range",
|
||||||
.protocol = &protocol_swiftpair,
|
.protocol = &protocol_swiftpair,
|
||||||
.payload =
|
.payload =
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -458,6 +458,11 @@ static void continuity_extra_config(Ctx* ctx) {
|
|||||||
variable_item_set_current_value_text(item, flags_name);
|
variable_item_set_current_value_text(item, flags_name);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case ContinuityTypeCustomCrash: {
|
||||||
|
variable_item_list_add(list, "Lock+unlock helps to crash", 0, NULL, NULL);
|
||||||
|
variable_item_list_add(list, "Works on iPhone 12 and up", 0, NULL, NULL);
|
||||||
|
break;
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -128,6 +128,8 @@ static void fastpair_extra_config(Ctx* ctx) {
|
|||||||
variable_item_set_current_value_index(item, value_index);
|
variable_item_set_current_value_index(item, value_index);
|
||||||
variable_item_set_current_value_text(item, model_name);
|
variable_item_set_current_value_text(item, model_name);
|
||||||
|
|
||||||
|
variable_item_list_add(list, "Requires Google services", 0, NULL, NULL);
|
||||||
|
|
||||||
variable_item_list_set_enter_callback(list, config_callback, ctx);
|
variable_item_list_set_enter_callback(list, config_callback, ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -70,6 +70,8 @@ static void swiftpair_extra_config(Ctx* ctx) {
|
|||||||
variable_item_set_current_value_text(
|
variable_item_set_current_value_text(
|
||||||
item, cfg->display_name[0] != '\0' ? cfg->display_name : "Random");
|
item, cfg->display_name[0] != '\0' ? cfg->display_name : "Random");
|
||||||
|
|
||||||
|
variable_item_list_add(list, "Requires enabling SwiftPair", 0, NULL, NULL);
|
||||||
|
|
||||||
variable_item_list_set_enter_callback(list, config_callback, ctx);
|
variable_item_list_set_enter_callback(list, config_callback, ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,9 @@ void scene_config_on_enter(void* _ctx) {
|
|||||||
variable_item_set_current_value_index(item, ctx->attack->payload.random_mac);
|
variable_item_set_current_value_index(item, ctx->attack->payload.random_mac);
|
||||||
variable_item_set_current_value_text(item, ctx->attack->payload.random_mac ? "ON" : "OFF");
|
variable_item_set_current_value_text(item, ctx->attack->payload.random_mac ? "ON" : "OFF");
|
||||||
|
|
||||||
if(ctx->attack->protocol && ctx->attack->protocol->extra_config) {
|
if(!ctx->attack->protocol) {
|
||||||
|
variable_item_list_add(list, "None shall escape the S I N K", 0, NULL, NULL);
|
||||||
|
} else if(ctx->attack->protocol->extra_config) {
|
||||||
ctx->attack->protocol->extra_config(ctx);
|
ctx->attack->protocol->extra_config(ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user