Remove all themes via ADB? Installed 8.1 Dev Preview without disabling themes first! - prjkt.io

I installed the 8.1 Dev Preview on my Pixel XL and it can't boot due to SystemUI crashing. I think it's just because I still have overlays installed. Anyway to remove all the overlays via ADB? I'd appreciate any help! Thanks!

s1dest3pnate said:
I installed the 8.1 Dev Preview on my Pixel XL and it can't boot due to SystemUI crashing. I think it's just because I still have overlays installed. Anyway to remove all the overlays via ADB? I'd appreciate any help! Thanks!
Click to expand...
Click to collapse
Can you get into recovery? There's a script that's installed that you can run to remove themes in recovery.
Sent from my Pixel XL using Tapatalk

Acid0057 said:
Can you get into recovery? There's a script that's installed that you can run to remove themes in recovery.
Sent from my Pixel XL using Tapatalk
Click to expand...
Click to collapse
Yup, I remembered and found it. All fixed! Thank goodness for SubstratumRescue.zip! Thanks Substratum team!

s1dest3pnate said:
Yup, I remembered and found it. All fixed! Thank goodness for SubstratumRescue.zip! Thanks Substratum team!
Click to expand...
Click to collapse
Awesome!
Sent from my Pixel XL using Tapatalk

I am in the same boat. You are very ambiguous on how you actually fixed this. I am not rooted and have a Pixel 2 XL with access to adb through recovery

GBpfan95 said:
I am in the same boat. You are very ambiguous on how you actually fixed this. I am not rooted and have a Pixel 2 XL with access to adb through recovery
Click to expand...
Click to collapse
You're right, my apologies.
adb reboot bootloader (do this as soon as you hear USB connect at the Google logo)
fastboot boot twrp (I downloaded the 3.1.1.1 version from TWRP website)
Install SubstratumRescue.zip from the substratum folder on storage.
Did not install TWRP when prompted. I might have been asked one other question during the install or somewhere in TWRP but I don't recall.

s1dest3pnate said:
You're right, my apologies.
adb reboot bootloader (do this as soon as you hear USB connect at the Google logo)
fastboot boot twrp (I downloaded the 3.1.1.1 version from TWRP website)
Install SubstratumRescue.zip from the substratum folder on storage.
Did not install TWRP when prompted. I might have been asked one other question during the install or somewhere in TWRP but I don't recall.
Click to expand...
Click to collapse
Does that work even if I am locked and not rooted?

GBpfan95 said:
Does that work even if I am locked and not rooted?
Click to expand...
Click to collapse
Works without root, but not if you're locked I don't think. I'm not an expert and don't want to steer you in the wrong direction, but hopefully you can unlock bootloader via adb first, and then do the steps, but I'm not sure.

I just ended up factory resetting. Most of everything is backed up anyway. Definitely learned my lesson

Could you please post the SubstratumRescue.zip? I cannot get to the directory on my phone via ADB and want to try running the script commands manually.
EDIT: Nevermind, I tracked it down on the dev's AFH page.

I faced with same issue: Updated to 8.1 without disabling overlays first.
No root, locked bootloader.
In my case, system did load but was crashing every other minute.
I was able to launch subscratum+andromeda but they failed to disable overlays - it simply did not work.
So, I had do disable overlays manually via adb:
Code:
$ adb shell
$ cmd overlay list
$ cmd overlay disable OVERLAY_NAME_1
$ cmd overlay disable OVERLAY_NAME_2
,,,

AXP said:
I faced with same issue: Updated to 8.1 without disabling overlays first.
No root, locked bootloader.
In my case, system did load but was crashing every other minute.
I was able to launch subscratum+andromeda but they failed to disable overlays - it simply did not work.
So, I had do disable overlays manually via adb:
Code:
$ adb shell
$ cmd overlay list
$ cmd overlay disable OVERLAY_NAME_1
$ cmd overlay disable OVERLAY_NAME_2
,,,
Click to expand...
Click to collapse
Is it possible for you to guide me step by step on how to do this? My nexus 6p is locked and non-rooted. thanks

pR0wl3r said:
Is it possible for you to guide me step by step on how to do this? My nexus 6p is locked and non-rooted. thanks
Click to expand...
Click to collapse
Same with my 5X; once in ADB (using the Android SDK platform tools and Google USB drivers), when you run `adb shell` to open a shell connected to your phone, `cmd overlay list` will show all available overlays, and which are active or not. In my case (I was using BalticUI) I had...
Code:
C:\platform-tools>adb shell
bullhead:/ $ cmd overlay list
com.android.settings
[x] com.android.settings.BalticUI
com.android.systemui
[x] com.android.systemui.BalticUI
[x] com.android.systemui.navbars.BalticUI
[ ] com.android.systemui.theme.dark
So then you can enable or disable each overlay by name. E.g.:
Code:
bullhead:/ $ cmd overlay disable com.android.systemui.BalticUI
bullhead:/ $ cmd overlay list
com.android.settings
[x] com.android.settings.BalticUI
com.android.systemui
[ ] com.android.systemui.BalticUI
[x] com.android.systemui.navbars.BalticUI
[ ] com.android.systemui.theme.dark
That "....systemui.theme.dark" I presume is the new auto-theme component in 8.1 based on wallpaper color. I tried enabling it, but after trying to open a themed component, that overlay resets off. Luckily, BalticUI didn't cause any major problems like many other themes did; the main settings screen was the biggest difference, being just a text-only list of all the strings. Now to find a dark wallpaper...

