Commit graph

142 commits

Author SHA1 Message Date
“Frigyes06”
787c7d1f63
Standardized font sizes and fixed selection review popup 2023-12-24 13:56:24 -08:00
B0ney
388fdef53a
Update modal widget to run on iced 0.10.0, remove iced_native 2023-12-25 02:26:20 +05:30
“Frigyes06”
fef6ab8c28
Updated widget in modal.rs 2023-12-25 02:26:19 +05:30
Adhiraj Singh Chauhan
5fb4c2c3b8
fix: errors E0223 and E0308 introduced by updating iced 0.9.0 -> 0.10.0 2023-12-25 02:26:19 +05:30
Frigyes
efcfc29661
0.6.2 release (#75)
* Fixed some spelling in readme

* Updated changelog

* pkg(`com.qualcomm.qcrilmsgtunnel`): change removal and description (#59)

* pkg(`com.google.android.googlequicksearchbox`): improve description (#58)

* docs(changelog): add packages

* Add ADB filter for system packages only

* Reduced startup window size

* 0.6.2 release prep

* fix: change homepage URL to org

Co-authored-by: Scott <131740614+ProtonOSS@users.noreply.github.com>

* Dev update (#80)

* chore(issue-templates): don't allow blank issues

* pkg(`com.samsung.android.providers.contacts`): improve description

* `com.miui.miinput`: Change description and removal type

* (`com.mediatek.duraspeed`): change description

* Make the description clearer

* Add Poco Community app to lists

* (`com.xiaomi.finddevice`): Update removal status

* Add POCO Store to UAD lists

* Add Xiaomi Gallery Editor to UAD lists

* Correct grammar according to suggestions

* Fixed incorrect grammar for other MIUI apps.

* Add installation instructions for more Linux distributions in the README

I added installation instructions for
-Gentoo Linux
-NixOS
-Alpine Linux & FreeBSD
-Fedora Linux

* Update some MIUI app description and removal following suggestions

* Remove unintended spaces

* fixed wrong description for some LG apps

Tested on an LG V30 with latest stock firmware v31a.

Removing task breaks the Calendar app so it is not safe to remove.

Removing eula breaks the HD Audio Recorder app, which has many pro/studio features (such recording in FLAC 24bit/192kHz and more), that's why I changed them to expert,

* updated some lg apps

---------

Co-authored-by: AnonymousWP <50231698+AnonymousWP@users.noreply.github.com>
Co-authored-by: Scott <151531842+ProtonXOS@users.noreply.github.com>
Co-authored-by: Scott <131740614+ProtonOSS@users.noreply.github.com>
Co-authored-by: Revision <152847068+RevisionOSS@users.noreply.github.com>
Co-authored-by: AlbydS <119180144+AlbydST@users.noreply.github.com>
Co-authored-by: mirko93s <21228368+mirko93s@users.noreply.github.com>

* update dev branch

* chore(issue-templates): don't allow blank issues

* pkg(`com.samsung.android.providers.contacts`): improve description

* `com.miui.miinput`: Change description and removal type

* (`com.mediatek.duraspeed`): change description

* Make the description clearer

* Add Poco Community app to lists

* (`com.xiaomi.finddevice`): Update removal status

* Add POCO Store to UAD lists

* Add Xiaomi Gallery Editor to UAD lists

* Correct grammar according to suggestions

* Fixed incorrect grammar for other MIUI apps.

* Add installation instructions for more Linux distributions in the README

I added installation instructions for
-Gentoo Linux
-NixOS
-Alpine Linux & FreeBSD
-Fedora Linux

* Update some MIUI app description and removal following suggestions

* Remove unintended spaces

* fixed wrong description for some LG apps

Tested on an LG V30 with latest stock firmware v31a.

Removing task breaks the Calendar app so it is not safe to remove.

Removing eula breaks the HD Audio Recorder app, which has many pro/studio features (such recording in FLAC 24bit/192kHz and more), that's why I changed them to expert,

* updated some lg apps

* update ci action checkout

---------

Co-authored-by: AnonymousWP <50231698+AnonymousWP@users.noreply.github.com>
Co-authored-by: Scott <151531842+ProtonXOS@users.noreply.github.com>
Co-authored-by: Scott <131740614+ProtonOSS@users.noreply.github.com>
Co-authored-by: Revision <152847068+RevisionOSS@users.noreply.github.com>
Co-authored-by: AlbydS <119180144+AlbydST@users.noreply.github.com>
Co-authored-by: mirko93s <21228368+mirko93s@users.noreply.github.com>

---------

Co-authored-by: Anonymoussaurus <50231698+AnonymousWP@users.noreply.github.com>
Co-authored-by: Scott <131740614+ProtonOSS@users.noreply.github.com>
Co-authored-by: Scott <151531842+ProtonXOS@users.noreply.github.com>
Co-authored-by: Revision <152847068+RevisionOSS@users.noreply.github.com>
Co-authored-by: AlbydS <119180144+AlbydST@users.noreply.github.com>
Co-authored-by: mirko93s <21228368+mirko93s@users.noreply.github.com>
Co-authored-by: jxdv <virgoj@protonmail.com>
2023-12-13 17:39:32 +01:00
“Frigyes06”
234acbac9b
Merge branch 'main' of https://github.com/Frigyes06/universal-android-debloater into iced-version-bump 2023-11-03 13:19:40 -07:00
jxdv
1a6315bd08 update links in gui 2023-11-03 10:52:17 +01:00
jxdv
ac1dedee0a update links in core 2023-11-03 10:51:00 +01:00
deepsource-autofix[bot]
48e87f20fa
style: format code with Rustfmt
This commit fixes the style issues introduced in 846d1b2 according to the output
from Rustfmt.

Details: https://github.com/Frigyes06/universal-android-debloater/pull/26
2023-10-31 05:18:05 +00:00
“Frigyes06”
020f10dd85
Bumped dependencies 2023-10-30 22:15:16 -07:00
“Frigyes06”
7b08243e1a
removed -s filter from pm list 2023-10-28 13:05:32 -07:00
“Frigyes06”
154880e3d7
uad_list source url updated 2023-10-28 12:16:30 -07:00
“Frigyes06”
85eb22ccbb
Updated in-app links 2023-10-26 19:13:54 -07:00
“Frigyes06”
1290a353a4
Bumped version, modified update url 2023-10-26 19:04:39 -07:00
“Frigyes06”
696acdebf3
Downgrade and error fixes 2023-10-26 13:22:53 -07:00
w1nst0n
11f27c671c
fix: action button error when multi_user_mode is disabled
Regression introduced in 5fa6fea353
(No public release affected)
2023-04-10 22:41:13 +02:00
Himadri Bhattacharjee
fd75b23e89
refactor: use more idiomatic expressions / DRY (#690)
- Uses short circuit logic for loading configuration file
- Only checks for windows as the target OS when running ADB shell commands since it needs the special 0x08000000 creation flag
- Parses shell output into string before checking success status since the output is used unconditionally
- Creates helper function user_flag when an additional --user argument has to be supplied to pm
- Uses unwrap_or_else when we are only concerned with applying a function to an error

---------
Co-authored-by: w1nst0n <55300518+0x192@users.noreply.github.com>
2023-04-10 14:01:57 +00:00
w1nst0n
7fbec57072
fix: missing conditional compilation flag
Regression from 1df9710e1cd43e3fd7335989325a37911c71b5c8
2023-04-10 11:45:18 +02:00
Amaan Qureshi
68092ff987
refactor: apply extra clippy lints suggestions (#673)
Cherry picking of lints from clippy::pedantic / clippy::nursery / clippy::unwrap_used / clippy::expect_used

Notable changes :
- consideration of all clippy::use-self lints
- replaced sort() by unstable_sort()
- use of map_or_else() when appropriate 
- replaced "".to_string() by String::new()
- replaced collect() + len() by count()

The code base now passes all the clippy::nursery lints

---------
Co-authored-by: w1nst0n <w1nst0n@keemail.me>
2023-04-10 09:33:12 +00:00
w1nst0n
69235a9aa5
chore: update dependencies
- Finally fixed the Dependabot alerts for a CVE not actually impacting UAD
https://rustsec.org/advisories/RUSTSEC-2020-0071
- Fixed new breaking changes from Iced

Note: UAD is not vulnerable to https://rustsec.org/advisories/RUSTSEC-2021-0145.html
2023-04-09 17:27:19 +02:00
w1nst0n
588e310882
fix: wrong recap counter
(no public release impacted)
2023-04-09 15:42:25 +02:00
w1nst0n
bf12bf6a5b
fix: wrong panel displayed when no device is connected
Regression introduced in 761fb07f56
No public release affected
2023-04-01 17:03:31 +02:00
w1nst0n
fa1669b509
fix: padding in the package description panel
just a small UI change
2023-04-01 15:49:31 +02:00
w1nst0n
e467fc7366
chore: update dependencies
catch up with all the breaking changes of Iced main branch
2023-03-18 19:56:20 +01:00
w1nst0n
5fa6fea353
feat: add an recap modal window (#565)
A modal window will now appear to give you a recap of the selected packages before applying the changes.

A complete overhaul of the way UAD handles package selection was required to implement this feature.
2023-03-18 18:15:31 +00:00
w1nst0n
cc6406e1f8
refactor: fix new clippy lints in rust 1.68
impl Default can be derived for enums
2023-03-18 17:05:20 +01:00
w1nst0n
9f01eed2b5
fix: selection counter not resetting after pressing the refresh/reboot btn
How is it possible that no one has reported this bug in all this time? :)
2023-02-23 00:40:48 +01:00
w1nst0n
f6263d663f
refactor: simplify the package state change logic
- Improve code quality and readability
- Use `apply_pkg_state_commands()` like the backup/restore feature
- This will make easier to implement #258
2023-01-31 16:38:49 +01:00
w1nst0n
a73e0e5577
fix: package state not being updated after action
This fixes the regression introduced in 5ea6177 (no public release affected)

This commit also prevents UAD to try interacting with a protected user (to avoid error spam in the logfiles)
2023-01-23 21:29:19 +01:00
w1nst0n
49712b0ad3
chg: improve backup/restore error messages
- Remove duplicated text
- Update error message when trying to restore a backup when the phone is not connected
- Add the backup name in the error message when trying to restore a deleted backup
2023-01-14 23:20:34 +01:00
w1nst0n
ae5e25377d
chg: round off the corners of the scrollbars
set border_radius to 5
2023-01-14 23:11:01 +01:00
w1nst0n
d104054074
chore: upgrade dependencies
fix breaking changes
2023-01-14 23:11:01 +01:00
nozwock
44fe67fe6e
refactor: replaces drain_filter (unstable) -with retain (stable) (#458)
`drain_filter` was the only unstable feature used in the code. You can now build UAD with Rust Stable.
 
drain_filter is not going to be stabilized anytime soon. The retain method is actually perfectly fine for our usecase. It also operate in place. The benefit of drain_filter was that the inner closure can be mutable. We don't have a need for this.

Co-authored-by: w1nst0n <55300518+0x192@users.noreply.github.com>
2022-12-18 15:41:34 +00:00
w1nst0n
761fb07f56
feat: warn the user when a work profile is detected (#450)
- display a warning message when switching to a work profile user
- display unavailable work profile users in the settings
2022-12-17 16:24:56 +00:00
nozwock
fbb374d4c3
refactor: improve error handling (#453)
Removed many unwrap calls by propagating the error to the caller

This is the first external code contribution! Big up to @nozwock who is learning Rust ! :)

Co-authored-by: w1nst0n <55300518+0x192@users.noreply.github.com>
2022-12-07 22:02:00 +00:00
w1nst0n
10924c74aa
chore: fix new clipy lints
Captured identifiers in format strings is really nice
https://blog.rust-lang.org/2022/01/13/Rust-1.58.0.html
2022-12-07 22:40:57 +01:00
w1nst0n
5ea61774cb
fix: UAD crash when interacting with work profiles (#448)
On recent Android devices, you can't interact with the user of the work profile. Any adb commands involving this user will fail with a `Shell does not have permission to access user ${user}.`

UAD was wrongly assuming stuff and tried to access non-existent data, thus causing a crash.
2022-11-20 01:12:04 +00:00
w1nst0n
e372c7c532
fix: restoring a backup was only affecting user 0 2022-11-20 01:21:34 +01:00
w1nst0n
dac6e5bfa8
chore: update dependencies 2022-11-19 00:24:52 +01:00
w1nst0n
2a442f97fa
feat: backup/restore the state of a device (#447)
Quick and easy way to save the state of all the system apps on a device and restore it.

This feature is available in the UAD settings.

Note: the `Export current selection` button and the non-intuitive auto import selection (see https://github.com/0x192/universal-android-debloater/issues/192) have been replaced by this new backup/restore system.
2022-11-18 00:28:00 +00:00
w1nst0n
783835bd53
chg: prevent uad_lists.json fields to be null (#296)
This will allow better unit test for the debloat list file
All fields should be mandatory and serde doesn't return any error on deserialization if an field (description, dependencies, neededBy and labels) is missing.
2022-11-14 01:31:40 +01:00
w1nst0n
befeb0e5c2
chore: fix new clippy lint 2022-11-11 19:33:09 +01:00
w1nst0n
5dc7093c5c
fix: auto reload in offline mode after remote UAD list download timeout
In offline mode, after clicking on the `no internet` button, UAD would reload with an empty list after the end of the remote UAD lists download timeout.

Regression introduced in 9b564d3 (no public release affected)
2022-10-22 16:18:14 +02:00
w1nst0n
41e437a4e9
chore: update dependencies 2022-10-22 15:51:51 +02:00
w1nst0n
b2ecc0ea81
refactor: No need to use PackageRow with action_handler
- Added a new lightweight struct (CorePackage) with the minimal information needed to perform adb commands
- Added trait From<&PackageRow> for CorePackage

This change is motivated by the need to call `action_handler` for the backup/restore feature without using PackageRow.
2022-09-25 17:32:43 +02:00
w1nst0n
9b460add41
refactor(theme): use the new color!() macro of the Iced library
This macro is a sweet replacement of the hex_to_color() function
2022-09-24 14:25:17 +02:00
w1nst0n
56a96d766c
change(settings): redesign of the settings panel (#389)
Make a good UI is hard. This new look should be much better :)
2022-09-22 21:09:13 +00:00
w1nst0n
ab10511513
chore(deps): switch back to iced main branch
My pull request has been merged : https://github.com/iced-rs/iced/pull/1425
2022-09-22 01:04:16 +02:00
w1nst0n
f67e139128
refactor(theme): use enum instead of struct
This simplifies the code and enum seems more natural to use in this case. No need to use a dedicated name field when you can implement std::fmt::Display on the enum
2022-09-10 15:27:38 +02:00
w1nst0n
e094d07017
fix: device information not being logged without selecting a device
Regression introduced in 9b564d3
2022-09-07 20:06:14 +02:00