FORUMS
Remove All Ads from XDA
Honor 7x
Win an Honor 7X!

[GAPPS] Debloating Scripts for AOSP Marshmallow & Nougat

2,100 posts
Thanks Meter: 1,488
 
By androcraze, Senior Member on 8th September 2016, 01:30 AM
Post Reply Email Thread
AOSP Marshmallow & Nougat Deloating Flashables

Description
Debloating Scripts for AOSP Marshmallow & Nougat.

Disclaimer
I am not responsible for anything that happens to your device. By downloading and flashing or installing these zips, you automatically agree that I won't be held liable for anything that happens to your phone.

Background
I've created some flashable scripts to remove unwanted applications ('debloat') from AOSP-based Marshmallow and Nougat Nexus 5 ROMS.

These scripts, when installed, should minimize redundant versions of similar applications that arise when installing Google Applications (GApps) on custom AOSP ROMS.

THERE IS NO NEED TO RUN THESE SCRIPTS ON FACTORY ROMS! Factory ROMs from Google come pre-installed with GApps

THE REMOVAL PROCESS IS PERMANENT! When you run these scripts, the listed applications and their folders are deleted. If you inadvertently delete an app that you actually wanted to keep, you'll have to manually reinstall it from your custom ROM image, or reinstall the ROM.

Installation
PLEASE ASK QUESTIONS IF YOU HAVE THEM!

BEFORE attempting to run these scripts, download, install, and configure the replacement applications FIRST, then run the scripts.

An Example: if you remove the AOSP Keyboard (LatinIME) before installing the Google Keyboard, you won't be able to search for items in the Play Store, as you'll have no way of inputting text.

Your GApps provider may have specific instructions on installing certain applications. Please thoroughly read the documentation and notes your GApps "flavor" provides.

These debloating scripts are provided in a "flashable" ZIP archive. Copy the file to the storage/sdcard area of your phone, reboot to recovery (TWRP), "Install" the script, then reboot.

GOOD LUCK!

Marshmallow & Nougat Mayhem Debloater - DOWNLOAD - Removes AOSP apps with PlayStore-downloadable alternatives from Google & THE AOSP LAUNCHER:
----
Removes everything listed under "Maximum" below, PLUS AOSP Launcher3. From a request by @sidlogsin.


Marshmallow & Nougat Maximum Debloater - DOWNLOAD - Removes AOSP apps with PlayStore-downloadable alternatives from Google:
----
NOTE 1: On the Nexus 5, running Nougat:
Google Camera is not available from the PlayStore in some countries using this Play Store Link.
Google Camera - creates/throws green video alternating frames; photos are fine.
AOSP Camera and Footej - take good photos, but have no HDR+ support; some users report jitters on the left side of the screen in recorded videos.
OpenCamera - takes good photos, supports HDR+; some users report jitters on the left side of the screen in recorded videos.
At this time OpenCamera is highly recommended.

NOTE 2: For Nougat, per DeltaDroid in this POST, the following PlayStore GApps (AND ONLY THESE GAPPS FROM THE LIST BELOW) can still be flashed to /system:
Calculator
Calendar
Calendar Sync Adapter
Clock
Cloud Print
Gmail
Keep
News & Weather
Phone
Play Books
Play Music
Play Newsstand
Talkback

