Help with a Script - General Questions and Answers

Hello, there is something that is driving me crazy.
I don't use the GPS that much, due to that i let many google play services disable (with the disable service app). But for when i do need, i wish to create a script to enable those services that i know i'll need... and then another script to disable when i'm done.
But i can't make it work.
Here is the script, what i need to do to fix it to work?
Code:
#!/system/bin/sh
pm disable com.google.android/com.google.android.location.geocode.GeocodeService
pm disable com.google.android/com.google.android.location.geofencer.service.GeofenceProviderService
pm disable com.google.android/com.google.android.gms.cast.media.CastMediaRouteProviderService
pm disable com.google.android/com.google.android.gms.checkin.CheckinService
pm disable com.google.android/com.google.android.gms.config.ConfigService
pm disable com.google.android/com.google.android.location.fused.service.FusedProviderService
pm disable com.google.android/com.google.android.gms.gcm.http.GoogleHttpService
pm disable com.google.android/com.google.android.gms.icing.service.IndexService
pm disable com.google.android/com.google.android.gms.playlog.service.MonitorService
pm disable com.google.android/com.google.android.gms.ads.identifier.service.AdvertisingIdNotificationService
pm disable com.google.android/com.google.android.gms.reminders.notification.NotificationService
pm disable com.google.android/com.google.android.gms.app.service.PackageBroadcastService
pm disable com.google.android/com.google.android.gms.ads.AdRequestBrokerService
pm disable com.google.android/com.google.android.gms.clearcut.service.ClearcutLoggerService
pm disable com.google.android/com.google.android.gms.config.ConfigFetchService
pm disable com.google.android/com.google.android.location.reporting.service.DispatchingService
pm disable com.google.android/com.google.android.gms.gcm.GcmRegisterService
pm disable com.google.android/com.google.android.gms.gcm.GcmService
pm disable com.google.android/com.google.android.gms.ads.GservicesValueBrokerService
pm disable com.google.android/com.google.android.gms.ads.jams.NegotiationService
pm disable com.google.android/com.google.android.gms.analytics.service.RefreshEnabledStateService
pm disable com.google.android/com.google.android.gms.udc.service.UdcApiService
pm disable com.google.android/com.google.android.gms.auth.be.proximity.authorization.userpresence.UserPresenceService

Pupet_Master said:
Hello, there is something that is driving me crazy.
I don't use the GPS that much, due to that i let many google play services disable (with the disable service app). But for when i do need, i wish to create a script to enable those services that i know i'll need... and then another script to disable when i'm done.
But i can't make it work.
Here is the script, what i need to do to fix it to work?
Code:
#!/system/bin/sh
pm disable com.google.android/com.google.android.location.geocode.GeocodeService
pm disable com.google.android/com.google.android.location.geofencer.service.GeofenceProviderService
pm disable com.google.android/com.google.android.gms.cast.media.CastMediaRouteProviderService
pm disable com.google.android/com.google.android.gms.checkin.CheckinService
pm disable com.google.android/com.google.android.gms.config.ConfigService
pm disable com.google.android/com.google.android.location.fused.service.FusedProviderService
pm disable com.google.android/com.google.android.gms.gcm.http.GoogleHttpService
pm disable com.google.android/com.google.android.gms.icing.service.IndexService
pm disable com.google.android/com.google.android.gms.playlog.service.MonitorService
pm disable com.google.android/com.google.android.gms.ads.identifier.service.AdvertisingIdNotificationService
pm disable com.google.android/com.google.android.gms.reminders.notification.NotificationService
pm disable com.google.android/com.google.android.gms.app.service.PackageBroadcastService
pm disable com.google.android/com.google.android.gms.ads.AdRequestBrokerService
pm disable com.google.android/com.google.android.gms.clearcut.service.ClearcutLoggerService
pm disable com.google.android/com.google.android.gms.config.ConfigFetchService
pm disable com.google.android/com.google.android.location.reporting.service.DispatchingService
pm disable com.google.android/com.google.android.gms.gcm.GcmRegisterService
pm disable com.google.android/com.google.android.gms.gcm.GcmService
pm disable com.google.android/com.google.android.gms.ads.GservicesValueBrokerService
pm disable com.google.android/com.google.android.gms.ads.jams.NegotiationService
pm disable com.google.android/com.google.android.gms.analytics.service.RefreshEnabledStateService
pm disable com.google.android/com.google.android.gms.udc.service.UdcApiService
pm disable com.google.android/com.google.android.gms.auth.be.proximity.authorization.userpresence.UserPresenceService
Click to expand...
Click to collapse
You need to have Super User permission to run it.
Just add 'su' command before executing the disable command, like this:
Code:
#!/system/bin/sh
su
pm disable whatever.....
Also, make sure you have set the attribute 777 (rwxrwxrwx) to the script file before executing.
If still it doesn't work, tell what error you get.

