<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: PhaseHarbor</title>
    <description>The latest articles on DEV Community by PhaseHarbor (@phaseharbor).</description>
    <link>https://dev.to/phaseharbor</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4249205%2F7baeb21f-0665-436e-96d5-05f64aea5b37.png</url>
      <title>DEV Community: PhaseHarbor</title>
      <link>https://dev.to/phaseharbor</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/phaseharbor"/>
    <language>en</language>
    <item>
      <title>Building an Android audio app without the INTERNET permission: live 48 kHz synthesis, no samples, no server</title>
      <dc:creator>PhaseHarbor</dc:creator>
      <pubDate>Tue, 17 Nov 2026 07:44:02 +0000</pubDate>
      <link>https://dev.to/phaseharbor/building-an-android-audio-app-without-the-internet-permission-live-48-khz-synthesis-no-samples-5fcf</link>
      <guid>https://dev.to/phaseharbor/building-an-android-audio-app-without-the-internet-permission-live-48-khz-synthesis-no-samples-5fcf</guid>
      <description>&lt;p&gt;&lt;em&gt;This article was originally published on &lt;a href="https://phaseharbor.app/blog/no-internet-permission/" rel="noopener noreferrer"&gt;phaseharbor.app&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;By Juraj Maslík, solo developer, Zurich. 15 November 2026.&lt;/p&gt;

&lt;p&gt;By day I work on cloud infrastructure. Servers, pipelines, monitoring, the usual. So when I started a side project, I gave myself one slightly contrarian rule: no backend at all. Not a small one, not "just analytics", nothing.&lt;/p&gt;

&lt;p&gt;The result is PhaseHarbor: Sound Sessions, an Android app that generates binaural, monaural and isochronic beats, alternating tones, colored noise and nature-style soundscapes live on the phone. It ships without the &lt;code&gt;android.permission.INTERNET&lt;/code&gt; permission. This post is about what that rule means, how you can check it yourself, and what it forced me to give up.&lt;/p&gt;

&lt;h2&gt;
  
  
  What "no INTERNET permission" actually means
&lt;/h2&gt;

&lt;p&gt;A lot of apps say they "don't call home". That is a promise about behavior, and you have to take the developer's word for it.&lt;/p&gt;

&lt;p&gt;Leaving the permission out of the manifest is a different kind of statement. On Android, an app that does not declare INTERNET cannot open network sockets from its own process. The operating system refuses. No code path can quietly start sending data in a later update either, because adding the permission back would show up in the manifest and on the store's permission details, where anyone can see it.&lt;/p&gt;

&lt;p&gt;I like this because it turns a privacy promise into something structural. I don't have to convince anyone that I am careful with data. The app simply has no way to send it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Verify it yourself
&lt;/h2&gt;

&lt;p&gt;This is the part I care about most, because you should not have to trust me. Because PhaseHarbor is distributed through the store rather than as a standalone APK download, the most direct check is on your own phone over USB with &lt;code&gt;adb&lt;/code&gt; and the Android SDK tools:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# 1. Inspect the installed package directly on the phone&lt;/span&gt;
adb shell dumpsys package app.phaseharbor

&lt;span class="c"&gt;# 2. Or pull base.apk from the phone and read its compiled manifest&lt;/span&gt;
adb shell pm path app.phaseharbor
adb pull /data/app/.../base.apk phaseharbor-base.apk
aapt2 dump permissions phaseharbor-base.apk
&lt;span class="c"&gt;# (or: apkanalyzer manifest permissions phaseharbor-base.apk)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In &lt;code&gt;dumpsys&lt;/code&gt;, check the &lt;code&gt;requested permissions:&lt;/code&gt; block; &lt;code&gt;aapt2&lt;/code&gt; and &lt;code&gt;apkanalyzer&lt;/code&gt; print every permission declared in the manifest directly (for PhaseHarbor: foreground service, media playback, notifications, wake lock, and the app's own non-exported receiver permission). If &lt;code&gt;android.permission.INTERNET&lt;/code&gt; is not in that list, the app cannot go online on its own. For PhaseHarbor, it is not in the list.&lt;/p&gt;

