Showing posts with label Debloat. Show all posts
Showing posts with label Debloat. Show all posts

Friday, 22 July 2016

[Guide] Stock Miui (7/8): Official unlock, recovery, root, xposed, DPI & debloat



Please read this thread thoroughly and carefully. Do this at your own risk. The following had worked for two of the same devices. I've made this guide partly for my own notes and because other guides out there seemed incomplete.

Aim of this guide is to have an unlocked bootloader so that you can use Alka recovery to enable root, busybox and Xposed on stock Miui. Alka is a good recovery to use since it's already patched (boot.img) so that it can flash Miui recovery ROMs (OTA?) as well as CM based ROMs. It also has the ability to backup the entire phone (EFS partition). I would strongly suggest backing up all partitions and moving it to your computer or SD card after. You may choose Cofface TWRP if you're never going to try CM based ROMs. Helpful links from other guides will be posted at the end.

Debloating is a big thing that I do to stock ROMs. This essentially prevents the ROM from running the apps, slimming the ROM and hopefully extending daily usage. There are few things that broke though. The only thing I could care about is that I'm not able to change the wallpaper via the Settings (lockscreen + homescreen) anymore. The rest that broke are the features that I don't use such as Cleaner (sponsored by Cheetah), dual apps and etc. Debloat accordingly, be cautious as I won't be necessarily explaining what each item does.

Prep work



Sign up and login to all the neccessary accountsPrepare your computer for drivers and software
Enable Windows TESTSIGNING first: https://msdn.microsoft.com/en-us/lib...(v=vs.85).aspx

The TESTSIGNING boot configuration option is enabled or disabled through the BCDEdit command. To enable test-signing, use the following BCDEdit command:
Bcdedit.exe -set TESTSIGNING ON

To disable test-signing, use the following BCDEdit command:
Bcdedit.exe -set TESTSIGNING OFF
Restart your computer and then install the following:Prepare your device
  • Enable developer mode by going to Settings > About phone > Tap on MIUI Version repeatedly until you get a toast that Developer Mode is enabled

  • Go back to Settings and then tap on Additional Settings > Developer options

  • Enable Developer options

  • Enable OEM unlock

  • Enable USB debugging

  • Plugin your phone into your computer, it should now install all the drivers

  • Turn TESTSIGNING OFF and restart your computer

Signs of computer recoginizing your phone properly (for ADB, Fastboot and etc)
  • In Device Manager, you should see under Android Phone: Android Composite ADB Interface and Xiaomi Composite MDB Interface

  • You phone should have also asked you to allow debugging from your computer (check always allow)




Using MiFlash tool to flash another Miui ROM (China to Global, skip if you already like your Miui version)



  • Boot into fastboot by holding volume-down + power, you will get the fastboot bunny

  • Download your desired fastboot version: http://en.miui.com/a-234.html, you can check the changelog and description from here: http://en.miui.com/download-301.html

  • Or you can use Miui 8 Global Beta: http://forum.xda-developers.com/redm...ote-3-t3417423

  • Extract the fastboot ROM (.tgz) twice, the first extract you'll be left with .tar file, the second should leave you with a directory of files

  • Place that directory in the root of your drive (or somewhere with a short location)

  • Launch the MiFlash tool, browse to your extracted fastboot ROM and click on refresh. You should now also see your device listed

  • Click on Flash All and click on refresh once more

  • Now flash your device, it should take upwards of 170s