jeremywh7 said:
Same with my 5X; once in ADB (using the Android SDK platform tools and Google USB drivers), when you run `adb shell` to open a shell connected to your phone, `cmd overlay list` will show all available overlays, and which are active or not. In my case (I was using BalticUI) I had...
Code:
C:\platform-tools>adb shell
bullhead:/ $ cmd overlay list
com.android.settings
[x] com.android.settings.BalticUI
com.android.systemui
[x] com.android.systemui.BalticUI
[x] com.android.systemui.navbars.BalticUI
[ ] com.android.systemui.theme.dark
So then you can enable or disable each overlay by name. E.g.:
Code:
bullhead:/ $ cmd overlay disable com.android.systemui.BalticUI
bullhead:/ $ cmd overlay list
com.android.settings
[x] com.android.settings.BalticUI
com.android.systemui
[ ] com.android.systemui.BalticUI
[x] com.android.systemui.navbars.BalticUI
[ ] com.android.systemui.theme.dark
That "....systemui.theme.dark" I presume is the new auto-theme component in 8.1 based on wallpaper color. I tried enabling it, but after trying to open a themed component, that overlay resets off. Luckily, BalticUI didn't cause any major problems like many other themes did; the main settings screen was the biggest difference, being just a text-only list of all the strings. Now to find a dark wallpaper...
Click to expand...
Click to collapse
Thanks but that did not work for me. Tried to disable but it's still there. Perhaps you need root?

bobby janow said:
Thanks but that did not work for me. Tried to disable but it's still there. Perhaps you need root?
Click to expand...
Click to collapse
You mean you tried to disable but it still shows an [X] showing enabled for that overlay? I am not rooted, nor with unlocked bootloader, and I could toggle them off (as shown above) and on. The overlays still show up for me, but are all disabled, and resolved the issues I was having as a result.

jeremywh7 said:
You mean you tried to disable but it still shows an [X] showing enabled for that overlay? I am not rooted, nor with unlocked bootloader, and I could toggle them off (as shown above) and on. The overlays still show up for me, but are all disabled, and resolved the issues I was having as a result.
Click to expand...
Click to collapse
Yeah still shows an x.
Sent from my Pixel using XDA-Developers Legacy app

Thanks!
AXP said:
I faced with same issue: Updated to 8.1 without disabling overlays first.
No root, locked bootloader.
In my case, system did load but was crashing every other minute.
I was able to launch subscratum+andromeda but they failed to disable overlays - it simply did not work.
So, I had do disable overlays manually via adb:
Code:
$ adb shell
$ cmd overlay list
$ cmd overlay disable OVERLAY_NAME_1
$ cmd overlay disable OVERLAY_NAME_2
,,,
Click to expand...
Click to collapse
Thanks so much mate this worked for me perfectly!

This can be done in a less manual fashion. It looks like many of you are on Windows, but I'm sure theres a way to accomplish something similar. I'm on Linux and this is how I did it.
Code:
➜ andromeda-substratum adb shell cmd overlay list | ag -Q [x] | awk '{ print $2 }' | xargs -n 1 echo cmd overlay disable
cmd overlay disable com.samsung.android.app.aodservice.StatusBarIconsforSamsungextras
cmd overlay disable com.samsung.android.smartmirroring.StatusBarIconsforSamsungextras
cmd overlay disable android.StatusBarIconsforSamsungextras
cmd overlay disable com.samsung.android.app.smartcapture.StatusBarIconsforSamsungextras
cmd overlay disable com.android.settings.StatusBarIconsforSamsungextras
cmd overlay disable com.samsung.android.lool.StatusBarIconsforSamsungextras
cmd overlay disable com.android.systemui.navbars.StatusBarIconsforSamsungextras
cmd overlay disable com.android.systemui.tiles.StatusBarIconsforSamsungextras
cmd overlay disable com.android.systemui.statusbars.StatusBarIconsforSamsungextras
➜ andromeda-substratum adb shell cmd overlay list | ag -Q [x] | awk '{ print $2 }' | xargs -n 1 adb shell cmd overlay disable
For reference, ag is very similar to grep. So the explanation is adb shell allows you to pass a command to it so it can run that command immediately. So adb shell cmd overlay list is the same as typing adb shell followed by cmd overlay list except it prints the output and immediately exits. So I take that output, grep (using ag in this case) for the enabled overlays and then programmatically disable them. xargs -n 1 says take at most one of the arguments passed to this command and append it to the rest of the line. So this calls adb shell cmd overlay disable __insert-overlay-here__ repeatedly.