Removed Apps and Google replacements, including a link to DeltaDroid's thread for those Marshmallow GApps capable of being flashed under Nougat:
AOSP Calculator -> - Google Calculator Play Store | Marshmallow Flashable from DeltaDroid
AOSP Calendar -> Google Calendar - Play Store | Marshmallow Flashable from DeltaDroid
AOSP DesktopClock -> Google Clock - Play Store | Marshmallow Flashable from DeltaDroid
AOSP Dialer -> Google Phone - Play Store | Marshmallow Flashable from DeltaDroid
AOSP Email -> Google Gmail - Play Store | Marshmallow Flashable from DeltaDroid
AOSP Music -> Google Play Music - Play Store | Marshmallow Flashable from DeltaDroid
AOSP Browser/Browser2 -> Google Chrome - Play Store
AOSP Camera2 -> Open Camera - F-Droid | Play Store
AOSP Contacts -> Google Contacts - Play Store
AOSP Gallery -> Google Photos - Play Store
AOSP Keyboard -> Google Keyboard - Play Store
AOSP Launcher3 -> Google Now Launcher - Play Store
AOSP Messaging -> Google Messenger - Play Store
AOSP PicoTts -> Google Text-to-speech - Play Store
AOSP QuickSearchBox -> Google - Play Store
AOSP Exchange2 -> Broken with AOSP Email
Galaxy4 -> LiveWallpaper Bloat
HoloSpiralWallpaper -> LiveWallpaper Bloat
LiveWallpapers -> LiveWallpaper Bloat
NoiseField -> LiveWallpaper Bloat
PhaseBeam -> LiveWallpaper Bloat


Marshmallow & Nougat Medium Debloater - DOWNLOAD - Removes AOSP apps with newer or feature-rich OPEN SOURCE alternatives.
----
Removed apps and recommended replacements:
AOSP Browser/Browser2 -> Lightning Browser - F-Droid | Play Store
AOSP Calculator -> Mathdroid - F-Droid | Play Store
AOSP Calendar -> Etar - F-Droid | Play Store
AOSP Camera2 -> Open Camera - F-Droid | Play Store
AOSP Email -> K9 Mail - F-Droid | Play Store
AOSP Keyboard -> AnySoft Keyboard - F-Droid | Play Store
AOSP Messaging -> QKSMS - F-Droid | Play Store
AOSP Music -> Vanilla Music - F-Droid | Play Store
AOSP Exchange2 -> Broken with AOSP Email
Galaxy4 -> LiveWallpaper Bloat
HoloSpiralWallpaper -> LiveWallpaper Bloat
LiveWallpapers -> LiveWallpaper Bloat
NoiseField -> LiveWallpaper Bloat
PhaseBeam -> LiveWallpaper Bloat


Marshmallow & Nougat Mimimum Debloater - DOWNLOAD - Removes obsolete & broken AOSP apps.
----
Removed apps and recommended replacements:
AOSP Browser/Browser2 -> Lightning Browser - F-Droid | Play Store
AOSP Camera2 -> Open Camera - F-Droid | Play Store
AOSP Email -> K9 Mail - F-Droid | Play Store
AOSP Music -> Vanilla Music - F-Droid | Play Store
AOSP Exchange2 -> Broken with AOSP Email
Galaxy4 -> LiveWallpaper Bloat
HoloSpiralWallpaper -> LiveWallpaper Bloat
LiveWallpapers -> LiveWallpaper Bloat
NoiseField -> LiveWallpaper Bloat
PhaseBeam -> LiveWallpaper Bloat
The Following 17 Users Say Thank You to androcraze For This Useful Post: [ View ] Gift androcraze Ad-Free
 
 
8th September 2016, 01:31 AM |#2  
androcraze's Avatar
OP Senior Member
Thanks Meter: 1,488
 
More
Minimal GApps install on Marshmallow 6.0.0/6.0.1 on "unpatched" AOSP ROMs
I've had this tucked-away for a while on an odd thread. I'll post it here for now.

I'm a big fan of DeltaDroid's GApps. His work is highly modular; his focus is on a small, basic package with the ability to flash individual added components. Truly a fantastic thread and a great GApps developer.

NOTE: This same procedure will probably work for 7.0 Nougat; you'll have to download the Nougat package, of course!

I'll give an overview of my install procedure for Untouched AOSP on my Nexus 5, then I'll follow with the DeltaGApps install procedure.