GokulNC said:
You need to have Super User permission to run it.
Just add 'su' command before executing the disable command, like this:
Code:
#!/system/bin/sh
su
pm disable whatever.....
Also, make sure you have set the attribute 777 (rwxrwxrwx) to the script file before executing.
If still it doesn't work, tell what error you get.
Click to expand...
Click to collapse
Thanks.
I'm running the scripts on SManager, so i though that the SU command wasn't necessary as i check the SU box on the script configuration on the SManager software.
I couldn't change the permissions, even with root allow on Root browser it failued.
Now the error haven't happen since i put the SU command before the pm disable lines. I'll test if it worked though as when i check on DisableServices the services are still enabled.

Related

freezing

can someone tell me how to freeze and which app i should use for that? also a list of which apps are safe to freeze please!
Sent from my SGH-T959V using xda app-developers app
You can download a Titanium Backup from play store, you can do a lot of things with it including freezing of apps, and for the apps to freeze it depends on which one you seldom use. i usually freeze google maps as i didn't use it and email. and just don't install apps that u don't really want or it's not necessary to save you from freezing them..
App quarantine, its on playstore
Dont forget to hit thanks button
thank you guys its a great help. I'll look into that app quarantine and even try freezing unused bloatware
Sent from my SGH-T959V using xda app-developers app
The Android package manager is available as pm from the command line of a running phone (Android needs to be up, not just recovery). That should also do it, as well as a few other things.
Code:
[email protected]:/ # pm
usage: pm list packages [-f] [-d] [-e] [-s] [-e] [-u] [FILTER]
pm list permission-groups
pm list permissions [-g] [-f] [-d] [-u] [GROUP]
pm list instrumentation [-f] [TARGET-PACKAGE]
pm list features
pm list libraries
pm path PACKAGE
pm install [-l] [-r] [-t] [-i INSTALLER_PACKAGE_NAME] [-s] [-f] PATH
pm uninstall [-k] PACKAGE
pm clear PACKAGE
pm enable PACKAGE_OR_COMPONENT
pm disable PACKAGE_OR_COMPONENT
pm disable-user PACKAGE_OR_COMPONENT
pm set-install-location [0/auto] [1/internal] [2/external]
pm get-install-location
pm createUser USER_NAME
pm removeUser USER_ID
pm list packages: prints all packages, optionally only
those whose package name contains the text in FILTER. Options:
-f: see their associated file.
-d: filter to only show disbled packages.
-e: filter to only show enabled packages.
-s: filter to only show system packages.
-3: filter to only show third party packages.
-u: also include uninstalled packages.
pm list permission-groups: prints all known permission groups.
pm list permissions: prints all known permissions, optionally only
those in GROUP. Options:
-g: organize by group.
-f: print all information.
-s: short summary.
-d: only list dangerous permissions.
-u: list only the permissions users will see.
pm list instrumentation: use to list all test packages; optionally
supply <TARGET-PACKAGE> to list the test packages for a particular
application. Options:
-f: list the .apk file for the test package.
pm list features: prints all features of the system.
pm path: print the path to the .apk of the given PACKAGE.
pm install: installs a package to the system. Options:
-l: install the package with FORWARD_LOCK.
-r: reinstall an exisiting app, keeping its data.
-t: allow test .apks to be installed.
-i: specify the installer package name.
-s: install package on sdcard.
-f: install package on internal flash.
pm uninstall: removes a package from the system. Options:
-k: keep the data and cache directories around after package removal.
pm clear: deletes all data associated with a package.
pm enable, disable, disable-user: these commands change the enabled state
of a given package or component (written as "package/class").
pm get-install-location: returns the current install location.
0 [auto]: Let system decide the best location
1 [internal]: Install on internal device storage
2 [external]: Install on external media
pm set-install-location: changes the default install location.
NOTE: this is only intended for debugging; using this can cause
applications to break and other undersireable behavior.
0 [auto]: Let system decide the best location
1 [internal]: Install on internal device storage
2 [external]: Install on external media
so this can help freeze unwanted apps and other things?
Sent from my SGH-T959V using xda app-developers app
Yes, though Titanium Backup should probably be something you own in any event, I'd start with it. TiB is a lot easier to use than pm unless you're already digging into the depths of your ROM from the command line.
If you're using a KJ6 2.3.6 GB ROM you may not need to freeze anything. Try FB's KJ6 debloater :
http://forum.xda-developers.com/showthread.php?t=1385187
sent from me
how to flash?
Sent from my SGH-T959V using xda app-developers app
nvm i got it
Sent from my SGH-T959V using xda app-developers app