I messed up good....
So, I tried flashing the 8.1 Final using Chainfire like a tutorial suggested. That was my second mistake.
My first one was apparently not removing my overlays. So anyway...
My device rebooted after Chainfire, and was on the G/progress bar for like 5 mins so I knew something was up.
I decided to flash the complete factory image, and I removed the '-w' from the flash-all script so it wouldn't wipe my data.
Now the device boots, and of course I have the System UI issue because I didn't clear the overlays. But wait... it gets better!
I found this thread, so I fastboot booted into TWRP to run the commands. It asks for my password- and when I enter it, it says it's invalid!! I tried numerous times, rebooted etc, and it still does not accept my passcode.
It appears I should be able to use ADB in TWRP without my passcode, so I give it a try. I am able to sideload no problem, however when I type 'adb shell' it tells me 'error:closed'. I've searched that error, which everyone says was fixed for them with either a reboot or updating their adb/fastboot. I did both of those things, and the error still persists.
I have also tried sideloading the substratumrescue.zip file I found in another thread, however it doesn't seem to be made for this systemless setup or something.
I have had to set this device up twice since I got it, and I am really not looking forward to doing it a third time, so if anyone has any suggestions that will keep my data, I would be happy to hear them out!!
What could be causing TWRP not to accept my passcode?
Why do I get the 'error:closed' when I try to adb shell?
Any help is greatly appreciated!
EDIT: Resolved. I was able to delete all overlaid apk's from /data/app.

Hi there,
Question, I got a non-rooted S8, Stock in like everything, and it runs everything fine, including Substratum!
I am wondering about one thing though after reading this thread, imagine something went wrong, what would be my options? I found the Rescue ZIP on my phone, can I apply this if needed with the original recovery from the S8? Or do I need TWRP for that?
---------- Post added at 08:44 PM ---------- Previous post was at 08:39 PM ----------
s1dest3pnate said:
Works without root, but not if you're locked I don't think. I'm not an expert and don't want to steer you in the wrong direction, but hopefully you can unlock bootloader via adb first, and then do the steps, but I'm not sure.
Click to expand...
Click to collapse
Hi mate, do I read correctly, that its possible to only boot TWRP temporaly without flashing it?
I have to put the folder/files in the same folder as platform tools?

Related

How to access private mode without access to screen? Galaxy S5

So, I'm an idiot and was working too close to my phone with some heavy tools. Long story short, I ended up dropping my Dewalt drill directly on the screen. It's completely ruined and no longer has any picture on the screen. The phone itself still turns on. I'm able to unlock with fingerprint, etc. The problem is...since I can't actually see anything on the screen, I'm not sure exactly where to press and swipe to access private mode. I had some files for work stored in private mode that I need to retrieve from the phone (customer contracts)...but since I can't see anything, I don't know exactly how to get them back. Any ideas? Thanks in advance!
Is adb debugging enabled on your device?
Fusseldieb said:
Is adb debugging enabled on your device?
Click to expand...
Click to collapse
I believe so, yes. I think I enabled it awhile ago.
mosesport said:
I believe so, yes. I think I enabled it awhile ago.
Click to expand...
Click to collapse
Perfect. Now you can make a .bat script that pushes a screenshot fron your device every second.
You do it in following way:
1. Create a normal text file and write in there:
Code:
:1
adb shell screencap -p /sdcard/screen.png
adb pull /sdcard/screen.png
adb shell rm /sdcard/screen.png
goto 1
2. Rename it to Screenshot.bat
3. Run it and you will see a command prompt in loop getting screenshots from your device. Then open the newly created "screen.png". If you're using Windows 7, the image will update automatically every second and you will see a 'live feed' of your device's screen.
If your touchscreen is damged too, you will need inputting keyevents, like touch x y. If that's your case, just say me and I'll explain you.
Sent from my SM-G925F using XDA-Developers mobile app
Fusseldieb said:
Perfect. Now you can make a .bat script that pushes a screenshot fron your device every second.
You do it in following way:
1. Create a normal text file and write in there:
Code:
:1
adb shell screencap -p /sdcard/screen.png
adb pull /sdcard/screen.png
adb shell rm /sdcard/screen.png
goto 1
2. Rename it to Screenshot.bat
3. Run it and you will see a command prompt in loop getting screenshots from your device. Then open the newly created "screen.png". If you're using Windows 7, the image will update automatically every second and you will see a 'live feed' of your device's screen.
If your touchscreen is damged too, you will need inputting keyevents, like touch x y. If that's your case, just say me and I'll explain you.
Sent from my SM-G925F using XDA-Developers mobile app
Click to expand...
Click to collapse
When I try to run the script, the command prompt gives an error stating "adb is not a recognized as an internal or extermal command."
mosesport said:
When I try to run the script, the command prompt gives an error stating "adb is not a recognized as an internal or extermal command."
Click to expand...
Click to collapse
Install adb on your machine, reboot and try again.
Search here on xda for "15 seconds adb and fastboot installer".
(While installing, press Y for Yes when prompting to install it system wide)
Do not forget to reboot!
Sent from my SM-G925F using XDA-Developers mobile app

ADB tricks/Creating an Android multitool in C# for beginners in 20minutes.

