Reversing Android firmware to get secret codes
The researcher extracted an Android firmware image and reversed a pre-installed EngineerMode application to discover a secret dial code that launches it. The application also contained additional development codes that were no longer accessible.
areizen.fr
Published on areizen.fr
While on holiday, I saw someone from my family bought a new tablet named K107. After some investigation, I found many vendors selling this kind of cheap chinese tablet.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the vendor left a hidden engineering menu accessible via a secret dial code and included unused development codes in the app.
What the attacker needed
Physical access to the tablet; firmware image available
How it was found
- Download the firmware for the tablet model.
- Extract the RAR file and convert the Android sparse image to a mountable image using simg2img.
- Mount the image and locate the EngineerMode application in vendor/app.
- Use baksmali to disassemble the odex file, then rebuild the APK with apktool and open it in jadx-gui.
- Inspect the Manifest.xml to find the secret dial code.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
Android firmware is the software that comes pre-installed on a device. The researcher unpacked this software and looked inside a hidden app to find a special phone number that opens a secret menu. They also found other secret codes that were left in the app but no longer work.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.