Device goes into fastboot loop after removing any system app. - OnePlus 7 Questions & Answers

So I flashed the unofficial TWRP and installed Magisk, went fine, device boots up, root acccess is there. But whenever I try to uninstall any system app (say Netflix), my device goes into fastboot loop upon next restart (this doesn't happen if I don't unistall anything and restart). Any ideas on why is this happening?
Edit: Btw when I wipe and reinstall the stock rom the data comes back.

TheBinaryGuy said:
So I flashed the unofficial TWRP and installed Magisk, went fine, device boots up, root acccess is there. But whenever I try to uninstall any system app (say Netflix), my device goes into fastboot loop upon next restart (this doesn't happen if I don't unistall anything and restart). Any ideas on why is this happening?
Edit: Btw when I wipe and reinstall the stock rom the data comes back.
Click to expand...
Click to collapse
If you want to uninstall any system apps then you should try adb method which is safest method and it doesn't require any root access any dont get any bootloop errors... for uninstalling any system app the command is "adb shell pm uninstall --user 0 com.app.name" and for disabling any system app.the command is "adb shell pm disable-user com.app.name" & feel free to ask or discuss about any issues you have on this device i.e OnePlus 7..

Prinçe çharming ap said:
If you want to uninstall any system apps then you should try adb method which is safest method and it doesn't require any root access any dont get any bootloop errors... for uninstalling any system app the command is "adb shell pm uninstall --user 0 com.app.name" and for disabling any system app.the command is "adb shell pm disable-user com.app.name" & feel free to ask or discuss about any issues you have on this device i.e OnePlus 7..
Click to expand...
Click to collapse
Thank you very much! Appreciate the help. I'll use the adb method going forward. ?

Related

Can't remove malicious app

I've installed a malicious app called "Game Launcher" which has forced my Galaxy s7 into secure mode.
I've tried every way of uninstalling it from inside the android system but nothing works.
Since my volume button is broken, I can't get into recovery mode to factory reset phone that way.
I thought about trying to remove the app or wiping/resetting the phone through ADB but it wouldn't recognize the device(probably because of the malware) even though it recognizes all other devices.
Does anyone have an idea how I could solve this?
Thanks for all replies!!
Enable usb debugging in developer options and
Dial *#0808# select DM+ACM+ADB.
Connect to adb and do:
adb shell pm uninstall packagenameofvirus
Done
kpwnApps said:
Enable usb debugging in developer options and
Dial *#0808# select DM+ACM+ADB.
Connect to adb and do:
adb shell pm uninstall packagenameofvirus
Done
Click to expand...
Click to collapse
Thanks for your help!
I've used "adb shell pm list packages -3 -f." to get all the installed packages and then I've removed them but the problem still persists. I was able to boot into recovery with adb intending to wipe the device that way, but then I couldn't navigate the recovery menu because my volume buttons are broken. Any ideas?
rekkio said:
Thanks for your help!
I've used "adb shell pm list packages -3 -f." to get all the installed packages and then I've removed them but the problem still persists. I was able to boot into recovery with adb intending to wipe the device that way, but then I couldn't navigate the recovery menu because my volume buttons are broken. Any ideas?
Click to expand...
Click to collapse
Connect to adb again while your phone is on and
Use adb shell am broadcast -a android.intent.action.MASTER_CLEAR
kpwnApps said:
Connect to adb again while your phone is on and
Use adb shell am broadcast -a android.intent.action.MASTER_CLEAR
Click to expand...
Click to collapse
When doing that, i get this output, "Broadcasting: Intent { act=android.intent.action.MASTER_CLEAR flg=0x400000 }
Broadcast completed: result=0" and nothing has changed.
I'm able to boot into download mode with adb so I'm thinking about downloading a stock rom and flashing it with Odin.
Read that it's supposed to wipe and reset when doing that.

How to remove bloatwares and preloaded apps?

