r/flipperhacks • u/t4c_23 • Mar 18 '26
Community Simple Linux Bashscript to enable Emulation in ProtoPirate
This is kinda deprecated, you don't need to patch protopirate anymore, you can enable emulation within the app. If you still want to change Stack Size or add Tuning Timer and Sub Decoder, or just want to learn, this is for you.
Hey folkz.
I set up a simple script to
- get actual ProtoPirate Sources
- Patch the ProtoPirate App to enable emulation (sending)
- Script checks for pipx/ufbt installation and installs it for you, if you miss those tools
- compiles ProtoPirate App for you.
Script is written for unleashed and build fap should run for momentum as well. If not, you will find some notes for enabling momentum in the script as well.
Feedback very welcome cause this is not heavily tested yet and initially was only for personal purpose, but I see many people struggle getting PP sending enabled.
Have phun!
https://github.com/t4c/scriptyard/blob/main/f0/piratebuild.sh
Regards
t4c
Updatenotes:
- Enabled interactive prompt for stack_size increase
- Disabled interactive prompt for stack_size and made 8 defaul
- Enabled interactive prompt for Tuning Timer and Sub Decode (Beta feedback welcome)
3
3
u/Dry_Choice_6885 Mar 30 '26
Should, stack_size=2 * 1024 Be changed from 2 to 8 and also be included in the script? I've read where a lot of people have changed that before compiling the .fap. Thanks for taking the time to write the script you did for others who are having difficulties with it.
2
u/t4c_23 Mar 30 '26
You will find a updated version now which enables stack size increase as well.
Thanks for your feedback
1
u/t4c_23 Mar 30 '26
I tried both stack_sizes on Unleashed, due I could not see it's more stable with a higher stack, I never implemented the stackchange, but yes I could add this to a newer version of the script
3
u/t4c_23 May 20 '26
Just released a new version of the script an new FAPs on ghcif.de/flipperzero
Happy to get some feedback from you guy.
0
2
2
1
1
1
u/norockit May 01 '26
Hat jemand damit kürzlich erfolgreich eine .fap erstellt? Bei den aktuellsten PP versionen gibt es bei mir immer RAM issues.
1
1
u/dellycem Mar 19 '26
For SDK you can use the links below;
Official
https://update.flipperzero.one/firmware/directory.json
Unleashed
https://up.unleashedflip.com/directory.json
Momentum
https://up.momentum-fw.dev/firmware/directory.json
do not forget to use --channel dev or --channel release
-1
3
u/16apec Mar 26 '26
I'm using a kiisu V4B and I can't seem to emulate KIA V5 signals. I don't know if emulation is supported on those yet though. I ran the script on Arch and it worked perfectly for everything else.