[Tool][Universal Debloater][02.03.2017] Brought To You By The Phronesis Team.... - Galaxy Note 3 Android Development

The plan was to release this debloating utility in the Phronesis rom thread but it was later decided to have it in it's own dedicated thread so users of our rom don't get confused.
The script is provided as it and it's users responsibility to know what to debloat. The advice is to be careful of files to debloat. If you don't know what a file does, it's better not to remove it. You can Google what each app does if any doubt.
No member of the Know-How Team will be held responsible if you delete what you're not meant to delete. Don't expect your alarm to work if you have removed your clock, don't come crying to us that you missed you appointment because your alarm did not sound when you've debloated your clock. The utility is for people who know what they are doing!
##########################################################################################################
What's this utility for?
1. The very reason for this utility is to make a lean rom from your currently installed rom. Many users prefer to have application they don't use or consider bloat or useless removed from their phone to free up space, boost performance and reduce overhead on the system
2. Can this utility be used for other rom or is it purely for Phronesis Rom Series?
This utility can be used for any rom, any version of Lollipop or Marshmallow. Be it Note, Note 7 S4, S5 etc, can also be use for Tablets. Not tested on Nougat version.
3. How does the utility work?
The working of the utility is very simple, you tell it what you want removed by editing the debloating file and any app corresponding to that entry will be removed. You can only get back deleted files by doing a dirty flash of your rom.
4. How can I customize this utility for my usage?
Different users with different requirements. The script in the zip is based on my own preference, you will need to customize the script for your usage. Flashing the zip as it is will delete apps corresponding to the entries in the shell script which is for my own personal preference.
The attached zip as it is can be flashed to debloat your firmware. It will save about 200MB space in the system memory. But know that files will be deleted according to my preferences. E.g. I have choose to have all the AllShare apps removed which means I won't be able to send or receive files via WIFI Direct.
It's very easy to edit the file for your usage. You will need a file editor, e.g. Notepad++ and file archiver, e.g. 7zip. Follow the steps below to customize the utility for your usage
1. Download the attached debloater utility zip file.
2. Unzip or open archive.
3. Inside the phronesis folder is a file named "debloat.sh". Open this folder with Notepad++
4. Make changes as needed and save. Ensure you do not change the file name or it's extension i.e. the .sh, else the script will fail to debloat your device. See post #2 for the content of the shell script.
5. You can put hash "#" in front of any entry you want to disable. No need to delete the entire line. See example in post 2.
6. Put back the script and copy zip to your phone.
7. Flash as you will normally flash a rom.
Credit and Contributors:
@filchi756
@Logel
@6h0st
Thanks for all your effort team. Nothing would have been impossible without you:good:
Changelog:
V3 - Added delete dalvik-cache
V2 - XDA released
v1 - Initial compilation
{
"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"
}

