Wasted v2.0.0 with P2P Remote Control and Android 14+ Device Owner Setup#84
Open
anonfaded wants to merge 10 commits into
Open
Wasted v2.0.0 with P2P Remote Control and Android 14+ Device Owner Setup#84anonfaded wants to merge 10 commits into
anonfaded wants to merge 10 commits into
Conversation
…e service permissions Co-authored-by: Copilot <copilot@github.com>
…ctivity Co-authored-by: Copilot <copilot@github.com>
…ance Co-authored-by: Copilot <copilot@github.com>
- Implemented DeviceControlFragment to manage individual connected devices, including lock and reset functionalities. - Created layout for fragment_p2p_network.xml to display device settings and peer management options. - Updated navigation menu to include P2P Network option. - Modified device_admin.xml to support transfer ownership policy. - Enhanced build.gradle for cleaner build directory handling. - Introduced build.sh script for streamlined build and deployment process across multiple devices. Co-authored-by: Copilot <copilot@github.com>
- Added ShizukuManager to manage Shizuku lifecycle and commands. - Created ShizukuShell to execute commands with ADB-level privileges. - Updated P2PNetworkFragment to include Device Owner setup card and actions. - Enhanced user guidance for pairing and setup processes. - Introduced protection level indicators in the main fragment layout. - Updated strings.xml for new UI elements and messages. - Refactored layout files to accommodate new setup and protection cards. Co-authored-by: Copilot <copilot@github.com>
- Updated AndroidManifest.xml to use new foreground service permission - Added P2P settings to Preferences for enabling/disabling P2P - Modified Utils to manage foreground service based on P2P status - Improved P2PController to handle start/stop logic - Updated P2PNetworkFragment to manage UI and state for P2P settings - Enhanced SettingsSyncManager to handle local settings asynchronously - Refactored ForegroundService to manage P2P lifecycle - Added UI elements for P2P settings in fragment_p2p_network.xml Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@x13a Hey. I've fixed a critical feature which was broken on Android 14+ devices that you mentioned in README.md.
TL;DR: Now the Wasted app works on all latest Android versions without issues. Tested on Android 17-beta.
Below is the summary and all details, along with pictures of the whole setup working. I've released v2.0.0 of Wasted on my fork which you can use to test the features: https://github.com/anonfaded/Wasted/releases/tag/v2.0.0
Summary
New P2P network for remote factory reset over local Wi-Fi. Android 14+ Device Owner setup enables full reset capability. Fixed reset on Android 14+ (now uses
wipeDevice()API). Tested on Pixel 7 Pro (Android 17-beta).What's New
1. P2P Network (New)
2. Device Owner Setup (Android 14+ Fix)
WastedDevice Owner)Technical Details
P2P Network
TLS socket connections on port 9876 with mDNS discovery. Remote reset messages delivered with ACK tracking.
Device Owner Setup Flow
dumpsys user; show to user if founddumpsys account list; show to user if founddpm set-device-ownervia Shizuku once clear (persists, Shizuku no longer needed after)Testing
Verified on Pixel 7 Pro (Android 17-beta):
wipeDevice())Backward Compatibility
No breaking changes:
wipeData()unchangedwipeDevice()(fixed reset support)Verification Media