iOS14 Charger Connect\Disconnect Sounds

This seems to be very popular with the release of iOS14, & I’m writing this up as a personal reference so I don’t have to continue to watch the great setup video that u/zeeshan_02 posted on Reddit: Beginner’s Guide on Playing a Custom Sound when Connected to Charger!

Shortcut 01: Encode Audio
This converts a sound file (in my case I was using an MP3) to Base64, for later use by the next shortcut:

“Encode Audio” shortcut

Shortcut 02: Charger Connected
Sound that will be played when the charger is connected. The base64-encoded text should already be in the clipboard from the step above. You just have to paste that into the Text field:

“Charger Connected” shortcut

Shortcut 03: Charger Disconnected (Optional)
Can use the same sound for connect & disconnect if you want. I just wanted to have different sounds used. It’s the same setup as above, just using a different Base64 string. If you want the same sound for both actions, you can skip this.

Setup a new Personal Automation for when your device is connected or disconnected from power, or both, & run the appropriate shortcut for what you’re trying to do.

Automation to play the sounds based on your selection.

Super Mario 64 Natively on Android

Found a post on XDA about building Super Mario 64 for Android using Termux, & figured I’d try it out for fun.
Source: XDA Developers: Super Mario 64 can be natively run on Android without a Nintendo 64 emulator

Their instructions worked fine, so below is really just a copy & paste from the XDA post:

➜  ~ pkg install git wget make python getconf zip apksigner clang
Checking availability of current mirror: ok
Reading package lists... Done
Building dependency tree       
Reading state information... Done
apksigner is already the newest version (29.0.2-5).
clang is already the newest version (10.0.1-2).
getconf is already the newest version (0.5-1).
git is already the newest version (2.28.0).
make is already the newest version (4.3-1).
python is already the newest version (3.8.5).
wget is already the newest version (1.20.3-3).
zip is already the newest version (3.0-5).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
➜  ~ cd Development 
➜  Development git clone
Cloning into 'sm64-port-android'...
remote: Enumerating objects: 15616, done.
remote: Total 15616 (delta 0), reused 0 (delta 0), pack-reused 15616
Receiving objects: 100% (15616/15616), 22.76 MiB | 5.71 MiB/s, done.
Resolving deltas: 100% (7567/7567), done.
➜  Development cd sm64-port-android 
➜  sm64-port-android git:(master) cp ~/storage/shared/Super\ Mario\ 64\ \(USA\).z64
➜  sm64-port-android git:(master) sha256 
The program openssl is not installed. Install it by executing:
 pkg install openssl-tool
➜  sm64-port-android git:(master) pkg install openssl-tool
Checking availability of current mirror: ok
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 185 kB of archives.
After this operation, 643 kB of additional disk space will be used.
Get:1 stable/main aarch64 openssl-tool aarch64 1.1.1g-4 [185 kB]
Fetched 185 kB in 0s (214 kB/s)    
Selecting previously unselected package openssl-tool.
(Reading database ... 14219 files and directories currently installed.)
Preparing to unpack .../openssl-tool_1.1.1g-4_aarch64.deb ...
Unpacking openssl-tool (1.1.1g-4) ...
Setting up openssl-tool (1.1.1g-4) ...
➜  sm64-port-android git:(master) sha256   
SHA256( 17ce077343c6133f8c9f2d6d6d9a4ab62c8cd2aa57c40aea1f490b4c8bb21d91
➜  sm64-port-android git:(master) md5sum 
➜  sm64-port-android git:(master) ./
~/Development/sm64-port-android/SDL ~/Development/sm64-port-android
--2020-09-20 11:56:47--
Resolving 2604:a880:1:20::181:e001,
Connecting to|2604:a880:1:20::181:e001|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 6784187 (6.5M) [application/zip]
Saving to: ‘’                       100%[=======================================================================>]   6.47M  5.65MB/s    in 1.1s    

2020-09-20 11:56:49 (5.65 MB/s) - ‘’ saved [6784187/6784187]

➜  sm64-port-android git:(master) make --jobs 4
cp build/us_pc/ build/us_pc/
apksigner sign --cert certificate.pem --key key.pk8 build/us_pc/
➜  sm64-port-android git:(master) ls   Makefile.split  assets           charmap.txt       enhancements       key.pk8  text
CHANGES       assets.json      charmap_menu.txt  levels         sm64.ld       textures
Dockerfile   SDL      data          lib    tools
Doxyfile     actors          bin       undefined_syms.txt
Jenkinsfile  android         build            rsp            sound
Makefile     asm             certificate.pem  doxygen           include     src
➜  sm64-port-android git:(master) ls build 
➜  sm64-port-android git:(master) ls build/us_pc 
actors  bin   endian-and-bitwidth  lib         rsp          src   textures
assets  data  include              levels  sound                         text
➜  sm64-port-android git:(master)
Super Mario 64 running natively on my OnePlus 7 Pro.