Coder Social home page Coder Social logo

nokia-debloater's Introduction

THIS PROJECT IS NO LONGER ACTIVELY DEVELOPED OR MAINTAINED.

This project is no long needed for newer Nokia phones as they don't come with Evenwell apps. You can still download and use the script but no further support will be provided.

Nokia-Debloater

A simple noob-friendly script that debloats your phone from the evenwell apps and soon, Google Apps.

Author's Note - I tried adding apps to debloat from the Chinese ROM, yet they come back into the system after debloating and a subsequent reboot. Hence, There is no way to remove these apps other than rooting. Please do not try using the Global ROM's script on Chinese devices, you could potentially brick your phone and your only option to recover will be factory resetting.
For the Linux/Mac Version of this script, Head to - https://github.com/Sid127/Nokia-Debloater/releases

What is evenwell and why should I care?

Evenwell/FiH is chinese company. Specifically, they are a subsidary of the massive Foxxconn group that manufactures consumer electronics for sale around the world. Evewell group were a business partner of Nokia/HMD and they were responsible for manufacturing and building the software on these phones. On the surface, yhe first and second generation Nokia devices have no bloat, but when you go digging deeper into settings and the system, you will encounter these evenwell apps.

What do these apps do?

These apps are supposedly to maintain system stability and protect battery among various other services/features. There are also telemetry apps that send data back to Evenwell. This is the reason this script has been created.

Nokia has supposedly stopped using the evenwell services/apps, Why would you uninstall them?

Simple, Because -

  1. I do not want any dead app that previously had an history of snooping in my system.
  2. They are not supposed to be there in the first place.

Okay, You've convinced me. What do I need?

  1. A Nokia phone
  2. ADB/Platform tools from Google which you can get from here - https://developer.android.com/studio/releases/platform-tools
  3. The Debloater script
  4. Windows 10, If you're on Windows 7 or below download Adb/Fastboot tools version v28.0.01 or below.

USAGE

Prepping your phone -

  1. Navigate to settings
  2. Go to System > About Phone > Build number
  3. Tap on Build Number 7 times or untill you see the You are now a developer toast message.
  4. Now, Go back to System > Advanced > Developer options > Enable USB Debugging
  5. Once enabled, Go to your PC

Prepping the script and ADB On Windows

  1. Download ADB from the the link above

If your browser warns the .bat is a harmful file, Select on "Ignore or Keep". I can 100% assure you this is not a harmful file.

  1. Extract the contents of the .zip into a folder named adb. (BE SURE TO EXTRACT EVERYTHING FROM THE .ZIP INTO THE FOLDER)
  2. Download the script from the releases section
  3. Move the script into the folder where you have extracted the platform tool/ADB
  4. Connect phone to your PC
  5. Double click "batch-script" and run
  6. You will see a prompt on your phone, Tap on the always allow this PC option and tap Ok.

For Linux, get the script here - https://github.com/Sid127/Nokia-Debloater/releases

  1. Install adb-fastboot tools using the link above, or if you're running an Ubuntu based system, run the following command in the terminal - "sudo apt-get install android-tools-adb android-tools-fastboot"
  2. Download "debloat.sh" from the releases section
  3. Open a terminal in the location where you downloaded the debloater. For example, if your file is downloaded in "/home/user/downloads", open a terminal there, or open a regular terminal and run the command "cd /home/user/downloads/"
  4. Connect your phone to the PC.
  5. In the same terminal window from before, run the command "./debloat.sh"; To disable Duraspeed, run "./duraspeed.sh"
  6. You will see a prompt on your phone, Tap on the always allow this PC option and tap Ok.
If you are running adb for the first time, you might get an error that goes - No devices/emulators found, If you did, then please ensure that you have allowed debugging permissions for ADB from your phone.

F.A.Q

  1. Do I need root or an unlocked bootloader?

No

  1. What can I expect from the debloating measures?

Better Privacy and security, possibly better battery life and performance

  1. Can I revert the changes?

Yes, You have few options

  • Using the Rebloat option from the script
  • Reinstalling all the rebloated apps that were purged
  • Factory Reset
  1. Will I lose data by debloating?

No you will not.

  1. Are there possibilities of bricking my device?

Extremely Rare.

TO-Do List

  • Implement a way to re-install the debloated apps
  • Add options to debloat google apps
  • Add options to debloat specific apps
  • Add options for rebooting to bootloader and recovery mode
  • Add option to turn off Duraspeed on Mediatek chipset based devices
  • Port script to Linux (thanks to @Sid127)
  • Combine Linux scripts into one script
  • Port script to MacOS