Let your device boot, which should take 5m or longer. Set it up as you normally would and redo all the steps outlined in the "Prepare your device" section (don't need the TESTSIGNING part).


Flashing TWRP (Alka) & Root



Download the following files: You should now be working in an administrator command prompt in this directory: C:\Program Files (x86)\Xiaomi\MiPhone\Google\Android. Take this chance to extract fastboot-edl into this same directory. Also place twrp and alkarecoveryupdate img files into this directory. You should have the Universal Boot Img Patcher and SuperSU copied to your phone.

Follow these, don't reboot in between unless stated:
  • Enter fastboot (volume-down + power)

  • Type fastboot flash recovery twrp.img

  • Swipe to allow modifications

  • Flash universal boot img patcher zip

  • Flash twrp.img by selecting "Select Image" option.

  • Select recovery partition & flash it

  • Now reboot to recovery

  • Flash alkarecoveryupdate.img by selecting "Select Image" option.

  • Reboot to recovery

  • Flash SuperSU

  • Reboot system and let it boot Miui, it may take longer than usual

You should now test root, configure SuperSU & install Busybox.


Flashing Xposed



Download the latest SolarWarez Xposed: http://forum.xda-developers.com/xpos...-miui-t3367634
Download Material Xposed Installer: http://forum.xda-developers.com/xpos...aller-t3137758
Download Xposed uninstaller, just in case: http://forum.xda-developers.com/show....php?t=3034811

A few posts suggests that the latest official Xposed v86 works with Miui, but doesn't seem to be the case for me.
  • Install the Xposed Installer of your choice (apk install)

  • Enter recovery (volume-up + power)

  • Flash v86-sdk22-arm64 (LP, sdk23 is for MM)

  • Clear cache and dalvik

  • Reboot the phone, this should take 5m or longer since we wiped the cache

If you notice bootloops or crashing services, use the uninstaller. Worst case, flash it back to stock using MiFlash.

Xposed modules that I use:
  • App Settings

  • MIUI Brightness Fix

  • Mobile Radio Active Fix

  • Power Nap

  • Play Store Fixes

  • Spotify Skip

  • TextLinkify

  • WhatsApp Tuner

  • xMIUI

  • xInsta unfortunately does not work well.




Changing DPI



Using FX Explorer (Root access enabled) or any explorer you feel fit.
  • Go to system/ and edit build.prop

  • Add this line in between persist.hwc.downscale_threshold=1.15 & #ro.hdmi.enable=true
    ro.sf.ldc_density=370

  • Reboot your phone

You should be able to use a DPI changer such as texdrodier_dpi to change it to whatever you like after



ROM Debloating



Using FX Explorer (Root access enabled) or any explorer you feel fit.

Create the backup location:
  • Create a folder in system named _backup

  • Create subfolders named app, data-app, priv, vendor


Debloat app folder as you wish but here's my list:
  • Go to system/app

  • Cut the following into system/_backup/app



    AGPSTestMode
    AmapITS
    AnalyticsCore
    AntHalService
    BasicDreams
    BrowserProviderProxy
    BugReport
    CalendarLocalAccount
    CalendarWidget
    Drive
    Email
    FM
    Galaxy4
    GuardProvider
    HTMLViewer
    HiddTestApp
    HoloSpiralWallpaper
    KSICibaEngine
    KingSoftCleaner
    LatinImeGoogle
    LiveWallpapers
    LiveWallpapersPicker
    LunarInfoProvider
    MiDiscover
    MiLivetalk
    MiWallpaper
    NoiseField
    Notes
    OmaDownload
    OmaDrmEngineApp
    PartnerBookmarksProvider
    PhaseBeam
    PhotoTable
    QtiBackupAgent
    QtiFeedback
    SampleAuthenticatorService
    SapClientApp
    SecureSampleAuthService
    StaProxyService
    StepsProvider
    Stk
    SystemAdSolution
    TouchAssistant
    Videos
    WAPPushManager
    WfdClient
    fastdormancy
    imstests
    jjcontainer
    jjhome
    jjknowledge
    jjstore


  • Go to system/data-app

  • Cut the following into system/_backup/data-app



    Facebook
    klobugreport


  • Go to system/priv

  • Cut the following into system/_backup/priv



    AndroidForWork
    AutoTest
    BackupRestoreConfirmation
    Browser
    Calendar
    CleanMaster
    FM2
    GoogleBackupTransport
    GoogleFeedback
    SpacesManagerService
    SpacesTrustAgent
    Velvet
    cit


  • Go to system/vendor

  • Cut the following into system/_backup/vendor



    CTA
    ChinaMobile
    ChinaTelecom
    ChinaUnicom
    CmccPower
    MPCS
    app







Monday, 18 July 2016

How to debloat a stock ROM?



Hi guys, I'd like to debloat the latest 5.1 Lollipop Rom for my XT1032 but I don't know how, I tried to run it normally but it takes too much RAM and my phone has become too slow...
I'm running an older version now but it's no longer supported and I'm afraid of all the new threats, I don't want to switch to Marshmallow because I'm looking for something to "install and never touch it again" and that version is still too frequently updated.

Thanks for your time.



Monday, 11 July 2016

GUIDE: DEBLOAT a Galaxy S7 or S7 Edge



This is a follow-up post to my GUIDE: ROOT, install XPOSED, and UNROOT/returning to stock a Verizon Galaxy S7

If you have not already rooted your Galaxy S7 or S7 Edge, please follow my guide and also see the "Recommended Next Steps" section that follows. If you would rather not root your phone and just want to freeze bloat, you can do so with Package Disabler Pro (Samsung) without requiring root.

REMOVING OBVIOUS BLOAT




Please see the "Recommended Next Steps" section of my guide for rooting this phone. If you you don't have root (and don't want it), then here is a list of bloat that's safe to freeze using Package Disabler Pro (Samsung):