Debloater Script Content
#!/sbin/sh
# =========================================
# Phronesis Debloating Script
# =========================================
# User can modify this file by adding custom entry in later section of this script
# =========================================
# Append any line you which not to delete with #. See usage in script.
# =========================================
# Remember that with great power comes great responsibility. So use with care.
# =========================================
# Cleaning system/app
rm -rf /system/app/AASAservice
rm -rf /system/app/AdvSoundDetector2015
rm -rf /system/app/AllShareCastPlayer
rm -rf /system/app/AllshareFileShare
rm -rf /system/app/AllshareFileShareClient
rm -rf /system/app/AllshareFileShareServer
rm -rf /system/app/AllshareMediaShare
rm -rf /system/app/AntHalService
rm -rf /system/app/ANTPlusPlugins
rm -rf /system/app/ANTPlusTest
rm -rf /system/app/ANTRadioService
rm -rf /system/app/AssistantMenu_M
rm -rf /system/app/AutoPreconfig
rm -rf /system/app/BasicDreams
rm -rf /system/app/BBCAgent
rm -rf /system/app/BeaconManager_40
rm -rf /system/app/BeamService
rm -rf /system/app/BookmarkProvider
rm -rf /system/app/CarmodeStub
rm -rf /system/app/ChocoEUKor
rm -rf /system/app/Chrome
rm -rf /system/app/ChromeCustomizations
rm -rf /system/app/ClockPackage_M
rm -rf /system/app/CloudGateway
rm -rf /system/app/ControlTV
rm -rf /system/app/CoolEUKor
rm -rf /system/app/CoreApps
rm -rf /system/app/DictDiotek
rm -rf /system/app/Drive
rm -rf /system/app/DRParser
rm -rf /system/app/EasymodeContactsWidget
rm -rf /system/app/EasySetup
rm -rf /system/app/EdmSimPinService
rm -rf /system/app/EdmVpnServices
rm -rf /system/app/EmergencyModeService
rm -rf /system/app/EmergencyProvider
rm -rf /system/app/ESEServiceAgent
rm -rf /system/app/Facebook_stub
rm -rf /system/app/FBAppManager
rm -rf /system/app/FBInstagram_stub
rm -rf /system/app/FidoUafClient
rm -rf /system/app/FlipboardBriefing
rm -rf /system/app/Foundation
rm -rf /system/app/GalaxyAppsWidget_Phone_Hero
rm -rf /system/app/GameOptimizer
rm -rf /system/app/GearManagerStub
rm -rf /system/app/GoogleCalendarSyncAdapter
rm -rf /system/app/GoogleTTS
rm -rf /system/app/Hangouts
rm -rf /system/app/HighlightPlayer_Hero
rm -rf /system/app/Hs20Provider
rm -rf /system/app/imsservice
rm -rf /system/app/ImsSettings
rm -rf /system/app/ImsTelephonyService
rm -rf /system/app/Kies
rm -rf /system/app/KnoxAppsUpdateAgent
rm -rf /system/app/KnoxAttestationAgent
rm -rf /system/app/KnoxFolderContainer
rm -rf /system/app/KnoxSetupWizardClient
rm -rf /system/app/KnoxSwitcher
rm -rf /system/app/MapconContentProvider
rm -rf /system/app/Maps
rm -rf /system/app/MDMApp
rm -rf /system/app/minimode-res
rm -rf /system/app/MirrorLink
rm -rf /system/app/MobileTrackerEngineTwo
rm -rf /system/app/MSSkype_stub
rm -rf /system/app/MyKNOXSetupWizard
rm -rf /system/app/OneDrive_Samsung_v2
rm -rf /system/app/OneNote
rm -rf /system/app/PartnerBookmarksProvider
rm -rf /system/app/Photos
rm -rf /system/app/PhotoTable
rm -rf /system/app/Preconfig
rm -rf /system/app/PreloadInstaller
rm -rf /system/app/RCPComponents
rm -rf /system/app/RootPA
rm -rf /system/app/RoseEUKor
rm -rf /system/app/SamsungDLPService
rm -rf /system/app/SamsungTTS
rm -rf /system/app/SapaAudioConnectionService
rm -rf /system/app/SapaMonitor
rm -rf /system/app/SecFactoryPhoneTest
rm -rf /system/app/SecLiveWallpapersPicker
rm -rf /system/app/SecMemo3
rm -rf /system/app/SecurityLogAgent
rm -rf /system/app/SecurityManagerService
rm -rf /system/app/SecurityProviderSEC
rm -rf /system/app/SilentLog
rm -rf /system/app/SKMSAgent
rm -rf /system/app/SLocation
rm -rf /system/app/SmartcardService
rm -rf /system/app/SmartSwitchAgent
rm -rf /system/app/SnsImageCache
rm -rf /system/app/STalkback
rm -rf /system/app/Stk
rm -rf /system/app/Stk2
rm -rf /system/app/SysScope
rm -rf /system/app/TasksProvider
rm -rf /system/app/TuiService
rm -rf /system/app/UniversalMDMClient
rm -rf /system/app/Weather2016
rm -rf /system/app/WeatherWidget2016
rm -rf /system/app/WebManual
rm -rf /system/app/WfdBroker
rm -rf /system/app/WhatsAppDownloader
rm -rf /system/app/withTV
rm -rf /system/app/YouTube
# Cleaning system/priv-app
rm -rf /system/priv-app/AutomationTest_FB
rm -rf /system/priv-app/AxelSpringer
rm -rf /system/priv-app/CallLogBackup
rm -rf /system/priv-app/CarrierConfig
rm -rf /system/priv-app/ConfigUpdater
rm -rf /system/priv-app/ContextProvider
rm -rf /system/priv-app/DeviceKeystring
rm -rf /system/priv-app/DeviceTest
rm -rf /system/priv-app/DiagMonAgent
rm -rf /system/priv-app/EasyLauncher2_Zero
rm -rf /system/priv-app/EnhanceService
rm -rf /system/priv-app/Excel_SamsungStub
rm -rf /system/priv-app/FaceService
rm -rf /system/priv-app/FBInstaller
rm -rf /system/priv-app/FidoUafAsm
rm -rf /system/priv-app/Fmm
rm -rf /system/priv-app/FotaAgent
rm -rf /system/priv-app/GalaxyApps_3xh
rm -rf /system/priv-app/GalaxyCare
rm -rf /system/priv-app/GalaxyLabs
rm -rf /system/priv-app/GearManager
rm -rf /system/priv-app/HealthService
rm -rf /system/priv-app/Hearingdro_V5
rm -rf /system/priv-app/ImsLogger+
rm -rf /system/priv-app/IPService
rm -rf /system/priv-app/KLMSAgent
rm -rf /system/priv-app/LiveBroadcast
rm -rf /system/priv-app/MyPlaces_Hero
rm -rf /system/priv-app/PhoneErrService
rm -rf /system/priv-app/PowerPoint_SamsungStub
rm -rf /system/priv-app/RNB
rm -rf /system/priv-app/RNBShell
rm -rf /system/priv-app/SamsungBilling
rm -rf /system/priv-app/SamsungMagnifier3
rm -rf /system/priv-app/SamsungPayStub
rm -rf /system/priv-app/SCloudServiceHero
# rm -rf /system/priv-app/SecEmail_M
# rm -rf /system/priv-app/SecEmail_M
rm -rf /system/priv-app/SecIrisService
rm -rf /system/priv-app/SecSetupWizard2015
rm -rf /system/priv-app/SendHelpMessage
rm -rf /system/priv-app/SetupWizard
rm -rf /system/priv-app/SFinder_v4
rm -rf /system/priv-app/SFinder_v5
rm -rf /system/priv-app/SHealth4
rm -rf /system/priv-app/SHealth5
rm -rf /system/priv-app/SKSMAgent
rm -rf /system/priv-app/SmartcardManager
rm -rf /system/priv-app/SNS_v2
rm -rf /system/priv-app/SOAgent
rm -rf /system/priv-app/SPDClient
# rm -rf /system/priv-app/SPPPushClient_Prod
rm -rf /system/priv-app/StatementService
rm -rf /system/priv-app/StoryService
rm -rf /system/priv-app/SVoice_1.0
rm -rf /system/priv-app/SVoiceLang_EnglishPack_GB_1.0
rm -rf /system/priv-app/SVoiceLang_EnglishPack_US_1.0
rm -rf /system/priv-app/SVoiceLang_FrenchPack_1.0
rm -rf /system/priv-app/SVoiceLang_GermanPack_DE_1.0
rm -rf /system/priv-app/SVoiceLang_ItalianPack_IT_1.0
rm -rf /system/priv-app/SVoiceLang_RussianPack_RU_1.0
rm -rf /system/priv-app/SVoiceLang_SpanishPack_ES_1.0
rm -rf /system/priv-app/SVoicePLM_1.0
rm -rf /system/priv-app/Tag
rm -rf /system/priv-app/UcsPinpad
rm -rf /system/priv-app/UIBCVirtualSoftkey
rm -rf /system/priv-app/UrgentFWUpdateNfc
rm -rf /system/priv-app/UrgentFWUpdateSensorHub
rm -rf /system/priv-app/UrgentFWUpdateTSP
# rm -rf /system/priv-app/Velvet
rm -rf /system/priv-app/VoiceNote_4.0
rm -rf /system/priv-app/VoiceWakeUp
rm -rf /system/priv-app/VRSetupWizardStub
rm -rf /system/priv-app/Word_SamsungStub
# Cleaning Custom app. - [Custom app for cleaning goes below]
Add Your entries within this space
# End of the sound cleaning script

User's Shared Scripts will go here

Just in case we for future usage

thank you so much mate, a great step for your rom!!

as always awesome, in contributions, thanks phronesis team

Excellent thinking guys this is awesome!!

I dont know why but it doesn't work for me ...i flashed the zip äs it came ...after that home end recent didn't work plus ..all apps stayed :crying:
i did a clean flash now ..everything back to normal, but i dont know about this script yet...can anyone confirm its working

Nice tool master

Nice work... Some of the ones I was concerned about are in the list - concerned as in I wasn't sure if I needed them/something would break and hadn't gotten around to testing them.

Nice., Thanks.

Nice - Storage tells me I have 20.2 GB available internal and 1.5GB available RAM.

Is there any app i can use on my phone to edit the file ?
My phone isnt recognized by my laptop so i cant transfer any files from phone to laptop .. and vice versa ..
N9005
Phronesis V5
Sent from my SM-N930F using XDA Labs

Lola22i said:
Is there any app i can use on my phone to edit the file ?
My phone isnt recognized by my laptop so i cant transfer any files from phone to laptop .. and vice versa ..
N9005
Phronesis V5
Click to expand...
Click to collapse
Wrong thread mate. Have you choose MTP connection when you connect to your laptop and install samsung drive for phone on your laptop?

mrcandy108 said:
Wrong thread mate. Have you choose MTP connection when you connect to your laptop and install samsung drive for phone on your laptop?
Click to expand...
Click to collapse
Im asking for an app that i can use on my phone instead of notepad on lap so this is the right thread ..
And Sure i did ..
I've tried all solutions mentioned on rom thread or google but didnt work for me ..
It happened after installing V5 .. in previous versions i didnt have any problem !
Sent from my SM-N930F using XDA Labs

Lola22i said:
Im asking for an app that i can use on my phone instead of notepad on lap so this is the right thread ..
And Sure i did ..
I've tried all solutions mentioned on rom thread or google but didnt work for me ..
It happened after installing V5 .. in previous versions i didnt have any problem !
Click to expand...
Click to collapse
MiXplorer included in the phronesis rom allow you to edit file.

mrcandy108 said:
MiXplorer included in the phronesis rom allow you to edit file.
Click to expand...
Click to collapse
I have extracted the file so i can edit it ..
But i couldnt move it into the zip file again ..
Sent from my SM-N930F using XDA Labs

did anyone tried this on lollipop rom?

This script is in every rom?