&lt;p&gt;If you prefer something that does not involve a terminal, there are two simpler checks:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The store listing. Under the app's permission details, an app with network access shows "full network access". PhaseHarbor doesn't.&lt;/li&gt;
&lt;li&gt;Airplane mode. Turn it on and use the app. Nothing changes, because nothing depended on the network in the first place.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I would encourage you to run the same check on the other apps on your phone. It is a quick and slightly eye-opening exercise, especially for apps that do something simple like play a sound or show a timer.&lt;/p&gt;

&lt;h2&gt;
  
  
  What leaving out one line changes
&lt;/h2&gt;

&lt;p&gt;Dropping that one permission has knock-on effects across the whole design:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;No ads and no analytics SDKs. They need the network, so there is no point adding them.&lt;/li&gt;
&lt;li&gt;No accounts, no remote config, no feature flags. Whatever ships in the APK is the app.&lt;/li&gt;
&lt;li&gt;No in-app crash reporter. The only crash signal I get is the aggregated, OS-level crash data that the store's developer console shows.&lt;/li&gt;
&lt;li&gt;No licensing server. The app is a paid one-time purchase through the store, and that is the whole business model.&lt;/li&gt;
&lt;li&gt;Updates come only through the store. The app cannot download content, presets or new sounds.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It also means every sound has to come from math running on the device, which is the fun part.&lt;/p&gt;

&lt;h2&gt;
  
  
  Every sound is synthesized live at 48 kHz
&lt;/h2&gt;

&lt;p&gt;There are no audio files in the app. No MP3s, no loops, no recorded rain. Everything you hear is computed in real time at 48 kHz in 32-bit floating point, and a limiter caps sample peaks at -1.0 dBFS across all active layers.&lt;/p&gt;

&lt;p&gt;The good news is that the underlying signals are textbook acoustics. Once you generate the signal yourself, the frequencies shown on screen are the frequencies in the output, and you can show the user exactly what is playing.&lt;/p&gt;

&lt;p&gt;Binaural beats are two pure tones, one per ear. A common example is 211 Hz on the left and 221 Hz on the right: a 216 Hz center with a 10 Hz difference. Neither channel is modulated. The "beat" only exists when the two are compared, which is why this mode needs stereo headphones.&lt;/p&gt;

&lt;p&gt;Monaural beats put both tones in the same channel, so the sum is physically modulated. This is a standard trigonometric identity:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;0.5 · [cos(2π·211t) + cos(2π·221t)] = cos(2π·216t) · cos(2π·5t)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The loudness envelope repeats 10 times per second, and it survives speakers and mono downmixing.&lt;/p&gt;

&lt;p&gt;Isochronic tones are a single tone switched on and off at a steady rate. The general lesson here applies to any audio generator: a hard on/off switch creates an abrupt step, and you hear it as a click. Smooth edges sound much better.&lt;/p&gt;

&lt;p&gt;Alternating tones move a sound between left and right, either as continuous panning or as separate left and right pulses.&lt;/p&gt;

&lt;p&gt;The same principle runs through the whole app. Play, pause, switching presets and moving between parts of a session all fade smoothly instead of cutting hard. When you generate audio yourself, a discontinuity is always your own fault, so I treat every transition as something to fade.&lt;/p&gt;

&lt;h2&gt;
  
  
  Noise and soundscapes without a single recording
&lt;/h2&gt;

&lt;p&gt;Colored noise is well documented. White noise has equal energy per hertz. Pink noise falls by about 3 dB per octave, so it sounds softer and more even. Brown noise falls by about 6 dB per octave and sounds like a deeper rumble. All three are generated live in the app.&lt;/p&gt;

&lt;p&gt;The nature-style layers (gentle rain, forest wind and ocean waves) are procedural as well. They are generated by math in real time, not played from recordings.&lt;/p&gt;

&lt;p&gt;I chose procedural over recorded for two reasons. First, a short loop has a seam, and when you listen quietly and attentively you start to recognize the same droplet coming back every 30 seconds. Second, procedural audio takes up almost no space in the APK, and with no network there is no way to download large sound packs later. The honest trade-off: synthesized rain does not sound identical to a field recording, and I say that openly on the website.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sessions you can see inside
&lt;/h2&gt;

