- C99 port of AudioCompressor (libutun_lite/audio_compressor.h/c) - Voice recorder: PCM buffer + compressor + Opus encode + block splitting + uasync send - Attachment sender: file splitting into blocks + uasync send - Bridge API + JNI: voice start/feed/stop/cancel, attachment send, Opus decode for playback - Kotlin: AudioRecorderManager (AudioRecord + JNI feed), AudioPlayer (AudioTrack + JNI decode) - UI: PTT button with press-to-talk, attach button with file picker, recording overlay - Message display: voice messages (play button), file attachments (icon + name) - Settings: Opus preset selector (Low/Standard/High), compressor toggle - AndroidManifest: RECORD_AUDIO, storage permissions
36 lines
1.5 KiB
XML
36 lines
1.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
|
|
|
<uses-permission android:name="android.permission.INTERNET" />
|
|
<uses-permission android:name="android.permission.CAMERA" />
|
|
<uses-permission android:name="android.permission.RECORD_AUDIO" />
|
|
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
|
|
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC" />
|
|
<uses-permission android:name="android.permission.READ_MEDIA_AUDIO" android:minSdkVersion="33" />
|
|
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" android:maxSdkVersion="32" />
|
|
|
|
<application
|
|
android:name=".ChatApplication"
|
|
android:allowBackup="true"
|
|
android:label="uTun Chat"
|
|
android:supportsRtl="true"
|
|
android:theme="@style/Theme.UTun">
|
|
|
|
<activity
|
|
android:name=".MainActivity"
|
|
android:exported="true"
|
|
android:configChanges="orientation|screenSize|screenLayout|keyboardHidden"
|
|
android:windowSoftInputMode="adjustResize">
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.MAIN" />
|
|
<category android:name="android.intent.category.LAUNCHER" />
|
|
</intent-filter>
|
|
</activity>
|
|
|
|
<service
|
|
android:name=".headless.HeadlessService"
|
|
android:exported="false"
|
|
android:foregroundServiceType="dataSync" />
|
|
</application>
|
|
</manifest>
|