brahma666 said:
This script is in every rom?
Click to expand...
Click to collapse
read in OP mate
@txx3 Flashed the file as it came and works fine here

Related

Code to undo my cache will go back to the /data?

Can someone please help me to undo this code so all my cache will go back to the /data?
thank you in advance
Code:
rm -R /data/data/com.android.vending/cache
mkdir /sdcard/cache/marketCache
ln -s /sdcard/cache/marketCache /data/data/com.android.vending/cache
rm -R /data/data/com.android.browser/cache/webviewCache
mkdir /sdcard/cache/webviewCache
ln -s /sdcard/cache/webviewCache /data/data/com.android.browser/cache/webviewCache
rm -R /data/data/com.google.android.street/cache
mkdir /sdcard/cache/streetCache
ln -s /sdcard/cache/streetCache /data/data/com.google.android.street/cache
jrherras said:
Can someone please help me to undo this code so all my cache will go back to the /data?
thank you in advance
Code:
rm -R /data/data/com.android.vending/cache
rm -R /sdcard/cache/marketCache
mkdir /data/data/com.android.vending/cache
rm -R /data/data/com.android.browser/cache/webviewCache
rm -R /sdcard/cache/webviewCache
mkdir /data/data/com.android.browser/cache/webviewCache
rm -R /data/data/com.google.android.street/cache
rm -R /sdcard/cache/streetCache
mkdir /data/data/com.google.android.street/cache
Click to expand...
Click to collapse
this this should be right... delete all links
make new dirs on the phone.. someone else check this..
I just followed the "cache to your sd" post but i changed my mind and I want to undo this
it worked ty

Can a Gscript script be converted to work with SL4A?

I have a script that works with Gscript that needs root and I would like to run it with SL4A if possible so that I can launch with tasker. Can this be done?
This is the script :
#Android Market
busybox rm -R /data/data/com.android.vending/cache
#Browser
busybox rm -R /data/data/com.android.browser/cache/webviewCache
#GMail
busybox rm -R /data/data/com.google.android.gm/cache/webviewCache
#Google Maps
busybox rm -R /data/data/com.google.android.apps.maps/cache/webviewCache
#Google Maps StreetView
busybox rm -R /data/data/com.google.android.street/cache
#Youtube
busybox rm -R /data/data/com.google.android.youtube/cache
#Reboot using Rom Manager binary
/data/data/com.koushikdutta.rommanager/files/reboot
Sent from my PC36100 using XDA App

[NOT FOR NOOBS] Bloatware removal - Hardcore mode! (use at your own risk)