How to get over Insufficient Space in android

hey guys, it took me a long while to figure out what "Insufficient space cannot install" meant.
FIRST: IT IS ON ONE OF THE DIFFERENT PARTITIONS ON YOUR ANDROID. THIS DOESNT MEAN THAT YOU STILL CANNOT INSTALL IT.
SECOND: These partitions may be:
System
Storage
Internal
External
etc...
THIRD: of these, one is filled up and unfortunately your phone is trying to install the app on this partition itself.
like this one time, i had 400+Mb on my "System" partition, but never was able to install anything on it. finally i uninstalled many apps just to install one. I thought its a market error, but the error lies in MARKET NOT TELLING US WHICH PARTITION IS FILLED.​
FOURTH: upto today, i had no clue about the options provided by android, there is an option to choose where to install apps. my micro SDCARd of 8gb was filled, and i was unable to install 300kb apps, but could install 4mb,10mb+ apps. i did not know this was the reason(micro sdcard filled). well i came across "8 Simple Steps to Fix 'Insufficient Storage Available' on Android" and not even 8 steps will be required if you already have ADB shell. search for this on google, coz im not allowed to post links! yet
If you used ADB shell before with your phone, just go there and type:
Code:
adb shell pm get-install-location
mine returned 2
meaning all this while it was trying to install in my sdcard. I don't know how this was set.
i changed it to 1 using
Code:
adb shell pm set-install-location 1
and now i can install peacefully on my system partition with 400 mb left!
hope this helps all those poor souls out there who had been stuck in this nightmare !!
nice tip
'get-install-location' isn't available on 4.3.3 apparently, but you can still set the install location...
Code:
usage: pm [list|path|install|uninstall]
pm list packages [-f] [-d] [-e] [-u] [FILTER]
pm list permission-groups
pm list permissions [-g] [-f] [-d] [-u] [GROUP]
pm list instrumentation [-f] [TARGET-PACKAGE]
pm list features
pm list libraries
pm path PACKAGE
pm install [-l] [-r] [-t] [-i INSTALLER_PACKAGE_NAME] [-s] [-f] PATH
pm uninstall [-k] PACKAGE
pm clear PACKAGE
pm enable PACKAGE_OR_COMPONENT
pm disable PACKAGE_OR_COMPONENT
[B]pm setInstallLocation [0/auto] [1/internal] [2/external][/B]
EDIT...
ah-ha - 'getInstallLocation' is available ... so...
Code:
pm getInstallLocation
in my case it returns 0 (auto)
library linking error
.man said:
nice tip
'get-install-location' isn't available on 4.3.3 apparently, but you can still set the install location...
Code:
usage: pm [list|path|install|uninstall]
pm list packages [-f] [-d] [-e] [-u] [FILTER]
pm list permission-groups
pm list permissions [-g] [-f] [-d] [-u] [GROUP]
pm list instrumentation [-f] [TARGET-PACKAGE]
pm list features
pm list libraries
pm path PACKAGE
pm install [-l] [-r] [-t] [-i INSTALLER_PACKAGE_NAME] [-s] [-f] PATH
pm uninstall [-k] PACKAGE
pm clear PACKAGE
pm enable PACKAGE_OR_COMPONENT
pm disable PACKAGE_OR_COMPONENT
[B]pm setInstallLocation [0/auto] [1/internal] [2/external][/B]
EDIT...
ah-ha - 'getInstallLocation' is available ... so...
Code:
pm getInstallLocation
in my case it returns 0 (auto)
Click to expand...
Click to collapse
I tried this but I am getting a linking error. "Could not load needed library
libandroid_runtime.so for app_process." I fear something is seriously hosed.
I can't update / install anything.
Bummer
Good
Good tutorials, i will reconsider, tks
First off, I'm really sorry for resurrecting this thread after so long, but since this has something to do with what I'm dealing with, I think it wouldn't hurt posting here, and besides the post reply button was still available, so...
Anyway, LG user here. I'm currently using a LG G2 derivative model aka LG G2 Lite (for Brazilian users only), which is running stock Android v 4.4.2.
I've installed JDK, Android Studio, SDK tools, all my drivers, enabled USB debug, went through the commands successfully , and now the phone outputs "2" to the 'adb shell pm get-install-location', which is external SD. On top of that, according to AppMgr III, I got:
1.1GB used size out of 1.5GB (25% remaining) - internal
1.1GB used size out of 1.5GB (25% remaining) - /storage/emulated/0
1.7GB used size out of 29.5GB (94% remaining) - /storage/external_SD
As you can see, there's plenty of space, so how come the Play Store won't let me install anything at all? I mean, I can't even download the Twitter app which is less than 50MB (as far as I remember).
I've been searching for an answer and asking away for almost a month. Running out of ideas.
I already tried removing the Play Store Services' updates, downgrading it to the stock version, nada. I can't help but wonder what I did was half the solution, is there anything else I need to do in order to make Play Store install applications on the external SD card? What's left to do?
Could someone please shed some light on this issue? I'm sure I'm not the only one.
Thanks.

