I wrote a guide about how to root a Nomu S10 with SuperSu and how to replace Google Services Framework with microG. The complete guide is available here: How to install microG an odexed stock android ROM
The one below is an extracted, short version, for those familiar with adb, fastboot, spflash, flashing, rooting, Xposed, etc.
Important note: don't flash the TWRP recovery, it will soft brick the phone due to a security feature in boot I couldn't yet remove. Use the dirty boot method instead (loading the recovery.img via fastboot from the PC)
While the method is done on a Nomu S10, I'm fairly certain it would work on nearly and MediaTek device with Android 6 Marshmallow.
flash the malware free stock ROM with spflash
Enable Developer Options
Enable OEM unlocking
reboot into fastboot
run
Code:
fastboot oem unlock
reboot and let the automatic factory reset happen again
re-enable Developer Options
check if OEM unlocking is already on (if not, start again)
reboot into fastboot
dirty boot TWRP for Nomu S10:
Code:
fastboot boot {path to extracted image}
flash the SuperSu zip
flash Xposed zip
reboot
install Xposed apk
install FakeGApps from Xposed modules
reboot
remove eveything Google from the phone:
Code:
adb shell
# become root - SuperSu will prompt for verification
su -
# remount / and /system for read-write
mount -o remount,rw /
mount -o remount,rw /system
# create a file with the list it items to delete
cat > /sdcard/ungoogle.sh << EOF
rm -rf /system/app/CarHomeGoogle*
rm -rf /system/app/ChromeBookmarksSyncAdapter*
rm -rf /system/app/ConfigUpdater*
rm -rf /system/app/FaceLock*
rm -rf /system/app/GenieWidget*
rm -rf /system/app/Gmail*
rm -rf /system/app/Gmail2
rm -rf /system/app/GmsCore*
rm -rf /system/app/Google*
rm -rf /system/app/LatinImeTutorial*
rm -rf /system/app/LatinImeDictionaryPack*
rm -rf /system/app/MarketUpdater*
rm -rf /system/app/MediaUploader*
rm -rf /system/app/NetworkLocation*
rm -rf /system/app/OneTimeInitializer*
rm -rf /system/app/Phonesky*
rm -rf /system/app/PlayStore*
rm -rf /system/app/SetupWizard*
rm -rf /system/app/Talk*
rm -rf /system/app/Talkback*
rm -rf /system/app/Vending*
rm -rf /system/app/VoiceSearch*
rm -rf /system/app/VoiceSearchStub*
rm -rf /system/etc/permissions/com.google.android.maps.xml
rm -rf /system/etc/permissions/com.google.android.media.effects.xml
rm -rf /system/etc/permissions/com.google.widevine.software.drm.xml
rm -rf /system/etc/permissions/features.xml
rm -rf /system/etc/preferred-apps/google.xml
rm -rf /system/etc/g.prop
rm -rf /system/addon.d/70-gapps.sh
rm -rf /system/framework/com.google.android.maps.jar
rm -rf /system/framework/com.google.android.media.effects.jar
rm -rf /system/framework/com.google.widevine.software.drm.jar
rm -rf /system/lib/libfilterpack_facedetect.so
rm -rf /system/lib/libfrsdk.so
rm -rf /system/lib/libgcomm_jni.so
rm -rf /system/lib/libgoogle_recognizer_jni.so
rm -rf /system/lib/libgoogle_recognizer_jni_l.so
rm -rf /system/lib/libfacelock_jni.so
rm -rf /system/lib/libfacelock_jni.so
rm -rf /system/lib/libgtalk_jni.so
rm -rf /system/lib/libgtalk_stabilize.so
rm -rf /system/lib/libjni_latinimegoogle.so
rm -rf /system/lib/libflint_engine_jni_api.so
rm -rf /system/lib/libpatts_engine_jni_api.so
rm -rf /system/lib/libspeexwrapper.so
rm -rf /system/lib/libvideochat_stabilize.so
rm -rf /system/lib/libvoicesearch.so
rm -rf /system/lib/libvorbisencoder.so
rm -rf /system/lib/libpicowrapper.so
rm -rf /system/priv-app/CarHomeGoogle*
rm -rf /system/priv-app/ChromeBookmarksSyncAdapter*
rm -rf /system/priv-app/ConfigUpdater*
rm -rf /system/priv-app/FaceLock*
rm -rf /system/priv-app/GenieWidget*
rm -rf /system/priv-app/Gmail*
rm -rf /system/priv-app/GmsCore*
rm -rf /system/priv-app/Google*
rm -rf /system/priv-app/LatinImeTutorial*
rm -rf /system/priv-app/LatinImeDictionaryPack*
rm -rf /system/priv-app/MarketUpdater*
rm -rf /system/priv-app/MediaUploader*
rm -rf /system/priv-app/NetworkLocation*
rm -rf /system/priv-app/OneTimeInitializer*
rm -rf /system/priv-app/Phonesky*
rm -rf /system/priv-app/PlayStore*
rm -rf /system/priv-app/SetupWizard*
rm -rf /system/priv-app/Talk*
rm -rf /system/priv-app/Talkback*
rm -rf /system/priv-app/Vending*
rm -rf /system/priv-app/VoiceSearch*
rm -rf /system/priv-app/VoiceSearchStub*
EOF
# execut the created list
sh /sdcard/ungoogle.sh
reboot to fastboot
dirty boot TWRP
flash NanoDroid microG
reboot
done
Kudos for all the programmers and real hackers who provided the tools required for the stunt.
Related
ok Ive got fed up with manually removing all the bloatware when I flash a new ROM so I decided to make a little script for myself and thought I will share it with you guys!
Put on your phone or sd card and flash via cwm.
Also please give me feedback if you have used it as it's my first script of this kind and I wanna be sure it's working fine...
PLEASE MAKE A BACKUP BEFORE because when the files are gone they are GONE! (need to re-flash a ROM to get them back)
Files below will be removed:
FmRadio
Zinio Reader
SimToolKit
SocialHub.apk
SnsProvider
SnsDisclaimer
SnsAccountTwitter
SnsAccountMS
SnsAccountLi.apk
SnsAccountFb.apk
syncmldm.apk (Software update)
SecretWallpaper1
SecretWallpaper2
SamsungWidget_WeatherClock
SamsungWidget_News
SamsungApps
ReadersHub
PressReader
Kobo
GenieWidget
FTM (Wifi Sharing Manager)
FTS (Wifi Sharing)
DualClock.apk
Dlna (AllShare)
Days.apk
BuddiesNow.apk
This list was made for my personal preference..I might add other files later on so if you have a request just post it here and I'll see what I can do...
I don't see FMRadio as bloatware?
here you have my list of what can be removed (used in VillainROM 1.4 LITE)
http://www.multiupload.com/IKDKNO6DHF
Hey, i have a question:
i've an own zip for removing Systemapps !
when i use the delete.zip before i boot the SGS the first after flashing a new ROM, my Home button doesnt work..
when i let the SGS boot after installing a ROM and then Reboot in recovery and run the zip, after the boot the homebutton works..
but why? which APP is important for the first boot and for the homebutton?
sry for my english
LG
Which apps did u remove from the rom?
Sent from my GT-I9100 using Tapatalk
are you sure simtool kit is a bloatware? I found freezing this i have trouble with sending SMS's. For me anyways
Great script, dude!!
You should really hang on and add some more,
check out the "apps safe to remove thread" or just go www.tinyurl.com/safetoremove!
that way, the phone will be very clean after a new rom/firmware.
Maybe you make an app and sell it on market in a while
"Bloatware Buster" and "Bloatware Buster Pro" (2.99$)
Locster126 said:
Which apps did u remove from the rom?
Sent from my GT-I9100 using Tapatalk
Click to expand...
Click to collapse
Ive removed many apps .
!/system/bin/sh
su
mount -o remount,rw -t /dev/block/mtdblock5 /system
rm /system/app/SamsungWidget_WeatherClock.apk -f
rm /system/app/install_flash_player.apk -f
rm /system/app/Dlna.apk -f
rm /system/app/LiveWallpapers.apk -f
rm /system/app/SamsungWidget_News.apk -f
rm /system/app/BuddiesNow.apk -f
rm /system/app/TwCalendarAppWidget.apk -f
rm /system/app/CalendarProvider.apk -f
rm /system/app/TwWallpaperChooser.apk -f
rm /system/app/ChocoEUKor.apk -f
rm /system/app/ClockPackage.apk -f
rm /system/app/AnalogClock.apk -f
rm /system/app/PressReader.apk -f
rm /system/app/SimServicePermission.apk -f
rm /system/app/PRUI.apk -f
rm /system/app/lcdtest.apk -f
rm /system/app/SamsungAppsUNAService.apk -f
rm /system/app/CSC.apk -f
rm /system/app/Days.apk -f
rm /system/app/DigitalClock.apk -f
rm /system/app/DownloadProviderUi.apk -f
rm /system/app/DualClock.apk -f
rm /system/app/EmailWidget.apk -f
rm /system/app/Email.apk -f
rm /system/app/FactoryTest.apk -f
rm /system/app/GameHub.apk -f
rm /system/app/Gmail.apk -f
rm /system/app/GoogleBackupTransport.apk -f
rm /system/app/GoogleCalendarSyncAdapter.apk -f
rm /system/app/SimServicePermission.apk -f
rm /system/app/HelvNeueLT.apk -f
rm /system/app/Protips.apk -f
rm /system/app/HTMLViewer.apk -f
rm /system/app/SamsungIM.apk -f
rm /system/app/IMEITracker.apk -f
rm /system/app/Browser.apk -f
rm /system/app/KiesAir.apk -f
rm /system/app/kieswifi.apk -f
rm /system/app/Kobo.apk -f
rm /system/app/PanningTryActually.apk -f
rm /system/app/GoogleFeedback.apk -f
rm /system/app/Microbesgl.apk -f
rm /system/app/MiniDiary.apk -f
rm /system/app/PostIt.apk -f
rm /system/app/MobilePrint.apk -f
rm /system/app/MusicPlayer.apk -f
rm /system/app/MusicHub_U1.apk -f
rm /system/app/SecretWallpaper1.apk -f
rm /system/app/PicoTts.apk -f
rm /system/app/PolarisOffice.apk -f
rm /system/app/PopupuiReceiver.apk -f
rm /system/app/SamsungWidget_ProgramMonitor.apk -f
rm /system/app/ReadersHub.apk -f
rm /system/app/signin.apk -f
rm /system/app/SamsungApps.apk -f
rm /system/app/SetupWizard.apk -f
rm /system/app/Stk.apk -f
rm /system/app/SnsAccountMs.apk -f
rm /system/app/SnsAccountLi.apk -f
rm /system/app/SpeechRecorder.apk -f
rm /system/app/Street.apk -f
rm /system/app/Swype.apk -f
rm /system/app/Talk.apk -f
rm /system/app/Tasks.apk -f
rm /system/app/Term.apk -f
rm /system/app/TrimApp.apk -f
rm /system/app/TtsService.apk -f
rm /system/app/Kies.apk -f
rm /system/app/VideoEditor.apk -f
rm /system/app/VoiceToGo.apk -f
rm /system/app/VoiceRecorder.apk -f
rm /system/app/FTM.apk -f
rm /system/app/FTS.apk -f
rm /system/app/SecretWallpaper2.apk -f
rm /system/app/wipereceiver.apk -f
rm /system/app/WlanTest.apk -f
rm /system/app/wssyncmlnps.apk -f
rm /system/app/SamsungWidget_StockClock.apk -f
rm /system/app/PhotoRetouching.apk -f
rm /system/app/SevenEngine.apk -f
rm /system/app/ShareApp.apk -f
rm /system/app/Talk2.apk -f
exit
exit
Click to expand...
Click to collapse
Thx for help
from my SGS running MIUI 2.3.4
Thank you for that very usefull
redbull320 said:
Hey, i have a question:
i've an own zip for removing Systemapps !
when i use the delete.zip before i boot the SGS the first after flashing a new ROM, my Home button doesnt work..
when i let the SGS boot after installing a ROM and then Reboot in recovery and run the zip, after the boot the homebutton works..
but why? which APP is important for the first boot and for the homebutton?
sry for my english
LG
Click to expand...
Click to collapse
Its because you remove setupwizard.apk before booting up for the first time. You should only remove setupwizard after finishing the initial setup of the phone on the first boot.
So it looks like removing the social hub means you can't add your hotmail account under Accounts and Sync > Add Account > Social Hub accounts? I uninstalled it a while back using Titanium Backup but only just bothered trying to add Hotmail.
Can I safely edit the updater-script to leave IN some stuff I don't consider BLOATWARE?
Cheers!
yea sure just edit what u need !!!
Does this work on an "odex" ROM? And if so, will it take care of the ".odex" files? Maybe a noob question. But I am learning on the way!
Thanks
(P.s. I am rooted with CF-Root-KG2, so I have cwm)
"apps safe to remove thread"
(•.•) said:
check out the "apps safe to remove thread" or just go www.tinyurl.com/safetoremove!
Click to expand...
Click to collapse
dead link. instead, use
http://forum.xda-developers.com/showpost.php?p=13600882&postcount=1
to do away with all those bloatware-encrusted phones.
For you nightly flashers you may have noticed scripts in your system/addon.d folder. Called 50-cm.sh, 70-gapps.sh, and 71-gapps-faceunlock.sh. The gapps scripts are not part of CM but CM is able to utilize these scripts, found in most Gapps packages.
These scripts b/u your hosts, Gapps, and Faceunlock files/apps/libs so you don't have to reflash them with every nightly. If you happen to have other apps installed as system/apps that are NOT part of the CM9 zip, then you must either restore them after every flash, or reinstall. In my case there were libs that I had to copy back to system/lib after every flash.
Easy solution:
-copy 50-cm.sh
-rename to 91-cm.sh
-place file back into addon.d
-edit the following bolded/underlined/red text to your needs, the text below is merely the contents of the file you just copied, no need to copy/paste from here:
Code:
#!/sbin/sh
#
# /system/addon.d/[B][U][COLOR="Red"]50-cm.sh[/COLOR][/U][/B]
# During a CM9 upgrade, this script backs up /sy stem/etc/hosts,
# /system is formatted and reinstalled, then the file is restored.
#
. /tmp/backuptool.functions
list_files() {
cat <<EOF
[B][U][COLOR="Red"]etc/hosts[/COLOR][/U] [/B]
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/$REPLAC EMEN T"
[ -f "$C/$S/$FILE" ] && restore_file $ S/"$ FILE" "$R"
done
;;
pre-backup)
# Stub
;;
post-backup)
# Stub
;;
pre-restore)
# Stub
;;
post-restore)
# Stub
;;
esac
1. change 50-cm.sh to 91-cm.sh,
2. delete etc/hosts and:
3. Insert app/yourappname.apk (pay attention to actual file names),
4. Insert lib/yourappname.so (if applicable)
5. You can reference the 70-Gapps.sh script to get a feel for how to lay things out.
The script will only look in the /system partition so you only require the partial path: app, bin, lib, etc....
Thanks to: http://forum.xda-developers.com/showpost.php?p=24409231&postcount=2107 for the inspiration
...........
.........
The old removal format no longer worked. New example below:
Code:
#!/sbin/sh
#
# /system/addon.d/91-cm.sh
# During a CM10 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
xbin/su
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 /system/app/MagicSmokeWallpapers.apk
rm /system/app/PhaseBeam.apk
rm /system/app/VisualizationWallpapers.apk
rm /system/app/HoloSpiralWallpaper.apk
rm /system/app/LiveWallpapersPicker.apk
rm /system/app/LiveWallpapers.apk
rm /system/app/CMFileManager.apk
rm /system/app/CMFileManagerThemes.apk
rm /system/app/CMWallpapers.apk
rm /system/app/VideoEditor.apk
rm /system/media/audio/ringtones/Acheron.ogg
rm /system/media/audio/ringtones/Andromeda.ogg
rm /system/media/audio/ringtones/Aquila.ogg
rm /system/media/audio/ringtones/ArgoNavis.ogg
rm /system/media/audio/ringtones/BentleyDubs.ogg
rm /system/media/audio/ringtones/Big_Easy.ogg
rm /system/media/audio/ringtones/BirdLoop.ogg
rm /system/media/audio/ringtones/Bollywood.ogg
rm /system/media/audio/ringtones/Bongo.ogg
rm /system/media/audio/ringtones/Bootes.ogg
rm /system/media/audio/ringtones/Boxbeat.ogg
rm /system/media/audio/ringtones/BussaMove.ogg
rm /system/media/audio/ringtones/Cairo.ogg
rm /system/media/audio/ringtones/Calypso_Steel.ogg
rm /system/media/audio/ringtones/CanisMajor.ogg
rm /system/media/audio/ringtones/CaribbeanIce.ogg
rm /system/media/audio/ringtones/Carina.ogg
rm /system/media/audio/ringtones/Cassiopeia.ogg
rm /system/media/audio/ringtones/Champagne_Edition.ogg
rm /system/media/audio/ringtones/Club_Cubano.ogg
rm /system/media/audio/ringtones/CrayonRock.ogg
rm /system/media/audio/ringtones/CrazyDream.ogg
rm /system/media/audio/ringtones/CurveBall.ogg
rm /system/media/audio/ringtones/CyanTone.ogg
rm /system/media/audio/ringtones/Cygnus.ogg
rm /system/media/audio/ringtones/DancinFool.ogg
rm /system/media/audio/ringtones/Ding.ogg
rm /system/media/audio/ringtones/DonMessWivIt.ogg
rm /system/media/audio/ringtones/Draco.ogg
rm /system/media/audio/ringtones/DreamTheme.ogg
rm /system/media/audio/ringtones/Eastern_Sky.ogg
rm /system/media/audio/ringtones/Enter_the_Nexus.ogg
rm /system/media/audio/ringtones/Eridani.ogg
rm /system/media/audio/ringtones/EtherShake.ogg
rm /system/media/audio/ringtones/FriendlyGhost.ogg
rm /system/media/audio/ringtones/Funk_Yall.ogg
rm /system/media/audio/ringtones/GameOverGuitar.ogg
rm /system/media/audio/ringtones/Gigolo.ogg
rm /system/media/audio/ringtones/Gimme_Mo_Town.ogg
rm /system/media/audio/ringtones/Girtab.ogg
rm /system/media/audio/ringtones/Glacial_Groove.ogg
rm /system/media/audio/ringtones/Growl.ogg
rm /system/media/audio/ringtones/HalfwayHome.ogg
rm /system/media/audio/ringtones/House_of_house.ogg
rm /system/media/audio/ringtones/InsertCoin.ogg
rm /system/media/audio/ringtones/Iridium.ogg
rm /system/media/audio/ringtones/LoopyLounge.ogg
rm /system/media/audio/ringtones/LoveFlute.ogg
rm /system/media/audio/ringtones/Lyra.ogg
rm /system/media/audio/ringtones/Machina.ogg
rm /system/media/audio/ringtones/MidEvilJaunt.ogg
rm /system/media/audio/ringtones/MildlyAlarming.ogg
rm /system/media/audio/ringtones/Nairobi.ogg
rm /system/media/audio/ringtones/Nasqueron.ogg
rm /system/media/audio/ringtones/Nassau.ogg
rm /system/media/audio/ringtones/NewPlayer.ogg
rm /system/media/audio/ringtones/Noises1.ogg
rm /system/media/audio/ringtones/Noises2.ogg
rm /system/media/audio/ringtones/Noises3.ogg
rm /system/media/audio/ringtones/No_Limits.ogg
rm /system/media/audio/ringtones/OrganDub.ogg
rm /system/media/audio/ringtones/Orion.ogg
rm /system/media/audio/ringtones/Paradise_Island.ogg
rm /system/media/audio/ringtones/Pegasus.ogg
rm /system/media/audio/ringtones/Perseus.ogg
rm /system/media/audio/ringtones/Playa.ogg
rm /system/media/audio/ringtones/Raindance.ogg
rm /system/media/audio/ringtones/Revelation.ogg
rm /system/media/audio/ringtones/Rigel.ogg
rm /system/media/audio/ringtones/Road_Trip.ogg
rm /system/media/audio/ringtones/RomancingTheTone.ogg
rm /system/media/audio/ringtones/Safari.ogg
rm /system/media/audio/ringtones/Savannah.ogg
rm /system/media/audio/ringtones/Scarabaeus.ogg
rm /system/media/audio/ringtones/Sceptrum.ogg
rm /system/media/audio/ringtones/Seville.ogg
rm /system/media/audio/ringtones/Shes_All_That.ogg
rm /system/media/audio/ringtones/SilkyWay.ogg
rm /system/media/audio/ringtones/Silmarillia.ogg
rm /system/media/audio/ringtones/SitarVsSitar.ogg
rm /system/media/audio/ringtones/Solarium.ogg
rm /system/media/audio/ringtones/SpringyJalopy.ogg
rm /system/media/audio/ringtones/Steppin_Out.ogg
rm /system/media/audio/ringtones/Terminated.ogg
rm /system/media/audio/ringtones/Testudo.ogg
rm /system/media/audio/ringtones/Themos.ogg
rm /system/media/audio/ringtones/Third_Eye.ogg
rm /system/media/audio/ringtones/Thunderfoot.ogg
rm /system/media/audio/ringtones/TwirlAway.ogg
rm /system/media/audio/ringtones/UrsaMinor.ogg
rm /system/media/audio/ringtones/VeryAlarmed.ogg
rm /system/media/audio/ringtones/World.ogg
rm /system/media/audio/ringtones/Whisperer.ogg
rm /system/media/audio/ringtones/WobblyRinger.ogg
rm /system/media/audio/notifications/Adara.ogg
rm /system/media/audio/notifications/Aldebaran.ogg
rm /system/media/audio/notifications/Altair.ogg
rm /system/media/audio/notifications/Antares.ogg
rm /system/media/audio/notifications/Antimony.ogg
rm /system/media/audio/notifications/Arcturus.ogg
rm /system/media/audio/notifications/Betelgeuse.ogg
rm /system/media/audio/notifications/BrassAndroid.ogg
rm /system/media/audio/notifications/Canopus.ogg
rm /system/media/audio/notifications/Capella.ogg
rm /system/media/audio/notifications/Castor.ogg
rm /system/media/audio/notifications/CetiAlpha.ogg
rm /system/media/audio/notifications/CyanMail.ogg
rm /system/media/audio/notifications/CyanMessage.ogg
rm /system/media/audio/notifications/CyanPing.ogg
rm /system/media/audio/notifications/DearDeer.ogg
rm /system/media/audio/notifications/Deneb.ogg
rm /system/media/audio/notifications/Doink.ogg
rm /system/media/audio/notifications/DontPanic.ogg
rm /system/media/audio/notifications/Electra.ogg
rm /system/media/audio/notifications/Fomalhaut.ogg
rm /system/media/audio/notifications/Highwire.ogg
rm /system/media/audio/notifications/Hojus.ogg
rm /system/media/audio/notifications/KzurbSonar.ogg
rm /system/media/audio/notifications/Lalande.ogg
rm /system/media/audio/notifications/Merope.ogg
rm /system/media/audio/notifications/Mira.ogg
rm /system/media/audio/notifications/Naughty.ogg
rm /system/media/audio/notifications/OnTheHunt.ogg
rm /system/media/audio/notifications/Polaris.ogg
rm /system/media/audio/notifications/Pollux.ogg
rm /system/media/audio/notifications/Pong.ogg
rm /system/media/audio/notifications/Procyon.ogg
rm /system/media/audio/notifications/Proxima.ogg
rm /system/media/audio/notifications/Radon.ogg
rm /system/media/audio/notifications/Rang.ogg
rm /system/media/audio/notifications/Regulus.ogg
rm /system/media/audio/notifications/Shaula.ogg
rm /system/media/audio/notifications/Sirius.ogg
rm /system/media/audio/notifications/Sirrah.ogg
rm /system/media/audio/notifications/Spica.ogg
rm /system/media/audio/notifications/Stone.ogg
rm /system/media/audio/notifications/Tejat.ogg
rm /system/media/audio/notifications/Upsilon.ogg
rm /system/media/audio/notifications/Vega.ogg
rm /system/media/audio/notifications/Voila.ogg
;;
pre-backup)
# Stub
;;
post-backup)
# Stub
;;
pre-restore)
# Stub
;;
post-restore)
# Stub
;;
esac
this is the best thanks so much
it seems like 91-cm.sh will only delete files in the "post-restore" section only if you have selected to back up at least one app in the "cat <<EOF" section first.
is there a way to modify the script for removing files only without having to back up at least one app first?
thanks
blowtorch said:
it seems like 91-cm.sh will only delete files in the "post-restore" section only if you have selected to back up at least one app in the "cat <<EOF" section first.
is there a way to modify the script for removing files only without having to back up at least one app first?
thanks
Click to expand...
Click to collapse
Not sure. I wonder if you put it under the pre-backup stub (?)
CMNein said:
Not sure. I wonder if you put it under the pre-backup stub (?)
Click to expand...
Click to collapse
I think the script ceases to continue to run if there is no file(s) listed in the EOF section?
I will play around with it some more using your suggestion when I get the chance and I'll post the results as well ...
I really don't have a need to backup anything prior to flashing a new nightly but, I really like removing the bloat which consists of basically the same files that you've listed. For now however I have moved Apex launcher into the system/app and am backing that up with this script in order to get the remove files function to work.
Or you could add it to the Gapps script. I prefer to run a separate one, but if you don't have any additional files you want to back up the existing one would work just fine.
you can use the script to only delete files without backup as well but, you need to have a entry under the "list_files cat EOF section". i put a fake entry in the EOF section "app/xxx.apk" and even though that xxx.apk doesn't exist the rest of the script functions and it deletes the files that i want after flashing a new nightly.
thanks for your help CMNein
this is the exact script that i use below with the official cm10 nightlys
Code:
#blowtorch custom post flash auto delete script
. /tmp/backuptool.functions
list_files() {
cat <<EOF
[COLOR="red"]app/xxx.apk[/COLOR]
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
[COLOR="Red"]rm system/app/MagicSmokeWallpapers.apk
rm system/app/PhaseBeam.apk
rm system/app/RomManager.apk
rm system/app/VisualizationWallpapers.apk
rm system/app/HoloSpiralWallpaper.apk
rm system/app/LiveWallpapers.apk
rm system/app/CMWallpapers.apk
rm system/app/LiveWallpapersPicker.apk
rm system/media/audio/ui/camera_click.ogg
rm system/media/audio/ui/camera_focus.ogg[/COLOR]
;;
esac
Thank you! I will use this for backup Cerberus and Avast Anti-thief!
Listed the contents of the system/audio/ringtone and notifications directories and concatenated them with the appropriate commands. I haven't added these to the removal part of my script yet, but will shortly, before tomorrow's flash if I'm not lazy.
I'll delete the ones I want to keep from the list, and likely add those ones to the back up part of the script as well.
Here is a complete list with the rm command + path for ringtones:
Code:
rm /system/media/audio/ringtones/Acheron.ogg
rm /system/media/audio/ringtones/Andromeda.ogg
rm /system/media/audio/ringtones/Aquila.ogg
rm /system/media/audio/ringtones/ArgoNavis.ogg
rm /system/media/audio/ringtones/BentleyDubs.ogg
rm /system/media/audio/ringtones/Big_Easy.ogg
rm /system/media/audio/ringtones/BirdLoop.ogg
rm /system/media/audio/ringtones/Bollywood.ogg
rm /system/media/audio/ringtones/Bongo.ogg
rm /system/media/audio/ringtones/Bootes.ogg
rm /system/media/audio/ringtones/Boxbeat.ogg
rm /system/media/audio/ringtones/BussaMove.ogg
rm /system/media/audio/ringtones/Cairo.ogg
rm /system/media/audio/ringtones/Calypso_Steel.ogg
rm /system/media/audio/ringtones/CanisMajor.ogg
rm /system/media/audio/ringtones/CaribbeanIce.ogg
rm /system/media/audio/ringtones/Carina.ogg
rm /system/media/audio/ringtones/Cassiopeia.ogg
rm /system/media/audio/ringtones/Centaurus.ogg
rm /system/media/audio/ringtones/Champagne_Edition.ogg
rm /system/media/audio/ringtones/Club_Cubano.ogg
rm /system/media/audio/ringtones/CrayonRock.ogg
rm /system/media/audio/ringtones/CrazyDream.ogg
rm /system/media/audio/ringtones/CurveBall.ogg
rm /system/media/audio/ringtones/CyanTone.ogg
rm /system/media/audio/ringtones/Cygnus.ogg
rm /system/media/audio/ringtones/DancinFool.ogg
rm /system/media/audio/ringtones/Ding.ogg
rm /system/media/audio/ringtones/DonMessWivIt.ogg
rm /system/media/audio/ringtones/Draco.ogg
rm /system/media/audio/ringtones/DreamTheme.ogg
rm /system/media/audio/ringtones/Eastern_Sky.ogg
rm /system/media/audio/ringtones/Enter_the_Nexus.ogg
rm /system/media/audio/ringtones/Eridani.ogg
rm /system/media/audio/ringtones/EtherShake.ogg
rm /system/media/audio/ringtones/FriendlyGhost.ogg
rm /system/media/audio/ringtones/Funk_Yall.ogg
rm /system/media/audio/ringtones/GameOverGuitar.ogg
rm /system/media/audio/ringtones/Gigolo.ogg
rm /system/media/audio/ringtones/Gimme_Mo_Town.ogg
rm /system/media/audio/ringtones/Girtab.ogg
rm /system/media/audio/ringtones/Glacial_Groove.ogg
rm /system/media/audio/ringtones/Growl.ogg
rm /system/media/audio/ringtones/HalfwayHome.ogg
rm /system/media/audio/ringtones/House_of_house.ogg
rm /system/media/audio/ringtones/Hydra.ogg
rm /system/media/audio/ringtones/InsertCoin.ogg
rm /system/media/audio/ringtones/Iridium.ogg
rm /system/media/audio/ringtones/LoopyLounge.ogg
rm /system/media/audio/ringtones/LoveFlute.ogg
rm /system/media/audio/ringtones/Lyra.ogg
rm /system/media/audio/ringtones/Machina.ogg
rm /system/media/audio/ringtones/MidEvilJaunt.ogg
rm /system/media/audio/ringtones/MildlyAlarming.ogg
rm /system/media/audio/ringtones/Nairobi.ogg
rm /system/media/audio/ringtones/Nasqueron.ogg
rm /system/media/audio/ringtones/Nassau.ogg
rm /system/media/audio/ringtones/NewPlayer.ogg
rm /system/media/audio/ringtones/Noises1.ogg
rm /system/media/audio/ringtones/Noises2.ogg
rm /system/media/audio/ringtones/Noises3.ogg
rm /system/media/audio/ringtones/No_Limits.ogg
rm /system/media/audio/ringtones/OrganDub.ogg
rm /system/media/audio/ringtones/Orion.ogg
rm /system/media/audio/ringtones/Paradise_Island.ogg
rm /system/media/audio/ringtones/Pegasus.ogg
rm /system/media/audio/ringtones/Perseus.ogg
rm /system/media/audio/ringtones/Playa.ogg
rm /system/media/audio/ringtones/Pyxis.ogg
rm /system/media/audio/ringtones/Revelation.ogg
rm /system/media/audio/ringtones/Rigel.ogg
rm /system/media/audio/ringtones/Road_Trip.ogg
rm /system/media/audio/ringtones/RomancingTheTone.ogg
rm /system/media/audio/ringtones/Safari.ogg
rm /system/media/audio/ringtones/Savannah.ogg
rm /system/media/audio/ringtones/Scarabaeus.ogg
rm /system/media/audio/ringtones/Sceptrum.ogg
rm /system/media/audio/ringtones/Seville.ogg
rm /system/media/audio/ringtones/Shes_All_That.ogg
rm /system/media/audio/ringtones/SilkyWay.ogg
rm /system/media/audio/ringtones/Silmarillia.ogg
rm /system/media/audio/ringtones/SitarVsSitar.ogg
rm /system/media/audio/ringtones/Solarium.ogg
rm /system/media/audio/ringtones/SpringyJalopy.ogg
rm /system/media/audio/ringtones/Steppin_Out.ogg
rm /system/media/audio/ringtones/Terminated.ogg
rm /system/media/audio/ringtones/Testudo.ogg
rm /system/media/audio/ringtones/Themos.ogg
rm /system/media/audio/ringtones/Third_Eye.ogg
rm /system/media/audio/ringtones/Thunderfoot.ogg
rm /system/media/audio/ringtones/TwirlAway.ogg
rm /system/media/audio/ringtones/UrsaMinor.ogg
rm /system/media/audio/ringtones/VeryAlarmed.ogg
rm /system/media/audio/ringtones/Vespa.ogg
rm /system/media/audio/ringtones/World.ogg
rm /system/media/audio/ringtones/Zeta.ogg
And for notifications:
Code:
rm /system/media/audio/notifications/Adara.ogg
rm /system/media/audio/notifications/Aldebaran.ogg
rm /system/media/audio/notifications/Altair.ogg
rm /system/media/audio/notifications/Antares.ogg
rm /system/media/audio/notifications/Antimony.ogg
rm /system/media/audio/notifications/Arcturus.ogg
rm /system/media/audio/notifications/Argon.ogg
rm /system/media/audio/notifications/Beryllium.ogg
rm /system/media/audio/notifications/Betelgeuse.ogg
rm /system/media/audio/notifications/BrassAndroid.ogg
rm /system/media/audio/notifications/Canopus.ogg
rm /system/media/audio/notifications/Capella.ogg
rm /system/media/audio/notifications/Castor.ogg
rm /system/media/audio/notifications/CetiAlpha.ogg
rm /system/media/audio/notifications/Cobalt.ogg
rm /system/media/audio/notifications/CyanMail.ogg
rm /system/media/audio/notifications/CyanMessage.ogg
rm /system/media/audio/notifications/CyanPing.ogg
rm /system/media/audio/notifications/DearDeer.ogg
rm /system/media/audio/notifications/Deneb.ogg
rm /system/media/audio/notifications/Doink.ogg
rm /system/media/audio/notifications/DontPanic.ogg
rm /system/media/audio/notifications/Electra.ogg
rm /system/media/audio/notifications/Fluorine.ogg
rm /system/media/audio/notifications/Fomalhaut.ogg
rm /system/media/audio/notifications/Gallium.ogg
rm /system/media/audio/notifications/Helium.ogg
rm /system/media/audio/notifications/Highwire.ogg
rm /system/media/audio/notifications/Hojus.ogg
rm /system/media/audio/notifications/Iridium.ogg
rm /system/media/audio/notifications/Krypton.ogg
rm /system/media/audio/notifications/KzurbSonar.ogg
rm /system/media/audio/notifications/Lalande.ogg
rm /system/media/audio/notifications/Merope.ogg
rm /system/media/audio/notifications/Mira.ogg
rm /system/media/audio/notifications/Naughty.ogg
rm /system/media/audio/notifications/OnTheHunt.ogg
rm /system/media/audio/notifications/Palladium.ogg
rm /system/media/audio/notifications/Polaris.ogg
rm /system/media/audio/notifications/Pollux.ogg
rm /system/media/audio/notifications/Pong.ogg
rm /system/media/audio/notifications/Procyon.ogg
rm /system/media/audio/notifications/Proxima.ogg
rm /system/media/audio/notifications/Radon.ogg
rm /system/media/audio/notifications/Rang.ogg
rm /system/media/audio/notifications/Regulus.ogg
rm /system/media/audio/notifications/Rubidium.ogg
rm /system/media/audio/notifications/Selenium.ogg
rm /system/media/audio/notifications/Shaula.ogg
rm /system/media/audio/notifications/Sirius.ogg
rm /system/media/audio/notifications/Sirrah.ogg
rm /system/media/audio/notifications/Spica.ogg
rm /system/media/audio/notifications/Stone.ogg
rm /system/media/audio/notifications/Strontium.ogg
rm /system/media/audio/notifications/Tejat.ogg
rm /system/media/audio/notifications/Thallium.ogg
rm /system/media/audio/notifications/Upsilon.ogg
rm /system/media/audio/notifications/Vega.ogg
rm /system/media/audio/notifications/Voila.ogg
rm /system/media/audio/notifications/Xenon.ogg
rm /system/media/audio/notifications/Zirconium.ogg
hi, why is it needed to be renamed 91-cm.sh ? what issues if leaving 50-cm.sh ?
(sorry for my poor english.)
jumpers said:
hi, why is it needed to be renamed 91-cm.sh ? what issues if leaving 50-cm.sh ?
(sorry for my poor english.)
Click to expand...
Click to collapse
You only have to rename it if you want it as a separate script. If you're just editing the existing script then don't change the name.
Sent from my Galaxy Nexus using Tapatalk 2
Hi,
I have tried this, copying to 91-cm.sh with the following contents
Also set the permissions for this in the addon.d directory to 755 as per 50-cm.sh
#!/sbin/sh
#
# /system/addon.d/91-cm.sh
# During a CM10 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
media/audio/ringtones/Viva La Vida Live.m4a
media/audio/ringtones/Poison.mp3
media/audio/ringtones/Wife Warning.mp3
media/audio/notifications/Dragon Roar.mp3
media/audio/notifications/Evil Laugh.mp3
media/audio/notifications/Im Stuck N Ur Pocket.mp3
media/audio/notifications/Woody WoodPecker.mp3
media/audio/notifications/Yoda.mp3
media/audio/notifications/Yogi Bear Message.mp3
media/audio/alarms/James Brown - I feel good.mp3
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
Now after running my last update using of the hellybean ROM, the files were not restored and the 91-sh.cm file was deleted.
What have I got wrong ??
Thanks
Simon
Your script looks good. Not all ROMs support it however, even if they're CM based.
Sent from my Galaxy Nexus using Tapatalk 2
i think that also files with spaces are not allowed (not tested yet), try renaming your files with underscores ans "-", and update your script.
jumpers said:
i think that also files with spaces are not allowed (not tested yet), try renaming your files with underscores ans "-", and update your script.
Click to expand...
Click to collapse
Derp, totally missed that.
Sent from my Galaxy Nexus using Tapatalk 2
it seems that this tool is not more working on CM10.1.
jumpers said:
it seems that this tool is not more working on CM10.1.
Click to expand...
Click to collapse
Backup works, but removal doesn't on 10.1 yet, although it's been a while since I've bothered trying.
Hi there
After I removed the following apps, my "Smart settings" (under General / Smart Functions) is unable to open.
Anyone know which app is related?
/app# rm -r PlusOne/
/app# rm -r GCUV/
/app# rm -r Hangouts/
/app# rm -r talkback/
/app# rm -r CloudHub/
/app# rm -r Newsstand/
/priv-app# rm -r LGMyGuide/
/priv-app# rm -r LGMyPlaces
/priv-app# rm -r LGMyPlacesEngine/
/priv-app# rm -r LGMyPlacesSettings/
All of the Places apps as they are what's used for the location based SMartSettings
thank you
hkfriends said:
thank you
Click to expand...
Click to collapse
No worries just hit Thanks button if I helped
Hi,
To Remove Hands Free Activation you should remove Spirint apps in system directory follow by commands below:
Code:
adb shell su -c mount -o rw,remount /system
adb shell
su
cd system
cd priv-app
rm -r SprintAndroidExtension2
rm -r SprintDM
rm -r SprintSetupWizard
rm -r SprintSyncMLPhoneIF
rm -r SprintSyncMLSvc
touch like button if this thread helps you.
Thank you for this!
why i am getting read only file error??
crixus190 said:
why i am getting read only file error??
Click to expand...
Click to collapse
becuase you need root permision
This worked. Thank you!
Looking around at the available ROMs, and playing around with OmniROM, I kinda miss OOS. I just don't want Google or the Play Store. Is there a version of OOS without them? Could I download OOS, open the zip, and delete the relevant files?
Use Hydrogen OS then. Basically OOS + Some bloat (most of em are uninstallable, the rest are pretty useful actually).
Oh and some un-translated chinese text here and there.
tanpro260196 said:
Use Hydrogen OS then.
Click to expand...
Click to collapse
Thanks! Should I be worried about privacy since it's the Chinese version of the OS? Anything strange, like phoning home my data to Chinese servers?
EDIT: Like this, OnePlus May Have Accidentally Sent Clipboard Data to Chinese Server
Wa hello there.
I registered just to give an answere to this unique thread.
Sooo... you should be able to create a Google (playstore or what ever) free Version of OOS by yourself.
Just download the Stock Rom of your device - open that one with either winzip or winrar or stuff like that.. head to "System/apps" (there should be stored all apps that will be installed by flashing)
and remove the unwanted evil Google things you don't want to have installed.
Summed up:
1. Download Stock Rom
2. Open that .zip / .rar file with a Programm of your choice
3. head to the path where the apks are stored (normally System/apps or something like that)
4. delete stuff you don't want to be installed.
5. ???
6. Profit.
That should do the trick. (by the way.. your device may need to be rooted to have a custom recovery installed.)
Thanks for the reply. I don't see that folder. I see:
- boot.img
- /firmware-update/ (.bin files, .mbn files, .elf files)
- /META-INF/com/google/android/ (blobs "update-binary", "updater-script")
- /RADIO/ (.bin file)
- system.new.dat
- system.patch.dat
- system.transfer.list
I just downloaded a fresh zip from http://downloads.oneplus.net/devices/oneplus-5t/
Deleted
Ah, sorry, my bad. It's been a while for me
since I've modified a ROM.
All this stuff should be contained inside the file
system.new.dat. There is a guide for extracting the .dat file here:
https://forum.xda-developers.com/android/help/extract-dat-marshmallow-lollipop-easily-t3334117/amp/
You might also want to see this:
https://forum.xda-developers.com/ge...ng-editing-packing-roms-img-dat-t3350261/amp/
If you don't want to do this all by yourself
you should check out some scripts. I came across this one f.e.:
https://forum.xda-developers.com/on...ble-remove-gapps-stock-oos-roms-t3562983/amp/
All it does is removing every google related stuff inside of the system folder of your android.
So, step one should be flashing stock rom, after that, make sure twrp recovery is still there.
If not - flash a custom recovery like twrp. After that flash the removeGapps.zip mentioned in the linked article.
That should be it then.
The code of the script:
Code:
#!/sbin/sh
rm -rf /system/app/Books
rm -rf /system/app/CalculatorGoogle
rm -rf /system/app/CalendarGooglePrebuilt
rm -rf /system/app/Chrome
rm -rf /system/app/CloudPrint
rm -rf /system/app/CloudPrint2
rm -rf /system/app/ConfigUpdater
rm -rf /system/app/DMAgent
rm -rf /system/app/Drive
rm -rf /system/app/EditorsDocs
rm -rf /system/app/EditorsSheets
rm -rf /system/app/EditorsSlides
rm -rf /system/app/ExchangeServices
rm -rf /system/app/FaceLock
rm -rf /system/app/FitnessPrebuilt
rm -rf /system/app/GoogleCalendarSyncAdapter
rm -rf /system/app/GoogleCamera
rm -rf /system/app/GoogleContactsSyncAdapter
rm -rf /system/app/GoogleEars
rm -rf /system/app/GoogleEarth
rm -rf /system/app/GoogleHindiIME
rm -rf /system/app/GoogleHome
rm -rf /system/app/GoogleJapaneseInput
rm -rf /system/app/GooglePinyinIME
rm -rf /system/app/GoogleTTS
rm -rf /system/app/Hangouts
rm -rf /system/app/Duo
rm -rf /system/app/HangoutsDialer
rm -rf /system/app/KoreanIME
rm -rf /system/app/LatinImeGoogle
rm -rf /system/app/Maps
rm -rf /system/app/Music2
rm -rf /system/app/Newsstand
rm -rf /system/app/Photos
rm -rf /system/app/PlayAutoInstallConfig
rm -rf /system/app/PlayGames
rm -rf /system/app/PlusOne
rm -rf /system/app/PrebuiltBugle
rm -rf /system/app/PrebuiltDeskClockGoogle
rm -rf /system/app/PrebuiltEmailGoogle
rm -rf /system/app/PrebuiltExchange3Google
rm -rf /system/app/PrebuiltGmail
rm -rf /system/app/PrebuiltKeep
rm -rf /system/app/PrebuiltNewsWeather
rm -rf /system/app/PrintSpooler
rm -rf /system/app/Street
rm -rf /system/app/talkback
rm -rf /system/app/Tycho
rm -rf /system/app/Videos
rm -rf /system/app/Wallet
rm -rf /system/app/YouTube
rm -rf /system/priv-app/AndroidForWork
rm -rf /system/priv-app/BackupRestoreConfirmation
rm -rf /system/priv-app/CalendarProvider
rm -rf /system/priv-app/ConfigUpdater
rm -rf /system/priv-app/ConnMO
rm -rf /system/priv-app/GCS
rm -rf /system/priv-app/GoogleBackupTransport
rm -rf /system/priv-app/GoogleContacts
rm -rf /system/priv-app/GoogleDialer
rm -rf /system/priv-app/GoogleFeedback
rm -rf /system/priv-app/GoogleLoginService
rm -rf /system/priv-app/GoogleOneTimeInitializer
rm -rf /system/priv-app/GooglePackageInstaller
rm -rf /system/priv-app/GooglePartnerSetup
rm -rf /system/priv-app/GoogleServicesFramework
rm -rf /system/priv-app/Hangouts
rm -rf /system/priv-app/HotwordEnrollment
rm -rf /system/priv-app/Phonesky
rm -rf /system/priv-app/PrebuiltGmsCore
rm -rf /system/priv-app/SetupWizard
rm -rf /system/priv-app/TagGoogle
rm -rf /system/priv-app/Talkback
rm -rf /system/priv-app/Velvet
rm -rf /system/priv-app/Wallet
rm -rf /system/tts
rm -rf /system/usr/srec
rm -rf /system/vendor/pittpatt
rm /system/addon.d/70-gapps.sh
rm /system/addon.d/71-faceunlock.sh
rm /system/addon.d/71-gapps-faceunlock.sh
rm /system/addon.d/74-googlecamera.sh
rm /system/addon.d/74-googlegallery.sh
rm /system/addon.d/75-googlegallery.sh
rm /system/addon.d/78-chromebrowser.sh
rm /system/app/Books.apk
rm /system/app/Books.odex
rm /system/app/BooksPhone.apk
rm /system/app/BooksPhone.odex
rm /system/app/BrowserProviderProxy.apk
rm /system/app/BrowserProviderProxy.odex
rm /system/app/CalculatorGoogle.apk
rm /system/app/CalculatorGoogle.odex
rm /system/app/Calendar.apk
rm /system/app/Duo.apk
rm /system/app/Calendar.odex
rm /system/app/CalendarGoogle.apk
rm /system/app/CalendarGoogle.odex
rm /system/app/CalendarGooglePrebuilt.apk
rm /system/app/CalendarGooglePrebuilt.odex
rm /system/app/CalendarProvider.apk
rm /system/app/CalendarProvider.odex
rm /system/app/CarHomeGoogle.apk
rm /system/app/CarHomeGoogle.odex
rm /system/app/CellBroadcastReceiver.apk
rm /system/app/CellBroadcastReceiver.odex
rm /system/app/Chrome.apk
rm /system/app/Chrome.odex
rm /system/app/ChromeBookmarksSyncAdapter.apk
rm /system/app/ChromeBookmarksSyncAdapter.odex
rm /system/app/CloudPrint.apk
rm /system/app/CloudPrint.odex
rm /system/app/CloudPrint2.apk
rm /system/app/CloudPrint2.odex
rm /system/app/ConfigUpdater.apk
rm /system/app/ConfigUpdater.odex
rm /system/app/Currents.apk
rm /system/app/Currents.odex
rm /system/app/DeskClockGoogle.apk
rm /system/app/DeskClockGoogle.odex
rm /system/app/DMAgent.apk
rm /system/app/DMAgent.odex
rm /system/app/Drive.apk
rm /system/app/Drive.odex
rm /system/app/EditorsDocs.apk
rm /system/app/EditorsDocs.odex
rm /system/app/EditorsSheets.apk
rm /system/app/EditorsSheets.odex
rm /system/app/EditorsSlides.apk
rm /system/app/EditorsSlides.odex
rm /system/app/ExchangeServices.apk
rm /system/app/ExchangeServices.odex
rm /system/app/FaceLock.apk
rm /system/app/FaceLock.odex
rm /system/app/Finsky.apk
rm /system/app/Finsky.odex
rm /system/app/FitnessPrebuilt.apk
rm /system/app/FitnessPrebuilt.odex
rm /system/app/FOTAKill.apk
rm /system/app/FOTAKill.odex
rm /system/app/GalleryGoogle.apk
rm /system/app/GalleryGoogle.odex
rm /system/app/GenieWidget.apk
rm /system/app/GenieWidget.odex
rm /system/app/Gmail.apk
rm /system/app/Gmail.odex
rm /system/app/Gmail2.apk
rm /system/app/Gmail2.odex
rm /system/app/GmsCore.apk
rm /system/app/GmsCore.odex
rm /system/app/GoogleBackupTransport.apk
rm /system/app/GoogleBackupTransport.odex
rm /system/app/GoogleCalendar.apk
rm /system/app/GoogleCalendar.odex
rm /system/app/GoogleCalendarSyncAdapter.apk
rm /system/app/GoogleCalendarSyncAdapter.odex
rm /system/app/GoogleCamera.apk
rm /system/app/GoogleCamera.odex
rm /system/app/GoogleCloudPrint.apk
rm /system/app/GoogleCloudPrint.odex
rm /system/app/GoogleContactsSyncAdapter.apk
rm /system/app/GoogleContactsSyncAdapter.odex
rm /system/app/GoogleEars.apk
rm /system/app/GoogleEars.odex
rm /system/app/GoogleEarth.apk
rm /system/app/GoogleEarth.odex
rm /system/app/GoogleFeedback.apk
rm /system/app/GoogleFeedback.odex
rm /system/app/GoogleHangouts.apk
rm /system/app/GoogleHangouts.odex
rm /system/app/GoogleHindiIME.apk
rm /system/app/GoogleHindiIME.odex
rm /system/app/GoogleHome.apk
rm /system/app/GoogleHome.odex
rm /system/app/GoogleJapaneseInput.apk
rm /system/app/GoogleJapaneseInput.odex
rm /system/app/GoogleKeep.apk
rm /system/app/GoogleKeep.odex
rm /system/app/GoogleLatinIme.apk
rm /system/app/GoogleLatinIme.odex
rm /system/app/GoogleLoginService.apk
rm /system/app/GoogleLoginService.odex
rm /system/app/GoogleMusic.apk
rm /system/app/GoogleMusic.odex
rm /system/app/GoogleNow.apk
rm /system/app/GoogleNow.odex
rm /system/app/GoogleOneTimeInitializer.apk
rm /system/app/GoogleOneTimeInitializer.odex
rm /system/app/GooglePartnerSetup.apk
rm /system/app/GooglePartnerSetup.odex
rm /system/app/GooglePinyinIME.apk
rm /system/app/GooglePinyinIME.odex
rm /system/app/GooglePlay.apk
rm /system/app/GooglePlay.odex
rm /system/app/GooglePlus.apk
rm /system/app/GooglePlus.odex
rm /system/app/GoogleQuickSearchBox.apk
rm /system/app/GoogleQuickSearchBox.odex
rm /system/app/GoogleServicesFramework.apk
rm /system/app/GoogleServicesFramework.odex
rm /system/app/GoogleTTS.apk
rm /system/app/GoogleTTS.odex
rm /system/app/Hangouts.apk
rm /system/app/Hangouts.odex
rm /system/app/HangoutsDialer.apk
rm /system/app/HangoutsDialer.odex
rm /system/app/iWnnIME.apk
rm /system/app/iWnnIME.odex
rm /system/app/iWnnIME_Kbd_White.apk
rm /system/app/iWnnIME_Kbd_White.odex
rm /system/app/Keep.apk
rm /system/app/Keep.odex
rm /system/app/KoreanIME.apk
rm /system/app/KoreanIME.odex
rm /system/app/LatinIME.apk
rm /system/app/LatinIME.odex
rm /system/app/LatinImeDictionaryPack.apk
rm /system/app/LatinImeDictionaryPack.odex
rm /system/app/LatinImeGoogle.apk
rm /system/app/LatinImeGoogle.odex
rm /system/app/LatinImeTutorial.apk
rm /system/app/LatinImeTutorial.odex
rm /system/app/Magazines.apk
rm /system/app/Magazines.odex
rm /system/app/Maps.apk
rm /system/app/Maps.odex
rm /system/app/MarketUpdater.apk
rm /system/app/MarketUpdater.odex
rm /system/app/MediaUploader.apk
rm /system/app/MediaUploader.odex
rm /system/app/Music2.apk
rm /system/app/Music2.odex
rm /system/app/NetworkLocation.apk
rm /system/app/NetworkLocation.odex
rm /system/app/Newsstand.apk
rm /system/app/Newsstand.odex
rm /system/app/OccamQuickOffice.apk
rm /system/app/OccamQuickOffice.odex
rm /system/app/OneTimeInitializer.apk
rm /system/app/OneTimeInitializer.odex
rm /system/app/PartnerBookmarksProvider.apk
rm /system/app/PartnerBookmarksProvider.odex
rm /system/app/Phonesky.apk
rm /system/app/Phonesky.odex
rm /system/app/Photos.apk
rm /system/app/Photos.odex
rm /system/app/PlayAutoInstallConfig.apk
rm /system/app/PlayAutoInstallConfig.odex
rm /system/app/PlayGames.apk
rm /system/app/PlayGames.odex
rm /system/app/PlayStore.apk
rm /system/app/PlayStore.odex
rm /system/app/PlusOne.apk
rm /system/app/PlusOne.odex
rm /system/app/PrebuiltBugle.apk
rm /system/app/PrebuiltBugle.odex
rm /system/app/PrebuiltDeskClockGoogle.apk
rm /system/app/PrebuiltDeskClockGoogle.odex
rm /system/app/PrebuiltEmailGoogle.apk
rm /system/app/PrebuiltEmailGoogle.odex
rm /system/app/PrebuiltExchange3Google.apk
rm /system/app/PrebuiltExchange3Google.odex
rm /system/app/PrebuiltGmail.apk
rm /system/app/PrebuiltGmail.odex
rm /system/app/PrebuiltGmsCore.apk
rm /system/app/PrebuiltGmsCore.odex
rm /system/app/PrebuiltKeep.apk
rm /system/app/PrebuiltKeep.odex
rm /system/app/PrebuiltNewsWeather.apk
rm /system/app/PrebuiltNewsWeather.odex
rm /system/app/PrintSpooler.apk
rm /system/app/PrintSpooler.odex
rm /system/app/QuickOffice.apk
rm /system/app/QuickOffice.odex
rm /system/app/QuickSearchBox.apk
rm /system/app/QuickSearchBox.odex
rm /system/app/SetupWizard.apk
rm /system/app/SetupWizard.odex
rm /system/app/Street.apk
rm /system/app/Street.odex
rm /system/app/Talk.apk
rm /system/app/Talk.odex
rm /system/app/Tycho.apk
rm /system/app/Tycho.odex
rm /system/app/Velvet.apk
rm /system/app/Velvet.odex
rm /system/app/Vending.apk
rm /system/app/Vending.odex
rm /system/app/Videos.apk
rm /system/app/Videos.odex
rm /system/app/Wallet.apk
rm /system/app/Wallet.odex
rm /system/app/YouTube.apk
rm /system/app/YouTube.odex
rm /system/priv-app/AndroidForWork.apk
rm /system/priv-app/AndroidForWork.odex
rm /system/priv-app/BackupRestoreConfirmation.apk
rm /system/priv-app/BackupRestoreConfirmation.odex
rm /system/priv-app/Books.apk
rm /system/priv-app/Books.odex
rm /system/priv-app/Calendar.apk
rm /system/priv-app/Calendar.odex
rm /system/priv-app/CalendarGooglePrebuilt.apk
rm /system/priv-app/CalendarGooglePrebuilt.odex
rm /system/priv-app/CalendarProvider.apk
rm /system/priv-app/CalendarProvider.odex
rm /system/priv-app/Chrome.apk
rm /system/priv-app/Chrome.odex
rm /system/priv-app/CloudPrint2.apk
rm /system/priv-app/CloudPrint2.odex
rm /system/priv-app/ConfigUpdater.apk
rm /system/priv-app/ConfigUpdater.odex
rm /system/priv-app/ConnMO.apk
rm /system/priv-app/ConnMO.odex
rm /system/priv-app/DMAgent.apk
rm /system/priv-app/DMAgent.odex
rm /system/priv-app/Drive.apk
rm /system/priv-app/Drive.odex
rm /system/priv-app/EditorsDocs.apk
rm /system/priv-app/EditorsDocs.odex
rm /system/priv-app/EditorsSheets.apk
rm /system/priv-app/EditorsSheets.odex
rm /system/priv-app/EditorsSlides.apk
rm /system/priv-app/EditorsSlides.odex
rm /system/priv-app/FaceLock.apk
rm /system/priv-app/FaceLock.odex
rm /system/priv-app/FitnessPrebuilt.apk
rm /system/priv-app/FitnessPrebuilt.odex
rm /system/priv-app/GCS.apk
rm /system/priv-app/GCS.odex
rm /system/priv-app/GmsCore.apk
rm /system/priv-app/GmsCore.odex
rm /system/priv-app/GoogleBackupTransport.apk
rm /system/priv-app/GoogleBackupTransport.odex
rm /system/priv-app/GoogleCalendarSyncAdapter.apk
rm /system/priv-app/GoogleCalendarSyncAdapter.odex
rm /system/priv-app/GoogleCamera.apk
rm /system/priv-app/GoogleCamera.odex
rm /system/priv-app/GoogleContacts.apk
rm /system/priv-app/GoogleContacts.odex
rm /system/priv-app/GoogleContactsSyncAdapter.apk
rm /system/priv-app/GoogleContactsSyncAdapter.odex
rm /system/priv-app/GoogleDialer.apk
rm /system/priv-app/GoogleDialer.odex
rm /system/priv-app/GoogleEars.apk
rm /system/priv-app/GoogleEars.odex
rm /system/priv-app/GoogleEarth.apk
rm /system/priv-app/GoogleEarth.odex
rm /system/priv-app/GoogleFeedback.apk
rm /system/priv-app/GoogleFeedback.odex
rm /system/priv-app/GoogleHindiIME.apk
rm /system/priv-app/GoogleHindiIME.odex
rm /system/priv-app/GoogleHome.apk
rm /system/priv-app/GoogleHome.odex
rm /system/priv-app/GoogleJapaneseInput.apk
rm /system/priv-app/GoogleJapaneseInput.odex
rm /system/priv-app/GoogleLoginService.apk
rm /system/priv-app/GoogleLoginService.odex
rm /system/priv-app/GoogleNow.apk
rm /system/priv-app/GoogleNow.odex
rm /system/priv-app/GoogleOneTimeInitializer.apk
rm /system/priv-app/GoogleOneTimeInitializer.odex
rm /system/priv-app/GooglePackageInstaller.apk
rm /system/priv-app/GooglePackageInstaller.odex
rm /system/priv-app/GooglePartnerSetup.apk
rm /system/priv-app/GooglePartnerSetup.odex
rm /system/priv-app/GooglePinyinIME.apk
rm /system/priv-app/GooglePinyinIME.odex
rm /system/priv-app/GoogleServicesFramework.apk
rm /system/priv-app/GoogleServicesFramework.odex
rm /system/priv-app/Hangouts.apk
rm /system/priv-app/Hangouts.odex
rm /system/priv-app/HotwordEnrollment.apk
rm /system/priv-app/HotwordEnrollment.odex
rm /system/priv-app/KoreanIME.apk
rm /system/priv-app/KoreanIME.odex
rm /system/priv-app/LatinImeGoogle.apk
rm /system/priv-app/LatinImeGoogle.odex
rm /system/priv-app/Maps.apk
rm /system/priv-app/Maps.odex
rm /system/priv-app/Music2.apk
rm /system/priv-app/Music2.odex
rm /system/priv-app/Newsstand.apk
rm /system/priv-app/Newsstand.odex
rm /system/priv-app/OneTimeInitializer.apk
rm /system/priv-app/OneTimeInitializer.odex
rm /system/priv-app/Phonesky.apk
rm /system/priv-app/Phonesky.odex
rm /system/priv-app/Photos.apk
rm /system/priv-app/Photos.odex
rm /system/priv-app/PlayAutoInstallConfig.apk
rm /system/priv-app/PlayAutoInstallConfig.odex
rm /system/priv-app/PlayGames.apk
rm /system/priv-app/PlayGames.odex
rm /system/priv-app/PlusOne.apk
rm /system/priv-app/PlusOne.odex
rm /system/priv-app/PrebuiltBugle.apk
rm /system/priv-app/PrebuiltBugle.odex
rm /system/priv-app/PrebuiltEmailGoogle.apk
rm /system/priv-app/PrebuiltEmailGoogle.odex
rm /system/priv-app/PrebuiltExchange3Google.apk
rm /system/priv-app/PrebuiltExchange3Google.odex
rm /system/priv-app/PrebuiltGmail.apk
rm /system/priv-app/PrebuiltGmail.odex
rm /system/priv-app/PrebuiltGmsCore.apk
rm /system/priv-app/PrebuiltGmsCore.odex
rm /system/priv-app/PrebuiltKeep.apk
rm /system/priv-app/PrebuiltKeep.odex
rm /system/priv-app/PrebuiltNewsWeather.apk
rm /system/priv-app/PrebuiltNewsWeather.odex
rm /system/priv-app/QuickSearchBox.apk
rm /system/priv-app/QuickSearchBox.odex
rm /system/priv-app/SetupWizard.apk
rm /system/priv-app/SetupWizard.odex
rm /system/priv-app/Street.apk
rm /system/priv-app/Street.odex
rm /system/priv-app/TagGoogle.apk
rm /system/priv-app/TagGoogle.odex
rm /system/priv-app/Talkback.apk
rm /system/priv-app/Talkback.odex
rm /system/priv-app/Velvet.apk
rm /system/priv-app/Velvet.odex
rm /system/priv-app/Vending.apk
rm /system/priv-app/Vending.odex
rm /system/priv-app/Videos.apk
rm /system/priv-app/Videos.odex
rm /system/priv-app/Wallet.apk
rm /system/priv-app/Wallet.odex
rm /system/priv-app/YouTube.apk
rm /system/priv-app/YouTube.odex
rm /system/vendor/lib/libfrsdk.so
I downloaded OnePlus5TOxygen_43_OTA_005_all_1801141242_0c19acb91a7d402d.zip
Here's what I found in /app/ ...
Code:
Account
AntHalService
AutoRegistration
BasicDreams
Bluetooth
BluetoothExt
BluetoothMidiService
BookmarkProvider
btmultisim
BTtestmode
BuiltInPrintService
Calculator
CalendarGoogle
CallFeaturesSetting
CaptivePortalLogin
CertInstaller
Chrome
CompanionDeviceManager
ConfURIDialer
CtsShimPrebuilt
datastatusnotification
DeskClock
DeviceInfo
DiracManager
DownloadProviderUi
Drive
Duo
EasterEgg
embms
EngineeringMode
EngSpecialTest
FidoCryptoService
GFManager
Gmail2
GoogleContactsSyncAdapter
GoogleExtShared
GooglePrintRecommendationService
GoogleTTS
HTMLViewer
ims
imgsettings
KeyChain
LatinImeGoogle
LiveWallpapersPicker
LogKitSdService
Maps
ModemTestMode
Music2
NfcNci
NFCTestMode
NVBackupUI
OemAutoTestServer
OEMLogKit
OPBackup
OPBackupRestore
OPBugReportLite
OPClipBoardManager
OpenWnn
OPLauncher2
OPLongshot
OPMmsLocationFramework
OPOnlineConfig
OPPush
OPSafe
OpSkin
OPSocialNetworkHub
OPWallpaperResources
OPWidget
PacProcessor
PartnerBookmarksProvider
Photos
PhotosOnline
PrintSpooler
QtiSystemService
QtiTelephonyService
radioconfig
RfToolkit
SdCardService
SecureExtAuthService
SecureSampleAuthService
SensorTestTool
SimSettings
SmscPlugger
Stk
talkback
uimremoteclient
uimremoteserver
UserDictionaryProvider
Videos
WallpaperBackup
WapiCertManage
WAPPushManager
WebViewGoogle
WfdService
YouTube
YuloreFramework
And here's what I found in /priv-app/ ...
Code:
BackupRestoreConfirmation
BlockedNumberProvider
CalendarProvider
CallLogBackup
CarrierConfig
CNEService
com.qualcomm.location
ConfigUpdater
Contacts
ContactsProvider
CtsShimPrivPrebuilt
DefaultContainerService
Dialer
DiracAudioControlService
DocumentsUI
DownloadProvider
dpmserviceapp
EmergencyInfo
ExternalStorageProvider
FusedLocation
GmsCore
GoogleBackupTransport
GoogleExtServices
GoogleFeedback
GoogleOneTimeInitializer
GooglePackageInstaller
GooglePartnerSetup
GoogleServicesFramework
IFAAService
InputDevices
ManagedProvisioning
MediaProvider
MmsService
MtpDocumentsProvider
OnePlusCamera
OnePlusCameraService
OnePlusGallery
OnePlusWizard
OPAod
OPAppLocker
OPCellBroadcastReceiver
OPDeviceManager
OPDeviceManagerProvider
OPFaceUnlock
OPIconpackCircle
OPIconpackH2Default
OPIconpackH2Folio
OPIconpackH2Light
OPIconpackOnePlus
OPIconpackSquare
OPInCallUI
OPMms
OPNetworkSetting
OPSettingsProvider
OPSimContacts
OPSystemUI
OPWifiApSettings
Phonesky
ProxyHandler
qcrilmsgtunnel
seccamservice
Settings
SetupWizard
SharedStorageBackup
Shell
SmartcardService
StatementService
StorageManager
Tag
Telecom
TelephoneProvider
TeleService
Velvet
VpnDialogs
WallpaperCropper
Looks like I have some research to do, to determine which items should be deleted. Although my intent is to create a Google-free version of OxygenOS, I'd also like it to be as minimal/secure as possible. I might delete other apps too.
Do as you like,
from what I can tell - some apps are needed to make the phone work properly when it comes to NFC and stuff.
But if you like to test stuff - go ahead. You shouldn't break the phone by doing it like I mentioned a few posts ago.
But that's not a guarantee and I'm not responsible for a bricked phone (Standard bla bla bla).
The mentioned script a few posts ago should have most of the gapps deleted.
I would like to hear if you've successfully done it without any bugs / sacrificing of cool features and could provide your script to the community.
ClinicalTrack said:
I downloaded OnePlus5TOxygen_43_OTA_005_all_1801141242_0c19acb91a7d402d.zip
Looks like I have some research to do, to determine which items should be deleted. Although my intent is to create a Google-free version of OxygenOS, I'd also like it to be as minimal/secure as possible. I might delete other apps too.
Click to expand...
Click to collapse
i hope you succesful with the research.
i want delete some google apps too, without root through original zip.
I currently use the MicroG builds of LineageOS for the OnePlus 5T and am quite happy with it, but if you could make an OxygenOS rom without anything Google but with optional MicroG, that would be awesome!
I miss Face Unlock and the 9 hours of screen time I had with OxygenOS.
I been running OOS without gapps for long time, remove all google apps in system and add the microg parts ( gms and gsf as minimum) to system.
To get signature spoofing you need to use xposed as there is no way to deodex 8.1 roms today.
The google parts that need to be removed:
delete_recursive("/system/priv-app/GmsCore");
delete_recursive("/system/priv-app/GoogleBackupTransport");
delete_recursive("/system/priv-app/GoogleFeedback");
delete_recursive("/system/priv-app/GoogleLoginService");
delete_recursive("/system/priv-app/GoogleOneTimeInitializer");
delete_recursive("/system/priv-app/GooglePartnerSetup");
delete_recursive("/system/priv-app/GoogleServicesFramework");
delete_recursive("/system/priv-app/Phonesky");