Since I was asked to release the remove bloatware script (hardcore mode) from the now more or less obsolete kn0x0ut toolbox, here it goes.
This baby removes like 99,9% of bloatware you can think of, including most google stuff (only Google Account, Google Services Framework, and Play store remain, thats all you need to download apps), all the "test" apps and otherwise useless stuff in my eyes.
Only run this if you know what you are doin and know how to reinstall the stuff incase something gets deleted that you want to use.
Make a nandroid backup before too or something, and report if something important is not working after running. (was created for ML2 rom, dunno if it works with Kitkat)
Calling, GPS, Wifi, etc. should all be still working. (but NetworkLocation gets deleted, this will stop the phone sending location data to google afaik, but GPS-aware apps still work. Just install it back if you want to be tracked errr I mean if you want apps to get your location by network data from google.
WTF cant upload sh, so put this into a sh script and run it:
Code:
#!/system/bin/sh
#############################################
# #
# VARIABLES #
# #
#############################################
### VERSION ###
REMOVE_BLOAT_VERSION="2.00"
############################################
# #
# MAIN #
# #
############################################
echo ""
echo "######################################"
echo "# #"
echo "# remove_bloatware vREMOVE_BLOAT_VERSION by z.ro-ice #"
echo "# (hardcore version) #"
echo "# #"
echo "######################################"
echo ""
echo "Please make a backup of the system before proceeding!!!"
echo ""
echo "This will remove all the bloatware do you want to proceed?"
echo "(type \"yes\" to proceed)"
read CONTINUE
if [ "$CONTINUE" != "yes" ]; then
echo "Aborting the bloatware removal..."
exit 1
fi
echo "Removing bloatware from /system/app..."
rm /system/app/AccuweatherPhone2013.apk
rm /system/app/AccuweatherPhone2013.odex
rm /system/app/AirMotionTryActually.apk
rm /system/app/AirMotionTryActually.odex
rm /system/app/AlarmWidget.apk
rm /system/app/AlarmWidget.odex
rm /system/app/AllShareCastPlayer.apk
rm /system/app/AllShareCastPlayer.odex
rm /system/app/AllshareControlShare.apk
rm /system/app/AllshareFileShare.apk
rm /system/app/AllshareFileShare.odex
rm /system/app/AllshareFileShareClient.apk
rm /system/app/AllshareFileShareClient.odex
rm /system/app/AllshareFileShareServer.apk
rm /system/app/AllshareFileShareServer.odex
rm /system/app/AllshareMediaServer.apk
rm /system/app/AllshareMediaServer.odex
rm /system/app/AllshareMediaShare.apk
rm /system/app/AllshareMediaShare.odex
rm /system/app/AntHalService.apk
rm /system/app/AntHalService.odex
rm /system/app/ANTPlusPlugins.apk
rm /system/app/ANTRadioService.apk
rm /system/app/AutomationTest_FB.apk
rm /system/app/AutoPreconfig.apk
rm /system/app/AutoPreconfig.odex
rm /system/app/BackupRestoreConfirmation.apk
rm /system/app/BackupRestoreConfirmation.odex
rm /system/app/BCService.apk
rm /system/app/BCService.odex
rm /system/app/BeamService.apk
rm /system/app/Bloomberg.apk
rm /system/app/BluetoothTest.apk
rm /system/app/BluetoothTest.odex
rm /system/app/Blurb.apk
rm /system/app/Books.apk
rm /system/app/CapabilityManagerService.apk
rm /system/app/ChatON_FEATURE_H.apk
rm /system/app/ChocoEUKor.apk
rm /system/app/Chrome.apk
rm /system/app/CHS_J_Device_only.apk
rm /system/app/ClipboardSaveService.apk
rm /system/app/ClipboardSaveService.odex
rm /system/app/ClockPackage.apk
rm /system/app/ClockPackage.odex
rm /system/app/CloudAgent.apk
rm /system/app/ConfigUpdater.apk
rm /system/app/ContainerAgent.apk
rm /system/app/ContainerAgent.odex
rm /system/app/ContainerEventsRelayManager.apk
rm /system/app/ContainerEventsRelayManager.odex
rm /system/app/ContentSearch.apk
rm /system/app/ContentSearch.odex
rm /system/app/ContextProvider.apk
rm /system/app/ContextProvider.odex
rm /system/app/CoolEUKor.apk
rm /system/app/CSC.apk
rm /system/app/CSC.odex
rm /system/app/DigitalClock.apk
rm /system/app/DigitalClock.odex
rm /system/app/DirectConnect.apk
rm /system/app/DirectConnect.odex
rm /system/app/DirectShareGallery.apk
rm /system/app/DirectShareGallery.odex
rm /system/app/DirectShareManager.apk
rm /system/app/DirectShareManager.odex
rm /system/app/DroidSansSherifItalic.apk
rm /system/app/Dropbox.apk
rm /system/app/DropboxOOBE.apk
rm /system/app/DRSService.apk
rm /system/app/DRSService.odex
rm /system/app/DSMForwarding.apk
rm /system/app/DSMForwarding.odex
rm /system/app/DSMLawmo.apk
rm /system/app/DSMLawmo.odex
rm /system/app/DualClockDigital.apk
rm /system/app/DualClockDigital.odex
rm /system/app/EasyFavoritesContactsWidget.apk
rm /system/app/EasyFavoritesContactsWidget.odex
rm /system/app/EasyLauncher.apk
rm /system/app/EasyLauncher.odex
rm /system/app/EasySettings.apk
rm /system/app/EasySettings.odex
rm /system/app/EdmSimPinService.apk
rm /system/app/EdmSimPinService.odex
rm /system/app/EdmSysScopeService.apk
rm /system/app/EdmSysScopeService.odex
rm /system/app/EdmVpnServices.apk
rm /system/app/EdmVpnServices.odex
rm /system/app/ELMAgent.apk
rm /system/app/ELMAgent.odex
rm /system/app/EnterprisePermissions.apk
rm /system/app/Evernote.apk
rm /system/app/FactoryCamera_FB.apk
rm /system/app/FactoryKeystring_FB.apk
rm /system/app/FactoryTest_FB.apk
rm /system/app/Flipboard.apk
rm /system/app/FmmDM.apk
rm /system/app/FmmDM.odex
rm /system/app/FmmDS.apk
rm /system/app/FmmDS.odex
rm /system/app/FotaClient.apk
rm /system/app/FotaClient.odex
rm /system/app/FWUpgrade.apk
rm /system/app/FWUpgrade.odex
rm /system/app/GalaxyFinder.apk
rm /system/app/GalaxyFinder.odex
rm /system/app/GearManagerStub.apk
rm /system/app/Gmail2.apk
rm /system/app/GMS_Maps.apk
rm /system/app/GmsCore.apk
rm /system/app/GoogleBackupTransport.apk
rm /system/app/GoogleCalendarSyncAdapter.apk
rm /system/app/GoogleContactsSyncAdapter.apk
rm /system/app/GoogleFeedback.apk
rm /system/app/GooglePartnerSetup.apk
rm /system/app/GoogleSearchWidget2.apk
rm /system/app/GoogleSearchWidget2.odex
rm /system/app/GroupPlay_25.apk
rm /system/app/Hangouts.apk
rm /system/app/HwModuleTest.apk
rm /system/app/INDI_Server.apk
rm /system/app/InteractiveKeyguardTutorial.apk
rm /system/app/InteractiveKeyguardTutorial.odex
rm /system/app/InteractiveTutorial.apk
rm /system/app/InteractiveTutorial.odex
rm /system/app/KeyguardBackupRestore.apk
rm /system/app/KeyguardBackupRestore.odex
rm /system/app/Kies.apk
rm /system/app/Kies.odex
rm /system/app/KLMSAgent.apk
rm /system/app/KLMSAgent.odex
rm /system/app/KNOXAgent.apk
rm /system/app/KNOXAgent.odex
rm /system/app/KnoxAttestationAgent.apk
rm /system/app/KnoxAttestationAgent.odex
rm /system/app/KNOXStore.apk
rm /system/app/KNOXStore.odex
rm /system/app/KNOXStub.apk
rm /system/app/LocalFOTA.apk
rm /system/app/Magazines.apk
rm /system/app/MDMApp.apk
rm /system/app/MDMApp.odex
rm /system/app/MediaUploader.apk
rm /system/app/MobilePrint3.apk
rm /system/app/MobilePrint3.odex
rm /system/app/MobilePrintSvc_Epson.apk
rm /system/app/MobilePrintSvc_HP.apk
rm /system/app/MobilePrintSvc_Samsung.apk
rm /system/app/MobilePrintSvc_WFDS.apk
rm /system/app/MobileTrackerEngineTwo.apk
rm /system/app/MobileTrackerEngineTwo.odex
rm /system/app/Music2.apk
rm /system/app/MusicLiveShare2.apk
rm /system/app/MusicLiveShare2.odex
rm /system/app/MusicPlayerWT.apk
rm /system/app/MusicPlayerWT.odex
rm /system/app/NetworkLocation.apk
rm /system/app/NfcTest.apk
rm /system/app/NfcTest.odex
rm /system/app/NoiseField.apk
rm /system/app/NoiseField.odex
rm /system/app/PanningTryActually.apk
rm /system/app/PanningTryActually.odex
rm /system/app/PartnerBookmarksProvider.apk
rm /system/app/PartnerBookmarksProvider.odex
rm /system/app/PCWClientS18.apk
rm /system/app/Peel.apk
rm /system/app/Personalization.apk
rm /system/app/Personalization.odex
rm /system/app/PhaseBeam.apk
rm /system/app/PhaseBeam.odex
rm /system/app/PhoneErrService.apk
rm /system/app/PhoneErrService.odex
rm /system/app/PhotoRetouching_H.apk
rm /system/app/PhrCloudService.apk
rm /system/app/PickUpTutorial.apk
rm /system/app/PickUpTutorial.odex
rm /system/app/PlayGames.apk
rm /system/app/PlusOne.apk
rm /system/app/PolarisViewer5.apk
rm /system/app/Preconfig.apk
rm /system/app/Preconfig.odex
rm /system/app/PreloadInstaller.apk
rm /system/app/PreloadInstaller.odex
rm /system/app/QuickMemoCover.apk
rm /system/app/QuickMemoCover.odex
rm /system/app/QuickMemoWidget.apk
rm /system/app/ringtoneBR.apk
rm /system/app/ringtoneBR.odex
rm /system/app/RoseEUKor.apk
rm /system/app/S_Translator_CSLi_STUB.apk
rm /system/app/SamsungApps_H.apk
rm /system/app/SamsungHub_land.apk
rm /system/app/SamsungHubUpdater.apk
rm /system/app/SamsungLink18.apk
rm /system/app/Samsungservice_H.apk
rm /system/app/SamsungTTS.apk
rm /system/app/SamsungVideo_H.apk
rm /system/app/SamsungWatchON.apk
rm /system/app/SamsungWidget_ActiveApplication.apk
rm /system/app/SamsungWidget_ActiveApplication.odex
rm /system/app/SBrowser.apk
rm /system/app/SBrowser.odex
rm /system/app/SBrowserTry.apk
rm /system/app/SBrowserTry.odex
rm /system/app/sCloudBackupApp.apk
rm /system/app/sCloudBackupProvider.apk
rm /system/app/sCloudDataRelay.apk
rm /system/app/sCloudDataSync.apk
rm /system/app/sCloudQuotaApp.apk
rm /system/app/sCloudSyncCalendar.apk
rm /system/app/sCloudSyncContacts.apk
rm /system/app/sCloudSyncSBrowser.apk
rm /system/app/sCloudSyncSNote3.apk
rm /system/app/SCONE_Android_ProxyService.apk
rm /system/app/SCParser.apk
rm /system/app/SecCalculator2.apk
rm /system/app/SecCalculator2.odex
rm /system/app/SecFactoryPhoneTest.apk
rm /system/app/secimsfw.apk
rm /system/app/secimsfw.odex
rm /system/app/SecMyFiles2.apk
rm /system/app/SecMyFiles2.odex
rm /system/app/SecSetupWizard2013.apk
rm /system/app/SecSetupWizard2013.odex
rm /system/app/SecurityProviderSEC.apk
rm /system/app/SecurityProviderSEC.odex
rm /system/app/SensorService2_5.apk
rm /system/app/serviceModeApp_FB.apk
rm /system/app/ServiceModeApp_RIL.apk
rm /system/app/SetupWizard.apk
rm /system/app/SharedStorageBackup.apk
rm /system/app/SharedStorageBackup.odex
rm /system/app/ShareShotService.apk
rm /system/app/ShareShotService.odex
rm /system/app/ShareVideo.apk
rm /system/app/ShareVideo.odex
rm /system/app/SHealth2_5.apk
rm /system/app/SimpleWidget.apk
rm /system/app/SimpleWidget.odex
rm /system/app/SketchBookStub.apk
rm /system/app/SmartcardManager.apk
rm /system/app/SmartcardService.apk
rm /system/app/SmartcardService.odex
rm /system/app/SNS.apk
rm /system/app/SPDClient.apk
rm /system/app/SPDClient.odex
rm /system/app/SPlannerAppWidget.apk
rm /system/app/SPlannerAppWidget.odex
rm /system/app/SPPPushClient_Dev.apk
rm /system/app/StoryAlbumStubActivation.apk
rm /system/app/StoryAlbumWidget.apk
rm /system/app/StoryAlbumWidget.odex
rm /system/app/Street.apk
rm /system/app/SuggestionService.apk
rm /system/app/SuggestionService.odex
rm /system/app/S-Voice_Android_phone_H.apk
rm /system/app/SyncmlDM.apk
rm /system/app/SyncmlDM.odex
rm /system/app/SyncmlDS.apk
rm /system/app/SyncmlDS.odex
rm /system/app/SysScope.apk
rm /system/app/Tag.apk
rm /system/app/Tag.odex
rm /system/app/talkback.apk
rm /system/app/TravelService.apk
rm /system/app/TravelService.odex
rm /system/app/Velvet.apk
rm /system/app/VideoEditor_Lite_H.apk
rm /system/app/Videos.apk
rm /system/app/VoiceSearchStub.apk
rm /system/app/WebManual.apk
rm /system/app/WebManual.odex
rm /system/app/WfdBroker.apk
rm /system/app/WfdBroker.odex
rm /system/app/WlanTest.apk
rm /system/app/WlanTest.odex
rm /system/app/wssyncmlnps.apk
rm /system/app/wssyncmlnps.odex
rm /system/app/YahoostockPhone2013.apk
rm /system/app/YahoostockPhone2013.odex
rm /system/app/YouTube.apk
echo "Removing bloatware from /system/lib..."
rm /system/lib/libChatOnAMSImageFilterLibs-1.0.2.so
rm /system/lib/libcordon.so
rm /system/lib/libhealth_jni.so
rm /system/lib/libINDIServer.so
rm /system/lib/libpolarisexternel.so
rm /system/lib/libpolarisexternelSDK.so
rm /system/lib/libpolaristextprint5v.so
rm /system/lib/libpolarisviewer5.so
rm /system/lib/libpolarisviewerSDK.so
rm /system/lib/libscone_proxy.so
rm /system/lib/libSVIEngine.so
rm /system/lib/libswev8.cr.so
rm /system/lib/libvwengine.so
echo "Removing bloatware folder /system/containers..."
rm -r /system/containers
echo "Removing bloatware folder /system/tts..."
rm -r /system/tts
echo "Removing bloatware folder /system/voicebargeindata..."
rm -r /system/voicebargeindata
echo "Removing bloatware folder /system/wakeupdata..."
rm -r /system/wakeupdata
echo "Removing bloatware folder /system/etc/secure_storage/com.sec.knox.store..."
rm -r /system/etc/secure_storage/com.sec.knox.store
echo "Removing bloatware /system/tima_measurement_info..."
rm /system/tima_measurement_info
echo ""
If it was created for 4.3 I doubt very much it will work on KitKat. I tried the other user script lying around the forum these days and too much names and locations have been changed (mainly of samsung stuff)
testmonkey1 said:
If it was created for 4.3 I doubt very much it will work on KitKat. I tried the other user script lying around the forum these days and too much names and locations have been changed (mainly of samsung stuff)
Click to expand...
Click to collapse
Would love to see a hard-core script for KitKat 4.4.2.
:good:
gianna68 said:
Would love to see a hard-core script for KitKat 4.4.2.
:good:
Click to expand...
Click to collapse
Try Echoe's debloater. Haven't tested it myself.
Hey,
The script is not working here (mj7, run as admin). rm failed ...... Is there anything special to run this script?
Thanks
Can't help with this but if you dont get it working, i made a flashable zip from this script (the hardcore version). I wont post it because its not my work but i could send you a link if you are interested. All credits to zr0ice.
Gesendet von meinem SM-N9005 mit Tapatalk
A.N.Droid said:
Can't help with this but if you dont get it working, i made a flashable zip from this script (the hardcore version). I wont post it because its not my work but i could send you a link if you are interested. All credits to zr0ice.
Gesendet von meinem SM-N9005 mit Tapatalk
Click to expand...
Click to collapse
Please, I really like to make it work.
Thanks in advance
didopidobg said:
Please, I really like to make it work.
Thanks in advance
Click to expand...
Click to collapse
you got pm.
A.N.Droid said:
you got pm.
Click to expand...
Click to collapse
same here my good man.
A.N.Droid said:
Can't help with this but if you dont get it working, i made a flashable zip from this script (the hardcore version). I wont post it because its not my work but i could send you a link if you are interested. All credits to zr0ice.
Gesendet von meinem SM-N9005 mit Tapatalk
Click to expand...
Click to collapse
@A.N.Droid can you please pm me the flash-able zip too thank you
A.N.Droid said:
Can't help with this but if you dont get it working, i made a flashable zip from this script (the hardcore version). I wont post it because its not my work but i could send you a link if you are interested. All credits to zr0ice.
Gesendet von meinem SM-N9005 mit Tapatalk
Click to expand...
Click to collapse
..so why don't you ask for a permition from @zr0ice and share your work !?
...'coz I want it too
Maybe i do later.
In the meantime, just send me pm if somebody wants it instead of spamming this thread(no offence).
All of you that already requested the zip will get the link later this day.
But please confirm if it worked for you because i dont want to send out s#*t that doesnt work.
Have a nice day
Gesendet von meinem SM-N9005 mit Tapatalk
Thanks, it works like a charm.
A.N.Droid said:
Maybe i do later.
In the meantime, just send me pm if somebody wants it instead of spamming this thread(no offence).
All of you that already requested the zip will get the link later this day.
But please confirm if it worked for you because i dont want to send out s#*t that doesnt work.
Have a nice day
Gesendet von meinem SM-N9005 mit Tapatalk
Click to expand...
Click to collapse
@A.N.Droid pm sent
all pm´s sent.
i left zroice a msg, asking for his permission to post it here.
i cleaned up the script because i relized that i put some additional files and folders in. nothing of importance, few sound files and so on.
now it is 100% the zroice hardcore script.
if you like it, leave him a thanks :good:
A.N.Droid said:
all pm´s sent.
i left zroice a msg, asking for his permission to post it here.
i cleaned up the script because i relized that i put some additional files and folders in. nothing of importance, few sound files and so on.
now it is 100% the zroice hardcore script.
if you like it, leave him a thanks :good:
Click to expand...
Click to collapse
@A.N.Droid thanks, works like a charm
wasnt online for a few days. Go ahead and post a link to your zip-version if you want. I don't mind it.
Ill take a look what you added to the list =)
By the way for those that failed to run it in terminal / over adb.. did you remount system and run it as root before you did?
ok.
here is the flashable zip made from the debloater script from the 1st post.
nothing was added or removed.
@zroice for the additonal files, i will take a look tomorrow and post it.
A.N.Droid said:
ok.
here is the flashable zip made from the debloater script from the 1st post.
nothing was added or removed.
@zroice for the additonal files, i will take a look tomorrow and post it.
Click to expand...
Click to collapse
this work with the new priv-app dir. ?
rooooooooney said:
this work with the new priv-app dir. ?
Click to expand...
Click to collapse
this was not made for kitkat 4.4.2.
if you want to debloat a kk based rom, i'm sure you will find something in my signature

