[SOLVED] Addon.d script doesn't work - Nexus 5 Q&A, Help & Troubleshooting

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

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

[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

[GUIDE] Create your own Flashable ZIP with custom updater-script and addon.d script

{
"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"
}
FOR WHO? AND WHY?
• Everyone who wants to learn something today
• Do something yourself instead of relying on a 3rd party app/system.
• Remove/Add system apps
• Modify DPI
• Backup/Restore apps to survive a dirty flash
• Apply a custom font
• Apply a custom bootanimation
• Install a new ringtone
• and so on.
Basically removing/adding system stuff can be easily done through a file manager but it takes time and we have to do it whenever we update a custom ROM.
A couple of examples:
1. Customizing GApps packages: if you don't use all apps that are provided then you can simply remove them
2. Viper4Android: V4A is an awesome audio app and it's highly recommended to remove other audio apps/tweaks like AudioFX.
Click to expand...
Click to collapse
We will see how to add and remove system components. Once again, it can be done manually but your phone has to be booted into Android then it needs a reboot to apply the changes.
The last part is for the addon.d script. Your custom system changes will survive a dirty flash. No need to flash a zip file for each update
WHAT DO YOU NEED?
1. A good file manager: MiXplorer, Solid Explorer, ES File Explorer (jk )...
2. ZipSigner to sign your zip (or MiX Signer if you use MiXplorer // add-on available in the XDA thread)
3. A nandroid backup is recommended before using those scripts
4. Prepare your custom files: apk, gps.conf, ringtone, bootanimation,... Everything you want to add after a clean flash.
5. Free time. No young children around you
TEMPLATE AND MY CUSTOM ZIP
I'm a nice guy so I prepared a template. You can either download my own zip and customize it to your needs or use this template as a base to create your own zip "from scratch".
→ TEMPLATE: DOWNLOAD LINK (basic commands / you have to add your custom values: apps, paths of ringtones, bootanimation...)
→ MY ZIP: DOWNLOAD LINK (examples are always welcome to better understand an explanation. It can help to understand how to structure your files).
The template should be enough to start using a custom script.
SOME INFORMATIONS TO REMEMBER
Here are the paths of the main things we want to change in the /system partition (should work for most recent Android versions but check your system to be sure):
• addon.d => backup script to survive a dirty flash (used by GApps package for instance)
• app and priv-app => system apps to add or remove
• etc => host file
• fonts => your font
• media => your bootanimation.zip
• media > audio > alarms => sounds for alarms
• media > audio > notifications => sounds for notifications
• media > audio > ringtones => sounds for ringtones
• media > audio > ui => sounds for various things such as low battery, unlock, camera,..
• root of /system for build.prop file
Click to expand...
Click to collapse
Files that have been removed will be installed again after a dirty flash.
Files that have been manually added will be removed after a dirty flash.
=> That's why we need a script to backup our modifications!
NO space at the end of the lines
UNDERSTAND HOW IT WORKS
PART 1: UPDATER-SCRIPT
Here is mine:
ui_print("+-------------------------------------+");
ui_print("| CLEAN FLASH SCRIPT |");
ui_print("| |");
ui_print("| by Primokorn |");
ui_print("+-------------------------------------+");
run_program("/sbin/busybox", "umount", "/system");
run_program("/sbin/busybox", "mount", "/system");
ui_print(" ");
ui_print("***Deleting bloatwares***");
delete_recursive(
"/system/app/adaway.apk",
"/system/app/AdAway",
"/system/app/BasicDreams",
"/system/app/BookmarkProvider",
"/system/app/Calendar",
"/system/app/CalendarWidget",
"/system/app/CMFileManager",
"/system/app/CMWallpapers",
"/system/app/DeskClock",
"/system/app/Eleven",
"/system/app/Email",
"/system/app/ExactCalculator",
"/system/app/Exchange2",
"/system/app/Gello",
"/system/app/HexoLibre",
"/system/app/Jelly",
"/system/app/LiveWallpapersPicker",
"/system/app/LockClock",
"/system/app/messaging",
"/system/app/MiXplorer",
"/system/app/NexusLauncher",
"/system/app/Phonograph",
"/system/app/PhotoTable",
"/system/app/PicoTts",
"/system/app/PicoTTS",
"/system/app/ResurrectionStats",
"/system/app/SoundRecorder",
"/system/app/Terminal",
"/system/app/TugaBrowser",
"/system/app/Wallpaper",
"/system/app/WallpaperPickerGoogle",
"/system/priv-app/AudioFX",
"/system/priv-app/Chrome",
"/system/priv-app/Gallery2",
"/system/priv-app/MusicFX",
"/system/priv-app/OnePlusCamera",
"/system/priv-app/OnePlusGallery",
"/system/priv-app/OnePlusMusic",
"/system/priv-app/Recorder",
"/system/priv-app/Screencast",
"/system/priv-app/Snap",
"/system/priv-app/SnapdragonCamera",
"/system/priv-app/SnapdragonGallery",
"/system/priv-app/WeatherManagerService",
"/system/priv-app/WeatherProvider",
"/system/priv-app/Tag"
);
ui_print("Installing apps and mods, etc");
show_progress(8.800000, 5);
package_extract_dir("system", "/system/");
ui_print("***Fixing permissions***");
set_perm(0, 0, 0755, "/system/addon.d/99-dirty.sh");
set_perm(0, 0, 0644, "/system/etc/gps.conf");
set_perm(0, 0, 0644, "/system/fonts/Roboto-Regular.ttf");
set_perm(0, 0, 0644, "/system/media/audio/ringtones/PlasticRing.ogg");
set_perm(0, 0, 0644, "/system/priv-app/Phonesky.apk");
set_perm(0, 0, 0644, "/system/priv-app/microG.apk");
set_perm(0, 0, 0644, "/system/priv-app/Gsam.apk");
set_perm(0, 0, 0644, "/system/priv-app/BBS.apk");
set_perm(0, 0, 0644, "/system/priv-app/V4A-Magisk.apk");
run_program("/sbin/busybox", "mount", "/data");
package_extract_dir("data", "/data/");
set_perm(0, 0, 0755, "/data/local/afscript.sh");
show_progress(8.800000, 5);
run_program("/sbin/busybox", "umount", "/data");
run_program("/sbin/busybox", "umount", "/system");
ui_print(" ");
ui_print("Done.");
ui_print("Ready to reboot.");
Note: ui_print(" "); is for text message. These lines don't do anything.
1/ It's a good practice to unmount then mount the partition before working on it.
run_program("/sbin/busybox", "umount", "/system");
run_program("/sbin/busybox", "mount", "/system");
Click to expand...
Click to collapse
2/ Remove system components. Put a comma at the end of each line EXCEPT the last one.
delete_recursive(
"/system/app/adaway.apk",
"/system/app/AdAway",
........................
"/system/priv-app/WeatherProvider",
"/system/priv-app/Tag"
);
Click to expand...
Click to collapse
3/ Extract the system files I want to install
package_extract_dir("system", "/system/");
Click to expand...
Click to collapse
4/ Set the permissions for the files that I add
set_perm(0, 0, 0755, "/system/addon.d/99-dirty.sh");
..............
set_perm(0, 0, 0644, "/system/priv-app/V4A-Magisk.apk");
Click to expand...
Click to collapse
5/ Same thing but for the /data folder (mount the partition > extract the data I want to add > set the permissions)
run_program("/sbin/busybox", "mount", "/data");
package_extract_dir("data", "/data/");
set_perm(0, 0, 0755, "/data/local/afscript.sh");
Click to expand...
Click to collapse
6/ Unmount the modified partitions
run_program("/sbin/busybox", "umount", "/data");
run_program("/sbin/busybox", "umount", "/system");
Click to expand...
Click to collapse
PART 2: ADDON.D
Here is mine:
#!/sbin/sh
#
# /system/addon.d/99-dirty.sh
# /system is formatted and reinstalled, then thes files are restored.
#
. /tmp/backuptool.functions
list_files() {
cat <<EOF
addon.d/99-dirty.sh
fonts/Roboto-Regular.ttf
media/audio/ringtones/PlasticRing.ogg
priv-app/BBS.apk
priv-app/Gsam.apk
priv-app/microG.apk
priv-app/PhoneSky.apk
priv-app/V4A-Magisk.apk
etc/gps.conf
etc/hosts
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/app/adaway.apk
rm -rf /system/app/AdAway
rm -rf /system/app/BasicDreams
rm -rf /system/app/BookmarkProvider
rm -rf /system/app/Calendar
rm -rf /system/app/CalendarWidget
rm -rf /system/app/CMFileManager
rm -rf /system/app/CMWallpapers
rm -rf /system/app/DeskClock
rm -rf /system/app/Eleven
rm -rf /system/app/Email
rm -rf /system/app/ExactCalculator
rm -rf /system/app/Exchange2
rm -rf /system/app/Gello
rm -rf /system/app/HexoLibre
rm -rf /system/app/Jelly
rm -rf /system/app/LatinIME
rm -rf /system/app/LiveWallpapersPicker
rm -rf /system/app/LockClock
rm -rf /system/app/messaging
rm -rf /system/app/MiXplorer
rm -rf /system/app/NexusLauncher
rm -rf /system/app/Nova.apk
rm -rf /system/app/Phonograph
rm -rf /system/app/PhotoTable
rm -rf /system/app/PicoTts
rm -rf /system/app/PicoTTS
rm -rf /system/app/ResurrectionStats
rm -rf /system/app/SoundRecorder
rm -rf /system/app/Terminal
rm -rf /system/app/TugaBrowser
rm -rf /system/app/Wallpaper
rm -rf /system/app/WallpaperPickerGoogle
rm -rf /system/priv-app/AudioFX
rm -rf /system/priv-app/Chrome
rm -rf /system/priv-app/Gallery2
rm -rf /system/priv-app/LatinIME
rm -rf /system/priv-app/MusicFX
rm -rf /system/priv-app/OnePlusCamera
rm -rf /system/priv-app/OnePlusGallery
rm -rf /system/priv-app/OnePlusMusic
rm -rf /system/priv-app/Recorder
rm -rf /system/priv-app/Screencast
rm -rf /system/priv-app/SnapdragonCamera
rm -rf /system/priv-app/SnapdragonGallery
rm -rf /system/priv-app/Snap
rm -rf /system/priv-app/Trebuchet
rm -rf /system/priv-app/WeatherManagerService
rm -rf /system/priv-app/WeatherProvider
rm -rf /system/priv-app/Tag
;;
pre-backup)
# Stub
;;
post-backup)
# Stub
;;
pre-restore)
# Stub
;;
post-restore)
# Stub
;;
esac
1/ Files that I want to keep after a dirty flash
list_files() {
cat <<EOF
addon.d/99-dirty.sh
fonts/Roboto-Regular.ttf
media/audio/ringtones/PlasticRing.ogg
priv-app/BBS.apk
priv-app/Gsam.apk
priv-app/microG.apk
priv-app/PhoneSky.apk
priv-app/V4A-Magisk.apk
etc/gps.conf
etc/hosts
EOF
}
Click to expand...
Click to collapse
2/ Files I don't want to be installed after a dirty flash
rm -rf /system/app/adaway.apk
rm -rf /system/app/AdAway
rm -rf /system/app/BasicDreams
rm -rf /system/app/BookmarkProvider
................................................
rm -rf /system/priv-app/WeatherProvider
rm -rf /system/priv-app/Tag
;;
Click to expand...
Click to collapse
CREATE YOUR FLASHABLE ZIP
The steps below are done with MiXplorer file manager.
1. Select all your folders and select Archive.
2. Confirm the creation of the archive file.
View attachment 4182479
3. Enter the name of your file and select Store.
4. Your flashable zip has been created.
5. Select your zip file then Sign.
6. Select TESTKEY.
7. Your final flashable zip is created (xxx-signed.zip). This is the file you will flash from your custom recovery. You can safely remove the first zip file.
NOTES:
• your flashable zip has to be installed after a clean flash (or after wiping /system partition and making a dirty flash of your ROM custom). The updater-script will immediately remove/add the desired apps/folders. Leave your addon.d script alone. It will do its job without any user intervention.
Check your /system partition after the first installations to be sure that everything is working as expected.
• if you have something better to share or tips then let us know.
• all credits go to the people who shared their findings with the community. I picked up various information so this is more a general guide to create a custom updater-script and addon.d script.
• I recommend to keep an eye on the template or my zip when reading this guide.
• Ref: [TUTORIAL] The updater-script completely explained
HOW TO EDIT YOUR BUILD.PROP
If you want to modify your build.prop or add new lines then follow those steps.
1. Create a new .sh file (e.g build_prop.sh)
2. To modify specific lines:
sed -i 's/original_value/new_value/g' /system/build.prop;
Example for LCD Density (from 480 to 420):
sed -i 's/ro.sf.lcd_density=480/ro.sf.lcd_density=420/g' /system/build.prop;
Click to expand...
Click to collapse
3. To add new lines:
echo "your_value" >> /system/build.prop;
Example for Viper4Android (if you don't have those lines):
echo "IPA.decode=false" >> /system/build.prop;
echo "tunnel.decode=false" >> /system/build.prop;
echo "lpa.use-stagefright=false" >> /system/build.prop;
Click to expand...
Click to collapse
4. In your build_prop.sh file copy this
Code:
#!/sbin/sh
Then add your sed and echo lines
Example:
#!/sbin/sh
sed -i 's/ro.sf.lcd_density=480/ro.sf.lcd_density=420/g' /system/build.prop;
echo "IPA.decode=false" >> /system/build.prop;
echo "tunnel.decode=false" >> /system/build.prop;
echo "lpa.use-stagefright=false" >> /system/build.prop;
Click to expand...
Click to collapse
Copy your script into your flashable zip (system folder). That's it for the .sh script.
5. Now you have to create your updater-script into your flashable zip (see OP if you don't know how to do that).
Here is what you need to put:
Code:
ui_print("+--------BUILD-PROP-EDITION----------+");
run_program("/sbin/busybox", "umount", "/system");
run_program("/sbin/busybox", "mount", "/system");
show_progress(8.800000, 5);
package_extract_dir("system", "/system/");
ui_print("***Fixing permissions***");
set_perm(0, 0, 0777, "/system/build_prop.sh");
run_program("/sbin/sh", "system/build_prop.sh");
show_progress(8.800000, 5);
delete_recursive(
"/system/build_prop.sh"
);
run_program("/sbin/busybox", "umount", "/system");
ui_print(" ");
ui_print("Completed.");
What does it do? This will extract your build_prop.sh file into /system partition, set the permissions and delete your script.
6. Create your flashable zip and sign it as explained in the previous post.
7. Reboot into TWRP and flash!
I have attached a compressed file as an example.
Thank you! Will try this later
---------- Post added at 04:34 PM ---------- Previous post was at 03:45 PM ----------
Im so newbie with this kind of stuff, that i have to ask for specific info.
As i told in another topic, i need to keep my /system/app/Calculator/Calculator.apk when im flashing my rom update.
If i understand correctly, it can be done with addon.d script automatically, without flashing any zips?
raimopeku said:
Thank you! Will try this later
---------- Post added at 04:34 PM ---------- Previous post was at 03:45 PM ----------
Im so newbie with this kind of stuff, that i have to ask for specific info.
As i told in another topic, i need to keep my /system/app/Calculator/Calculator.apk when im flashing my rom update.
If i understand correctly, it can be done with addon.d script automatically, without flashing any zips?
Click to expand...
Click to collapse
Exactly. You can only create a .sh file into addon.d folder.
Use the following at the beginning:
Code:
list_files() {
cat <<EOF
app/Calculator/Calculator.apk
EOF
}
i remove some of the addons on your updater script.
because i only want the bloatware removal scripts. Can you check if this is correct.
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/priv-app/Launcher3",
"/system/priv-app/MusicFX"
);
run_program("/sbin/busybox", "unmount", "/system");
ui_print(" ");
ui_print("Completed.");
ui_print("Enjoy!");
mixtapes08 said:
i remove some of the addons on your updater script.
because i only want the bloatware removal scripts. Can you check if this is correct.
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/priv-app/Launcher3",
"/system/priv-app/MusicFX"
);
run_program("/sbin/busybox", "unmount", "/system");
ui_print(" ");
ui_print("Completed.");
ui_print("Enjoy!");
Click to expand...
Click to collapse
It should work BUT Launcher3 is stored into /system/app/. Moreover you need a launcher to reach a homescreen. In other words, if you remove Launcher3 after a clean flash then you have to install another launcher.
I forgot to explain how to sign the final zip. I'll add this in the coming hours.
On pure nexus its located on system/priv-app and I have a novalauncher.zip that i will install after flashing. I have a installer.zip here. Can i copy my modified updater-script there?
Sent from my Nexus 5
mixtapes08 said:
On pure nexus its located on system/priv-app and I have a novalauncher.zip that i will install after flashing. I have a installer.zip here. Can i copy my modified updater-script there?
Sent from my Nexus 5
Click to expand...
Click to collapse
Of course. Do not forget to remove run_program lines if you already have them in the other file :good:
Thanks. Man.
Sent from my Nexus 5
PART 3 added to create and sign your flashable zip.
Primokorn said:
Exactly. You can only create a .sh file into addon.d folder.
Use the following at the beginning:
Code:
list_files() {
cat <<EOF
app/Calculator/Calculator.apk
EOF
}
Click to expand...
Click to collapse
So, i created that file in /system/addon.d/myfile.sh
And now when i updated my rom (euphoria), my old calculator was gone, and i had to manually it back?
raimopeku said:
So, i created that file in /system/addon.d/myfile.sh
And now when i updated my rom (euphoria), my old calculator was gone, and i had to manually it back?
Click to expand...
Click to collapse
Can you post your whole script? Are you using other scripts?
Primokorn said:
Can you post your whole script? Are you using other scripts?
Click to expand...
Click to collapse
hmm, there are 2 other scripts (made by rom i assume)
myfile.sh:
Code:
list_files() {
cat <<EOF
app/Calculator/Calculator.apk
EOF
}
50-eos.sh
Code:
#!/sbin/sh
#
# /system/addon.d/50-eos.sh
# During a upgrade, this script backs up /system/etc/hosts,
# /system is formatted and reinstalled, then the file is restored.
#
. /tmp/backuptool.functions
list_files() {
cat <<EOF
etc/hosts
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)
# Stub
;;
esac
70-gapps.sh
Code:
#!/sbin/sh
#
# /system/addon.d/70-gapps.sh
#
. /tmp/backuptool.functions
list_files() {
cat <<EOF
app/FaceLock/lib/arm/libfacelock_jni.so
app/FaceLock/lib/arm64/libfacelock_jni.so
app/FaceLock/FaceLock.apk
app/GoogleContactsSyncAdapter/GoogleContactsSyncAdapter.apk
etc/permissions/com.google.android.camera2.xml
etc/permissions/com.google.android.maps.xml
etc/permissions/com.google.android.media.effects.xml
etc/permissions/com.google.widevine.software.drm.xml
etc/preferred-apps/google.xml
framework/com.google.android.camera2.jar
framework/com.google.android.maps.jar
framework/com.google.android.media.effects.jar
framework/com.google.widevine.software.drm.jar
lib/libfilterpack_facedetect.so
lib64/libfilterpack_facedetect.so
lib/libjni_latinime.so
lib64/libjni_latinime.so
lib/libjni_latinimegoogle.so
lib64/libjni_latinimegoogle.so
priv-app/GoogleBackupTransport/GoogleBackupTransport.apk
priv-app/GoogleFeedback/GoogleFeedback.apk
priv-app/GoogleLoginService/GoogleLoginService.apk
priv-app/GoogleOneTimeInitializer/GoogleOneTimeInitializer.apk
priv-app/GooglePartnerSetup/GooglePartnerSetup.apk
priv-app/GoogleServicesFramework/GoogleServicesFramework.apk
priv-app/HotwordEnrollment/HotwordEnrollment.apk
priv-app/Phonesky/Phonesky.apk
priv-app/PrebuiltGmsCore/lib/arm/libAppDataSearch.so
priv-app/PrebuiltGmsCore/lib/arm/libconscrypt_gmscore_jni.so
priv-app/PrebuiltGmsCore/lib/arm/libdirect-audio.so
priv-app/PrebuiltGmsCore/lib/arm/libgcastv2_base.so
priv-app/PrebuiltGmsCore/lib/arm/libgcastv2_support.so
priv-app/PrebuiltGmsCore/lib/arm/libgmscore.so
priv-app/PrebuiltGmsCore/lib/arm/libgms-ocrclient.so
priv-app/PrebuiltGmsCore/lib/arm/libjgcastservice.so
priv-app/PrebuiltGmsCore/lib/arm/libNearbyApp.so
priv-app/PrebuiltGmsCore/lib/arm/libsslwrapper_jni.so
priv-app/PrebuiltGmsCore/lib/arm/libwearable-selector.so
priv-app/PrebuiltGmsCore/lib/arm/libWhisper.so
priv-app/PrebuiltGmsCore/lib/arm64/libAppDataSearch.so
priv-app/PrebuiltGmsCore/lib/arm64/libconscrypt_gmscore_jni.so
priv-app/PrebuiltGmsCore/lib/arm64/libdirect-audio.so
priv-app/PrebuiltGmsCore/lib/arm64/libgcastv2_base.so
priv-app/PrebuiltGmsCore/lib/arm64/libgcastv2_support.so
priv-app/PrebuiltGmsCore/lib/arm64/libgmscore.so
priv-app/PrebuiltGmsCore/lib/arm64/libgms-ocrclient.so
priv-app/PrebuiltGmsCore/lib/arm64/libjgcastservice.so
priv-app/PrebuiltGmsCore/lib/arm64/libNearbyApp.so
priv-app/PrebuiltGmsCore/lib/arm64/libsslwrapper_jni.so
priv-app/PrebuiltGmsCore/lib/arm64/libwearable-selector.so
priv-app/PrebuiltGmsCore/lib/arm64/libWhisper.so
priv-app/PrebuiltGmsCore/PrebuiltGmsCore.apk
priv-app/SetupWizard.apk
priv-app/Velvet/lib/arm/libcronet.so
priv-app/Velvet/lib/arm/libgoogle_speech_jni.so
priv-app/Velvet/lib/arm/libgoogle_speech_micro_jni.so
priv-app/Velvet/lib/arm64/libcronet.so
priv-app/Velvet/lib/arm64/libgoogle_speech_jni.so
priv-app/Velvet/lib/arm64/libgoogle_speech_micro_jni.so
priv-app/Velvet/Velvet.apk
usr/srec/en-US/c_fst
usr/srec/en-US/clg
usr/srec/en-US/commands.abnf
usr/srec/en-US/compile_grammar.config
usr/srec/en-US/contacts.abnf
usr/srec/en-US/dict
usr/srec/en-US/dictation.config
usr/srec/en-US/dnn
usr/srec/en-US/endpointer_dictation.config
usr/srec/en-US/endpointer_voicesearch.config
usr/srec/en-US/ep_acoustic_model
usr/srec/en-US/g2p_fst
usr/srec/en-US/grammar.config
usr/srec/en-US/hclg_shotword
usr/srec/en-US/hmm_symbols
usr/srec/en-US/hmmlist
usr/srec/en-US/hotword.config
usr/srec/en-US/hotword_classifier
usr/srec/en-US/hotword_normalizer
usr/srec/en-US/hotword_prompt.txt
usr/srec/en-US/hotword_word_symbols
usr/srec/en-US/metadata
usr/srec/en-US/norm_fst
usr/srec/en-US/normalizer
usr/srec/en-US/offensive_word_normalizer
usr/srec/en-US/phone_state_map
usr/srec/en-US/phonelist
usr/srec/en-US/rescoring_lm
usr/srec/en-US/wordlist
vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.8/landmark_group_meta_data.bin
vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.8/left_eye-y0-yi45-p0-pi45-r0-ri20.lg_32-tree7-wmd.bin
vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.8/nose_base-y0-yi45-p0-pi45-r0-ri20.lg_32-tree7-wmd.bin
vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.8/right_eye-y0-yi45-p0-pi45-r0-ri20.lg_32-3-tree7-wmd.bin
vendor/pittpatt/models/detection/yaw_roll_face_detectors.7.1/head-y0-yi45-p0-pi45-r0-ri30.4a-v24-tree7-2-wmd.bin
vendor/pittpatt/models/detection/yaw_roll_face_detectors.7.1/head-y0-yi45-p0-pi45-rn30-ri30.5-v24-tree7-2-wmd.bin
vendor/pittpatt/models/detection/yaw_roll_face_detectors.7.1/head-y0-yi45-p0-pi45-rp30-ri30.5-v24-tree7-2-wmd.bin
vendor/pittpatt/models/detection/yaw_roll_face_detectors.7.1/pose-r.8.1.bin
vendor/pittpatt/models/detection/yaw_roll_face_detectors.7.1/pose-y-r.8.1.bin
vendor/pittpatt/models/recognition/face.face.y0-y0-71-N-tree_7-wmd.bin
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/BrowserProviderProxy
rm -f /system/app/BrowserProviderProxy.apk
rm -rf /system/app/PartnerBookmarksProvider
rm -f /system/app/PartnerBookmarksProvider.apk
rm -rf /system/app/Provision
rm -f /system/app/Provision.apk
rm -rf /system/app/QuickSearchBox
rm -f /system/app/QuickSearchBox.apk
rm -rf /system/app/Vending
rm -f /system/app/Vending.apk
rm -rf /system/priv-app/BrowserProviderProxy
rm -f /system/priv-app/BrowserProviderProxy.apk
rm -rf /system/priv-app/PartnerBookmarksProvider
rm -f /system/priv-app/PartnerBookmarksProvider.apk
rm -rf /system/priv-app/Provision
rm -f /system/priv-app/Provision.apk
rm -rf /system/priv-app/QuickSearchBox
rm -f /system/priv-app/QuickSearchBox.apk
rm -rf /system/priv-app/Vending
rm -f /system/priv-app/Vending.apk
;;
esac
Your myfile.sh file is not complete. You have to use the whole code (just remove my custom lines: apps that I remove and audio_policy at the end).
Try this:
Code:
#!/sbin/sh
#
#
. /tmp/backuptool.functions
list_files() {
cat <<EOF
app/Calculator/Calculator.apk
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)
# Stub
;;
esac
Primokorn said:
Your myfile.sh file is not complete. You have to use the whole code (just remove my custom lines: apps that I remove and audio_policy at the end).
Try this:
Code:
#!/sbin/sh
#
#
. /tmp/backuptool.functions
list_files() {
cat <<EOF
app/Calculator/Calculator.apk
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)
# Stub
;;
esac
Click to expand...
Click to collapse
Ok, thanks m8! I updated my script, after next rom update ill report if it works
*** NEW ***
How to edit your build.prop in post 2.
The "Template" (MEGA) download link in the OP is dead. Please re-upload, thanks.
blowtorch said:
The "Template" (MEGA) download link in the OP is dead. Please re-upload, thanks.
Click to expand...
Click to collapse
I've uploaded my latest custom scripts. I also updated OP.
Primokorn said:
I've uploaded my latest custom scripts. I also updated OP.
Click to expand...
Click to collapse
I was wondering if there is any way you can help me with a flashable zip i am working on cant seem to get it to flash correctly I get the following error each time;
Updater process ended with signal:11
maxmotos said:
I was wondering if there is any way you can help me with a flashable zip i am working on cant seem to get it to flash correctly I get the following error each time;
Updater process ended with signal:11
Click to expand...
Click to collapse
Share your files and I'll have a look as soon as I can.

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. ?

[Tool][Universal Debloater][02.03.2017] Brought To You By The Phronesis Team....

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

Categories

Resources