Color OS preloaded with certain apps. Such apps can't simply uninstall. Its hard coded, , for e.g. App Market. Users need to apply commands from ADB to uninstall preloaded apps.
1. Install ADB and Fastboot
I installed ADB and Fastboot on Ubuntu 18.04 LTS, use following commands on a command terminal to install it,
sudo apt update
sudo apt-get install android-tools-adb android-tools-fastboot
Windows user can install the Windows version of the ADB and Fastboot
2. Enable USB Debugging
Tap on many times (I think seven times) Settings > About Phone > Kernel version.
Go to Settings Additional settings > Developer options > USB Debugging and enable it.
3. Install App Inspector App
This app is helpful to find the exact name of the apps you want to remove.
Install from Google Play Store
4. Login into Realme 5
Connect the phone to PC using USB cable. Apply the following command on command terminal to check the connection,
adb devices
A dialogue window will appear on phone screen, confirm the connection from phone screen.
Enter into ADB shell,
adb shell
5. Apply the commands to remove the apps
Open the App Inspector and find the names of apps to remove,
e.g. Name of the App Market app is com.oppo.market
The command to uninstall the App Market is,
pm uninstall -k --user 0 com.oppo.market
The same way apply the commands to uninstall other unwanted apps available with Color OS 6 on Realme 5.
Information courtesy: Droid Guiding by Jayaprakash
Remove bloatware from Realme 3 Pro
Tried to do the same from adb shell for realme 3 pro
pm uninstall -k .com.coloros.video
Got the following error.....
Failure[Delete_failed_Internal_Error]
Can somebody help ?
somanshumehta said:
Tried to do the same from adb shell for realme 3 pro
pm uninstall -k .com.coloros.video
Got the following error.....
Failure[Delete_failed_Internal_Error]
Can somebody help ?
Click to expand...
Click to collapse
Check again the app name and put correct
excuse me... after i installed adb, turn on usb debugging mode, and open the command prompt, after i put the command (adb devices), there's no devices in list menu. also there's no notif in my phone.
so, am i doing something wrong?
zaouyorae said:
excuse me... after i installed adb, turn on usb debugging mode, and open the command prompt, after i put the command (adb devices), there's no devices in list menu. also there's no notif in my phone.
so, am i doing something wrong?
Click to expand...
Click to collapse
When we connect phone to pc, it will ask for confirmation. Then only pc detect phone.
vimal0212 said:
When we connect phone to pc, it will ask for confirmation. Then only pc detect phone.
Click to expand...
Click to collapse
What kind confirmation when we connect phone to pc? Coz my realme 5 only got some notif whether use usb as mtp or charging only...
zaouyorae said:
What kind confirmation when we connect phone to pc? Coz my realme 5 only got some notif whether use usb as mtp or charging only...
Click to expand...
Click to collapse
When we connect phone to pc, a window will appear phone something like trusted device
zaouyorae said:
excuse me... after i installed adb, turn on usb debugging mode, and open the command prompt, after i put the command (adb devices), there's no devices in list menu. also there's no notif in my phone.
so, am i doing something wrong?
Click to expand...
Click to collapse
This is probably a driver issue. Adb drivers for your device are not getting installed in your computer. Same happened with me on windows7. but drivers got installed automatically on windows 10.
---------- Post added at 02:17 PM ---------- Previous post was at 02:12 PM ----------
vimal0212 said:
Check again the app name and put correct
Click to expand...
Click to collapse
Nope, it's not the problem with package name. Same error is thrown when I try uninstalling the game centre app. It may have something to do with not having proper privileges over adb to remove the app?
anujpatil2 said:
This is probably a driver issue. Adb drivers for your device are not getting installed in your computer. Same happened with me on windows7. but drivers got installed automatically on windows 10.
So how u solve it for win 7 user? Coz my pc also run win 7 too
Click to expand...
Click to collapse
zaouyorae said:
anujpatil2 said:
This is probably a driver issue. Adb drivers for your device are not getting installed in your computer. Same happened with me on windows7. but drivers got installed automatically on windows 10.
So how u solve it for win 7 user? Coz my pc also run win 7 too
Click to expand...
Click to collapse
actually I couldn't solve it. I tried installing drivers and stuff. nothing helped. so connected my phone to another laptop (win 10) and removed the bloatware.
Click to expand...
Click to collapse
It should ask something like"Confirm RSA finger print. Also, to get adb drivers, get driver easy(free version), get the link for drivers and install manually in win 7
friedcheese said:
It should ask something like"Confirm RSA finger print. Also, to get adb drivers, get driver easy(free version), get the link for drivers and install manually in win 7
Click to expand...
Click to collapse
Can u tell me the name of the driver? So i can search n find it in search engine.
RealMe5 (not Pro)
Is it safe to get software update after doing this without factory reset.?
---------- Post added at 08:10 AM ---------- Previous post was at 08:06 AM ----------
I already did this and succeeded, but my device have software update available, is it safe to get the update without factory resetting my device?
zaouyorae said:
Can u tell me the name of the driver? So i can search n find it in search engine.
Click to expand...
Click to collapse
Just Google realme 5 adb driver, and download from the romprovider website.
Also, the same website provides instructions to do it too:
https://romprovider.com/2017/03/adb-fastboot-driver-install-window-html/
You can list apps with:
pm list packages -s (list system packages only with -s)
and running ones:
ps -ef
Oppo market app (save to uninstall if google play works well)
RMX1911:/ $ pm uninstall -k --user 0 com.oppo.market
Success
Oroaming (Settings ->Dual Sim & Cellular Network => you will see Oroaming Not installed
pm uninstall -k --user 0 com.redteamobile.roaming
pm uninstall -k --user 0 com.redteamobile.roaming.daemon
Google Play Movies & TV (I dont use it)
pm uninstall -k --user 0 com.google.android.videos
Google Music (also bloatware - prefer simpe players)
pm uninstall -k --user 0 com.google.android.music
Never used Facebook apps in phone (just browser)
Facebook services:
pm uninstall –k ––user 0 com.facebook.appmanager
pm uninstall –k ––user 0 com.facebook.services
pm uninstall –k ––user 0 com.facebook.system
Talkback (screen reader - not needed if you have good eyes)
pm uninstall –k ––user 0 com.google.android.marvin.talkback
Theme Store
pm uninstall –k ––user 0 com.nearme.themestore
Delete_failed_internal_error
RMX1851:/ $ pm uninstall -k --user 0 com.oppo.market
Failure [DELETE_FAILED_INTERNAL_ERROR]
Still getting this error - any solution?
I was able to remove a few but these 3 are giving this error:
App Market - com.oppo.market
Game Center - com.nearme.gamecenter
Theme Store - com.nearme.themestore
Hello sir,
I tried your methods, but it gives me this error message when trying it on Game Center...
"255|RMX1911:/ $ pm uninstall -k --user 0 com.oppo.market
pm uninstall -k --user 0 com.oppo.market
Failure [DELETE_FAILED_INTERNAL_ERROR]"
Unable to remove app market. Throws an error
vimal0212 said:
Color OS preloaded with certain apps. Such apps can't simply uninstall. Its hard coded, , for e.g. App Market. Users need to apply commands from ADB to uninstall preloaded apps.
1. Install ADB and Fastboot
I installed ADB and Fastboot on Ubuntu 18.04 LTS, use following commands on a command terminal to install it,
sudo apt update
sudo apt-get install android-tools-adb android-tools-fastboot
Windows user can install the Windows version of the ADB and Fastboot
2. Enable USB Debugging
Tap on many times (I think seven times) Settings > About Phone > Kernel version.
Go to Settings Additional settings > Developer options > USB Debugging and enable it.
3. Install App Inspector App
This app is helpful to find the exact name of the apps you want to remove.
Install from Google Play Store
4. Login into Realme 5
Connect the phone to PC using USB cable. Apply the following command on command terminal to check the connection,
adb devices
A dialogue window will appear on phone screen, confirm the connection from phone screen.
Enter into ADB shell,
adb shell
5. Apply the commands to remove the apps
Open the App Inspector and find the names of apps to remove,
e.g. Name of the App Market app is com.oppo.market
The command to uninstall the App Market is,
pm uninstall -k --user 0 com.oppo.market
The same way apply the commands to uninstall other unwanted apps available with Color OS 6 on Realme 5.
Information courtesy: Droid Guiding by Jayaprakash
Click to expand...
Click to collapse
I'm getting error message -
error: device unauthorized.
This adb server's $ADB_VENDOR_KEYS is not set
Try 'adb kill-server' if that seems wrong.
Otherwise check for a confirmation dialog on your device.
vimal0212 said:
Color OS preloaded with certain apps. Such apps can't simply uninstall. Its hard coded, , for e.g. App Market. Users need to apply commands from ADB to uninstall preloaded apps.
1. Install ADB and Fastboot
I installed ADB and Fastboot on Ubuntu 18.04 LTS, use following commands on a command terminal to install it,
sudo apt update
sudo apt-get install android-tools-adb android-tools-fastboot
Windows user can install the Windows version of the ADB and Fastboot
2. Enable USB Debugging
Tap on many times (I think seven times) Settings > About Phone > Kernel version.
Go to Settings Additional settings > Developer options > USB Debugging and enable it.
3. Install App Inspector App
This app is helpful to find the exact name of the apps you want to remove.
Install from Google Play Store
4. Login into Realme 5
Connect the phone to PC using USB cable. Apply the following command on command terminal to check the connection,
adb devices
A dialogue window will appear on phone screen, confirm the connection from phone screen.
Enter into ADB shell,
adb shell
5. Apply the commands to remove the apps
Open the App Inspector and find the names of apps to remove,
e.g. Name of the App Market app is com.oppo.market
The command to uninstall the App Market is,
pm uninstall -k --user 0 com.oppo.market
The same way apply the commands to uninstall other unwanted apps available with Color OS 6 on Realme 5.
Information courtesy: Droid Guiding by Jayaprakash
Click to expand...
Click to collapse
Remove bloatware from Realme x2
Tried to do the same from adb shell for realme X2
pm uninstall -k --user 0 com.heytap.market
Got the following error.....
Failure[Delete_failed_Internal_Error]
Can somebody help ?

[UNLOCK bootloader, and flash ROM with ROOT] Huawei MediaPad M5 Pro - EMUI 9.1 - 2021

Intro:
- As usual, following this guide is by your own risk and responsability
- After hours searching the web I have painfully seen how the scene seems to be so spread and freak these days. Plus there are lots of scams and **** webs floating everywhere, more even than space debris.
- I have not found any good guide to root the Huawei Mediapad M5 Pro. Most of them are old + bad.
- My model is CMR-AL19, C432 with EMUI 9.1
Instructions:
1. unlock bootloader
1.1. Check PotatoNV wiki to get the unlock bootloader code:
Download PotatoNV (or download from the link below)
Install HUAWEI USB COM drivers: (download from the link below, or this link)
Install ADB (from google or also download from the link below)
1.2 Remove the cover from the device: heat it with a hairdryer and carefully peel cover around the perimeter using a plastic card (video)
Turn off the device and unplug the USB cable
Short test point and iron shield on the motherboard
Connect the device to the computer, after a couple of seconds jumper can be removed
Make sure there’s nothing on the device’s screen if a charging animation appears go to step 4
1.3 Launch PotatoNV and select HUAWEI USB COM 1.0 in the device list (should be filled automatically)
Select bootloader: kirin 960
Unlock code - this is the future bootloader code. copy and keep it for later.
Press the Start button. Let PotatoNV to finish
1.2. unlock bootloader with fastboot
adb devices
adb reboot bootloader
wait until the tablet reboots in recovery mode
fastboot devices
fastboot oem unlock <unlock code from PotatoNV>
2. flash treble ROM (https://github.com/phhusson/treble_experimentations/wiki/Huawei-MediaPad-M5-Pro)
2.1. download treble ROM:
Android 10: https://github.com/phhusson/treble_...nload/v222/system-quack-arm64-ab-gapps.img.xz
Android 9: https://github.com/phhusson/treble_...download/v123/system-arm64-ab-gapps-su.img.xz
2.2 factory reset
Perform a factory reset on your device: Settings -> System -> Reset -> Reset tablet
Optionally: Reboot to your device’s stock recovery using either a button combination when booting or issuing the following ADB command when booted in Android:
adb reboot recovery
Once here, use the volume keys to navigate and the power button to select the factory reset option.
2.3 Flash ROM
Once your device has been factory reset, reboot to your device’s bootloader using either a button combination when booting or issuing the following ADB command when booted in Android:
adb reboot bootloader
With your device connected to your PC, open up a command prompt or terminal window in the same directory where you downloaded your GSI of choice.
fastboot devices
fastboot erase system
Enter a command in the following format:
fastboot --unbuffered flash system system-quack-arm64-ab-gapps.img
Allow the image to flash, will take 2 minutes. Once it has completed, reboot your device either manually via power key or by entering:
fastboot reboot
3. skip all configuration. ignore any error. reboot in recovery mode
adb reboot recovery
4. wipe cache and, again, factory reset. Configure as usual. Be sure to add the SIM when asked.
enjoy
Thanks for doing this. But I wonder: will this procedure work on a wifi-only model SHT-W09 running on EMUI 8.0.0?
goattee said:
Thanks for doing this. But I wonder: will this procedure work on a wifi-only model SHT-W09 running on EMUI 8.0.0?
Click to expand...
Click to collapse
I don't know
You can try to get the unlock code with PotatoNV (step 1.1), which is harmless and then decide. Also the old guides are probably good for your EMUI version.
Thanks for the guide, just unlocked my CMR-W09. I can confirm that the CM AL19 build does work for the W09 with a couple modifications
Hi!
I was trying to follow your guide, but opening the cover was too hard for me.
Originally my motivation to unlock the bootloader was to install Lineage OS, and then to install Google Services.
I have tried numerous methods to do so, but somehow they did not work for MediaPad M5 Pro, due to EMUI version or recent security patches.
However, I have managed to install Google services by accident.
I almost gave up, and decided to install at least a decent browser (Brave).
I found it on APKPure.
It is a kind of a third party package manager.
To install Brave I needed to install the package manager first.
APKPure APK Downloader for Android Wear, Phones, Tablets, TV
Download and update the latest Android™ Apps apk in APKPure, the best free Android APK Downloader online right at apkpure.com. Come and join APKPure's clan.
m.apkpure.com
Brave got installed, but to my surprise I could also find Youtube app on APKPure.
When I installed Youtube, APKPure package manager have installed Google Play Store as well!
With Google Play I could install all the other apps, I needed.
goattee said:
Thanks for doing this. But I wonder: will this procedure work on a wifi-only model SHT-W09 running on EMUI 8.0.0?
Click to expand...
Click to collapse
Hi, just wondering did you have any luck with this PotatoNV method for SHT-W09?
I can confirm that this works for the CMR-AL09 also.
The only problem I had, was with opening up the device.
I had to use a thin metal object to get under the screen at first.
Oh, and then I had to search around to find out why I could not find my device using ADB...
REMEMBER TO ACTIVATE USB DEBUGGING in Developer options
I'm want to use this method on my M5 SHT-W09 8.4” I've got the screen off, that wasn't too hard, but I can't find the testpoint. I've searched the web but can't find a good image for this particular device. Does anyone know where the testpoint is for this device?
jb231 said:
I'm want to use this method on my M5 SHT-W09 8.4” I've got the screen off, that wasn't too hard, but I can't find the testpoint. I've searched the web but can't find a good image for this particular device. Does anyone know where the testpoint is for this device?
Click to expand...
Click to collapse
I guess this is the testpoint on your device, as it looks different than on mine: Huawei-MediaPad-M5-SHT-AL09-SHT-W09-Testpoint.jpg
SnowmanDK said:
I guess this is the testpoint on your device, as it looks different than on mine: Huawei-MediaPad-M5-SHT-AL09-SHT-W09-Testpoint.jpg
Click to expand...
Click to collapse
thanks, I've seen that one, that is not at all what my device look like inside
Hello !
Thanks for the tutorial, it worked great for my CMR W09 which was running these specs :
Code:
dir>fastboot oem get-bootinfo
(bootloader) unlocked
dir>fastboot oem get-product-model
(bootloader) CMR-W09
dir>fastboot oem get-build-number
(bootloader) :CMR-W09 9.1.0.360(C432E6R1P3)
dir>fastboot oem oeminforead-SYSTEM_VERSION
(bootloader) :CMR-W09 9.0.1.160(C432E3R1P3)
dir>fastboot getvar vendorcountry
vendorcountry: hw/eu
I installed the Android 9 version then the Android 10, worked perfectly fine for both. I indeed inputed the commands suggested by thorgan3. For those who have wondered when and how to input such commands, I followed the steps 1 and 2 and then I turned usb debugging ON and enterred the following instructions :
Code:
dir>adb shell pm uninstall -k --user 0 com.android.phone
dir>adb shell pm uninstall -k --user 0 com.android.providers.blockednumber
dir>adb shell pm uninstall -k --user 0 com.android.bookmarkprovider
dir>adb shell pm uninstall -k --user 0 com.android.calllogbackup
dir>adb shell pm uninstall -k --user 0 com.android.carrierdefaultapp
dir>adb shell pm uninstall -k --user 0 com.android.emergency
dir>adb shell pm uninstall -k --user 0 com.android.providers.userdictionary
though I still had to uninstall com.android.phone through SDmaid
You can also finish cleaning up the ROM for the Wifi only models by putting :
Code:
dir>adb shell pm uninstall -k --user 0 com.android.server.telecom
dir>adb shell pm uninstall -k --user 0 com.android.providers.telephony
And after all that I finally prompted the next line to pursue tutorial with step 3 :
Code:
dir>adb reboot recovery
I strongly suggest that anyone tempting this maneuver should download an official stock ROM of the model and region of his device. To do so, as huawei revoked access to any of those, I factory reseted my tablet beforehand and connected it to the mobile hotspot of my computer. Using Wireshark I was able to snif the wifi my computer was connected to and hence get back the url (which was beginning with
Spoiler
"http://update.dbankcdn.com/download....."
I hope everyone succeed in their attempt.
It says root in the title, but I couldn't find any further explanation.
Is an up to date version of Magisk included in one of these GSIs?
The ROM themselves are rooted
Hi!
Is this guide still valid today for a SHT-W09 EMUI 8.0.0 (C567) with bootloader unlocked? (I still have the unlock code).
Thanks!
Custom kernel
Telegram: Contact @Hi3660
t.me
Hey, did anyone manage to solve the issue with formatting a sd-card as extended phone storage? For me its quite necessary to use my sd-card for that (netflix, spotify and so on) and it doesnt work. The issue is already described here: https://github.com/phhusson/treble_experimentations/issues/1638, for now there is no solution.
Thanks in advance!
Hi,
i have an CMR-AL19 here. but unfortunately the google accoount (FRP) is blocked and USB debugging is not activated. Can I use this method to remove the FRP and flash a stock rom again?
Thank you
Did someone managed to get netflix working?
air32 said:
Did someone managed to get netflix working?
Click to expand...
Click to collapse
Netflix and a lot of other streaming apps will NOT work on rooted devices.
They block them as you can actually record the streams on rooted devices.
air32 said:
Hey, did anyone manage to solve the issue with formatting a sd-card as extended phone storage? For me its quite necessary to use my sd-card for that (netflix, spotify and so on) and it doesnt work. The issue is already described here: https://github.com/phhusson/treble_experimentations/issues/1638, for now there is no solution.
Thanks in advance!
Click to expand...
Click to collapse
I have the same problem. What did u do????

Help with ADB

Can somebody please help me with a simple ADB command. I have ADB installed on Windows 7. I have USB debugging enabled on my phone which is Android 10. I have my connection setting set to USB tethering I can make a connection with ADB to my phone from the computer. I can list all programs that are installed on the phone. And then I type,
pm uninstall -k --user 0 com.tct.onetouchbooster
And it just returns to a blinking cursor, no success message. I've listed the program on the phone so I know the program's there I know ADB is working and recognizes my device but for some reason I can't uninstall this program. In fact I can't install other programs either I tried another one and same thing.
Please help!

[Closed] Stuck in login-loop, trying to install com.android.settings via ADB

Background:
On a Nokia G10 I have been using ADB to uninstall unwanted apps to make the phone child-safe, without root being required. I followed steps here using the command:
Code:
.\adb shell pm uninstall -k --user 0 <package_name>
and can reinstall any app using:
Code:
.\adb shell pm install-existing <package_name>
This has been very successful and I have been able to uninstall and reinstall many apps as needed. The final step I took was uninstalling the settings app (com.android.settings) to prevent the user from just enabling the play store and downloading everything again. Whenever I needed to update/change anything, I would connect via ADB and reinstall the settings app and do what I needed to do.
This has been working well for months, no problems, a very elegant and airtight solution.
Problem:
Today I restarted the phone and it got stuck in a loop at the lock screen. Not a boot loop.
It turns on, and loads the lock screen up, then there's about half a second before it freezes, the lock screen crashes (goes black for a second) and the reloads the lock screen.
During that half second I can interact with the screen normally (e.g. swipe down the notifications/settings menu at the top, or open the power options menu) but then it crashes and reloads the lock screen.
Aim:
I need to reinstall com.android.settings . I know this will fix the loop because I encountered this error while setting up the system earlier. However, I was already connected via ADB at that time and could just run the command to reinstall the settings app. This stopped it crashing, it loaded normally and I could login immediately.
But now I cannot connect via ADB for some reason. Running these commands gives the following errors:
Code:
.\adb shell pm install-existing com.android.settings adb.exe: device unauthorized.
This adb server's $ADB_VENDOR_KEYS is not set
Try 'adb kill-server' if that seems wrong.
Otherwise check for a confirmation dialog on your device.
.\adb devices
List of devices attached
PT996******************* unauthorized
I have tried the following with no success:
1)
Code:
adb kill-server
adb start-server
2) Starting in safe mode gives the same problem
3) Ideas listed here: https://stackoverflow.com/questions/23081263/adb-android-device-unauthorized/25546300#25546300
I don't get a new prompt to allow access.
4) Trying to start in FASTBOOT mode... I'm not sure I'm doing it right. Holding down the power and -vol key the screen displays "FASTBOOT mode..." but does not progress to a menu screen.
What I need:
A way to install com.android.settings, or, a way to get ADB access.
Any suggestions welcome
Thanks
Some progress trying FASTBOOT:
Using this guide: https://forum.xda-developers.com/t/how-to-enter-recovery-mode-on-nokia-g10-g20.4353903/
I have been able to boot into recovery mode.
Does anyone know how I can use the option "Apply update from ADB" to issue ADB commands like this?
Code:
.\adb shell pm install-existing com.android.settings
According to this thread: https://android.stackexchange.com/questions/94126/adb-shell-in-recovery-mode-errorclosed
adb shell is inaccessible with stock recovery.
Using FASTBOOT in the Windows powershell terminal, can I issue any similar command to install an existing package?
or, can I use adb sideload to reinstall com.android.settings?
as adb is unauthorized you simply have no adb access anymore. if you are using the same PC then RSA key is lost (otherwise check the previously known working PC and copy .android directory to current PC)
fastboot is unrelated to adb and of no use at all.

Categories

Resources