Read the Android manifest before you open a proxy
Most Android pentest write-ups start with a proxy and a hooking framework. The manifest is a faster place to begin, and it is already on your disk once you have the APK. Unpack the app apktool d app.apk -o
Most Android pentest write-ups start with a proxy and a hooking framework. The manifest is a faster place to begin, and it is already on your disk once you have the APK.
Unpack the app
apktool d app.apk -o app_out
cat app_out/AndroidManifest.xml
apktool turns the binary manifest into readable XML. Nothing runs yet. You are reading what the developer declared.
Check one: debuggable
Search the application tag for android:debuggable. If a release build sets it to true, this works on a normal device:
adb shell run-as com.example.shop
ls databases shared_prefs
run-as only works for debuggable apps, which is why the flag matters. You land in the app's private data directory with no root. Local SQLite files, preferences and cached tokens are readable. Finding this takes seconds and it is a legitimate report line: a release build should not ship it.
Check two: exported components
Search for android:exported="true". Each activity, service, receiver and provider with that value can be called by any other app on the device.
Write the list down, then test each entry:
adb shell am start -n com.example.shop/.AdminActivity
Ask the same question every time. Does this screen check that the user is logged in? Does it show data a stranger should not see? For content providers, query the URI and read what comes back.
An exported component is only a lead. The launcher activity is meant to be exported, and plenty of others are fine. Your job is sorting the ones that should have been private from the ones that were meant to be public.
Content providers deserve their own pass
Providers are the exported component people forget. A provider declares URI authorities, and an exported one can be queried by any app:
adb shell content query --uri content://com.example.shop.provider/orders
If rows come back without a login, you have data exposure with no exploit involved. Also check android:grantUriPermissions and whether the provider enforces a read permission. A provider that is exported but guarded by a signature-level permission is a very different finding from one guarded by nothing, so record the permission string next to each entry in your list.
Backups and cleartext
Two more attributes are cheap to check while the file is open. android:allowBackup="true" means app data can be pulled through backup tooling on some setups, so note it and test what ends up in the backup. android:usesCleartextTraffic="true" tells you the app may speak plain HTTP, which is worth knowing before you set up a proxy.
What this gets you
A short, concrete list of entry points and one yes or no on the debuggable flag, before you have configured any tooling. It also tells you where a proxy or Frida will earn its time later.
Go further
If you would rather follow a structured path, the Android app pentesting book is a 314-page PDF with 12 guided labs, two independent assessments, the ShopLab training kit and solutions. I have only read the product description, so check the page for the exact contents. For the Linux and shell side you will use alongside adb, the Linux hacking book covers Bash and Nmap labs.
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.