Code:


AdvSoundDetector2015
Amazon_Audible
Amazon_IMDB
Amazon_MP3 [com.amazon.mp3]
BBCAgent
Bridge
BriefingPanel
canid
Chrome
ChromeCustomizations [com.sec.android.app.chromecustomizations]
CloudGateway
com.gotv.nflgamecenter.us.lite
ContainerAgent
ContainerEventsRelayManager
FlipboardBriefing
Go90
Kies
Kindle
KLMSAgent
KnoxAppsUpdateAgent
KnoxAttestationAgent
KnoxFolderContainer
KnoxSetupWizardClient
KnoxSwitcher
LocationAgent
Music2
MyInfozone
NaverTvCast
RCPComponents
SDM
SDMViewer
SecurityLogAgent
Slacker
Swype
UniversalMDMClient
Videos
VZNavigator
withTV
Amazon_Shopping
com.customermobile.preload.vzw
IgniteVerizon
KLMSAgent
LLKAgent
MILK_US
MyInfozone
VMS
VzCloud








FREEZING BORDERLINE BLOAT




WARNING: there is absolutely NO SUPPORT or help offered for you disabling apps on your own and if you run into trouble, you can't even 'adb' to 'pm enable' frozen apps back because of a bug in our version of the 'su' binary (I'll update this whenever that's fixed). Your only resolution is to flash back to a stock image if you get stuck so please execute extreme caution.

Once you've rooted and have performed some of the recommended next steps, you may want to further freeze/disable other installed software on the phone that you aren't interested in using right now, but don't necessarily want to delete. This stuff is skipped by my debloat package because some of the software is useful to some and not to others. I freeze apps using Titanium Backup with root. If you don't have root (and don't want it), I would instead recommend Package Disabler Pro (Samsung). Here's a list of stuff you can technically freeze if you want to and won't prevent your phone from working (but may prevent certain apps, services, or functionality from working):


Code:


AASAservice [com.samsung.aasaservice]
AllShare FileShare Service [com.samsung.android.allshare.service.fileshare]
Android Pay [com.google.android.apps.walletnfcrel]
ANT + DUT [com.dsi.ant.sample.acquirechannels]
ANT HAL Service [com.dsi.ant.server]
ANT Radio Service [com.dsi.ant.service.socket]
ANT+ Plugins Service [com.dsi.ant.plugins.antplus]
AODService [com.samsung.android.app.aodservice]
Assistant menu [com.samsung.android.app.assistantmenu]
BeaconManager [com.samsung.android.beaconmanager]
Bookmark Provider [com.android.bookmarkprovider]
CarmodeStub [com.samsung.android.drivelink.stub]
ClipboardSaveService [com.samsung.clipboardsaveservice]
ClipboardUIService [com.samsung.android.clipboarduiservice]
Clock [com.sec.android.app.clockpackage]
CMHProvider [com.samsung.cmh]
Cocktailbar service [com.samsung.android.app.cocktailbarservice]
com.samsung.storyservice
Control TV [com.samsung.android.controltv]
DeviceTest [com.sec.factory]
EasyOneHand [com.sec.android.easyonehand]
EasySetup [com.samsung.android.easysetup]
Email [com.samsung.android.email.provider]
English Language Pack [com.sec.svoice.lang.en_US]
Favorite Contacts [com.sec.android.widgetapp.easymodecontactswidget]
FIDO UAF ASM [com.sec.android.fido.uaf.asm]
FIDO UAF Client [com.sec.android.fido.uaf.client]
Filter Provider [com.samsung.android.provider.filterprovider]
Galaxy Essentials Widget [com.sec.android.widgetapp.samsungapps]
Gallery [com.sec.android.gallery3d] (only if you have another photo app)
Game Launcher [com.samsung.android.game.gamehome]
Game Tools [com.samsung.android.game.gametools]
GamepadService [com.samsung.android.gamepad.service]
GameService [com.enhance.gameservice]
Gear VR Service [com.samsung.android.hmt.vrsvc]
Gear VR SetupWizardStub [com.samsung.android.app.vrsetupwizardstub]
Gear VR Shell [com.samsung.android.hmt.vrshell]
Health Service [com.sec.android.service.health]
IntelligenceService2 [com.samsung.android.intelligenceservice2]
IPsec Service [com.ipsec.service]
Live wallpaper picker [com.android.wallpaper.livepicker]
Magnifier [com.sec.android.app.magnifier]
MDMApp [com.samsung.android.mdm]
Memo [com.sec.android.app.memo]
Message+ [com.sec.verizon.messaging.vzmsgs]
Messages [com.android.mms] (only if you have another SMS messaging app, like Facebook Messenger, Google Hangouts, etc.)
Mobile tracker [com.sec.android.app.mt]
My Files [com.sec.android.app.myfiles] (although you should have at least one file manager installed)
My interests [com.samsung.android.keyguardwallpaperupdator]
My Places [com.sec.android.widgetapp.locationwidget]
My Verizon [com.vzw.hss.myverizon]
Nearby devices [com.samsung.android.nearby.mediaserver]
Nearby Service [com.samsung.android.allshare.service.mediashare]
Nfc Service [com.android.nfc]
Personal Data Management (S Cloud) [com.samsung.android.scloud]
Photos [com.google.android.apps.photos]
Quick connect [com.samsung.android.qconnect]
RootPA [com.gd.mobicore.pa]
S Finder [com.samsung.android.app.galaxyfinder]
S Health [com.sec.android.app.shealth]
S Voice App [com.samsung.voiceserviceplatform]
Safety assistance [com.sec.android.app.safetyassurance]
Samsung account [com.osp.app.signin]
Samsung Billing [com.sec.android.app.billing]
Samsung Content Agent [com.sec.android.app.SamsungContentsAgent]
Samsung Galaxy [com.sec.android.app.sns3]
Samsung Gear [com.samsung.android.app.watchmanager]
Samsung keyboard [com.sec.android.inputmethod] (only if you have a keyboard replacement installed like Google Keyboard or SwiftKey)
Samsung Location SDK [com.sec.location.nsflp2]
Samsung MirrorLink [com.samsung.android.app.mirrorlink]
Samsung PaymentFramework [com.samsung.android.spayfw]
Samsung Push Service [com.sec.spp.push]
Samsung text-to-speech engine [com.samsung.SMT]
SamsungDLPService [com.samsung.android.dlp.service]
SapaMonitor [com.samsung.android.sdk.professionalaudio.utility.jammonitor]
Screen Mirroring [com.sec.allsharecastplayer]
Security policy updates [com.policydm]
Settings Receiver [com.samsung.android.SettingsReceiver]
Simple sharing [com.samsung.android.app.simplesharing]
SmartcardService [org.simalliance.openmobileapi.service]
SmartFaceService [com.samsung.android.smartface]
Smart Switch [com.sec.android.easyMover]
Smart Switch Agent [com.sec.android.easyMover.Agent]
SnsImageCache [com.sec.android.app.snsimagecache]
Software update [com.sec.android.soagent]
Spanish Language Pack [com.sec.svoice.lang.es_US]
TalkBack [com.google.android.marvin.talkback]
Theme store [com.samsung.android.themestore]
Themes [com.samsung.android.themecenter]
TouchWiz easy home [com.sec.android.app.easylauncher] (only if you have a replacement launcher installed like Google Now Launcher or Nova Launcher)
TouchWiz home [com.sec.android.app.launcher] (only if you have a replacement launcher installed like Google Now Launcher or Nova Launcher)
Universal switch [com.samsung.android.universalswitch]
Verizon login [com.motricity.verizon.ssodownloadable]
Virtual tour [com.sec.android.app.tourviewer]
Voice Assistant [com.samsung.android.app.talkback]
Voice service [com.samsung.svoice.sync]
VPN Client [com.ipsec.vpnclient]
VZW_Multicast_MW [com.qualcomm.ltebc_vzw]
Wallpapers [com.sec.android.wallpapercropper2]
Weather [com.sec.android.daemonapp] (this one is the widget)
Weather [com.samsung.android.weather] (this one is the actual app)
Wi-Fi calling [com.sec.vowifispg]
Wi-Fi Direct [com.samsung.android.app.FileShareClient]
Wi-Fi Direct share [com.samsung.android.app.FileShareServer]
YouTube [com.google.android.youtube]
[com.android.wallpapercropper]
[com.cequint.ecid]
[com.cnn.mobile.android.phone.edgepanel]
[com.samsung.android.slinkcloud]
[com.samsung.faceservice]
[com.samsung.hs20provider]
[com.sec.android.app.minimode.res]
[com.sec.android.app.wfdbroker]
[com.sec.bcservice]
[com.verizon.vzwavs]


With a few exceptions like YouTube and Edge-only apps, I have almost all of these packages disabled, but I do run replacement apps for my launcher, keyboard, SMS messenger, photo, and file manager. My experience has been fine; no force-closes or anything preventing me from re-enabling packages with Titanium Backup, but again -- please freeze/disable packages only at your own risk.

Please post if you have any details to share about what else might be safe to remove or freeze/disable. The more collaboration, the better experience for everyone.





Monday, 4 July 2016

Rooting S6 w/o tripping Knox to Debloat? S6 Marshmallow 6.0.1



title says it all, I have just bought my S6 and out of the box it's 6.0.1, would it be possible to root it, uninstall unnecessary apps and then unroot it without tripping KNOX in the process?



Friday, 1 July 2016

List of apps safe to debloat?



I just downloaded the debloater tool and am trying to debloat my phone right now but the problem I have is a lot of the bloated apps are named some weird ass names when it comes to the apk file. I debloated most of the similar ones already but the stubborn Samsung ones like the Samsung music app I can't seem to be able to locate cuz I still see it waiting to be updated in Google play or the dumb ass Samsung app store. Does anyone have a list with the NAME of the APK's that is safe to disable? My god Samsung is annoying as fuk with that sht!!!!



Master Remove / Debloat / Freeze List [6.0.1] [Note4]



Hey everyone! Post here all the apps that you have successfully frozen, or removed, without any issues. If you know what they are responsible for, post that as well. I will keep this post updated in Alphabetic order!

After a couple days of debloating, messing up the system, and restoring, there are clearly some apps that cause major issues if removed. For example, the Facebook app causes the screen rotation function to permanently break, if it is removed. There is also another app that results in screen rotation breaking, I have yet to identify it, but I suspect it is one of the KNOX-related apps.

RED = LOSS OF PRIMARY SYSTEM FUNCTIONS (Ex: Screen Rotation)

ORANGE = LOSS OF RELATED SYSTEM FUNCTIONS ONLY (Ex: Touchwiz Launcher, Knox)

WHITE = LOSS / REMOVAL OF APP ONLY (SELF CONTAINED. Ex: Flipboard)


Safe To Remove


Safe To Freeze (No Loss Of Functionality If Frozen, LOSS OF FUNCTIONS IF REMOVED)
-Facebook - Results In Loss Of Screen Rotation


Unsafe To Remove Or Freeze (Loss Of Function If Removed / Frozen)