Debugging against a real restricted LAN surfaced three fixes: - Android blocks app cleartext HTTP by default (targetSdk 36) — the port discovery + reachability were fine (phone curl reached fmr), only the app POST was denied. Added usesCleartextTraffic for this dev tool. - Multi-device: report + receiver are keyed by device (Build.MODEL) so a phone and tablet don't clobber each other; connector connects each. - POST over a VALIDATED internet network (prefer cellular) since the wireless-debug wifi is often a restricted LAN. - Status/notification now show the target beacon URL + which network, per the request to surface what it's connecting to. Verified live: beacon tracks the (frequently rotating) port via mDNS and self-reports the current endpoint within seconds. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
36 lines
1.5 KiB
XML
36 lines
1.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- SPDX-FileCopyrightText: 2026 Echolot contributors
|
|
SPDX-License-Identifier: GPL-3.0-or-later -->
|
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
|
|
|
<uses-permission android:name="android.permission.INTERNET" />
|
|
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
|
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
|
|
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
|
|
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_SPECIAL_USE" />
|
|
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
|
|
|
|
<application
|
|
android:allowBackup="false"
|
|
android:label="Echolot ADB Beacon"
|
|
android:usesCleartextTraffic="true"
|
|
android:theme="@android:style/Theme.Material.Light">
|
|
|
|
<activity android:name=".MainActivity" android:exported="true">
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.MAIN" />
|
|
<category android:name="android.intent.category.LAUNCHER" />
|
|
</intent-filter>
|
|
</activity>
|
|
|
|
<service
|
|
android:name=".BeaconService"
|
|
android:exported="false"
|
|
android:foregroundServiceType="specialUse">
|
|
<property
|
|
android:name="android.app.PROPERTY_SPECIAL_USE_FGS_SUBTYPE"
|
|
android:value="wireless-debug-endpoint-beacon" />
|
|
</service>
|
|
</application>
|
|
</manifest>
|