General ROM & GApps Install Procedure:
--------
- Flashed MOB31E factory ROM via PC
- Installed TWRP via adb
- Created empty text files as per directions HERE
- Copied ROM, empty text files, and install items to phone from PC
- Booted to recovery (TWRP), rebooted from within TWRP to recovery (TWRP)
- Wiped everything but internal storage
- Installed ZIPs: ROM, TimeService, bootanimation
- Rebooted to system (Android)
- Setup APN and WiFi
- Rebooted to recovery (TWRP)
- Flashed Delta GApps MM base package using this PROCEDURE
- Rebooted to system (Android)
- Fixed Google Contacts Sunc, Google Play Services, and PlayStore permisions using this PROCEDURE
- Added google accout via Settings -> Accounts
- Rebooted to system (Android)


For a Minimal GApps install on Marshmallow 6.0.0/6.0.1 on "unpatched" AOSP ROMs:
--------
1. Download Deltadroid's Marshmallow Base Gapps package for 6.0.0 or 6.0.1 (From THIS GApps thread):

http://forum.xda-developers.com/show...99&postcount=1 (Post #1)

(There are packages for 6.0.0 and 6.0.1 - all the way down, towards the bottom, "Marshmallow Base Gapps Package:").

2. Create and install these empty text files (0-byte) on the "root" of your Internal Storage (Ex: "/sdcard/" or "/storage/emulated/0"):
(NOTE: The end of this post has a mini walk-thru for creating these empty text files using Notepad on a PC and TurboEditor on Android)

/sdcard/.removefacelock
(prevents Google Facelock from being installed and removes existing installation of Facelock)

