I came across this Linkedin post today:

Alberta Wallet Linkedin Post Ad

My first thought was oh no, this feels like it might be a security nightmare. So I intend to open up the app in Frida to see what I can find. Let’s get started…

Downloading AB Wallet

Since I’m running GrapheneOS and not using the Google Play store I downloaded the app from the Aurora Store. When I first open up the app it instantly crashes/closes so we need to figure out if the app sucks or if it’s somehow preventing itself from running on my uncommon setup. Pretty sure we can use frida and check logs for this somehow but to even begin using Frida we’re going to have to first build GrapheneOS since ADB root is only available on a userdebug build. I think we should also be able to lock this down with ro.adb.secure=1 somehow too, might be useful if I’m running around with this for a while. I don’t have the time to build GrapheneOS today but I’ve started the download for all the dependencies and repos I’ll need. In the meantime let’s take a quick peek at the AB Wallet app logs:

type: logcat
osVersion: google/cheetah/cheetah:16/BP2A.250805.005/2025081400:user/release-keys
flags: dev options enabled
package: ca.ab.gov.digitalwallet:1028, targetSdk 35
buffers: main,system,crash,events,kernel
level: verbose

We’re indeed running into a crash. Let’s see if the system logs indicate why:

# TODO: Ensure no private data is leaking in logs before sharing an excerpt here...

While doing this I had the idea to weaken the GrapheneOS exploit protections to see if it’ll launch and it does! Straight into crashing again but this time with with logs taking up the entire app screen. Progress! Ugh.

ab-wallet-launch-crash.webp

Analyzing the APK file

to be continued…

Using Frida

to be continued…

Initial Exploration

to be continued…

Hooks For Fun

to be continued…


to be continued…