[GUIDE] Almost completely debloat Fire HD 10 (2017)

This is for users who want to get rid of almost everything Amazon related their Fire HD 10 2017 comes with, including OTA, Kindle, App Store, Audible, Prime Video, Music, and services. Proceed only if you want a near vanilla Android experience.
CAUTION: expect the best, prepare for the worst. Make sure you understand how to flash stock firmware in case things go south.
Requirements:
1. Amazon Fire HD 10 2017
2. Stock ROM/firmware (tested on Fire OS 5.6.3.0 (aka 5.3.6.4)), rooted and unlocked
3. Android SDK platform tools
4. 7zip or WinRAR or any tool that can handle zip files, if you are on Windows
5. Sublime Text or Notepad++ or any editor that understands CR/LF/CR-LF line endings, if you are using Windows.
Process:
1. Root and unlock. Follow the guide linked above.
2. Install Google Play Store. You will find instructions and links in this forum.
3. Install a launcher of your choice, e.g. Nova. [important]
4. Install a keyboard of your choice, e.g. Gboard or Hacker's Keyboard (from F-Droid). [important]
5. Enable adb in settings. If you don't know what it means, this is not for you.
6. Connect the tablet to your laptop/desktop
7. Launch cmd/terminal and type adb devices to ensure there is a connection.
8. Type adb shell and then su
9. Copy and paste the following lines in the command/terminal window, or unzip the attached zip, open debloat.sh in a file editor and copy-paste.
Code:
pm disable amazon.alexa.tablet
pm disable amazon.jackson19
pm disable amazon.speech.audiostreamproviderservice
pm disable amazon.speech.davs.davcservice
pm disable amazon.speech.sim
pm disable amazon.speech.wakewordservice
pm disable com.amazon.aca
pm disable com.amazon.accessorynotifier
pm disable com.amazon.advertisingidsettings
pm disable com.amazon.ags.app
pm disable com.amazon.alexa.externalmediaplayer.fireos
pm disable com.amazon.alexa.modeswitch
pm disable com.amazon.alexa.youtube.app
pm disable com.amazon.alta.h2clientservice
pm disable com.amazon.android.marketplace
pm disable com.amazon.ava.shopping.android
pm disable com.amazon.avod
pm disable com.amazon.client.metrics
pm disable com.amazon.client.metrics.api
pm disable com.amazon.cloud9
pm disable com.amazon.cloud9.contentservice
pm disable com.amazon.cloud9.kids
pm disable com.amazon.cloud9.systembrowserprovider
pm disable com.amazon.comms.knightcontacts
pm disable com.amazon.comms.knightmessaging
pm disable com.amazon.comms.multimodaltachyonarm
pm disable com.amazon.communication.discovery
pm disable com.amazon.csapp
pm disable com.amazon.dcp
pm disable com.amazon.dee.app
pm disable com.amazon.device.backup
pm disable com.amazon.device.backup.sdk.internal.library
pm disable com.amazon.device.crashmanager
pm disable com.amazon.device.logmanager
pm disable com.amazon.device.messaging
pm disable com.amazon.device.messaging.sdk.internal.library
pm disable com.amazon.device.messaging.sdk.library
pm disable com.amazon.device.metrics
pm disable com.amazon.device.sale.service
pm disable com.amazon.device.software.ota
pm disable com.amazon.device.software.ota.override
pm disable com.amazon.device.sync
pm disable com.amazon.device.sync.sdk.internal
pm disable com.amazon.displayclockface
pm disable com.amazon.dp.contacts
pm disable com.amazon.dp.fbcontacts
pm disable com.amazon.dp.logger
pm disable com.amazon.firelauncher
pm disable com.amazon.geo.client.maps
pm disable com.amazon.geo.mapsv2
pm disable com.amazon.geo.mapsv2.services
pm disable com.amazon.gloria.graphiq
pm disable com.amazon.gloria.smarthome
pm disable com.amazon.glorialist
pm disable com.amazon.h2settingsfortablet
pm disable com.amazon.kcp.tutorial
pm disable com.amazon.kindle
pm disable com.amazon.kindle.cms
pm disable com.amazon.kindle.kso
pm disable com.amazon.kindle.otter.oobe
pm disable com.amazon.kindle.otter.oobe.forced.ota
pm disable com.amazon.kindle.personal_video
pm disable com.amazon.kindle.rdmdeviceadmin
pm disable com.amazon.kindle.unifiedSearch
pm disable com.amazon.knight.blink
pm disable com.amazon.knight.calendar
pm disable com.amazon.knight.ecs
pm disable com.amazon.knight.hds
pm disable com.amazon.kor.demo
pm disable com.amazon.legalsettings
pm disable com.amazon.logan
pm disable com.amazon.mp3
pm disable com.amazon.mw
pm disable com.amazon.mw.sdk
pm disable com.amazon.ods.kindleconnect
pm disable com.amazon.paladin
pm disable com.amazon.parentalcontrols
pm disable com.amazon.photos
pm disable com.amazon.photos.importer
pm disable com.amazon.platform
pm disable com.amazon.platformsettings
pm disable com.amazon.pm
pm disable com.amazon.providers.contentsupport
pm disable com.amazon.recess
pm disable com.amazon.redstone
pm disable com.amazon.securitysyncclient
pm disable com.amazon.settings.systemupdates
pm disable com.amazon.socialplatform
pm disable com.amazon.speechui
pm disable com.amazon.sync.provider.ipc
pm disable com.amazon.sync.service
pm disable com.amazon.tablet.dock.settings
pm disable com.amazon.tablet.voicesettings
pm disable com.amazon.tabletsubscriptions
pm disable com.amazon.tahoe
pm disable com.amazon.tcomm
pm disable com.amazon.tcomm.client
pm disable com.amazon.unifiedshare.actionchooser
pm disable com.amazon.unifiedsharegoodreads
pm disable com.amazon.unifiedsharesinaweibo
pm disable com.amazon.unifiedsharetwitter
pm disable com.amazon.vans.alexatabletshopping.app
pm disable com.amazon.venezia
pm disable com.amazon.virtual.dash.knight.app
pm disable com.amazon.weather
pm disable com.amazon.webapp
pm disable com.amazon.whisperlink.activityview.android
pm disable com.amazon.whisperlink.core.android
pm disable com.amazon.whisperplay.contracts
pm disable com.amazon.windowshop
pm disable com.amazon.zico
pm disable com.amazon.zordon
pm disable com.android.calendar
pm disable com.android.contacts
pm disable com.android.deskclock
pm disable com.android.email
pm disable com.android.music
pm disable com.android.onetimeinitializer
pm disable com.android.protips
pm disable com.android.sharedstoragebackup
pm disable com.android.wallpapercropper
pm disable com.audible.application.kindle
pm disable com.goodreads.kindle
pm disable com.kingsoft.office.amz
pm disable jp.co.omronsoft.iwnnime.languagepack.zhcn_az
pm disable jp.co.omronsoft.iwnnime.mlaz
pm disable org.mopria.printplugin
10. Disconnect when it's done and reboot.
Disclaimer: this has been tested on 3 Fire HD 10s (64GB), running latest stock Fire OS, rooted and unlocked. You are nonetheless responsible for any hardware/software issues and loss of time.
Attached: deboat.zip containing debloat.sh and rebloat.sh (which can be used to restore your tablet back to Amazon defaults, including all the apps, services, and OTA).
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
--reserved--
Thanks for putting this together, Yamaraj.
Does anybody know what packages are needed to run the kindle app? I've tried preserving just com.amazon.kindle in the past, and that doesn't seem to do the trick.
Thank you so much Yamaraj.
I didn't root my fire hd 10 so I used another method of using 'pm hide' rather than 'pm disable' (https://forum.xda-developers.com/hd8-hd10/general/a-t3820744).
Everything works fine, except when I press home button to go back to default screen, an error message always pops up. When I reactivate fire launcher then it works fine but I really want to use nova launcher. Could you let me know if there's a solution to this?
powergl said:
Thank you so much Yamaraj.
I didn't root my fire hd 10 so I used another method of using 'pm hide' rather than 'pm disable' (https://forum.xda-developers.com/hd8-hd10/general/a-t3820744).
Everything works fine, except when I press home button to go back to default screen, an error message always pops up. When I reactivate fire launcher then it works fine but I really want to use nova launcher. Could you let me know if there's a solution to this?
Click to expand...
Click to collapse
If you are hiding the native launcher instead of disabling it, you may need to install LauncherHijack.
For the pop up, try DataStream's Fire Toolbox - click the arrow in the lower right, and there's a "parental controls" button. This install should prevent the popups.
I have a rooted 2017 HD 8, and was doing some debloating. I must have uninstalled a few too many system apps because I now boot into a black screen. The power button still pops up a menu, and ADB still works fine. I didn't disable the apps because Im stupid. Anyone have any idea which app I need to reinstall through ADB? and maybe provide the APK for it?
edit: it has nothing to do with firelauncher, since i disabled that first and it was fine on reboot. (Nova launcher is also installed). Might be amazon.paladin or .knight. No idea what that one is for.
Thanks!
Been looking for a pre compiled list to apply to my firmware tool. There's no way to make one automatically so I've been slowly typing one out by hand. This will save me a lot off time. Is this based off the fireos version that has the messed up version number?
powergl said:
Thank you so much Yamaraj.
I didn't root my fire hd 10 so I used another method of using 'pm hide' rather than 'pm disable' (https://forum.xda-developers.com/hd8-hd10/general/a-t3820744).
Everything works fine, except when I press home button to go back to default screen, an error message always pops up. When I reactivate fire launcher then it works fine but I really want to use nova launcher. Could you let me know if there's a solution to this?
Click to expand...
Click to collapse
I have only tested the list with pm disable, exactly as described in the original post and it works. I suspect there might be some issues and need for workarounds if you choose to hide those apps and services instead of disabling them.
RonnieTheBear said:
If you are hiding the native launcher instead of disabling it, you may need to install LauncherHijack.
Click to expand...
Click to collapse
Correct.
DragonFire1024 said:
Been looking for a pre compiled list to apply to my firmware tool. There's no way to make one automatically so I've been slowly typing one out by hand. This will save me a lot off time. Is this based off the fireos version that has the messed up version number?
Click to expand...
Click to collapse
Yes, it's based on FireOS 5.6.3.0/5.3.6.4 (update-kindle-40.6.2.6_user_626533320.bin).
DragonFire1024 said:
Been looking for a pre compiled list to apply to my firmware tool. There's no way to make one automatically so I've been slowly typing one out by hand. This will save me a lot off time. Is this based off the fireos version that has the messed up version number?
Click to expand...
Click to collapse
Is this of any help to you at all?
RonnieTheBear said:
Is this of any help to you at all?
Click to expand...
Click to collapse
Yes thank you. Will save me a lot of time.
DragonFire1024 said:
Yes thank you. Will save me a lot of time.
Click to expand...
Click to collapse
Glad I could be of some small help to you - thank you for all the work you're doing on this device and sharing with the community!
RonnieTheBear said:
Glad I could be of some small help to you - thank you for all the work you're doing on this device and sharing with the community!
Click to expand...
Click to collapse
My hacks and tricks serve no general purpose if I didn't share with everyone. Not sharing takes the fun out of it for everyone else.
Sent from my MotoG3 using XDA Labs
Yes. This is awesome. That free ram stat looks sexy. I am assuming yes but does this kill ads on the lockscreen too?
runderekrun said:
Yes. This is awesome. That free ram stat looks sexy. I am assuming yes but does this kill ads on the lockscreen too?
Click to expand...
Click to collapse
It should yes.
Thank you so much used the adb commands to remove amazon from my HD 8 (MTK-SU Temp Root) and HD 10(Magisk Root).
You helped a lot, Thank you again !
Yeah dude thanks again. After using my tablet debloated for a few days it's like night and day difference. Things actually stay in the background! No 1-2 second delay every time I hit the home button! Obviously the holy grail is AOSP but this is a pretty good stopgap.
runderekrun said:
Yeah dude thanks again. After using my tablet debloated for a few days it's like night and day difference. Things actually stay in the background! No 1-2 second delay every time I hit the home button! Obviously the holy grail is AOSP but this is a pretty good stopgap.
Click to expand...
Click to collapse
The stuff we can't immediately debloat there is a secret to. You have to look through files and configurations but sometimes it's as much as changing a value from 1 to 2 or true to false etc. I am almost to the point were there are no Amazon processes or services running in the background at all. Some of these things are set up in the framework so if you're not careful and you remove the wrong thing and don't replace it properly then you don't get it working framework which means your system doesn't boot. Thank God we have TWRP now. Recovering from those tests would take upwards of an hour using flash fire.
Sent from my Amazon KFSUWI using XDA Labs
---------- Post added at 04:40 AM ---------- Previous post was at 04:00 AM ----------
On top of my framework edits to improve the Wi-Fi connections, and on the odexed rom, I think I finally put an end to the constant reconnects. If I recall, in system/etc there is a wifi_log_levels.sh I got rid of. In the permissions folder, deleted smart_battery.xml as it's nothing to do with your battery, but is a configuration file to persist the OTA app on the internet. In the framework, com.google.android.gms is removed from the list of location providers. So I readded it and removed com.amazon.platform that was there with the Nokia here app (deleted too). It's tiny things in settings like that and various places the Amazon has done. It's just a matter of reverse engineering them. Also removed the rssi build prop additions. Used root to disable auto wifi in the Amazon device settings app. now I just have to slowly track down each configuration file for the parental apps without them shutting me out of my security services
Sent from my Amazon KFSUWI using XDA Labs
to enable amazon video, you need to reenable these packages by typing:
Code:
pm enable amazon.speech.sim
pm enable com.amazon.accessorynotifier
pm enable com.amazon.alta.h2clientservice
pm enable pm disable com.amazon.avod
pm enable com.amazon.device.messaging
Couldn't get the Playstore Amazon apps to install, in my case Prime Video. During installation it says the app couldn't be installed. Looks like FireOS has some blocks implemented.
I rebloated it using the commands in the above post. Of course the device needs to registered with Amazon otherwise it throws an error.
So if you need Amazon apps, Register first -> Debloat all -> Then rebloat what you need.
Debloat Amazon
Worked perfectly at first try. Thanks a lot for this guide.

Better battery savings

Was going through Oneplus 7 Pro forum and bumped upon this thread. This definitely worked for my Oneplus 7. My battery last a bit longer and drain is noticeably slower than before.
Enable developers options.
Connect to PC with USB debugging enabled.
Type each line in CMD which CD to the platformtools/adb and press enter:
System Tracing which is automatically enabled when dev options is on.
adb shell pm disable-user com.android.traceur
Oneplus bug reporting
adb shell pm disable-user com.oneplus.opbugreportlite
Zen Mode
adb shell pm disable-user com.oneplus.brickmode
Oneplus logging
adb shell pm disable-user net.oneplus.odm
adb shell pm disable-user net.oneplus.odm.provider
Packages can be re-enabled as below if required.
adb shell pm enable <package_to_enable>
shyam.mora said:
Was going through Oneplus 7 Pro forum and bumped upon this thread. This definitely worked for my Oneplus 7. My battery last a bit longer and drain is noticeably slower than before.
Enable developers options.
Connect to PC with USB debugging enabled.
Type each line in CMD which CD to the platformtools/adb and press enter:
System Tracing which is automatically enabled when dev options is on.
adb shell pm disable-user com.android.traceur
Oneplus bug reporting
adb shell pm disable-user com.oneplus.opbugreportlite
Zen Mode
adb shell pm disable-user com.oneplus.brickmode
Oneplus logging
adb shell pm disable-user net.oneplus.odm
adb shell pm disable-user net.oneplus.odm.provider
Packages can be re-enabled as below if required.
adb shell pm enable <package_to_enable>
Click to expand...
Click to collapse
Thanks for this buddy. I have applied these on my new 1+7. Lets see how it fares in the first battery cycle after the change.
Shonilchi said:
Thanks for this buddy. I have applied these on my new 1+7. Lets see how it fares in the first battery cycle after the change.
Click to expand...
Click to collapse
I used to get around 4.5 to 5 hours of screen on time before this. And now I am getting a solid 5.5. hours. not much but definitely an improvement. Standby time also has improved considerably.
shyam.mora said:
Was going through Oneplus 7 Pro forum and bumped upon this thread. This definitely worked for my Oneplus 7. My battery last a bit longer and drain is noticeably slower than before.
Enable developers options.
Connect to PC with USB debugging enabled.
Type each line in CMD which CD to the platformtools/adb and press enter:
System Tracing which is automatically enabled when dev options is on.
adb shell pm disable-user com.android.traceur
Oneplus bug reporting
adb shell pm disable-user com.oneplus.opbugreportlite
Zen Mode
adb shell pm disable-user com.oneplus.brickmode
Oneplus logging
adb shell pm disable-user net.oneplus.odm
adb shell pm disable-user net.oneplus.odm.provider
Packages can be re-enabled as below if required.
adb shell pm enable <package_to_enable>
Click to expand...
Click to collapse
Shonilchi said:
Thanks for this buddy. I have applied these on my new 1+7. Lets see how it fares in the first battery cycle after the change.
Click to expand...
Click to collapse
In general, what maximum capacity of your battery is showing accubattery? Mine is showing that it's now 3400 mAh, where originally it was 3700. I am using the phone around 3,5 or 4 months... Maybe few times I charged it in the night, and quite often I use 2A charger, not so often the original one with fast charge...
Thanks
Wysłane z mojego GM1903 przy użyciu Tapatalka
let's give it a try
just followed you're list of disables. i look forward to any improvements :cyclops:
also. anymore feedback on battery performance or side effects?
deleted
spicegod said:
just followed you're list of disables. i look forward to any improvements :cyclops:
also. anymore feedback on battery performance or side effects?
Click to expand...
Click to collapse
I did not find at performance issues as of now. Everything is good to go.
shyam.mora said:
Was going through Oneplus 7 Pro forum and bumped upon this thread. This definitely worked for my Oneplus 7. My battery last a bit longer and drain is noticeably slower than before.
Enable developers options.
Connect to PC with USB debugging enabled.
Type each line in CMD which CD to the platformtools/adb and press enter:
System Tracing which is automatically enabled when dev options is on.
adb shell pm disable-user com.android.traceur
Oneplus bug reporting
adb shell pm disable-user com.oneplus.opbugreportlite
Zen Mode
adb shell pm disable-user com.oneplus.brickmode
Oneplus logging
adb shell pm disable-user net.oneplus.odm
adb shell pm disable-user net.oneplus.odm.provider
Packages can be re-enabled as below if required.
adb shell pm enable <package_to_enable>
Click to expand...
Click to collapse
I did it and the improvement in consumption was significant. Thanks.
Does this work on Android 10 stable?
alese13 said:
Does this work on Android 10 stable?
Click to expand...
Click to collapse
Yes it works... I disabled digital well-being also
Worked Indeed perfectly. Lets see if I get even more than 10 hrs sot now... Thanks!
himavanth.reddy925 said:
Yes it works... I disabled digital well-being also
Click to expand...
Click to collapse
What command did you use for this?
gvflavio said:
What command did you use for this?
Click to expand...
Click to collapse
Code:
adb shell pm disable-user com.google.android.apps.wellbeing
Or if you want to completely uninstall it:
Code:
adb shell pm uninstall --user 0 com.google.android.apps.wellbeing
jansohn said:
Code:
adb shell pm disable-user com.google.android.apps.wellbeing
Or if you want to completely uninstall it:
Code:
adb shell pm uninstall --user 0 com.google.android.apps.wellbeing
Click to expand...
Click to collapse
Ok
Thanks! :good:
Does anyone know any others to disable to help save battery on this non rooted beast?
DarKAngel1234 said:
Does anyone know any others to disable to help save battery on this non rooted beast?
Click to expand...
Click to collapse
You can do it from application menu in settings.
It a little bit longer to find the app name but most of the time it's quite easy.
You pick the app and tap : force to stop.
Envoyé de mon GM1903 en utilisant Tapatalk
What is the downside to this?
I want to know if there is a downside too. I just bought the phone should I apply the settings?

How To Guide [CLOSED] Closed

Close
Super handy debloating list. It definitely saved me some time. I did it right on the phone with App Manager instead of using ADB.
When removing com.google.android.dialer and com.google.android.contacts I would recommend enabling the stock versions.
Code:
adb shell pm enable com.android.dialer
adb shell pm enable com.android.contacts

Categories

Resources