DEV Community

Cover image for My budget app has no INTERNET permission. Here's what that costs.
Yogin Parmar
Yogin Parmar

Posted on Edited on

My budget app has no INTERNET permission. Here's what that costs.

I'm building DailyBudget, an Android app that reads bank SMS on the phone and turns a salary into one number: what you can spend today. It has no INTERNET permission. The manifest opens with a comment saying so:

<!-- No INTERNET permission on purpose: financial data never leaves the device. -->
Enter fullscreen mode Exit fullscreen mode

That one missing line shapes almost every engineering decision in the app. Here's what it costs, what it doesn't protect against, and how you can check any app yourself.

Why go this far

Bank SMS are a diary. Salary, EMIs, rent, the food order at 2am, which shop you were in on Saturday. Many money apps that read them send them to a server to categorise spends, because server-side parsing is faster to ship and easier to fix.

I wanted a stronger promise than "we encrypt it" or "we don't sell it". With no INTERNET permission, the app itself can't open a socket. You don't have to trust my privacy policy. You can check the permission list.

Check the final APK, not the manifest you wrote

The manifest in src/main is only half the story. Libraries ship their own manifests and Gradle merges them in. Any dependency could add INTERNET and you'd never see it in your own file.

So I check the built release APK:

aapt2 dump permissions app/build/outputs/apk/release/app-release.apk
Enter fullscreen mode Exit fullscreen mode

Output for DailyBudget:

uses-permission: name='android.permission.RECEIVE_SMS'
uses-permission: name='android.permission.READ_SMS'
uses-permission: name='android.permission.POST_NOTIFICATIONS'
uses-permission: name='android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS'
uses-permission: name='android.permission.RECORD_AUDIO'
uses-permission: name='android.permission.WAKE_LOCK'
uses-permission: name='android.permission.ACCESS_NETWORK_STATE'
uses-permission: name='android.permission.RECEIVE_BOOT_COMPLETED'
uses-permission: name='android.permission.FOREGROUND_SERVICE'
Enter fullscreen mode Exit fullscreen mode

No INTERNET. The last four came from WorkManager, which runs the 9am and 10pm summaries. ACCESS_NETWORK_STATE looks alarming but only lets the app ask whether a connection exists. It can't send anything.

If I ever add a library that pulls in INTERNET, this check catches it before a release goes out.

What it costs

No crash reporting. No Crashlytics, no Sentry. When something breaks on someone's phone, I find out only if they tell me. The project's own rules file says it plainly: don't add analytics, crash reporting or network libraries.

No analytics. I can't see which screens people use or where they drop off. Every product decision comes from what people tell me.

No cloud sync. Change phones and your history doesn't follow you. Backup is off too (android:allowBackup="false"), so it doesn't quietly end up in a cloud backup either.

No server-side fixes. The SMS parser runs on the phone. If a bank changes its message format, the fix has to ship as an app update. To keep that from hurting, every bank pattern lives in one file and every format has a test fixture. I ran about 1,800 of my own bank SMS through the parser, and the roughly 45 formats in them are now redacted fixtures. There are 73 unit tests in total.

Some features need a workaround. The "Ask" tab takes voice input, which normally means a cloud speech API. Instead the app hands audio to the phone's own speech recognition service, so this app still never touches the network.

What it doesn't protect against

I want to be precise about this one, because "can't go online" is easy to overclaim.

Without INTERNET the app can't make network calls itself. Data can still leave the phone another way: Android lets apps hand data to other apps through intents. If I wrote code that opened a browser with your balance in the URL, or offered a share sheet, another app could send it. What the missing permission removes is the easy, invisible path: no SDK or library can phone home on its own. Any hand-off to another app is code I'd have to write on purpose, and it would show up in a review.

So the honest promise is: no internet permission, and nothing uploaded by the app.

The part that's still open

Crash reports are the problem I haven't solved. Options I'm weighing:

  1. Write crashes to a local file and add a "Send crash log" button that opens the user's email app with the log attached. User-initiated, visible, no network code in my app.
  2. A "Copy debug info" button for people to paste into a chat or a form.
  3. Ship more defensively: more tests, slower releases, a beta channel of people who'll actually report bugs.

Option 1 feels right, but it depends on users bothering to press the button.

Why this matters for the product

The product idea is one number a day instead of twelve budget categories. Privacy is what might get someone who's nervous about giving an app their bank SMS to try it anyway.

If you've shipped an app with no network access, how did you handle crash reports? I'd like to hear what actually worked.


How to check the permission list yourself: dailybudget.dpdns.org/privacy

Top comments (4)

Collapse
 
userxnom profile image
Abdullah Naseer •

The aapt2 check on the built APK is the part that makes this convincing — checking the manifest you wrote would miss exactly the merged-manifest case you describe, where a dependency quietly pulls INTERNET in. On crash reports, I would go with option 1: write the crash to a local file and offer a send button that opens the user's email app. It keeps the no-network promise intact, and the people who hit a real crash are the ones most likely to actually press the button. Option 3 helps too, but it never replaces hearing about the crash in the first place.

Collapse
 
yogin_parmar profile image
Yogin Parmar •

"The people who hit a real crash are the ones most likely to press the button" is the argument I was missing. That tips it toward option 1 for me. Thanks for reading closely enough to catch the merged-manifest bit, that was the part I was least sure anyone would care about.

Collapse
 
oliverweinhold profile image
Oliver Weinhold •

If it's on Google Play, check Android vitals in the Play Console before building anything. Crashes and ANRs from users who opted into sharing diagnostics with Google show up there with stack traces, and your app needs zero network code for it. Not full coverage, but free, and the no-INTERNET promise stays intact.

Collapse
 
yogin_parmar profile image
Yogin Parmar •

I didn't know vitals worked with zero network code in the app, thanks. It isn't on Play yet (I sideload it on my own phone for now), but this is a strong argument for the Play route: crash and ANR data without touching the no-INTERNET promise. Adding it to the plan.