Skip to content

Conversation

@Dan8Oren
Copy link
Owner

@Dan8Oren Dan8Oren commented Dec 4, 2025

No description provided.

# 🔍 Menu Section - Debug Recording | Feedback | About

### This release focuses on making it easier to troubleshoot issues and
provide feedback.

### 🐛 Debug Logging Tools

1. **Start Recording**: Tap the menu (⋮) → "Debug Recording"
2. **Reproduce Your Issue**: Use your phone normally while the issue
occurs
3. **Stop & Share**: Tap menu again → "Stop & Share Debug Logs"
4. **Send Logs**: Share via email, GitHub, or any app you prefer
* If MicLock crashes while debug recording is active, logs are
automatically saved!,
the app prompts to share the logs when opened after a crash.

#### What Gets Captured

- ✅ **App Logs**: Only MicLock's logs (no other app data)
- ✅ **System Audio State**: Audio routing, call state, media sessions
- ✅ **Device Info**: Manufacturer, model, Android version

```
miclock_debug_logs_YYYYMMDD_HHMMSS.zip
├── collection_report.txt     (what succeeded/failed)
├── app_logs.txt              (MicLock logcat output)
├── dumpsys_audio.txt         (audio routing state)
├── dumpsys_telecom.txt       (call state - critical for call issues)
├── dumpsys_media_session.txt (media player state)
├── dumpsys_audio_policy.txt  (audio policy decisions)
├── dumpsys_audio_flinger.txt (low-level audio HAL)
└── device_info.txt           (device and app metadata)
```

### 📢 Feedback & About

#### 1. Send Feedback
New "Feedback" menu option makes it easy to:
- 🐞 **Report a Bug**: Something not working right? Let us know.
- 💡 **Request a Feature**: Have an idea to make MicLock better?

Both options open GitHub with pre-filled templates to make reporting
easy!

#### 2. About Screen with some information.

> [!IMPORTANT]
> **Action Required for Update (APK / GitHub Users Only)**
>
> *Note: If you installed via Google Play, you can ignore this warning.
Your app will update automatically.*
>
> If you have a previous `.apk` version of the app installed manually,
you must **delete it** before installing this update.
>
> Due to a necessary security update in our signing keys, this version
cannot be installed directly over the old one. If you try to update
normally, the installation may fail with an error.
>
> ### How to update:
> 1. **Uninstall** the current version of the app from your phone.
> 2. **Download** the new `.apk` file below.
> 3. **Install** as normal.
# 🐛  Android 15+ Compliance & Permission Handling

#### 1. Bug Fix: Android 15+ Foreground Service Crash 🚨

Bug: App crashed on Android 15+ when starting from boot (blocked Google
Play publication)
Fix: Implemented WorkManager with 5-second delay to comply with
foreground service restrictions
Files: Added BootServiceWorker.kt, updated BootCompletedReceiver.kt and
MicLockService.kt

#### 2. Bug Fix + New Feature:  Permission Handling

Bug: App was stuck in a loop and unfunctional when no permission was
given (both notifications or microphone)
Fix: 
- removed the notification permission checks as it's optional and not
necessary for core logic.
- Added state flags (isShowingPermissionDialog,
hasRequestedNotificationPermission)
  - moved permission checks to onCreate() only
- App now shows a dialog when permission is missing prompt the user to
grant it and preventing the usage of the app.
Files: MainActivity.kt

#### 3. Modification due to changes: Quick Settings Tile Requires
Notifications 🔔

Bug: Tile unusable without notification permission (should be optional)
Fix: Updated hasAllPerms() to only require microphone permission, tile
now works without notifications
Files: MicLockTileService.kt

#### 4. Bug Fix: MainActivity exits from recents after tile start

Bug: Reopening the app from recent apps caused an immediate exit after
it was started via the Quick Settings tile
Fix: Updated startMicLockFromTileFallback to keep the activity open if
the service is already running (not call `finish()`).

#### Implementation Details
 - WorkManager: Added androidx.work:work-runtime-ktx:2.9.0 dependency
- Permission Separation: Microphone (required) vs Notifications
(optional)
- Improved UX: Clear dialogs, "Try Again" options, Settings deep-linking
- State Management: Proper lifecycle handling to prevent loops and leaks
@Dan8Oren Dan8Oren merged commit 0d3969a into main Dec 4, 2025
4 checks passed
@Dan8Oren Dan8Oren deleted the releases/version-1.1.2 branch December 4, 2025 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants