Commit graph

74 commits

Author SHA1 Message Date
Rudxain
b8abd7d27a docs(utils): doubt about Command::output encoding on Windows 2025-03-06 02:16:13 -04:00
Rudxain
d10e4dcc3a perf(utils): 1 fmt in generate_backup_name 2025-03-06 02:16:13 -04:00
Rudxain
d0f190bf2a docs(lint): add reason for generate_backup_name to take ownership 2025-03-06 02:16:13 -04:00
Rudxain
b71608a95f ci(lint): enable clippy::unwrap_used only for some modules 2025-03-06 02:16:13 -04:00
Rudxain
14ed2dd284
style: cargo fmt 2025-02-22 13:28:20 -04:00
Rudxain
8e8395f1d9
docs(adb): add _sys to list_packages* names 2025-01-23 21:43:26 -04:00
Rudxain
4f484ae7e5
refactor: undo questionable with_capacity usage
Also forgot to revert another `phone`->`device` rename
2025-01-23 20:26:56 -04:00
Rudxain
0f48489e5c
docs(ADB): readable names, and better comments 2025-01-23 19:41:37 -04:00
Ricardo Fernández Serrata
ef160366c7
Merge branch 'main' into refactor/adb-api 2025-01-20 16:15:53 -04:00
Rudxain
60ec9f3f1a
refactor: define fn to generate backup file-name 2025-01-16 17:59:31 -04:00
Rudxain
66021c2828
chore: fix compile err by splitting backup name and format strings as 2 consts 2025-01-16 17:09:02 -04:00
Adhiraj Singh Chauhan
d14ed459f7
refactor: extract UNINSTALLED_PACKAGES_FILE_NAME_FORMAT into a const 2025-01-16 17:08:55 +05:30
Rudxain
5e27a52481
refactor(utils): less dupes in open_url 2024-12-15 23:25:39 -04:00
Rudxain
9aeba115a6
refactor: user_id: u16 not u: User 2024-12-15 20:56:39 -04:00
Rudxain
4ec1acd769
refactor: replace hashset_system_packages by new API 2024-12-15 20:13:50 -04:00
Rudxain
240dde1a97
refactor: create adb module, and add **LOTS** of docs 2024-12-14 18:21:04 -04:00
Rudxain
a566733df0
refactor: add PackId, replace list_all_system_packages by list_packs 2024-12-14 12:56:48 -04:00
Rudxain
30359cb684
refactor: use AdbCmd, finish list_packs and add list_users 2024-12-08 12:59:50 -04:00
Rudxain
ac056ddafa
perf: Optimize *system_packages and improve list_all_system_packages API 2024-12-08 04:49:57 -04:00
Rudxain
fed1580e20
refactor: avoid set_var by specifying serial 2024-12-07 09:20:17 -04:00
Rudxain
c0fa888a5a
chore: derive Copy for Error 2024-12-07 02:44:44 -04:00
Rudxain
8bead68916 style: rm unused imports 2024-09-24 18:28:02 -04:00
Rudxain
8a80cdc921 refactor(set_var-serial): define set_adb_serial 2024-09-24 18:05:19 -04:00
Ricardo Fernández Serrata
b50d7af4b8
refactor(linting): fix warnings from #537 (#578)
* refactor(apply-lints): `cargo clippy --fix`

* style: format code with Rustfmt

This commit fixes the style issues introduced in 7c04d15 according to the output
from Rustfmt.

Details: https://github.com/Universal-Debloater-Alliance/universal-android-debloater-next-generation/pull/578

* style(save): call unqualified `Ok`

* style(sync): inline fmt args on `info!`

* style(theme): properly separate hex colors, `allow` `match_same_arms`

* refactor(list-view): `allow` some lints, dedupe text widget

* refactor(list-view): fix 1 `if_not_else`

* fix(utils): `setup_uad_dir` no longer takes `Option`

Also more logging and error handling

* refactor(list-view): `export_selection` `Button` built with common branch

* fix(list-view): fix all warns in 1 file, refactor, err handling, etc...

* style: format code with Rustfmt

This commit fixes the style issues introduced in 49cfa27 according to the output
from Rustfmt.

Details: https://github.com/Universal-Debloater-Alliance/universal-android-debloater-next-generation/pull/578

* refactor(lints): `allow`, `expect`, and apply lints. factor `uad_lists.json` into var
Also:
- factors-out the List name into a `const`.
- Converts some regular comments into docs.
- use `reason` as a better alternative to comments.

* docs(name): concise description of `NAME`

* style(theme): apply suggestion from review

---------

Co-authored-by: Rudxain <rudxain@localhost.localdomain>
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
2024-09-14 16:13:05 +02:00
Rudxain
f78082d679 refactor(name): define app NAME 2024-09-04 02:04:50 -04:00
Frigyes
2bfdb10c01
Merge pull request #531 from Rudxain/feature/auto_theme
feat(theme): follow system theme by default
2024-07-10 15:49:37 +00:00
Rudxain
e40951eec5 refactor(theme): string_to_theme is more correct 2024-07-08 13:43:48 -04:00
Frigyes Erdosi Szucs
76aba1e548
Auto by default 2024-07-08 13:13:51 +02:00
Rudxain
2e44eefef5 refactor(User): no borrows, because Copy 2024-07-04 16:22:05 -04:00
Ed B
4e954c0624 feat(backup): add ability to export uninstalled packages with their description
- changed export file to csv

 - silenced clippy error for now (dead code), until fixed or found solution
2024-07-03 00:57:12 +03:00
Ed B
38522e0579 feat(backup): add ability to export uninstalled packages with their description
- fixed some deepsource issues
2024-06-30 23:30:05 +03:00
edgy-b
2b9b7cb81c
Merge pull request #434 from Universal-Debloater-Alliance/feat/custom-backup
feat: add ability to customize backup folder
2024-05-04 08:33:24 +00:00
Ed B
f7ca3071f6 feat(backup): re-add export selection to text file
- added back possibility to export current selection to txt file

 - on successful export show modal
2024-04-29 02:35:14 +03:00
Ed B
7f25afc4b7 Merge conflict fix 2024-04-28 19:34:08 +03:00
Ed B
6931fb422f feat: add ability to customize backup folder
- added setting for back up folder

 - added pre-selected icons when importing icons.json to icommon

 - added Backup / Restore category when device is connected
2024-04-28 17:08:41 +03:00
Himadri Bhattacharjee
11e386dc3c
doc: add documentation to serial env var constant 2024-04-28 10:40:02 +05:30
Himadri Bhattacharjee
39cb07a012
codecov: move serial environment variable name into constant 2024-04-28 10:33:39 +05:30
Anonymoussaurus
b48ac872cc
style: remove redundant spaces and fix misc typos 2024-03-31 13:15:36 +02:00
Himadri Bhattacharjee
17a6656f07
feat: make uad-ng have key value pair for directly building hashmap
chore: update list to reflect new packages

tests: fix tests for parsing json file

lint: cargo clippy
2024-02-24 01:23:42 +05:30
Anonymoussaurus
9760200a06
Merge pull request #133 from Universal-Debloater-Alliance/122-Change-default-thame-to-Dark
feat(ui): change default theme to Dark
2024-01-29 09:49:31 +01:00
Himadri Bhattacharjee
8f66647ad2 refactor: use if-let binding for getting package attributes 2024-01-05 10:23:36 +05:30
Adhiraj Singh Chauhan
a283202c9c
fix: cache/log directory was mistakenly changed from uad -> uad-ng 2024-01-04 07:39:12 +05:30
“Frigyes06”
461eaa61a1 Changed default theme 2024-01-01 21:38:00 +01:00
AnonymousWP
17b18c4ca7 feat: rename project name to Universal Android Debloater New Generation (UAD-ng) 2024-01-01 21:35:04 +01: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
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
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
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
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
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