&lt;p&gt;A session is not one static tone. The app has 40 built-in presets: 16 pure tone sessions, 6 noise and nature soundscapes, and 18 multi-stage routines and timers. The Composer lets you build your own multi-segment sessions. You choose the tone type, set frequencies with gradual ramps, layer noise or a soundscape, and optionally add a soft completion chime.&lt;/p&gt;

&lt;p&gt;One small feature I like is Mirror. It copies a segment and swaps its start and end values, so a rise from 200 to 350 Hz becomes a return from 350 to 200 Hz in one tap.&lt;/p&gt;

&lt;p&gt;Every preset also shows its exact settings: carrier frequencies, beat rates and digital levels. In the app this is called the Session Passport. It sits next to a short offline note on what published research does and does not say. If the parameters are just numbers, there is no reason to hide them.&lt;/p&gt;

&lt;h2&gt;
  
  
  Playing for a long time in the background
&lt;/h2&gt;

&lt;p&gt;A session can run for an hour with the screen off, so the app has to behave like a proper media app. You can control playback from the media notification and from Bluetooth controls. Playback also pauses automatically if your headphones disconnect, so the sound doesn't suddenly switch to the phone speaker.&lt;/p&gt;

&lt;p&gt;None of this needs a network. It is all standard platform behavior, which is a nice reminder of how much an Android app can do on its own.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sharing without a server
&lt;/h2&gt;

&lt;p&gt;No network also means no "share link". So sharing works the old way: with files and pictures.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Files. A preset can be exported as a recipe file, saved wherever you choose, and imported again on another phone.&lt;/li&gt;
&lt;li&gt;QR codes. A preset can be shown as a QR code, or copied as plain recipe text and pasted into any messaging app. On the other phone, the Import Recipe dialog turns it back into a preset.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;My rule for sharing is that a recipe contains sound settings only. It never includes listening history, and personal notes are left out. In a full backup, notes are only included if you explicitly choose them.&lt;/p&gt;

&lt;p&gt;Working data stays on the phone and isn't synced to any cloud. Nothing leaves the device unless you export it yourself, and there is a "Delete all local data" button in Settings.&lt;/p&gt;

&lt;h2&gt;
  
  
  Trade-offs
&lt;/h2&gt;

&lt;p&gt;I wouldn't recommend this setup for every app, so here is the honest list.&lt;/p&gt;

&lt;p&gt;What I gave up:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;No cloud sync. If you lose your phone without an exported backup, your custom sessions are gone.&lt;/li&gt;
&lt;li&gt;No remote config, no A/B tests and no online preset catalogue. New presets need an app update.&lt;/li&gt;
&lt;li&gt;Almost no telemetry. I learn about problems from reviews, emails and the aggregated crash data in the store's console, so I have to test more carefully before each release.&lt;/li&gt;
&lt;li&gt;Support is slower to diagnose. I get no automatic logs from your phone; unless you export a local diagnostic summary yourself, I have to ask and you have to describe.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;What I got:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A much smaller attack surface and a privacy story I can explain in one sentence, and that you can verify with one command.&lt;/li&gt;
&lt;li&gt;No accounts and no subscription, just a one-time purchase.&lt;/li&gt;
&lt;li&gt;No servers to run, patch or pay for. As someone who looks after infrastructure for a living, that part is genuinely relaxing.&lt;/li&gt;
&lt;li&gt;An app that works the same in airplane mode, on a train or in a basement.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  A note about the app
&lt;/h2&gt;

&lt;p&gt;PhaseHarbor: Sound Sessions has been available on Google Play since 8 November 2026, with its official public launch on 17 November 2026. If you are curious about the acoustics behind the different beat types, the &lt;a href="https://phaseharbor.app/learn/" rel="noopener noreferrer"&gt;Learn guide&lt;/a&gt; goes deeper. It is an audio app for listening sessions, not a medical device, and it makes no health claims.&lt;/p&gt;

&lt;p&gt;If you build audio on Android or ship apps without network access, I would love to hear how you approach it. You can find me at &lt;a href="https://phaseharbor.app" rel="noopener noreferrer"&gt;phaseharbor.app&lt;/a&gt;, and the app is &lt;a href="https://play.google.com/store/apps/details?id=app.phaseharbor" rel="noopener noreferrer"&gt;on Google Play&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>android</category>
      <category>privacy</category>
      <category>audio</category>
      <category>mobile</category>
    </item>
  </channel>
</rss>
