Commit graph

307 commits

Author SHA1 Message Date
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
12c71c908a
fix: typo breaking the json file
gmrblbl
2023-04-01 18:48:29 +02:00
bestplayerbot
04ba4d6cb1
pkg: update com.samsung.android.bluelightfilter (#470)
Using the sunrise/sunset option uses the ACCESS_FINE_LOCATION permission. It's better to program the activation of the filter according to the time

Note: reducing blue light can prevent eyestrain and other health issues. See https://www.webmd.com/eye-health/blue-light-reduce-effects

---------
Co-authored-by: Seojoon You <96731476+botthebestplayerintheworld@users.noreply.github.com>
Co-authored-by: AnonymousWP <50231698+AnonymousWP@users.noreply.github.com>
Co-authored-by: w1nst0n <55300518+0x192@users.noreply.github.com>
2023-04-01 16:41:58 +00:00
patr1ckbat3man
a076ab525c
pkg: fix spelling mistakes and typos (#679)
no more typso!
2023-04-01 16:23:45 +00:00
AnonymousWP
2b31c66d67
pkg: update com.sec.android.app.launcher (#500)
Note: keep this package if you want swipe gestures to keep working.
Advanced --> Expert

Co-authored-by: w1nst0n <55300518+0x192@users.noreply.github.com>
2023-04-01 16:07:00 +00: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
Ricardo Fernández Serrata
8d302a98ec
pkg: update com.samsung.android.dynamiclock (#615)
Alternative name on some devices : Dynamic Lock

Co-authored-by: AnonymousWP <50231698+AnonymousWP@users.noreply.github.com>
2023-03-18 19:01:14 +00: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
AnonymousWP
28642075fd
pkg: update com.samsung.android.themecenter (#654)
New name: Galaxy Themes Service

Has of lot of permissions (including INTERNET and INSTALL_PACKAGES) and connects to Samsung domains for analytics.
Pithus analysis: https://beta.pithus.org/report/973ba78ddd74a13dcf5268e980010a64ba42a3d2a1c4c62df277ead5a17cd10c

Co-authored-by: w1nst0n <55300518+0x192@users.noreply.github.com>
2023-03-18 17:57:22 +00:00
AnonymousWP
d150bb9bea
pkg: update com.android.inputdevices (#658)
WARNING: If you are using the default Samsung keyboard, then deleting this package on some phones may cause the keyboard to completely stop working. You may get locked out of your phone if the only method to authenticate yourself is using password.

Fixes #657
2023-03-18 17:30:39 +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
cce2503039
fix: remove null values in uad_lists
Arf! It was an old pull request. The pipeline passed but it wasn't the new pipeline with the test which would have detected this issue...

Regression from 768a1226f4
2023-02-03 00:54:15 +01:00
TubbyCat
768a1226f4
pkg: add 6 new ZTE apps (#338)
Recommended: cn.zte.recorder, com.zte.videoplayer, com.zte.privacypolicy
Advanced: com.zte.contacts.sub, com.zte.burntest.camera, com.zte.heartyservice.strategy

Co-authored-by: w1nst0n <55300518+0x192@users.noreply.github.com>
2023-02-02 23:44:16 +00:00
AnonymousWP
328e1c81c7
pkg: update com.samsung.android.app.spage description (#546)
Bixby Home has been renamed to Samsung Free
2023-02-02 23:19:06 +00: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
749820ca86
ci: make mold the default linker on Linux runner (ci workflow)
I forgot to update this workflow too
2023-01-15 00:24:39 +01:00
w1nst0n
8bc3eee321
build: use relative mold linker path (fix #504)
Linux package managers install mold to `/usr/bin/mold`
2023-01-15 00:08:00 +01:00
w1nst0n
0e7e99a7eb
ci: make mold the default linker on Linux runner 2023-01-15 00:00:15 +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
AnonymousWP
b04d235edf
pkg: add com.samsung.android.galaxycontinuity [Recommended] (#464)
Samsung Flow: it's a service to 'seamlessly' connect your devices. You can authenticate your Tablet/PC with your smartphone, share content between devices, and sync notifications or view contents from your smartphone on your Tablet/PC. [...]

Has more than 81 permissions. Not the kind of app you want to keep installed if you don't use it. It increases the attack surface and can potentially compromise a lot of things (including your computer). 

FYI, 4 CVE has been discovered between 2021 and 2022: https://www.opencve.io/cve?vendor=samsung&product=samsung_flow
Pithus analysis: https://beta.pithus.org/report
/77216cd6209c73d00332180319249ac6e4ef8479e68d2a21c97a52fdc5f3d62b

Co-authored-by: w1nst0n <55300518+0x192@users.noreply.github.com>
2022-12-18 18:59:31 +00:00
w1nst0n
e233914de0
ci: use the Rust Stable toolchain
Thanks to #458
2022-12-18 16:44:25 +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
Mike Simone
967fe3144a
ci: don't use the mold linker on MacOS (#457)
The mold linker on MacOS is now commercial software : https://github.com/rui314/mold

Co-authored-by: w1nst0n <55300518+0x192@users.noreply.github.com>
2022-12-17 22:17:36 +00:00
HamidChikh
83afd5f928
pkg: update com.samsung.android.sume.nn.service (#454)
Add package documentation (Pending -> Oem):

Provides the photo remaster feature in the Gallery app. Has the camera permission and can access all your medias but performs its job locally on the device.
https://www.samsung.com/au/support/mobile-devices/remastering-photos-on-samsung-phone/

Co-authored-by: w1nst0n <55300518+0x192@users.noreply.github.com>
2022-12-17 21:45:35 +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
w1nst0n
259a8540a0
pkg: update some MIUI apps + 1 new (shady) package (#446)
Add `com.miui.cleaner` (new package name of `com.miui.cleanmaster`) in the Recommended list. It's a shady app developed by Cheetah mobile which has previously been caught in ad fraud and user data theft in 2018.

Minor description update for
- cn.wps.xiaomi.abroad.lite
- com.micredit.in
- com.miui.android.fashiongallery
2022-12-07 23:16:34 +01: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
jamesdury
d329f341db
pkg: update com.google.android.tts (#441)
- Description update
- [Recommended -> Advanced] : removal recommendation change given the poor open-source alternatives and the usefulness of this kind of app

--------------
Default Text To Speech (TTS) engine on most of Android devices. It enables apps to convert text into voice.

Pithus analysis: https://beta.pithus.org/report/08f97758fbfae1e17c4a8e5ee1a1e6d2726ce6b0b4931d5452f2376d60f1b4fb

Note: many apps like navigation and health/sport apps rely on a TTS engine to provide speech services. Open-source TTS engines available on Android exists but, as of the end of 2022, there is only RHVoice (https://f-droid.org/en/packages/com.github.olga_yakovleva.rhvoice.android/) and it doesn't support a lot of languages. Mimic3 (https://mycroft.ai/mimic-3/) is probably the future of IoT open-source TTS engine but there is no Android support yet

Co-authored-by: w1nst0n <55300518+0x192@users.noreply.github.com>
2022-11-14 22:17:03 +00:00
w1nst0n
368b9631ef
docs: update FAQ link
a link was still pointing to the old Gitlab repository
2022-11-14 21:35:49 +01: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
AnonymousWP
bf6ea4b8e7
pkg: fix miscellaneous typos in apps description (#440)
Did you know humans do typos spmetimes?
2022-11-14 00:05:07 +00:00
JauchenPaule
7213c8eda4
pkg: update com.huawei.android.FloatTasks description (#433)
Floating/Navigation dock is also called NaviDot

Co-authored-by: w1nst0n <55300518+0x192@users.noreply.github.com>
2022-11-13 23:51:40 +00:00
AnonymousWP
6f01c65feb
pkg: update com.sec.android.app.safetyassurance (#428)
SOS features should not be in the Recommended list : [Recommended -> Advanced]

Co-authored-by: w1nst0n <55300518+0x192@users.noreply.github.com>
2022-11-13 23:37:53 +00:00
Charitra Agarwal
93671088ba
pkg: add com.microsoft.office.onenote [Recommended] (#424)
OneNote (https://play.google.com/store/apps/details?id=com.microsoft.office.onenote)

Microsoft and privacy you know... This app has a lot of permissions. For example it has access to phone state, including the phone number of the device, current cellular network information, the status of any ongoing calls...

Co-authored-by: w1nst0n <55300518+0x192@users.noreply.github.com>
2022-11-13 23:12:11 +00:00
w1nst0n
940b62b479
pkg: fix typo in com.samsung.android.airtel.stubapp description
pasckage -> package

What an amazing commit!
2022-11-13 23:24:22 +01:00
Prakhar Baranwal
70f508ec84
pkg: document and fix several Samsung apps description (#391)
- Documents `com.samsung.android.privateshare` [Pending -> Oem] [Expert -> Recommended]
- Fixes the description of :
  - com.samsung.android.ipsgeofence
  - com.samsung.android.spayfw
  - com.samsung.android.allshare.service.mediashare

Co-authored-by: AnonymousWP <50231698+AnonymousWP@users.noreply.github.com>
Co-authored-by: w1nst0n <55300518+0x192@users.noreply.github.com>
2022-11-13 22:08:17 +00:00
Vinfall
bcca8046c4
pkg: add 15 new Vivo/iQOO apps (#307)
- Recommended: 7
- Advanced: 7
- Expert: 1

Co-authored-by: w1nst0n <55300518+0x192@users.noreply.github.com>
2022-11-13 21:35:40 +00:00