Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is "Stealth Mode,"? #337

Closed
GameLord2011 opened this issue Dec 30, 2024 · 3 comments
Closed

What is "Stealth Mode,"? #337

GameLord2011 opened this issue Dec 30, 2024 · 3 comments

Comments

@GameLord2011
Copy link
Contributor

I was digging through the source code, trying to find out how to swap out the sd card icon on the status bar with the floppy disk icon, and stumbled upon this code snippet in desktop.c:

// Stealth mode icon 
desktop->stealth_mode_icon_viewport = view_port_alloc(); 
view_port_set_width(desktop->stealth_mode_icon_viewport, icon_get_width(&I_Muted_8x8)); 
view_port_draw_callback_set( 
    desktop->stealth_mode_icon_viewport, desktop_stealth_mode_icon_draw_callback, desktop); 
if(furi_hal_rtc_is_flag_set(FuriHalRtcFlagStealthMode)) { 
    view_port_enabled_set(desktop->stealth_mode_icon_viewport, true); 
} else { 
    view_port_enabled_set(desktop->stealth_mode_icon_viewport, false); 
} 
gui_add_view_port(desktop->gui, desktop->stealth_mode_icon_viewport, GuiLayerStatusBarLeft); 

I found several code references to stealth mode, but no settings referencing it.

@GameLord2011
Copy link
Contributor Author

I found this:

    bool stealth_mode = false;

In desktop_view_lock_menu.c

@GameLord2011
Copy link
Contributor Author

nvmind figured it out

@Willy-JL
Copy link
Member

It's to mute led and sounds. On ofw it's a menu entry in the lock menu. On momentum it's when you click the volume bar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants