Flipper-XFW / Xtreme-Firmware

The Dom amongst the Flipper Zero Firmware. Give your Flipper the power and freedom it is really craving. Let it show you its true form. Dont delay, switch to the one and only true Master today!
https://flipper-xtre.me
GNU General Public License v3.0
9.45k stars 690 forks source link

Run apps in background #215

Open fred-corp opened 1 year ago

fred-corp commented 1 year ago

Description of the feature you're suggesting.

Wouldn't it be great to be able to run apps in background ?

Here's how it could work : For example, when using the POCSAG app (pager app which uses the SubGHz radio), hold "back" button for 5s, a prompt would appear to exit the app or to run in background; if an application runs in background, press 5s on the back button, a prompt appears to go back to the app or to exit it. When you go back to the app, if you were using another app, that app would go to background.
If you want to run an app that uses the same ressources as the background app (for example POCSAG is in background and you want to use SubGHz), a prompt appears where you can select to kill/pause the background app, go back to it, or do nothing (dismiss prompt and don't open the new app)

Anything else?

Thanks a lot for making this alternative firmware, I've been using it since I got my flipper and I wouldn't change back :)

ClaraCrazy commented 1 year ago

:no_good:

That would require a rewrite of like most of the firmware. So unless you are hiding a team of C developers (and im serious.. if you do, hell yeah lets do it) its not gonna happen unfortunately

fred-corp commented 1 year ago

Unfortunately I'm only a team of one 😅
I'm learning FreeRTOS in my free time (which due to my studies I have not a lot of x) ), so maybe if on a night of insomnia I get my hands on a container of coffee, who knows what would be attainable :D

I'll submit this issue to the official repo, maybe their team has more time and the knowledge on how to do this more efficiently ^^

ClaraCrazy commented 1 year ago

I bet 10$ they say no

Willy-JL commented 1 year ago

For what it's worth, so far I've gathered that basically everything to do with flipper UI and apps is designed around only one app being on screen. When an app is open, the firmware basically passes near full control to it, so to say (of course its more complicated than that, but this is just to give a rough idea). So if this is even possible, it would require A LOT of changes, if I had to guess most substantially to how scene managers and view ports work. However I'd say that Clara's 'most of the firmware' is by no means an exaggeration xD

Bluefrog922 commented 1 year ago

This app has managed to do it https://github.com/twisted-pear/bgloader for subghz chat but the xtream modification broke it.

Willy-JL commented 1 year ago

but the xtream modification broke it.

no. the bgloader is a proof of concept and it requires the individual apps to support the behavior. esubghz chat does support it, but it was added after, and the esubghz chat we include is not up to date, we are currently migrating and updating all apps

d9j commented 1 year ago

simple solution. get jailbroken iphone

SolarSciencePup commented 1 year ago

I bet 10$ they say no

They said no https://github.com/flipperdevices/flipperzero-firmware/issues/2610#issue-1682588842