Skip to content

Commit 368bdbd

Browse files
committed
resolve branch coonflicts.
2 parents beca304 + 07c15f8 commit 368bdbd

File tree

4 files changed

+15
-12
lines changed

4 files changed

+15
-12
lines changed

core/adb_utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,8 @@ def run_command(
232232
cmd,
233233
capture_output=True,
234234
text=True,
235+
encoding="utf-8",
236+
errors="replace",
235237
timeout=timeout,
236238
check=False,
237239
)

core/bloatware_remover.py

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ def check_device_connection(self) -> bool:
8787
self.logger.error("Failed to query devices: %s", exc)
8888
print("\nADB could not communicate with the device.")
8989
print("Please make sure Developer options and USB debugging are enabled, then reconnect the cable.")
90-
print("  Enable Developer options: Settings  About phone  tap 'Build number' seven times.")
91-
print("  Enable USB debugging: Settings  System  Developer options  toggle USB debugging on.")
92-
print(" ÔÇó Reconnect the device and accept the USB debugging prompt if shown.")
90+
print(" Enable Developer options: Settings About phone tap 'Build number' seven times.")
91+
print(" Enable USB debugging: Settings System Developer options toggle USB debugging on.")
92+
print(" Reconnect the device and accept the USB debugging prompt if shown.")
9393
if self._prompt_wifi_connection("Attempt to connect over Wi-Fi ADB instead?"):
9494
continue
9595
action = self._prompt_connection_retry()
@@ -712,15 +712,15 @@ def _show_device_state_instructions(self, device: DeviceState) -> None:
712712
state = device.state.lower().strip()
713713

714714
if state == 'unauthorized':
715-
print(" ÔÇó Unlock the device and ensure USB debugging is enabled in Developer options.")
716-
print(" ÔÇó When prompted, tap 'Allow' to trust this computer for USB debugging.")
715+
print(" Unlock the device and ensure USB debugging is enabled in Developer options.")
716+
print(" When prompted, tap 'Allow' to trust this computer for USB debugging.")
717717
elif state == 'offline':
718-
print(" ÔÇó Reconnect the USB cable and toggle USB debugging off and on again.")
719-
print(" ÔÇó Ensure the device screen stays awake and unlocked.")
718+
print(" Reconnect the USB cable and toggle USB debugging off and on again.")
719+
print(" Ensure the device screen stays awake and unlocked.")
720720
elif state == 'recovery':
721-
print(" ÔÇó The device is in recovery mode. Boot into Android before running the remover.")
721+
print(" The device is in recovery mode. Boot into Android before running the remover.")
722722
else:
723-
print(" ÔÇó Check the USB connection and confirm the device is unlocked with USB debugging enabled.")
723+
print(" Check the USB connection and confirm the device is unlocked with USB debugging enabled.")
724724

725725
def _select_device(self, authorized_devices: List[DeviceState]) -> Optional[DeviceState]:
726726
"""Select a device from the authorised list, prompting when needed."""
@@ -927,3 +927,4 @@ def manual_package_removal(self) -> None:
927927
return
928928
else:
929929
print("Removal cancelled for the selected apps.")
930+

device_detector.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import re
1+
import re
22
from typing import Optional, List
33

44
from core.adb_utils import (
@@ -483,4 +483,4 @@ def _connect_via_wifi(self) -> bool:
483483
self.device_serial = device.serial
484484
self._last_wifi_endpoint = endpoint
485485
print(f"Connected to {device.summary()} over Wi-Fi.")
486-
return True
486+
return True

version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Version information for Android Bloatware Remover"""
22

3-
__version__ = "1.2.0"
3+
__version__ = "1.3.1"
44
__author__ = "PixelCode01"
55
__description__ = "Android Bloatware Remover - Remove unwanted pre-installed apps"
66
__url__ = "https://github.com/PixelCode01/UIBloatwareRegistry"

0 commit comments

Comments
 (0)