[SOLVED] Addon.d script doesn't work

Hi, I created an addon.d script called 'deleteapks.sh' into /system/addon.d:
Here is the code:
#!/sbin/sh
#
# /system/addon.d/deleteapks.sh
#
. /tmp/backuptool.functions
list_files() {
cat <priv-app/ViPER4Android_FX_A4.x/V4A.x.apk
etc/gps.conf
EOF
}
case "$1" in
backup)
list_files | while read FILE DUMMY; do
backup_file $S/$FILE
done
;;
restore)
list_files | while read FILE REPLACEMENT; do
R=""
[ -n "$REPLACEMENT" ] && R="$S/$REPLACEMENT"
[ -f "$C/$S/$FILE" ] && restore_file $S/$FILE $R
done
;;
pre-backup)
# Stub
;;
post-backup)
# Stub
;;
pre-restore)
# Stub
;;
post-restore)
rm -rf /system/app/Apollo
rm -f /system/app/Apollo/Apollo.apk
rm -rf /system/app/Browser
rm -f /system/app/Browser/Browser.apk
rm -rf /system/app/Calendar
rm -f /system/app/Calendar/Calendar.apk
rm -rf /system/app/Camera2
rm -f /system/app/Camera2/Camera2.apk
rm -rf /system/app/CMFileManager
rm -f /system/app/CMFileManager/CMFileManager.apk
rm -rf /system/app/CMHome
rm -f /system/app/CMHome/CMHome.apk
rm -rf /system/app/CMWallpapers
rm -f /system/app/CMWallpapers/CMWallpapers.apk
rm -rf /system/app/DashClock
rm -f /system/app/DashClock/DashClock.apk
rm -rf /system/app/DeskClock
rm -f /system/app/DeskClock/DeskClock.apk
rm -rf /system/app/DSPManager
rm -f /system/app/DSPManager/DSPManager.apk
rm -rf /system/app/Eleven
rm -f /system/app/Eleven/Eleven.apk
rm -rf /system/app/Email
rm -f /system/app/Email/Email.apk
rm -rf /system/app/Exchange2
rm -f /system/app/Exchange2/Exchange2.apk
rm -rf /system/app/ExchangeServices
rm -f /system/app/ExchangeServices/ExchangeServices.apk
rm -rf /system/app/FaceLock
rm -f /system/app/FaceLock/FaceLock.apk
rm -rf /system/app/Galaxy4
rm -f /system/app/Galaxy4/Galaxy4.apk
rm -rf /system/app/Gallery2
rm -f /system/app/Gallery2/Gallery2.apk
rm -rf /system/app/LatinIME
rm -f /system/app/LatinIME/LatinIME.apk
rm -rf /system/app/LatinImeDictionaryPack
rm -f /system/app/LatinImeDictionaryPack/LatinImeDictionaryPack.apk
rm -rf /system/app/LiveWallpapers
rm -f /system/app/LiveWallpapers/LiveWallpapers.apk
rm -rf /system/app/LiveWallpapersPicker
rm -f /system/app/LiveWallpapersPicker/LiveWallpapersPicker.apk
rm -rf /system/app/LockClock
rm -f /system/app/LockClock/LockClock.apk
rm -rf /system/app/Music
rm -f /system/app/Music/Music.apk
rm -rf /system/app/SoundRecorder
rm -f /system/app/SoundRecorder/SoundRecorder.apk
rm -rf /system/app/VoicePlus
rm -f /system/app/VoicePlus/VoicePlus.apk
rm -rf /system/app/WhisperPush
rm -f /system/app/WhisperPush/WhisperPush.apk
rm -rf /system/priv-app/AudioFX
rm -f /system/priv-app/AudioFX/AudioFX.apk
rm -rf /system/priv-app/KernelAdiutor
rm -f /system/priv-app/KernelAdiutor/KernelAdiutor.apk
rm -rf /system/priv-app/OmniSwitch
rm -f /system/priv-app/OmniSwitch/OmniSwitch.apk
rm -rf /system/priv-app/MusicFX
rm -f /system/priv-app/MusicFX/MusicFX.apk
;;
esac
What I'd like to do:
1. Backup/Restore Viper4Android.apk and gps.conf to survive a dirty flash.
2. Delete all listed system apps after a dirty flash
I kept the same structure as a bloatware removal script and this script.
deleteapks.sh is stored into /system/addon.d with 755 permissions. I didn't wipe the /system partition before flashing the rom update and the script has not been removed.
However Viper4Android and gps.cong files didn't survive and the listed system apps weren't removed.
What's wrong with my script?
Note: I could do these modifications through a flashable zip (see below) but the aim to reduce the number of zips I have to flash.
This is the updater-script I use after a clean flash:
ui_print("+-------------------------------------+");
ui_print("| bloatware removal script |");
ui_print("| |");
ui_print("| !!!BYE BYE!!! |");
ui_print("+-------------------------------------+");
run_program("/sbin/busybox", "umount", "/system");
run_program("/sbin/busybox", "mount", "/system");
ui_print(" ");
ui_print("***Deleting bloatwares***");
delete_recursive(
"/system/app/AudioFX",
"/system/app/Browser",
"/system/app/Calendar",
"/system/app/DeskClock",
"/system/app/DSPManager",
"/system/app/CMFileManager",
"/system/app/Eleven",
"/system/app/Email",
"/system/app/Exchange2",
"/system/app/ExchangeServices",
"/system/app/FaceLock",
"/system/app/Galaxy4",
"/system/app/Gallery2",
"/system/app/LiveWallpapers",
"/system/app/LiveWallpapersPicker",
"/system/app/LockClock",
"/system/app/MusicFX",
"/system/app/SoundRecorder",
"/system/app/WhisperPush",
"/system/etc/gps.conf",
"/system/priv-app/AudioFX",
"/system/priv-app/MusicFX",
"/system/priv-app/DSPManager",
"/system/priv-app/KernelAdiutor",
"/system/priv-app/OmniSwitch"
);
ui_print("Installing Cerberus, BBS, GSam...");
show_progress(8.800000, 5);
run_program("/sbin/busybox", "mount", "/system");
package_extract_dir("system", "/system/");
ui_print("***Fixing permissions***");
set_perm(0, 0, 0755, "/system/priv-app/Viper4Android");
set_perm(0, 0, 0755, "/system/addon.d/deleteapks.sh");
set_perm(0, 0, 0644, "/system/priv-app/Viper4Android/V4A.apk");
set_perm(0, 0, 0644, "/system/etc/gps.conf");
set_perm(0, 0, 0644, "/system/priv-app/com.asksven.betterbatterystats_signed.apk");
set_perm(0, 0, 0644, "/system/priv-app/Gsam.apk");
set_perm(0, 0, 0644, "/system/priv-app/Cerberus.apk");
show_progress(8.800000, 5);
run_program("/sbin/busybox", "unmount", "/system");
ui_print(" ");
ui_print("Completed.");
ui_print("Enjoy!");
Why not just get jrummys app and go to apps and take them out in one go and Reboot as I've done with the 5.1.1 update? You can be fkexible or take more out, I took keyboard and launcher etc as I use nova and swiftkey
SENT BY ENTANGLEMENT
zerosum0 said:
Why not just get jrummys app and go to apps and take them out in one go and Reboot as I've done with the 5.1.1 update? You can be fkexible or take more out, I took keyboard and launcher etc as I use nova and swiftkey
SENT BY ENTANGLEMENT
Click to expand...
Click to collapse
I don't want to install a new app. If needed I will flash my custom updater-script for each dirty flash.
Primokorn said:
I kept the same structure as a bloatware removal script and this script.
Click to expand...
Click to collapse
Does this script work with your rom? Could be a situation where none of your scripts are running.
Primokorn said:
I don't want to install a new app. If needed I will flash my custom updater-script for each dirty flash.
Click to expand...
Click to collapse
If you want a quick way to do this you could download my zip from the ViperOP and just edit out the apps you want removed/restored from the updater-script and addon.sh.
Wakamatsu said:
Does this script work with your rom? Could be a situation where none of your scripts are running.
Click to expand...
Click to collapse
idk. I'll try the 'Bloatware Removal Script' for the next dirty flash.
AndrasLOHF said:
If you want a quick way to do this you could download my zip from the ViperOP and just edit out the apps you want removed/restored from the updater-script and addon.sh.
Click to expand...
Click to collapse
If your script saves V4A and allows apps to survice a dirty flash then I'll take a look after testing the above script.
Actually your script seems to have the same structure as mine.
Finally I reduced the number of lines by removing apps and using rm -rf command and I manually typed the lines for V4A + gps.conf and the removed folders.
Maybe this problem was caused by some extra spaces...
Here is the working script for information:
#!/sbin/sh
#
# /system/addon.d/deleteapks.sh
#
. /tmp/backuptool.functions
list_files() {
cat <<EOF
priv-app/Viper4Android/V4A.apk
etc/gps.conf
EOF
}
case "$1" in
backup)
list_files | while read FILE DUMMY; do
backup_file $S/"$FILE"
done
;;
restore)
list_files | while read FILE REPLACEMENT; do
R=""
[ -n "$REPLACEMENT" ] && R="$S/$REPLACEMENT"
[ -f "$C/$S/$FILE" ] && restore_file $S/"$FILE" "$R"
done
rm -rf /system/priv-app/AudioFX
rm -rf /system/priv-app/KernelAdiutor
rm -rf /system/priv-app/OmniSwitch
rm -rf /system/priv-app/MusicFX
rm -rf /system/app/Apollo
rm -rf /system/app/Browser
rm -rf /system/app/Calendar
rm -rf /system/app/CMFileManager
rm -rf /system/app/DeskClock
rm -rf /system/app/DSPManager
rm -rf /system/app/Eleven
rm -rf /system/app/Email
rm -rf /system/app/Exchange2
rm -rf /system/app/ExchangeServices
rm -rf /system/app/FaceLock
rm -rf /system/app/LatinIME
rm -rf /system/app/LatinImeDictionaryPack
rm -rf /system/app/LockClock
rm -rf /system/app/SoundRecorder
rm -rf /system/app/VideoEditor
rm -rf /system/app/WhisperPush
;;
pre-backup)
# Stub
;;
post-backup)
# Stub
;;
pre-restore)
# Stub
;;
post-restore)
# Stub
;;
esac