/sdcard/.removesetupwizard
(keeps the "stock provision" Setup Wizard and does not replace it with Google's Setup Wizard)

3. Install GApps via TWRP

4. Boot to System (Yes, you'll probably get Play Services "FC" messages until you perform #5 below)

5. Immediately toggle application permissions to "ON" under:

Settings -> Apps -> ... -> System show

For:
- Google Contacts Sync
- Google Play Services
- Google Play Store
- Contacts (I had to add permission for SMS on AOSP MOB31E)

6. Reboot the phone

7. Add your Google Account via "Settings -> Accounts -> Add account -> Google"

8. Verify that Contacts are synced and Play Services is functional.

9. Enjoy!


Walk-through for creating empy "zero-byte" text files:
--------
On Windows, use Notepad or the text editor of your choice:
1. Select "New file".
2. Without typing any text, press "Save as".
3. Under "Name", type ".removefacelock" (without the quotes, with the preceding period, and without the .txt extension)
4. Press OK.
5. repeat steps 1 and 2.
6. Under "Name", type ".removesetupwizard" (without the quotes, with the preceding period, and without the .txt extension)
7. Press OK.
8. Copy both files from Windows to "/storage/emulated/0" or "/sdcard" on Android.

On Android, using Turbo Editor for illustrative purposes (https://play.google.com/store/apps/d...leeditor&hl=en or https://f-droid.org/repository/brows....fileeditorpro):
1. Download and install a text editor on Android.
2. Open the text editor.
3. Select "New file".
4. Without typing any text, press the three dots in the upper right corner.
5. Press "Save as".
6. Under "Name", type ".removefacelock" (without the quotes, with the preceding period, and without the .txt extension)
7. Verify that the destination folder is "/storage/emulated/0", or "/sdcard", or whatever your storage area is named.
8. Press OK.
9. Press the back arrow until you get to the menu.
10. repeat steps 3-5.
11. Under "Name", type ".removesetupwizard" (without the quotes, with the preceding period, and without the .txt extension)
12. Repeat steps 7 and 8.
Done.
The Following 3 Users Say Thank You to androcraze For This Useful Post: [ View ] Gift androcraze Ad-Free
8th September 2016, 01:31 AM |#3  
androcraze's Avatar
OP Senior Member
Thanks Meter: 1,488
 
More
User-Submitted Tips 'n Cheats
Google Phone (Dialer app) - submitted by @occtec:
----
Here's a tested & working fix for crashing, blank-screening in-call and permission issues for Google Dialer, downloaded from the PlayStore.
(1) Download app from Play Store
(2) Grant all permissions to the app (Settings->Apps->Phone-> Permissions-> check all)
(3) Uninstall default dialer system app (disable, freeze using titanium or use a debloater)
(4) Reboot
(5) Move downloaded Google Phone to /system (you can use 'system app mover' from play store. Make
sure to download and install busybox prior to using this app, if you havent got it already)
(6) Reboot
(7) Open Settings->Apps->Phone->Phone app-> Phone app again-> Select Phone as default.
DONE.
The Following 6 Users Say Thank You to androcraze For This Useful Post: [ View ] Gift androcraze Ad-Free
8th September 2016, 01:31 AM |#4  
androcraze's Avatar
OP Senior Member
Thanks Meter: 1,488
 
More
Reserved Post #4
Reserved Post #4
8th September 2016, 03:18 AM |#5  
occtec's Avatar
Senior Member
Flag South Australia
Thanks Meter: 907
 
More
Quote:
Originally Posted by androcraze

Reserved Post #4

@androcraze good to see you made you own thread, very informative and helpful. I hope you dont mind but i posted a fix that you posted back in another thread for the Google Dialer fix, i've just edited it slightly but your fix definitely works. Here's my post http://forum.xda-developers.com/show...postcount=1564
Keep up the good work
Cheers
The Following User Says Thank You to occtec For This Useful Post: [ View ] Gift occtec Ad-Free
8th September 2016, 03:30 AM |#6  
androcraze's Avatar
OP Senior Member
Thanks Meter: 1,488
 
More
Quote:
Originally Posted by occtec

@androcraze good to see you made you own thread, very informative and helpful. I hope you dont mind but i posted a fix that you posted back in another thread for the Google Dialer fix, i've just edited it slightly but your fix definitely works. Here's my post http://forum.xda-developers.com/show...postcount=1564
Keep up the good work
Cheers

Sounds like a "tips" section is in order. I'll make something in Post #3 for now. Thank you for the walkthrough.
The Following User Says Thank You to androcraze For This Useful Post: [ View ] Gift androcraze Ad-Free
8th September 2016, 03:35 AM |#7  
occtec's Avatar
Senior Member
Flag South Australia
Thanks Meter: 907
 
More
Quote:
Originally Posted by androcraze

Sounds like a "tips" section is in order. I'll make something in Post #3 for now.

Sounds like a good idea
8th September 2016, 09:22 AM |#8  
MattDN93's Avatar
Senior Member
Flag Durban, South Africa
Thanks Meter: 327
 
More
This thread was definitely necessary - one post in another thread wasn't enough to get proper oversight in your work. Thanks for this! Your scripts work great for me, as well as the DeltaDroid Base GApps.

Sent from my XT1562 using Tapatalk
The Following User Says Thank You to MattDN93 For This Useful Post: [ View ] Gift MattDN93 Ad-Free
24th September 2016, 01:33 PM |#9  
sidlogsin's Avatar
Senior Member
Flag Delhi
Thanks Meter: 46
 
More
Thanks for coming up with this idea.
It would be really great if you can make a script that can delete aosp launcher as well. As in under the name "Extreme"
Just saying. @androcraze **Cheers**
24th September 2016, 10:12 PM |#10  
androcraze's Avatar
OP Senior Member
Thanks Meter: 1,488
 
More
Quote:
Originally Posted by sidlogsin

Thanks for coming up with this idea.
It would be really great if you can make a script that can delete aosp launcher as well. As in under the name "Extreme"
Just saying. @androcraze **Cheers**

I'd rather include removing the launcher in the "Maximum" version. Do most folks who install the GApps also install the Google launcher?
The Following User Says Thank You to androcraze For This Useful Post: [ View ] Gift androcraze Ad-Free
24th September 2016, 10:24 PM |#11  
sidlogsin's Avatar
Senior Member
Flag Delhi
Thanks Meter: 46
 
More
Quote:
Originally Posted by androcraze

I'd rather include removing the launcher in the "Maximum" version. Do most folks who install the GApps also install the Google launcher?

I think giving users an option to keep aosp launcher would be better. Otherwise maximum will have to come with a Big Warning on launcher installation imo.
Really appreciate your prompt reply.
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes