Since the HERO4 lineup does not execute autoexec.ash anymore, new methods have been created/discovered.
Hero4 Black and Silver uses a modified firmware by Alti Force which enables the execution of a file called override.sh in the / of SD card.
The GoPro HERO4 camera (Black/Silver) does not support autoexec.ash hacks like the older generations, so a custom patch must be applied to the HERO4 firmware in order for override.sh program to be executed at the start, this was done by @evilwombat, grab the firmware patch installer here
Like in autoexechack, here there are hacks that aim to extend the funtionality of the HERO4 cameras.
The GoPro HERO4 firmware has a file called gpsend that calls a HERO2/H3/H3+ WiFi command when executed with the right parameter. Ḧere is a list of H2/H3/H3+ commands: https://github.com/KonradIT/goprowifihack/blob/master/HERO3/WifiCommands.md
The file gpsend is in /usr/local/gopro/bin/
Also, since the override.sh is executing from the Linux side you can use busybox as explained here and many more Linux commands.
Working on HERO4 Black with v3.00 GP Firmware
SH command | Meaning |
---|---|
/usr/local/gopro/bin/gpsend ca CM%00 | Video mode |
/usr/local/gopro/bin/gpsend ca CM%01 | Photo mode |
/usr/local/gopro/bin/gpsend ca CM%02 | MultiShot mode |
/usr/local/gopro/bin/gpsend bp SH%01 | Trigger (record/take pic) |
/usr/local/gopro/bin/gpsend bp SH%00 | Stop recording |
/usr/local/gopro/bin/gpsend ca WB%00 | White Balance Auto |
/usr/local/gopro/bin/gpsend ca WB%01 | White Balance 3000k |
/usr/local/gopro/bin/gpsend ca WB%02 | White Balance 5500k |
/usr/local/gopro/bin/gpsend ca WB%03 | White Balance 6500k |
/usr/local/gopro/bin/gpsend ca PT%01 | Protune ON |
/usr/local/gopro/bin/gpsend ca PT%00 | Protune OFF |
First, install the custom firmware.
Then, make a file in the root of the SD card named override.sh, then put your code there.
It will be executed when the camera turns on.
The HERO4 Session uses a native calibration tool that comes in the official stock GoPro firmware release, this set of tools can be accessed via cal.txt in the root of the SD card, Hypoxic did some research which you can find here: http://github.com/hypoxic/hero4-session
The cal.txt works on the latest Firmware (2.00)