Screenshots

Screenshot (4)

Main screen

Screenshot (5)

Options

Screenshot (7)

Debaloting process

Screenshot (8)

Endgame

Further reading

nokia-debloater's People

Contributors

kelvincrag avatar thanuj10 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

nokia-debloater's Issues

debloating end-of-2019 devices

Hello!

Nokia 6.2 and 7.2 (maybe others too) come with some preinstalled telemetry, including 3rd party
source 1 (German) source 2

Would it be out of scope of your script to add support for such devices or no?
I do not have a Windows PC so I can not really test a script and make a PR, so I am just letting you know of these possible issues.
My very simple Linux script looks like this:
https://github.com/omicron-b/nokia-debloater/blob/master/debloat-series2.sh#L3-L9

forgot to mention: Nokia 6.2 does not have evenwell apps preinstalled, probably others do not, too

Ask user which apps to debloat

Can do pm list packages evenwell to get all Evenwell apps and ask user which ones to disable and save it in a file or provide predefined list. Use that file to reinstall if needed.

Can similarly debloat Google Apps

Observations on Nokia 8.1 debloating

Hi,
First of all thanks for creating this script.

  • At the end it gave me a error saying unable to clean dalvik cache
  • I can still see many evenwell apps in the apps list

com.evenwell.whitebalance.overlay.base
com.evenwell.settings.data.overlay.d.base.s600ww
com.evenwell.factorywizard
com.evenwell.foxlauncher.partner
com.evenwell.legalterm.overlay.base
com.evenwell.fqc
com.evenwell.settings.data.overlay.base
com.evenwell.phone.overlay.base
com.evenwell.legalterm
com.evenwell.fmradio.overlay.d.base.s600ww
com.evenwell.factorywizard.overlay.base
com.evenwell.SetupWizard
com.evenwell.bokeheditor
com.evenwell.SetupWizard.overlay.base
com.evenwell.bokeheditor.overlay.base
com.evenwell.SetupWizard.overlay.d.base.s600ww
com.evenwell.fmradio
com.evenwell.whitebalance
com.evenwell.fmradio.overlay.base

Just wanted to know if they can be removed, if so could you please add them to your script?

Debloating works, some apps remain

Hey
I really appreciate the effort you put in discovering the issue of Nokia phones!
I ran the script on my Nokia 7.1 with Android 10 and it worked. The result is visible in the screenshots below (the ones removed are with a comment: "Not installed for this user")
My question/issue is: is it only my phone/the rom of my phone that has these additional com.evenwell.* packages that were not included in the debloating?
Can you please check and if needed include them in your cool script?
Thanks
Mac

Screenshot_20200216-093529
Screenshot_20200216-093553
Screenshot_20200216-093609

Rebloat/Reinstall Evenwell apps

Command: adb shell cmd package install-exisiting evenwell to reinstall debloated apps.
This issue has been added to serve as a reminder for me as well, since I can't open issues on my own repo

After running, some evenwell still exist

After running the debloater, i check some evenwell still exist, i think some useful...
image

Some "powersaving" still exist... Can take look into this? Sometimes WhatsApp notifications not show up
com.evenwell.powersaving.g3.overlay.d.base.s600id
com.evenwell.powersaving.g3.overlay.base

Add bg-dexopt-job after removing evenwell bloatware (Feature)

@thanuj10
Hi,
Thanks for the script.
I used to manually run bg-dexopt-job but I thought your script might help others who are completely used to GUI and not familiar with cmd line.

For linux with adb added to env:

adb shell pm bg-dexopt-job

For Windows with adb added to env variables:
adb.exe shell pm bg-dexopt-job

With some echo messages as: "Optimising apps using Speed-Profile and it might take 20 mins to complete"
This script helped me eliminate bad battery life on N8.1 after March 2020 update. I've tried disabling most evenwell apps but that didn't help and nuked them and now my phone is better!

Nokia Debloater bug report

Bugs found:

  1. 'adb shell cmd install-existing --user 0' instead of 'adb shell cmd package install-existing --user 0'
  2. 'goto Reboot Menu' instead of 'goto Reboot Options'

Fix: batch-script_fixed.txt

EDIT: Thanks for providing Nokia devices this script. Note that my only motives for filing these issues is to ensure that script is bugless.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.