How to debloat Moto G 2015 XT1541 Marshmallow ?

Hi @ll,
I'm new here in the Motorola section and I have a question.
I've updated my Moto G 2015 to Marshmallow and wanna debloat the stock firmware.
The device has an unlocked bootloader and is rooted correctly.
But every try ends in a freeze after the second Motorola Logo is shown and the device
doesn't start the launcher. The display lights a little bit and dim the backlight all ~5
seconds.
I've used System Application Remover and deleted the APKs. Freeze the apps over
Titanium Backup brings the same effect.
Disable apps over Autostart does the same.
Apps I've tested to freeze or remove:
- Google+
- Hangouts
- Maps
Can someone tell me how to do this right with this device ?
Thx in advanced
D3V!Lc0r3
Titanium backup mate
@therealduff1: You don't read my post correctly. TB doesn't work too ...
Try to re flash stock rom , and then do it. If that does not work , flash a custom rom
@therealduff1: I've installed the stock firmware and it's not the first try. On every other device it's working without a problem.
It's not the solution to install a custom firmware. I wanna stay on stock because no custom firmware works correctly
with WiFi.
I've found the file 70-gapps.sh under /system/addon.d
Is that the problem ? I think so ... because the files will be backuped and restored ...
Code:
#!/sbin/sh
#
# /system/addon.d/70-gapps.sh
#
. /tmp/backuptool.functions
list_files() {
cat /tmp/gapps.prop
fi
free_tmp_size_kb=$(grep "^free_tmp_size_kb" /tmp/gapps.prop | cut -d= -f2)
if [ ! "$free_tmp_size_kb" ]; then
free_tmp_size_kb=$(df -k /tmp | tail -n 1 | awk '{ print $4 }')
echo "free_tmp_size_kb=$free_tmp_size_kb" >> /tmp/gapps.prop
fi
buffer_size_kb=204800
if [ $((installed_gapps_size_kb + buffer_size_kb)) -ge "$free_tmp_size_kb" ]; then
C=/sdcard/tmp-gapps
fi
case "$1" in
backup)
list_files | while read FILE DUMMY; do
backup_file "$S"/"$FILE"
done
;;
restore)
list_files | while read FILE REPLACEMENT; do
R=""
[ -n "$REPLACEMENT" ] && R="$S/$REPLACEMENT"
[ -f "$C/$S/$FILE" ] && restore_file "$S"/"$FILE" "$R"
done
;;
pre-backup)
# Stub
;;
post-backup)
# Stub
;;
pre-restore)
# Remove Stock/AOSP apps (from GApps Installer)
rm -rf /system/app/Calculator
rm -rf /system/app/ExactCalculator
rm -rf /system/app/FineOSCalculator
rm -rf /system/app/Calendar
rm -rf /system/app/FineOSCalendar
rm -rf /system/priv-app/Calendar
rm -rf /system/app/DeskClock
rm -rf /system/app/FineOSDeskClock
rm -rf /system/app/Exchange2
rm -rf /system/priv-app/Exchange2
rm -rf /system/app/PackageInstaller
rm -rf /system/priv-app/PackageInstaller
rm -rf /system/priv-app/packageinstaller
rm -rf /system/priv-app/Tag
# Remove 'other' apps (per installer.data)
rm -rf /system/app/CalendarGoogle
rm -rf /system/app/CloudPrint
rm -rf /system/app/DeskClockGoogle
rm -rf /system/app/EditorsDocsStub
rm -rf /system/app/EditorsSheetsStub
rm -rf /system/app/EditorsSlidesStub
rm -rf /system/app/Gmail
rm -rf /system/app/Gmail2
rm -rf /system/app/GoogleCalendar
rm -rf /system/app/GoogleCloudPrint
rm -rf /system/app/GoogleHangouts
rm -rf /system/app/GoogleKeep
rm -rf /system/app/GoogleLatinIme
rm -rf /system/app/GooglePlus
rm -rf /system/app/Keep
rm -rf /system/app/NewsWeather
rm -rf /system/app/NewsstandStub
rm -rf /system/app/PartnerBookmarksProvider
rm -rf /system/app/PrebuiltBugleStub
rm -rf /system/app/PrebuiltKeepStub
rm -rf /system/app/QuickSearchBox
rm -rf /system/app/Vending
rm -rf /system/priv-app/GmsCore
rm -rf /system/priv-app/GmsCore_update
rm -rf /system/priv-app/GoogleHangouts
rm -rf /system/priv-app/GoogleNow
rm -rf /system/priv-app/GoogleSearch
rm -rf /system/priv-app/OneTimeInitializer
rm -rf /system/priv-app/QuickSearchBox
rm -rf /system/priv-app/Velvet_update
rm -rf /system/priv-app/Vending
# Remove 'priv-app' apps from 'app' (per installer.data)
rm -rf /system/app/ConfigUpdater
rm -rf /system/app/GoogleBackupTransport
rm -rf /system/app/GoogleFeedback
rm -rf /system/app/GoogleLoginService
rm -rf /system/app/GoogleOneTimeInitializer
rm -rf /system/app/GooglePartnerSetup
rm -rf /system/app/GoogleServicesFramework
rm -rf /system/app/OneTimeInitializer
rm -rf /system/app/Phonesky
rm -rf /system/app/PrebuiltGmsCore
rm -rf /system/app/SetupWizard
rm -rf /system/app/Velvet
# Remove 'required' apps (per installer.data)
rm -rf /system/app/LatinIME/lib/arm/libjni_latinimegoogle.so
rm -rf /system/lib/libjni_latinimegoogle.so
rm -rf /system/lib64/libjni_latinimegoogle.so
# Remove 'user requested' apps (from gapps-config)
;;
post-restore)
# Recreate required symlinks (from GApps Installer)
install -d "/system/app/FaceLock/lib/arm"
ln -sfn "/system/lib/libfacelock_jni.so" "/system/app/FaceLock/lib/arm/libfacelock_jni.so"
install -d "/system/app/LatinIME/lib/arm"
ln -sfn "/system/lib/libjni_latinimegoogle.so" "/system/app/LatinIME/lib/arm/libjni_latinimegoogle.so"
# Remove any empty folders we may have created during the removal process
for i in /system/app /system/priv-app /system/vendor/pittpatt /system/usr/srec /system/vendor/pittpatt; do
find $i -type d | xargs -r rmdir -p --ignore-fail-on-non-empty;
done;
# Fix ownership/permissions and clean up after backup and restore from /sdcard
find /system/vendor/pittpatt -type d -exec chown 0:2000 '{}' \; # Change pittpatt folders to root:shell per Google Factory Settings
for i in $(list_files); do
chown root:root "/system/$i"
chmod 644 "/system/$i"
chmod 755 $(dirname "/system/$i")
done
rm -rf /sdcard/tmp-gapps
;;
esac
Debloating google apps is possible.
Flash stock firmaware.
Download pico gapps for your android version and flash through twrp.
This will remove most of the google apps and it will remove stock google launcher too.
So you need to use any 3rd party launcher on your phone.
Arcade said:
Debloating google apps is possible.
Flash stock firmaware.
Download pico gapps for your android version and flash through twrp.
This will remove most of the google apps and it will remove stock google launcher too.
So you need to use any 3rd party launcher on your phone.
Click to expand...
Click to collapse
This sounds intriguing. I googled pico gapps but could not find what apps get removed or replaced from stock. I am also interested if pico gapps will remove many of the Google requirements such as turning on auto-sync to use Gmail. I would love to get rid of Hangouts, Google+, Movies, Photos, & Music. I am just afraid to mess with anything in the /system. I don't mind Maps but wouldn't mind a suitable replacement.
MrTooPhone said:
This sounds intriguing. I googled pico gapps but could not find what apps get removed or replaced from stock. I am also interested if pico gapps will remove many of the Google requirements such as turning on auto-sync to use Gmail. I would love to get rid of Hangouts, Google+, Movies, Photos, & Music. I am just afraid to mess with anything in the /system. I don't mind Maps but wouldn't mind a suitable replacement.
Click to expand...
Click to collapse
So just here...
Pico gapps is replacement for all the bloats. It has all the required apps for the functionality of play store and ither google apps.
First of all install 3rd party launcher then move it to system.
Download tge pico gapps from here.... http://opengapps.org/
Flash using twrp. It will replace all unnecessary apps even maps but you can dowload it later and have it working and other required apps too.
I already realised that is not possible to freeze Google Now app and Google Now launcher with TB. The phone gets all blank after a reboot, just how mentioned in OP. I can freeze G+, Maps, G Music, etc. in Settings>Apllications. Never tried to install pico gapps on top of stock firmware.
@Arcade: Thx for this awesome tip You've pushed
me into the right direction
I've tested it but the way is not so easy as described.
First of all I've made a backup over TWRP. After that,
I've flashed open_gapps-arm-6.0-pico-20160325.zip
over the stock firmware.
But all Google Apps will be recovered after starting.
Here's a working method:
Code:
- install a 3rd party launcher like Trebuchet
- open Root Explorer or ES File Explorer and delete
70-gapps.sh under /system/addon.d
- reboot into Recovery and flash Open GApps Pico
- wipe cache / dalvik
- reboot the device
- but the GApps are always there
- take Títanium Backup and delete the unneeded APKs
- restart your device another time and that's it :D
The device isn't freezing when it's starting into the launcher.
If something goes wrong, restore your BACKUP
I'm not responsible for soft- and / or hardware crash !!!
DL-Links:
https://uploadshub.com/murhu6y9ut4s <- Trebuchet
https://uploadshub.com/d9h3uwqyjo8g <- Open GApps ARM 6.0 Pico
D3V!Lc0r3 said:
@Arcade: Thx for this awesome tip You've pushed
me into the right direction
I've tested it but the way is not so easy as described.
First of all I've made a backup over TWRP. After that,
I've flashed open_gapps-arm-6.0-pico-20160325.zip
over the stock firmware.
But all Google Apps will be recovered after starting.
Here's a working method:
Code:
- install a 3rd party launcher like Trebuchet
- open Root Explorer or ES File Explorer and delete
70-gapps.sh under /system/addon.d
- reboot into Recovery and flash Open GApps Pico
- wipe cache / dalvik
- reboot the device
- but the GApps are always there
- take Títanium Backup and delete the unneeded APKs
- restart your device another time and that's it :D
The device isn't freezing when it's starting into the launcher.
If something goes wrong, restore your BACKUP
I'm not responsible for soft- and / or hardware crash !!!
DL-Links:
https://uploadshub.com/murhu6y9ut4s <- Trebuchet
https://uploadshub.com/d9h3uwqyjo8g <- Open GApps ARM 6.0 Pico
Click to expand...
Click to collapse
Yes certainly I have tried it earlier with LP on stock firmware. It kinda work great.
Thanks pressed will be appreciated if I helped you. ?

Categories

Resources