This is a video i posted for beginners with no programming experience needed.
Its a video on how to create an android multitool with some great features.
Functions include
- installing APK
- sideloading zip
- making a backup
- rebooting normally, to bootloader and recovery via ADB
- rebooting via fastboot
- unlocking bootloader
- flashing system
- flashing data
- flashing zip file
- flashing recovery
- flashing boot(kernel)
Requirements
- A computer
- Microsoft visual studio community edition(free), Download
- ADB, adb DLL files and fastboot, Download
Heres my form1 source code file for reference if needed, View
So follow the video, Like, share and subscribe for more to come!
Additional things you can implement
ADB tricks
Hot reboot
adb shell su -c busybox killall system_server
Click to expand...
Click to collapse
Remove lockscreen password
adb shell su -c rm /data/system/*.key && adb shell su -c rm /data/system/locksettings*
Click to expand...
Click to collapse
Clear dalvik-cache
adb shell su -c rm -R /data/dalvik-cache
Click to expand...
Click to collapse
Factory reset
adb shell su -c recovery --wipe_data
Click to expand...
Click to collapse
you can make a debloater, similiar to this but replace it with the apps you wanna remove
adb shell su -c rm -R /system/app/firstAppToRemove && adb shell su -crm -R /system/priv-app/NameOfSecondApp
Click to expand...
Click to collapse
Clear connected wifi cache
adb shell su -c rm /data/misc/wifi/wpa_supplicant.conf
Click to expand...
Click to collapse
Purchase a phone with FRP but USB debugging enabled? pull this file, open it and the name of the persons gmail account is in it
adb pull /data/system/sync/accounts.xml
Click to expand...
Click to collapse
Change wallpaper
adb push Wallpaper.jpg /data/local/tmp && adb shell su -c mv /data/local/tmp/Wallpaper.jpg /data/system/users/0/wallpaper
Click to expand...
Click to collapse
Disable bootsounds
adb shell su -c mv /system/media/audio/ui/PowerOn.ogg PowerOn.ogg.disabled
Click to expand...
Click to collapse
Re-enable bootsounds
adb shell su -c mv /system/media/audio/ui/PowerOn.ogg.disabled PowerOn.ogg
Click to expand...
Click to collapse
More tricks with ADB upon request
May update this tonight and add more features
You always creating awesome stuff, and tutorials, proud of you.
Gonna update tonight and add a few things like passcode removal option, FRP bypassing, sending text messages and playing media thats on the device
Ricky Divjakovski said:
Gonna update tonight and add a few things like passcode removal option, FRP bypassing, sending text messages and playing media thats on the device
Click to expand...
Click to collapse
Awesome, would make for a nice personal tool.
Very nice guide
Thank you for sharing
Can you please tell me what are the busybox commands of reboot to recovery,download mode and fast reboot and restart system ui
sohamsen said:
Very nice guide
Thank you for sharing
Can you please tell me what are the busybox commands of reboot to recovery,download mode and fast reboot and restart system ui
Click to expand...
Click to collapse
Check the first post now
Updated with ADB tricks aswell you can i,plement in your own tools
Ricky Divjakovski said:
Updated with ADB tricks aswell you can i,plement in your own tools
Click to expand...
Click to collapse
Thank you
gonna update tonight and and txt message capabillities
Ricky Divjakovski said:
This is a video i posted for beginners with no programming experience needed.
Its a video on how to create an android multitool with some great features.
Functions include
- installing APK
- sideloading zip
- making a backup
- rebooting normally, to bootloader and recovery via ADB
- rebooting via fastboot
- unlocking bootloader
- flashing system
- flashing data
- flashing zip file
- flashing recovery
- flashing boot(kernel)
Requirements
- A computer
- Microsoft visual studio community edition(free), Download
- ADB, adb DLL files and fastboot, Download
Heres my form1 source code file for reference if needed, View
So follow the video, Like, share and subscribe for more to come!
Additional things you can implement
ADB tricks
Hot reboot
Remove lockscreen password
Clear dalvik-cache
Factory reset
you can make a debloater, similiar to this but replace it with the apps you wanna remove
Clear connected wifi cache
Purchase a phone with FRP but USB debugging enabled? pull this file, open it and the name of the persons gmail account is in it
Change wallpaper
Disable bootsounds
Re-enable bootsounds
More tricks with ADB upon request
Click to expand...
Click to collapse
How a bout carrier unlock ?
Ricky Divjakovski said:
This is a video i posted for beginners with no programming experience needed.
Its a video on how to create an android multitool with some great features.
Functions include
- installing APK
- sideloading zip
- making a backup
- rebooting normally, to bootloader and recovery via ADB
- rebooting via fastboot
- unlocking bootloader
- flashing system
- flashing data
- flashing zip file
- flashing recovery
- flashing boot(kernel)
Requirements
- A computer
- Microsoft visual studio community edition(free), Download
- ADB, adb DLL files and fastboot, Download
Heres my form1 source code file for reference if needed, View
So follow the video, Like, share and subscribe for more to come!
Additional things you can implement
ADB tricks
Hot reboot
Remove lockscreen password
Clear dalvik-cache
Factory reset
you can make a debloater, similiar to this but replace it with the apps you wanna remove
Clear connected wifi cache
Purchase a phone with FRP but USB debugging enabled? pull this file, open it and the name of the persons gmail account is in it
Change wallpaper
Disable bootsounds
Re-enable bootsounds
More tricks with ADB upon request
Click to expand...
Click to collapse
Can you please share that script please???????

How prevent from Auto upgrading to Oreo?

I turned off Auto download on WiFi, but I'm not confident it will stop update to Oreo.
Anyone know if/what I need to do to prevent the update?
I found in Developer Options an auto system update option that I turned off but it still updated. Dammit!
No help from anyone here either. Maybe it can't be prevented.
I have deactivated network access for the app „System Update“ and deactivated the search for updates from within the update app.
Seems to work.
I'll keep that in mind if it happens again.
Update on turning off updates in Developer options: I have since found this to be what happens after turning off auto update in dev options:
It downloads the update
It puts a notice up that it has upgraded and I need to boot (that was when I posted about it still updating)
But turns out it does not actually perform the update.
It is a bit annoying. I get that notice and it remains in the notifications, even though I have gone in and turned off that notification. As long as it doesn't update, I guess I can live with it.
As it's already downloaded, I'd say your options won't help me at this point.
To get rid oft the notification, open Settings » Apps and delete data an cache oft the Systemupdate app. Then continue restricting its network access ( all three options) and notifications. To be sure, disable its ability to change system settings.
itsjustmeagain said:
I have deactivated network access for the app „System Update“ and deactivated the search for updates from within the update app.
Seems to work.
Click to expand...
Click to collapse
I presume I disable network access under networked apps menu. The only access listed there is mobile. I would think it could still get there when hooked to Wi-Fi.
Do not see an app called update for which to disable search. But I have applied all of your other suggestions, and appreciate your help.
without root : adb shell pm uninstall -k --user 0 com.huawei.android.hwouc
Done !
I was surprised...just got another prompt to update. Wanted access to photos. I denied and cancelled. I haven't had that particular promo for a while. I bet outs prompting now because I deleted the download. Although I have auto update turned off in developer options.
use my command and you'll never get this update again
mrassol said:
use my command and you'll never get this update again
Click to expand...
Click to collapse
Ok. Thanks. I'll have to get the appropriate stuff installed on the PC to do that. Since moving to this phone from Samsungs, I've not used any of that stuff, or done any rooting (I do miss root a bit).
mrassol said:
use my command and you'll never get this update again
Click to expand...
Click to collapse
So I have just finished a fresh reload of the original ROM, and now want to trh the command you listed
adb shell pm uninstall -k --user 0 com.huawei.android.hwouc
Click to expand...
Click to collapse
But I can't get ADB to recognize the phone. I have USB Debugging turned on. I have Hisuite able to see it. But ADB does not see it.
When I search Google for how to do ADB on the Mate 9, I keep getting led to info about installing fastboot. When I go to the Huwaei site to download the fastboot / adb stuff, the site freezes.
Any suggestions?
ewingr said:
So I have just finished a fresh reload of the original ROM, and now want to trh the command you listed
But I can't get ADB to recognize the phone. I have USB Debugging turned on. I have Hisuite able to see it. But ADB does not see it.
When I search Google for how to do ADB on the Mate 9, I keep getting led to info about installing fastboot. When I go to the Huwaei site to download the fastboot / adb stuff, the site freezes.
Any suggestions?
Click to expand...
Click to collapse
have you tried to uncheck and recheck usb debugging ?
what does adb devices tells you ?
mrassol said:
have you tried to uncheck and recheck usb debugging ?
what does adb devices tells you ?
Click to expand...
Click to collapse
I don't know what was going on. AFter posting, I was chasing USB drivers. But I was having problems finding them to download too. I tried it again though, and it is now working. Not sure what was going on.
Thanks for your input. I appreciate it.
Restore update
Hm, and how it restore, again install it com.huawei.android.hwouc ?
Where is download it?
Thanks
minzak said:
Hm, and how it restore, again install it com.huawei.android.hwouc ?
Where is download it?
Thanks
Click to expand...
Click to collapse
adb shell cmd package install-existing com.huawei.android.hwouc
For me it's better to disable/enable this app:
adb shell pm disable-user com.huawei.android.hwouc
adb shell pm enable --user 0 com.huawei.android.hwouc
minzak said:
Hm, and how it restore, again install it com.huawei.android.hwouc ?
Where is download it?
Thanks
Click to expand...
Click to collapse
To disable System Update, use:
adb shell pm disable-user com.huawei.android.hwouc
If you ever want to enable it back, simply go to Settings, Apps, check to show System apps and services, scroll to System Update and Enable
Tuxozaur said:
adb shell cmd package install-existing com.huawei.android.hwouc
For me it's better to disable/enable this app:
adb shell pm disable-user com.huawei.android.hwouc
adb shell pm enable --user 0 com.huawei.android.hwouc
Click to expand...
Click to collapse
When I type in:
adb shell cmd package install-existing com.huawei.android.hwouc
Click to expand...
Click to collapse
I get error "Unknown command: install-existing"
So I tried:
adb shell cmd package install -existing com.huawei.android.hwouc
Click to expand...
Click to collapse
I get this:
Exception occurred while dumping:
java.lang.IllegalArgumentException: Unknown option -e
at com.android.server.pm.PackageManagerShellCommand.makeInstallParams(PackageManagerShellCommand.java:1070)
at com.android.server.pm.PackageManagerShellCommand.runInstall(PackageManagerShellCommand.java:139)
at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:94)
at android.os.ShellCommand.exec(ShellCommand.java:94)
at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:19505)
at android.os.Binder.shellCommand(Binder.java:468)
at android.os.Binder.onTransact(Binder.java:367)
at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:2387)
at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:3504)
at com.android.server.pm.HwPackageManagerService.onTransact(HwPackageManagerService.java:659)
at android.os.Binder.execTransact(Binder.java:565)
Click to expand...
Click to collapse
So I did a list of the command parameters, and do not even see anywhere that -existing would be used.
Can someone please provide me correct command to re-install the com.huawei.android.hwouc?
ewingr said:
When I type in:
I get error "Unknown command: install-existing"
...
Can someone please provide me correct command to re-install the com.huawei.android.hwouc?
Click to expand...
Click to collapse
Correct re-install command is as in the Post #15:
Code:
adb shell cmd package install-existing com.huawei.android.hwouc
See also:
https://www.xda-developers.com/uninstall-carrier-oem-bloatware-without-root-access/
https://forum.xda-developers.com/ma...-bloatware-blocking-ads-t3971297/post80526831
and attachments (batch script - rename to bat, and screenshot from PC)
Code:
ECHO OFF
CLS
adb wait-for-device devices
PAUSE
ECHO List packages
adb shell pm list packages
PAUSE
ECHO Disable System Update
adb shell pm disable-user com.huawei.android.hwouc
PAUSE
ECHO List disabled packages
adb shell pm list packages -d
PAUSE
ECHO Re-enable System Update
adb shell pm enable com.huawei.android.hwouc
PAUSE
ECHO Uninstall System Update
adb shell pm uninstall -k --user 0 com.huawei.android.hwouc
PAUSE
ECHO Re-install System Update
adb shell cmd package install-existing com.huawei.android.hwouc
PAUSE
Make sure to have ADB USB debugging enabled in Development menu. PC must be granted for debugging (from the phone side).
Ofc, drivers, etc must be installed to the PC - Minimal ADB and Fastboot package (search on XDA) will do
Problem is, I have already run the delete cmd from earlier in the thread (a reply to my original post here.) Now I need to reinstall. The post I quoted supposedly is how to do that, but I'm getting the errors noted. Going forward I will do it per your suggestion.
Hoping someone can give me correct syntax to revive the update functionality.
ewingr said:
Problem is, I have already run the delete cmd from earlier in the thread (a reply to my original post here.) Now I need to reinstall. The post I quoted supposedly is how to do that, but I'm getting the errors noted. Going forward I will do it per your suggestion.
Hoping someone can give me correct syntax to revive the update functionality.
Click to expand...
Click to collapse
There is no ADB delete cmd - could you be precise and quote exactly the command you originally used?
And the ROGHT commands for ADB re-enabling and re-installing are e.g in my previous post, there are no other 'correct syntax' commands (Google search is also your friend)
If your ADB does not recognize
adb shell cmd package install-existing ...
then something is wrong with your ADB installation on PC or settings on the phone.
Follow the first link in my previous answer and set/install ADB exactly as described in the XDA article
Ofc, if you rooted the phone and you really DELETED hwouc, then you can not reinstall by ADB - but then ADB would not complain that it did not recognize the command but would complain that package did not exist

[GUIDE][NO ROOT][7TH GEN/OLDER] Disable System Apps on Fire HD 7/8/10:

LOOKS LIKE THIS ONLY WORKS FOR 5.6.1.0 AND UP BUT YOU CAN ALWAYS TRY IF YOU WANT, THIS *SHOULD* NOT DAMAGE YOUR DEVICE
THIS DOES NOT WORK ON NEW 2018 MODELS.
You can use this method in any tools or scripts, but you must add a link to this thread in these threads, videos, etc.
Hi!
This is a guide on how to disable system apps on 7th Generation or older Fire tablets.
This guide *should* work in theory for every Fire tablet, in every version, but I only tried this is my HD 8, version 5.6.1.0.
(Also the "pm hide" command does not just hide the app, it is almost completely identical to "pm disable", only the system interprets it differently. So, yes, you will notice a good increase in performance after you do this!)
Please hit thanks if this helped, it is easier than commenting thanks...
--You'll require a PC with ADB installed.--
--------
MANUAL METHOD:
1.) I attached an APK for "Amazon Facebook Share" below,(edit: it is not displaying properly in this thread, see post #1) install it with ADB, or copy it into the device and install it manually.
2.) Reboot.
3.) Now open the command prompt, and type:
Code:
adb shell
run-as com.amazon.unifiedsharefacebook
id
4.) If the "id" command output *does not* start with "uid=2000" then you are good to go! Just run "pm hide" on every system app package you want to disable, you can find some lists in this forums. (If it does not, PM me your output or reply in this thread with the output)
5.) So, it looks like that this sheet works well.
SEMI-AUTOMATIC METHOD:
SORRY, CURRENTLY THE SEMI AUTO METHOD IS BROKEN, I'LL TRY TO FIX IT.
1.) Download the attached .ZIP and extract it, see post #30.
2.) Run the batch file, (it will reboot your device).
3.) Now continue the step #3 from above.
--------
If you try to access a disabled app, it will show an annoying warning, (like accessing "System Updates" in Device Options after disabling OTA)
Code:
The requested action is not permitted. Check Parental Controls settings and retry.
IMPORTANT- If you disable com.amazon.firelauncher, everything will work almost perfectly, but you will see the warning message I mentioned above every time you press home.
--------
Good Luck with disabling, and don't disable critical parts!
Here is the APK.
Sadly didnt work, have a Fire HD 8, 5.6.0.1
Installed it via adb install -r -d with the following error.
Failure [INSTALL_FAILED_MISSING_SHARED_LIBRARY]
Works !
works on 5.6.2.0
removed the apps from the bloatware spreadsheet
Not yet rebooted my fire hd8
Need help with my fire HD 8 running fire OS 5.6.2.0
Supersonic27543 said:
THIS IS STILL UNCONFIRMED, AND MAY OR MAY NOT WORK. BUT IT JUST WORKED FOR MY DEVICE.
Hi, I'll be unable to be in this forums for some time, maybe for a couple of months, (I will still check the forums when I can) so I'm going to leave a gift for everyone!
This guide *should* work in theory for every Fire tablet, in every version, but I only tried this is my HD 8, versions 5.6.0.1 & 5.6.1.0.
(Also the "pm hide" command does not just hide the app, it is almost completely identical to "pm disable", only the system interprets it differently. So, yes, you will notice a good increase in performance after you do this!)
-You'll require a PC with ADB installed.
1.) I attached an APK for "Amazon Facebook Share" below,(edit: it is not displaying properly in this thread, see post #1) install it with ADB, or copy it into the device and install it manually.
2.) Reboot.
3.) Now open the command prompt, and type:
Code:
adb shell
run-as com.amazon.unifiedsharefacebook
id
4.) If the "id" command output *does not* start with "uid=2000" then you are good to go! Just run "pm hide" on every system app package you want to disable, you can find some lists in this forums. (If it does not, PM me your output or reply in this thread with the output)
If you try to access a disabled app, it will show an annoying warning, (like accessing "System Updates" in Device Options after disabling OTA)
Code:
The requested action is not permitted. Check Parental Controls settings and retry.
IMPORTANT- If you disable com.amazon.firelauncher, everything will work almost perfectly, but you will see the warning message I mentioned above every time you press home.
Good Luck with disabling, and don't disable critical parts!
Click to expand...
Click to collapse
hey, I am trying to get rid of some apps on the fire HD 8 and what this post said was not working and I was hoping you could help me out...
1. when I put the apk in the storage and try to install it on my Fire it comes back and says "app not installed" but I tried to push it with ADB and still no luck...so I try my luck and try all the commands anyway and here is the script I got back:
C:\Tools\platform-tools_r28.0.0-windows\platform-tools>adb shell
[email protected]:/ $ run-as com.amazon.unifiedsharefacebook
run-as: Package 'com.amazon.unifiedsharefacebook' is not debuggable
1|[email protected]:/ $ id
uid=2000(shell) gid=2000(shell) groups=1003(graphics),1004(input),1007(log),1011(adb),1015(sdcard_rw),1028(sdcard_r),3001(net_bt_admin),3002(net_bt),3003(inet),3006(net_bw_stats) context=u:r:shell:s0
[email protected]:/ $
anything would help.
Thanks
Rangerclass said:
hey, I am trying to get rid of some apps on the fire HD 8 and what this post said was not working and I was hoping you could help me out...
1. when I put the apk in the storage and try to install it on my Fire it comes back and says "app not installed" but I tried to push it with ADB and still no luck...so I try my luck and try all the commands anyway and here is the script I got back:
C:\Tools\platform-tools_r28.0.0-windows\platform-tools>adb shell
[email protected]:/ $ run-as com.amazon.unifiedsharefacebook
run-as: Package 'com.amazon.unifiedsharefacebook' is not debuggable
1|[email protected]:/ $ id
uid=2000(shell) gid=2000(shell) groups=1003(graphics),1004(input),1007(log),1011(adb),1015(sdcard_rw),1028(sdcard_r),3001(net_bt_admin),3002(net_bt),3003(inet),3006(net_bw_stats) context=u:r:shell:s0
[email protected]:/ $
anything would help.
Thanks
Click to expand...
Click to collapse
i've copied the apk in /sdcard and then pm install -r -d /sdcard/com.amazon.unifiedsharefacebook.apk
t0x1cSH said:
i've copied the apk in /sdcard and then pm install -r -d /sdcard/com.amazon.unifiedsharefacebook.apk
Click to expand...
Click to collapse
I just got the tablet on Prime day and have not yet got the sdcard...
is there anyway i could do it without and what Tablet do you have?
mine is a Fire HD 8 7th gen running OS 5.6.2.0
thanks for the advice and hope we can figure something out.
Rangerclass said:
I just got the tablet on Prime day and have not yet got the sdcard...
is there anyway i could do it without and what Tablet do you have?
mine is a Fire HD 8 7th gen running OS 5.6.2.0
thanks for the advice and hope we can figure something out.
Click to expand...
Click to collapse
simply copy the apk on the device via usb cable in the root directory
open adb shell on your pc
run pm install -r -d /sdcard/com.amazon.unifiedsharefacebook.apk
then run run-as com.amazon.unifiedsharefacebook
and then check your id
t0x1cSH said:
simply copy the apk on the device via usb cable in the root directory
open adb shell on your pc
run pm install -r -d /sdcard/com.amazon.unifiedsharefacebook.apk
then run run-as com.amazon.unifiedsharefacebook
and then check your id
Click to expand...
Click to collapse
Thanks you so much.
I was doing /local not /sdcard because I thought that local would be it because I did not have a SD card yet.
the ID has now changed and I should be able to complete the first post.
Thank you so much for your time and help.
t0x1cSH said:
simply copy the apk on the device via usb cable in the root directory
open adb shell on your pc
run pm install -r -d /sdcard/com.amazon.unifiedsharefacebook.apk
then run run-as com.amazon.unifiedsharefacebook
and then check your id
Click to expand...
Click to collapse
I still get the [INSTALL_FAILED_MISSING_SHARED_LIBRARY] error
edt: not sure if I want to update if sooner or later an exploit might be found..? what do you guys think
Worked for HD7 (7th Edition) with OS 5.6.1.0
Now I can disable ("hide") further OTA updates.
Thank you very much.
Edit: I bought my HD7 last year, which came with O.S. 5.4.0.0. However, after "pm uninstall" Special Offer and a few Amazon Apps, I forgot to "pm uninstall" OTA. Consequently, it continued to get OTA updates till now.
Dan_firehd said:
Worked on HD7 (7th Edition) with OS 5.6.1.0
Now I can disable ("hide") further OTA updates.
Thank you very much.
Click to expand...
Click to collapse
It worked for HD 7? Nice :good:
vierlex said:
I still get the [INSTALL_FAILED_MISSING_SHARED_LIBRARY] error
edt: not sure if I want to update if sooner or later an exploit might be found..? what do you guys think
Click to expand...
Click to collapse
That error shows when the device does not support the APK. Is it a HD 8 2016? Also, do not update if you don't have to, 5.6.1.0 is considerably reinforced against exploits than previous versions. But if you really want to disable, it may be worth a try.
This is awesome! This worked on my 7th gen HD 8.
I followed the list of apps in this thread for what to hide (plus a little more): https://forum.xda-developers.com/hd8-hd10/general/debloat-fire-hd-2017-kindle-prime-music-t3729209
But I think I hid something important as I have a red line across the bottom of my screen now....
I know you said we need a PC with adb installed, but would this not also work with a terminal emulator?
Sent from my SAMSUNG-SM-G935A using Tapatalk
I get INSTALL_FAILED_INVALID_URI when trying to install on a Fire HD 8 2017 with 5.6.2 is it blocked in 5.6.2
I am so hoping this works for me! When I have the time to give it a try I will let you know.
getochkn said:
I get INSTALL_FAILED_INVALID_URI when trying to install on a Fire HD 8 2017 with 5.6.2 is it blocked in 5.6.2
Click to expand...
Click to collapse
I tried to link to the path /sdcard/Download/com.blabla.apk and it installed no problem.
I still cant properly hide the apps tho. All apps I try get hidden from the launcher but still exist and are active according to the settings/apps.
However, the apps cannot be run by any means...so this may work afterall.
Rollercoaster this one.
Edit: Vesion 5.6.2.0 install date: 11.07.2018
I'll post an update on the OTA check, if no automatic check is done!
You have to reinstall the apk every time you reboot, before you try the "run-as" command:
Code:
adb install -r -d .\com.amazon.unifiedsharefacebook.apk
I didn't have to rename the apk.
Yes, the apps still show up in the Settings and don't show as disabled in there, but the apps don't show in the launcher and can't be run, which is really what I'm looking for.
Badass post, Supersonic27543. You keep killin it!

Anyway to unfreeze a system app which is causing boot failure from within TWRP recovery?

Basically I froze a system app that should not have been frozen through TitaniumBackup the result being my system refuses to boot, looping once and giving an error "cannot load Android system" and suggesting a full wipe, which I hope to avoid in either case.
What are my options at this point, in defrosting it or undoing what TitaniumBackup has done within the confines of the TWRP recovery or adb systems? I don't remember the package by name as I froze 2-3 of them, but I assume defrosting them all would suffice.
I will try to provide some basic information about the unit and its software if it helps. Moto G Power running Android 10 and TWRP 3.4.0.0 which is not installed but booted using fastboot and it has Magisk as root.
TaZeR369 said:
Basically I froze a system app that should not have been frozen through TitaniumBackup the result being my system refuses to boot, looping once and giving an error "cannot load Android system" and suggesting a full wipe, which I hope to avoid in either case.
What are my options at this point, in defrosting it or undoing what TitaniumBackup has done within the confines of the TWRP recovery or adb systems? I don't remember the package by name as I froze 2-3 of them, but I assume defrosting them all would suffice.
I will try to provide some basic information about the unit and its software if it helps. Moto G Power running Android 10 and TWRP 3.4.0.0 which is not installed but booted using fastboot and it has Magisk as root.
Click to expand...
Click to collapse
Have you tried this?. Don't forget to thank that person if it works.
If it doesn't work, you can use ADB through twrp with the Package Manager binary from /system/xbin/pm to list all disabled apps like this:
Bash:
adb shell pm list packages -d
then you can enable those disabled apps/packages through:
Bash:
adb shell pm enable <userID> <package name>
Slim K said:
Have you tried this?. Don't forget to thank that person if it works.
If it doesn't work, you can use ADB through twrp with the Package Manager binary from /system/xbin/pm to list all disabled apps like this:
Bash:
adb shell pm list packages -d
then you can enable those disabled apps/packages through:
Bash:
adb shell pm enable <userID> <package name>
Click to expand...
Click to collapse
Thank you so much for the prompt reply, this totally answered my question into how TB freeze works in android, and solved my problem I can use my phone again =)

Categories

Resources