Hi, after some long, and hard time I've finally managed to root my Xiaomi MI 11 lite 5G NE. The reason why I wanted to root it, is that I want to convert that phone to a simple java server. The problem is, that most of the phone's RAM is being consumed by system apps (out of 6GB, 5.5 is being used). How can I reduce that number and minimize my phone to a command-line-only device?
Additional question: is it possible, to make it all in .sh script? That way I could disable everything whenever I wanted, and if didn't, then I would use a device like a normal android phone
fibur said:
Hi, after some long, and hard time I've finally managed to root my Xiaomi MI 11 lite 5G NE. The reason why I wanted to root it, is that I want to convert that phone to a simple java server. The problem is, that most of the phone's RAM is being consumed by system apps (out of 6GB, 5.5 is being used). How can I reduce that number and minimize my phone to a command-line-only device?
Additional question: is it possible, to make it all in .sh script? That way I could disable everything whenever I wanted, and if didn't, then I would use a device like a normal android phone
Click to expand...
Click to collapse
Either use adb debloat utility to disable most processes or flash a custom rom.
Fytdyh said:
Either use adb debloat utility to disable most processes or flash a custom rom.
Click to expand...
Click to collapse
What custom rom would you recommend? Honestly I would prefer to just flash linux to my phone, but i am afraid it's impossible since Ubuntu Touch is available only for some certain devices. Additionally, Mi 11 Lite 5G NE (lisa) doesn't have much community support, and there are only several unofficial roms
well, this one seems official and stable
[ROM][13][OFFICIAL] PixelOS [AOSP][STABLE][10/05/2023]
PixelOS is an AOSP based ROM, with Google apps included and all Pixel goodies. We aim to provide an experience similar to Google Pixel phones with numerous performance enhancements and a small amount of useful additional features. /* Your...
forum.xda-developers.com
Fytdyh said:
well, this one seems official and stable
[ROM][13][OFFICIAL] PixelOS [AOSP][STABLE][10/05/2023]
PixelOS is an AOSP based ROM, with Google apps included and all Pixel goodies. We aim to provide an experience similar to Google Pixel phones with numerous performance enhancements and a small amount of useful additional features. /* Your...
forum.xda-developers.com
Click to expand...
Click to collapse
And could I achieve what I asked using that ROM?
HI, any chance I could somehow fully get rid of UI? It doesn't matter, that phone will be just black screen - I setted up SSH on my device, so I can easily access it, I just want to get rid of any not needed processes. When I try to kill that process by id, then it restarts after short time, or entire phone gets restarted
You can remotely disable / enable GUI via ADB
Code:
adb shell "stop"
or
Code:
adb shell "start"
Related
Android and iOS are the most popular mobile operating systems on the market. Both offer a variety of apps and settings but, eventually reach their limits at a certain point. Rooting or Jailbreaking your phone (or tablet) will offer you thousands of tweaks, skins and new apps that you should not miss out on. It will also help you to remove bloatware.:laugh:
Android Launchers and lock screen widgets are great tools to customize your Android experience without rooting your device. You are also able to root your device and customize it with a launcher and widgets afterwards. If your Android device is rooted but you don’t want flash a custom ROM, Xposed Framework might be the perfect solution for you. You are, however, also able to add new features to your custom ROM with Xposed. With the release of Android 5.0 Lollipop Google replaced the former Dalvik cache with ART. Luckily, Xposed was adapted to Android 6.0 Marshmallow
This guide is based on Google Nexus devices, but most of the things also apply to other Android devices. Some might require more work while others can be rooted quite easily, but in the end it’s no rocket science. Rooting and customisation is especially easy on Nexus devices as factory images are freely available on the Google website. However, many other popular devices like the can easily be restored using different tools available on XDA developers. I would suggest to have a quick look at the forums and I’m pretty sure that you’ll find help for your device.
Android Rooting Terms You Should Know
Before we get started, I would like to explain a few terms because the terminology can get complicated and confusing. This will help you to understand other device specific guides. I’ll try to keep it short and not go into (technical) details. Please share any questions regarding this in the comments below – I’ll do my best to answer them.
ART
ART stands for Android Runtime and replaces the formerly used Dalvik cache. It was introduced in Android 4.4 and has completely taken over in Android 5.0. I don’t want to go too deep into technical differences, but ART is said to improve battery life and app performance, amongst others.
Bootloader
The Bootloader is your phone’s software foundation. It’s basically what runs before your operating system starts (like a PC’s BIOS). As many manufactures don’t want you to modify your phone’s OS, it needs to be unlocked before you are able to root your phone or install custom ROMs (explained later).
Brick
This is something you don’t want to happen to your Android device. Like the name already implies, a bricked phone (or tablet) can only be used as a paperweight or nice decoration for your apartment. Bricked devices are irreversibly damaged and won’t work anymore. This can, for instance, happen if damaged ROMs are installed or wrong firmwares are flashed. Always make sure to read instructions and verify checksums (a set of numbers that identify the file) to make sure nothing goes wrong. If you’re lucky and your device is only soft-bricked, meaning that it does not boot but still turns on, you might be able to get it back to life.
BusyBox
Android, being based on Linux/Unix, offers a limited amount of UNIX commands (which most users won’t need anyways). BusyBox will implement more commands that are necessary for some root apps to work properly.
Custom ROM
A custom ROM is a modified version of the Android operating system. Tweaks, additional features, different themes or an enhanced performance are usually included. Custom ROMs also offer the possibility to use a newer, unreleased, version of Android on your phone that might usually not be available for your device because of restrictions from manufacturer or providers.
Dalvik
Dalvik is a virtual machine that processes Android app code. Consequently, it is responsible for translating app code into actions on your Android device.
Fastboot
Fastboot is a diagnostic- and engineering tool which offers you several features such as launching in recovery mode or flashing image files.
Kernel
The kernel is the brain of your phone that controls how the system and hardware interact. It’s basically the lowest level of your operating system that manages memory and hardware.
NAND partition
NAND stands for “Negated AND” or “NOT AND” and describes the hard drive partition that stores all system relevant information like the bootloader, recovery mode or the kernel.
NANDroid backup
A NANDroid backup is a complete system backup of your Android device. This backup can be restored later and might save your phone after flashing a faulty ROM or theme.
Radio
The radio is responsible for sending and receiving voice and data. Using an optimized radio can improve your phone’s reception or increase battery life.
Recovery Mode
Recovery mode offers you the possibility to perform system-level tasks (like formatting, defragmenting, etc.), backing-up your devices or install custom ROMs. Android offers a limited stock recovery function. More sophisticated recoveries like ClockworkMod Recovery and TWRP Recovery offer additional features and are easier to use.
Root
Rooting will give you full administrator access of your device. It might also void your warranty (depending on the device and your place of residence), so make sure to handle your device with care after rooting it. You are always able to revert this process by simply flashing a stock-ROM (the original ROM installed by your phone’s manufacturer). Doing this will also “restore” your warranty.
S-OFF
S-OFF means that the NAND partition of your Android device is unlocked. This mostly applies to HTC phones.
Superuser
Rooting your phone will create a new “account” with complete administrative permissions. This superuser account is used by some apps and functions.
Xposed Framework
Xposed Framework is an app that can be installed on a rooted Android device which offers custom ROM like features on stock Android. It has been updated and is now fully compatible to Android 5.0 and Android 6.0.
5 Reasons to root
With Android becoming better and better, many people ask themselves if it’s still worth rooting. For example, you’re not able to use Android Pay if your Android phone is rooted. The same applies in other cases, where App developers decide to not support rooted devices for security reasons.
In addition to that, Android M will come with many features like “Doze” which basically replace root apps such as Greenify. So what exactly are reasons to root in 2016?
You have an old(er) Android device. With root access, you’re able to flash a custom ROM with the latest version of Android. Because of this, you don’t rely so much on your device manufacturer to keep you up to date.
AdAway. While I’m all-in for supporting developers, some apps don’t offer an ad-free paid version. With AdAway you’re able to get rid of all unwanted ads which is simply not possible without root.
Titanium Backup. Android M will bring Auto Backup for Apps, but unfortunately it’s still up to the developer if he/she wants to implement it or not. Titanium Backup is a simply but powerful tool that backups simply everything.
Change DPI. With many devices coming with high-res displays nowadays, some people prefer to have more screenspace than big app icons. While changing DPI can also be done without root, it often breaks different apps.
Remove bloatware. This one is easy. Remove all the crap your mobile carrier put on your device. Who doesn’t want to do this?
How to Fully Backup Your Device Without Root
If your Android device is not rooted yet, you won’t be able to perform NANDroid backups. I wouldn’t suggest to root your tablet or phone without having a proper backup, because there is always a chance of error and you don’t want to brick your device.
Simple ADB Backup let’s you create a full backup of your device without root access and is the perfect solution for users without root access. The free program also offers a restore function and runs on Windows and Linux.
If you’re already rooted, make sure to check out our guide on performing a NANDroid backup.
How to Root Your Android Device
The rooting process differs from device to device which makes it impossible to give general instructions on rooting here. I’ve linked guides for some of the most popular devices below. Using the terms described earlier should make the rooting process easier for you. If your phone or tablet is not on the list, you most certainly can find a guide on the XDA-Developers forums.
Google Nexus 4, Nexus 5, Nexus 7 and Nexus 10
Google Nexus 6P
Google Nexus 5X
Oppo OnePlus 2
Samsung Galaxy S6
LG G4
Samsung Galaxy Note 5
Always make sure to perform NANDroid backups of your devices to be able to restore your phone or tablet to a working state. I would also recommend to validate checksums and carefully read through the instructions to avoid bricking your device.
Most Important Fastboot Commands
When confronted with Android rooting, you often have to work with fastboot. Fastboot is part of Google’s Android SDK and is mostly used to re-flash partitions on your Android device, similar to (custom) recovery mode. You usually use fastboot in the following manner:
fastboot [ <option> ] <command>
Here’s a list of all options and commands:
Options
-w erase userdata and cache
-s <serial number> specify device serial number
-p <product> specify product name
-c <cmdline> override kernel commandline
-i <vendor id> specify a custom USB vendor id
-b <base_addr> specify a custom kernel base address
-n <page size> specify the nand page size. default: 2048
Commands
update <filename> reflash device from update.zip
flashall flash boot + recovery + system
flash <partition> [ <filename> ] write a file to a flash partition
erase <partition> erase a flash partition
getvar <variable> display a bootloader variable
boot <kernel> [ <ramdisk> ] download and boot kernel
flash:raw boot <kernel> [ <ramdisk> ] create bootimage and flash it
devices list all connected devices
reboot reboot device normally
reboot-bootloader reboot device into bootloader
Now that we’ve covered all existing fastboot commands and options, let’s have a closer look at the most important ones and what they do / mean:
fastboot oem unlock
This is a special command and not part of the initial list. Using this command, you can unlock the bootloader for Google Nexus devices.
fastboot flash recovery recovery.img
This command will flash a custom recovery to your Android device. Depending on the file name, you need to change the bold part of the command. Please not that this only works with *.img files
fastboot -w
Caution: This command will completely wipe your device
fastboot update filename.zip
This command will update your ROM based on the provided *.zip file
Custom Recovery Mode
The standard Android recovery mode is very limited and does not offer many features. That’s where replacement recoveries like Team Win Recovery Project (TWRP) and ClockworkMod Recovery (CWRM) come in place. They offer the possibility to flash custom ROMs which is not possible with the stock recovery mode. Other features include a file browser for update.zips, adb shell and NANDroid backups. Without a custom recovery you won’t be able to flash a custom ROM.
It does not really matter which replacement recovery you install, just go with the one that suits you most. In some rare cases the root script or custom ROM installation only works with either TWRP or CWM. Nowadays, TWRP is the king of custom recoveries and would be my suggestion for you to use.
TWRP – Team Win Recovery Project
Team Win Recovery Project‘s custom recovery offers an easy and touch driven user interface. It includes all typical recovery features needed to install custom ROMs, kernels, other tweaks and many more. You are also able to backup and restore your device using TWRP.
ClockworkMod Recovery used to be one of the most popular custom recovery modes. However, in the last 2 years TWRP took over the throne and became the most popular recovery. It also includes all advanced recovery features like installing custom ROMs and other files, as well as a backup and restore function. You can control the CWM UI via touch or key-input.
Understanding Custom ROM Versions
As Custom ROMs are constantly improved, they usually come in four different categories: Nightly, Milestone, Release Candidate and Stable. This is what you can expect in every stage:
Nightly
Nightly versions are usually generated every 24 hours and can be highly experimental and unstable. Especially early versions of a new custom ROM can have many bugs and missing features. If you want to have the latest features while risking instability – go for nightlies!
Milestone Snapshot
Milestone Snapshots are basically nightly versions that have reached a certain milestone. They can be regarded as being quite stable, but may include certain bugs and issues. Since they are only created every few weeks (or months), they won’t have the latest features that might be included in the nightly versions. If you are looking for the latest features while having a rather stable system, check out milestone snapshots.
Release Candidate
Release candidates, as the name already implies, are one of the last builds before the stable version of a custom ROM is released. RCs are mostly stable but might have a few minor issues. If you’re looking for something stable and ready for daily use, I would recommend to go with release candidates!
Stable
Stable versions are (obviously) the most stable versions around, with all or nearly all problems fixed. Some stable ROMs may still include some smaller issues or certain things not working. Stable versions are definitely the safest way to go, but it might take months before a new stable with new features or fixes is released.
Official, Unofficial & Combined Releases
It is also important to say that custom ROMs are often available as official and unofficial releases. Later use the source code of the official release (if publicly available) and adapt it to devices not supported by the main developers. Unfortunately, this often leads to a delay. In addition to that, many developers combine features of different custom ROMs.
Custom ROMs
Custom Roms offer you a variety of new features, tweaks and visual enhancements. The best source to find a working one for your device is the XDA-Developers forum. Many custom ROMs are based on the two big releases: CyanogenMod and Paranoid Android. The easiest way to find the best custom ROM for you is to compare their features or simply test them for a few days. To make your start easier, I’ve written a few words about the major custom ROMs below.
I’m only able to give you a limited overview in here. If you really want to dive in I would recommend checking out your device specific sub forums on XDA developers. With Android modding becoming more and more popular, you’re often able to find many different custom ROMS for your device, especially if it’s one of the more popular phones or tablet.
CyanogenMod
CyanogenMod looks very similar to stock Android, but offers several enhancements and tweaks. Besides increased system performance and reliability, it includes many interface enhancements and integrated features. CM is one of the most popular custom ROM solutions as it brings a stock Android experience to many devices that come with a heavily-skinned Android version such as LG or Samsung Galaxy devices.
CyanogenMod Features
OpenVPN integration
Lockscreen gestures
Expanded quick settings
DSP equalizer
Complete Theme engine including own theme store
Wi-Fi, bluetooth, and USB tethering
CPU over- & underclocking
Based on Stock Android
Latest CyanogenMod Version
CyanogenMod is usually up-to-date and uses the latest Android version. The latest version available is:
CM 13.0 – based on Android 6.0 Marshmallow
A quite unique feature of CyanogenMod is it’s installer which makes installing the custom ROM quite easy. Besides flashing the ROM it will also root your Android device and will guide you through the whole process. Unfortunately, the installer is currently only available for Windows.
CyanogenMod is available for the majority of popular Android devices. You can find a list of supported devices on the CyanogenMod website.
BlissRom
BlissRom is a new kid on the block. They basically take CyanogenMod as a source and add some magic to its. While updates are not as frequent as with CyanogenMod, the team covers the most important stuff and usually releases up-to-date stuff.
BlissRom Features
Based on CyanogenMod (= all of its features)
Audio Improvements
Endless list of visual improvements
Global gestures
Modified power menu
Latest BlissRom Version
The latest BlissRom version is based on CM 12.1 and is called BlissPop and still running Android 5.1.1.
BlissRom is available on a range of devices. You can find a list here.
ParanoidAndroid
ParanoidAndroid is completely different to CyanogenMod and one of the “newer” custom ROMs out there. It’s currently my favorite custom ROM as it’s fairly close to stock Android while adding cool features like Peek and Hover. Next to CyanogenMod it seems like PA is king in the custom ROM scene. Unfortunately, the team only supports a small range of devices (Google Nexus & Oppo, OnePlusOne). There are, however, so-called Legacy versions available which support other devices.
ParanoidAndroid Features
Floating notifications & multitasking
Hidden Navigation PIE mode
UI customization
Gesture controls
CyanogenMod themes support
I was running PA on my Nexus devices and really loved it. It’s stable, fast and battery life is great. I can highly recommend this ROM.
Latest ParanoidAndroid Version
The latest PA version is based on Android 5.0 Lollipop. PA usually works with nightly version that are quite stable and frequently updated. Unfortunately it has not been updated to Marshmallow yet. It also seems like the official version for Oppo devices is maintained more frequently than the legacy versions.
ParanoidAndroid Availability
An overview of officially supported Google Nexus, OnePlusOne and Oppo devices can be found here. Legacy devices are listed here.
Device-specific custom ROMs
The custom ROM scene developed itself into a certain direction in the last year, especially with stock ROMs including more and more features. As device manufacturers often don’t publish official drivers, custom ROMs like CyanogenMod are not able to support all features. Because of this, custom ROMs are often developing in a direction of adapting ads to devices. Because of this, I cannot give you great recommendation for all devices. I would personally suggest to either go with the big players like CyanogenMod or look for a popular specific ROM for your device. The XDA Developers forums should do the trick for that.
Flashing Custom Kernels
Kernels are the brain of your Android device and communicate between software and hardware. Therefore, they are responsible for managing things like CPU / GPU clocking speed, screen sensitivity / colors or voltage. By using a custom kernel you can not only improve battery life, but also increase system performance.
Many custom ROMs already come with their own kernels. This is done to implement software communication of the custom ROM with the hardware of the device and also to ensure a better performance. Nevertheless, you are often also able to flash custom kernels to custom ROMs. If you decided to stick to a rooted version of stock Android, flashing a new kernel can offer you additional performance with the convenience of a stock OS. Unfortunately, there are no “big” kernel releases that work for multiple devices and it’s hard for me to give any suggestions here. I would suggest to check the dedicated XDA-Developers forum for your device
After downloading the custom kernel, you usually have to reboot to recovery and flash it from there. That’s it! Always make sure to check compatibility of the kernel with your ROM and device, because flashing a wrong kernel can brick your phone!
Apps
Rooting your Android device will offer you many benefits. Besides the features mentioned above, you can also install great apps that require to go deep into the system. Using them with an un-rooted device is not possible. Below I’ve listed a few apps that I like and use on an everyday basis. Feel free to share other apps in the comments section below!
Titanium Backup
Titanium Backup is a great backup tool for Android devices that offers tons of features. It provides the possibility to backup your data, settings and apps. Scheduled backups are also available. The paid pro version offers lots of great features like syncing backups with cloud-based storage providers such as Dropbox, Google Drive or Box. In my opinion this is one of the best root apps and a must-get. Especially if you’re a flash-a-holic, performing and restoring quick backups of all your apps (incl. settings and save games) is really easy and convenient with Titanium Backup.
ROM Manager
When you constantly switch between custom ROMs, ClockworkMod’s ROM Manager is one of the essential apps to get. Besides flashing ClockworkMod recovery, it will help you to organise and install your custom ROMs and backing-up your Android device. The paid premium version includes additional features like automatic backups, web connect and incremental ROM downloads.
AdAway
I struggled a little bit when deciding to either include AdAway or not, because it’s great for users but bad for app publishers and marketers. Google removed it from Google Play but you can still get it on the AdAway website. Like AdBlock Plus on your computer, the app modifies your Android devices hosts file to prevent apps and browsers to display advertisements. This will not only improve your app usage experience, but also increase battery life and decrease mobile traffic. Be fair and purchase paid versions of apps or donate a small amount to developers to make sure they will keep on programming great apps!
Google has recently begun to remove certain apps that violate their distribution agreements from Google Play. If you’re still interested in installing AdAway, please refer to the AdAway website.
Xposed Framework
Xposed Framework is a great app that offers the possibility to add features to your Android devices without flashing a custom ROM (or in addition to it). You’re able to install modules which offer visual customisation or battery improvements, amongst others.
Greenify
Greenify is a great app to improve battery life and system performance because it puts selected apps in hibernation mode. Not having tons of apps stored in RAM or running as system processes will make your Android device faster and increase your user experience. Please refer to full review for more information.
Frequently Asked Rooting Questions
1. How can I restore stock Android?
To get back stock Android, simply flash a stock ROM suitable for your device. This way you’ll get an unrooted, stock Android version with restored warranty.
2. What happens to my settings, contacts and apps when I install a custom ROM?
It’s always recommended to wipe your device before installing a custom ROM for the first time. If your Google account is linked to your phone, contacts, emails and apps will automatically be downloaded after launching the custom ROM and logging in to your Google account. You can backup your settings with apps like XYZ.
3. How can I upgrade a custom ROM?
Most custom ROMs offer a update function, some directly integrated to the OS, others using a specific app. You can also use ROM Manager to update certain custom ROMs.
4. Is it possible to just root a phone and not install a custom ROM?
Yes, simply use a stock ROM and root it. If you update it, your root-access will be gone, though.
5. Do I need to go step-by-step to upgrade my Android device or can I directly go to the latest version available?
You can usually simply flash the latest ROM and are good to go. Custom ROM updates usually come in a full package, meaning that you have to download the complete ROM to update it. The downloads are usually about 100-200 MB.
6. Is there a special order to flash a ROM or kernel?
I would suggest flashing the ROM first as they often include their own custom kernels. Afterwards, boot your phone with the custom ROM, go back to the recovery mode and flash the kernel. Also make sure to check whether your custom kernel is supported by the ROM.
7. Can I update or change certain parts of Android without flashing a ROM?
Not in terms of getting a newer Android version. However, you should have a look at Xposed Framework as it brings many custom ROM features to your Android installation.
8. Do I have to downgrade my phone to flash ROM XYZ?
No – as long as your bootloader is unlocked and you have a custom recovery installed. With some devices, you need to downgrade to be able to do that. Custom ROMs usually don’t require a certain Android version because everything OS-wise is overwritten anyways.
9. Is there a custom ROM for my phone / tablet?
I would recommend to head over to the XDA developers forums and perform a search query there. If you’re using one of the popular devices there are usually many custom ROMs available. You can always check out Xposed Framework to add some more features to your Android device if no custom ROM is available.
Final Words
Do you have any questions about the rooting process, custom ROMs, tweaks or apps? Do you maybe want to share other great apps that I might have forgotten? Feel free to do so in the comments below!
I am interested in rooting my android but do not know how to begin and how to identify my LG
how to know whether the recovery image in working or not without flashing on android
how can i create a virtual android environment that mimics my android kernel and os .So that i can flash recovery on virtual android without damaging my physical device........plesae help me .i am new to this :crying::crying:
sai2698 said:
how can i create a virtual android environment that mimics my android kernel and os .So that i can flash recovery on virtual android without damaging my physical device........plesae help me .i am new to this :crying::crying:
Click to expand...
Click to collapse
you can use virtual box on PC
just get a tutorial on internet
monterlarge said:
I am interested in rooting my android but do not know how to begin and how to identify my LG
Click to expand...
Click to collapse
just google your device and search for the compatible ROM
EASY PEASY
sai2698 said:
how can i create a virtual android environment that mimics my android kernel and os .So that i can flash recovery on virtual android without damaging my physical device........plesae help me .i am new to this :crying::crying:
Click to expand...
Click to collapse
Use virtual box
Hi everyone!
I'm Saki, a long time tech enthusiast, Xiaomi fan and developer. More than a year ago I started working on a program, called Xiaomi ADB/Fastboot Tools, that makes it easy to manipulate Xiaomi phones using ADB and Fastboot, which are official debugging tools for Android. They have command line interfaces and they can be used for a variety of things, including but not limited to uninstalling system applications, overriding screen density (DPI), enabling camera2 and flashing ROMs. This application makes their most popular features easily accessible to less tech-savvy users by providing a GUI to interact with.
Modules
App Manager - Uninstall/reinstall/disable/enable system apps and services on demand
Camera2 - Enable Camera2 and EIS (TWRP required)
File Explorer - Transfer files between a device and a computer using ADB
Screen density - Tweak screen density by overriding the DPI value
Screen resolution - Tweak screen resolution by overriding the width and height values
Device properties - Retrieve tons of statistics and information about your device
Flasher - Flash any partition with an image, boot to any image or flash a Fastboot ROM (unlocked bootloader required)
Wiper - Wipe the cache or perform a factory reset
OEM Unlocker & Locker - Lock or unlock the bootloader (unlocking is only supported by Android One devices)
ROM Downloader - Get links to the latest MIUI Fastboot ROMs or download them right away
Rebooter - Advanced rebooting options using ADB/Fastboot
The application has been in the works for over a year, some older versions even got posted on Reddit where the reception was overwhelmingly positive. The project is free and open-source, the source code is publicly available on GitHub so anyone can inspect the code or fork the project for themselves and add their own modifications to it if they want.
The Xiaomi/ADB Fastboot Tools was originally written in C# for Windows but I received a lot of requests to make it work on Mac and Linux so I rewrote the whole thing for the JVM, so it runs on Windows, MacOS and Linux as of today.
For more information, including instructions, screenshot, frequently asked questions and download, visit the project page on GitHub.
If you experience any issues, read the FAQ. If you cannot find the solution there, leave a comment here or open an issue case on GitHub. Feedback is highly appreciated!
For additional help with Xiaomi devices, feel free to visit the Xiaomi Community on Discord.
Thanks for reading and enjoy :angel:
Tell me. More about the EIS... Does it work with app like open camera...
Because EIS in Poco doesn't work in any camera app except stock camera
Sent from my POCOPHONE F1 using Tapatalk
Mr.Sm1th said:
Tell me. More about the EIS... Does it work with app like open camera...
Because EIS in Poco doesn't work in any camera app except stock camera
Sent from my POCOPHONE F1 using Tapatalk
Click to expand...
Click to collapse
Not sure if there's anything different about the Poco, but the method used here is equivalent to enabling persist.camera.eis.enable. If you tried enabling that and you didn't get anything out of it, this won't make any difference. The options to enable Camera2 and EIS are mainly for Gcam.
With this tools it's more easy to remove the bloatware as with a regular minimal adb?
Mikael1013 said:
With this tools it's more easy to remove the bloatware as with a regular minimal adb?
Click to expand...
Click to collapse
To me, checking a few boxes and clicking a button is much easier than entering a line of arguments for each application.
hi, i can't open it on my pc. i'm using windows 10 with java se development kit 11 and java runtime environment 8 installed.
Nice to see Xiaomi Reddit moderator here posting about the tool. For anyone asking: it works well for every MIUI version I tried. Though I've moved back to older version may be v2.0.0.2 cause that doesn't require java to run and I don't feel comfortable to install java bloatware just to use this tool.
Thank you Saki for the tool.
could you post link for that older version that doesn't require java
chilling said:
hi, i can't open it on my pc. i'm using windows 10 with java se development kit 11 and java runtime environment 8 installed.
Click to expand...
Click to collapse
If you have the Java 11 SDK, you have the JRE 11 as well. I'm afraid you have to download and use JavaFX with that JRE or uninstall Java 11 to be able to use JRE 8.
DomagojX said:
could you post link for that older version that doesn't require java
Click to expand...
Click to collapse
It's in the original post. Be aware that it doesn't have nearly as many features and can also contain a few bugs I haven't come across.
Is there a way to restore the Mi Cleaner app without doing a factory reset? (Redmi 4X running MIUI 10.3)
Nathan-NL said:
Is there a way to restore the Mi Cleaner app without doing a factory reset? (Redmi 4X running MIUI 10.3)
Click to expand...
Click to collapse
None that I know of.
Saki_EU said:
If you have the Java 11 SDK, you have the JRE 11 as well. I'm afraid you have to download and use JavaFX with that JRE or uninstall Java 11 to be able to use JRE 8.
Click to expand...
Click to collapse
already uninstalled jre 8. version 5.3 now works. thank you!
chilling said:
already uninstalled jre 8. version 5.3 now works. thank you!
Click to expand...
Click to collapse
Great to hear! So sorry you had to wait so long for the Java 11 compatible release, Oracle messed things up bad!
Version 5.4 is out!
Changelog and download on GitHub.
Thank you for app.
Nice app! Can it uninstall system apps too?
Version 6.0 is out!
Changelog:
- New module in ADB: File Explorer
- Added a check for updates on startup
- Minor UI changes
- Updated Kotlin library
- Minor code optimisations
Download link in the OP.
bowlofsausage said:
Nice app! Can it uninstall system apps too?
Click to expand...
Click to collapse
That's what it's for! It doesn't even offer apps for uninstallation that you can easily uninstall by yourself
Saki_EU said:
That's what it's for! It doesn't even offer apps for uninstallation that you can easily uninstall by yourself
Click to expand...
Click to collapse
I see line to add packages to uninstall list by name and i suppose i can unninastal it then. Can I see all list of apps at once not by adding by myself? Now on application start i only see some miui and google apps to uninstall, no other packages names
Hey folks. I've a pickle. Several of my friends and associates, all from different walks of life, here in OKC, Ok, are the victim of software exploitation...let me explain...
I'm a computer - I.T. guy.. have a history involving Unix and LInux Distro's and have avoided Android until recently.
Currently my devices have been hijacked. Running processes include:
Google Framekework
Wi-Fi Direct
Sim contacts
Launcher 3
QcrilMessageTunnelService
Ive a cheap pre-paid verizon Alcatel 5905s Due to my Premium Devices being hacked
It has
Android 8.1.0 I cant update
Kernal 3.18.71
3d5xufx1
Baseband 7Genns Pack1.201905.1.236923.1
My other devices will run 15 or more services within Googleplayservices.... The Apk versions of these packages like: GoogleplayServices, Android Auto, Facebook Manager (I dont use it btw), etc..all ridiculous permissions include root access and such....
My bluetooth, cameras, wi-fi - are all being turned on by the apps permissions and need help. Again I'm familiar with the Android System a bit - having a I.T. and Unix/Linux background I can come up to speed quickly....
Technology - especially opensource technology should never EVER be used like this. I have encountered a problem which effects a lot of good people. Regardless of their goodness badness or whatever - no one should ever use technology in this way....
My questions are:
Some of my friends and their devices have custom roms === How can I remove them? J3 x2 J7, A10. A11, Alcatel 5095s, LG 322DL and AQT 100 tablet to start....
Each of the above programs utilize Googleplayservices to have extremely stupid permissions and their corrosponding related aps....
Im even giving numbers for anyone to call: 4zerofive921sixfour49 Wade and 405eighthtreeefour30sevenzero chris
if you can help...please do....
Why not simply on hijacked devices re-flash their Stock ROM to get rid off of the installed Custom ROM?
Although Android is based on a modified Linux kernel, it has nothing in common with Linux: the Android Framework, which is based on Java APIs, is the interesting part.
And: Nobody is forced to make use of Google Play Services / Google Services Framework: Custom ROMs like LineageOS don't have them built-in.
jwoegerbauer said:
Why not simply on hijacked devices re-flash their Stock ROM to get rid off of the installed Custom ROM?
Although Android is based on a modified Linux kernel, it has nothing in common with Linux: the Android Framework, which is based on Java APIs, is the interesting part.
And: Nobody is forced to make use of Google Play Services / Google Services Framework: Custom ROMs like LineageOS don't have them built-in.
Click to expand...
Click to collapse
Ok. Please let me in on this. It's intriguing. First I know little of Java but have started to begin learning development basics...so my questions are...
So I have an LG322dl....there seems to be no good info on ROMS my way...but then again these "apps' prevent me from looking at things that counter their functions....
I have ADB /Fastboot - and run Ubuntu 20.04. Theres a J7 that I tried to Flash but Heidall didnt work and dont know where else to turn... Theres also the Alcatel 5059s
I have 2 J3's the J7 an LG 322Dl and a Sam A11...i have read what is on here on each of the items. Basically I am told the LG no one can flash...(i dont believe it) the Alcatel is a headcache because I cant get any solid info...the A11 is now Google LOcked , and the Samsungs the original Flahing with Heidall doesnt do squat.....
Now all I understand are probably basics to you... If you got an issue you can flash your phone with the MF's Factory Build...but if your bootloader is locked, say - like on my A11 - I cant bypass for ****. I tried every which way 30 plus hours.... nothing... and it had my original fingerprint!
Also, the methods for each of my devices listed by users here and elsewhere just dont seem to work...
Can you please....explain to me the process to flash and or install a custom rom please?
thanks
Can't guide you: never have flashed a Custom ROM, because it never was necessary to do it.
sorry if you felt I'm shouting in the title. I want to root my Lenovo K33a42, Android 7.0 (yes an old phone). I tried to root using KingRoot, KingoRoot, FramaRoot, Root Master (including PC versions) and none of them were able to root my phone. I seriously want to root my phone and I don't wanna risk bricking it as it's my primary. I know the method of Flashing TWRP and then flashing Magisk or SuperSU, but I'm scared of bricking. is there any better method to root my phone?
DamnBro304 said:
sorry if you felt I'm shouting in the title. I want to root my Lenovo K33a42, Android 7.0 (yes an old phone). I tried to root using KingRoot, KingoRoot, FramaRoot, Root Master (including PC versions) and none of them were able to root my phone. I seriously want to root my phone and I don't wanna risk bricking it as it's my primary. I know the method of Flashing TWRP and then flashing Magisk or SuperSU, but I'm scared of bricking. is there any better method to root my phone?
Click to expand...
Click to collapse
Well always do everything with extra care. I cound not assure that you will not brick your device.
Your phone is Lenovo K6 power.
Also, I recommend updating to a newer android version as android 7 is already too outdated and not safe to use. An example is this, which you can also flash in TWRP (wipe before installing)
[ROM][11.0.0_r19]LineageOS 18.1 for Lenovo K6 Power
LineageOS is a free, community-built, aftermarket firmware distribution of Android 6, which is designed to increase performance and reliability over stock Android for your device. LineageOS is based on the Android Open Source Project with extra...
forum.xda-developers.com
If you want to know why one click root apps doesn't work, those apps highly depends on a bug occuring on android 4.0 to android 6.0. Android 7 have this 'issue' , or exploit, patched, so one click root apps died instantly.
@DamnBro304
No Magisk, TWRP, SuperSu, etc.pp is needed to root a phone what has Android 5 and higher running.
Because your device's Android is version 7 to get the superuser access to be able to control various aspects of Android OS means you need to perform a certain modification that will root your phone's Android.
Here is what you have to do to root your device's Android: Replace Android's Toybox binary - what is a restricted version by default - by unrestricted Toybox v0.8.5. This can get achieved by means of ADB.
Toybox v0.8.5 is available here:
Index of /toybox/bin
jwoegerbauer said:
@DamnBro304
No Magisk, TWRP, SuperSu, etc.pp is needed to root a phone what has Android 5 and higher running.
Because your device's Android is version 7 to get the superuser access to be able to control various aspects of Android OS means you need to perform a certain modification that will root your phone's Android.
Here is what you have to do to root your device's Android: Replace Android's Toybox binary - what is a restricted version by default - by unrestricted Toybox v0.8.5. This can get achieved by means of ADB.
Toybox v0.8.5 is available here:
Index of /toybox/bin
Click to expand...
Click to collapse
thanks for your quick reply but I'm still kinda new to this flashing and stuff so can you give me the exact commands to root my phone? and I see there are many options of downloading toybox in the link you gave me I don't know which one I need so can u help me out in that too?
LR7875 said:
Well always do everything with extra care. I cound not assure that you will not brick your device.
Your phone is Lenovo K6 power.
Also, I recommend updating to a newer android version as android 7 is already too outdated and not safe to use. An example is this, which you can also flash in TWRP (wipe before installing)
[ROM][11.0.0_r19]LineageOS 18.1 for Lenovo K6 Power
LineageOS is a free, community-built, aftermarket firmware distribution of Android 6, which is designed to increase performance and reliability over stock Android for your device. LineageOS is based on the Android Open Source Project with extra...
forum.xda-developers.com
If you want to know why one click root apps doesn't work, those apps highly depends on a bug occuring on android 4.0 to android 6.0. Android 7 have this 'issue' , or exploit, patched, so one click root apps died instantly.
Click to expand...
Click to collapse
as I said in my previous reply I am new to these stuff and I see that the lineageos is of Android 6 and had a doubt. will flashing that ROM give me root access without doing anything else?
DamnBro304 said:
as I said in my previous reply I am new to these stuff and I see that the lineageos is of Android 6 and had a doubt. will flashing that ROM give me root access without doing anything else?
Click to expand...
Click to collapse
Ah **** posted wrong link, this is the right one:
[UNOFFICIAL][9.0.0_r46] Pixel Experience - Plus [karate]
PixelExperience Plus for Lenovo K6 Power(karate) What is this? Pixel Experience is an AOSP based ROM, with Google apps included and all Pixel goodies (launcher, wallpapers, icons, fonts, bootanimation) Our mission is to offer the maximum...
forum.xda-developers.com
You need to flash magisk.
jwoegerbauer said:
@DamnBro304
No Magisk, TWRP, SuperSu, etc.pp is needed to root a phone what has Android 5 and higher running.
Because your device's Android is version 7 to get the superuser access to be able to control various aspects of Android OS means you need to perform a certain modification that will root your phone's Android.
Here is what you have to do to root your device's Android: Replace Android's Toybox binary - what is a restricted version by default - by unrestricted Toybox v0.8.5. This can get achieved by means of ADB.
Toybox v0.8.5 is available here:
Index of /toybox/bin
Click to expand...
Click to collapse
Well how? Not heard about that, can you please elaborate? Thanks.
IMO out of scope of this thread, it would require a separate thread everyone on XDA can make use of,
May be I'll create one, stay tuned ...
LR7875 said:
Ah **** posted wrong link, this is the right one:
[UNOFFICIAL][9.0.0_r46] Pixel Experience - Plus [karate]
PixelExperience Plus for Lenovo K6 Power(karate) What is this? Pixel Experience is an AOSP based ROM, with Google apps included and all Pixel goodies (launcher, wallpapers, icons, fonts, bootanimation) Our mission is to offer the maximum...
forum.xda-developers.com
You need to flash magisk.
Well how? Not heard about that, can you please elaborate? Thanks.
Click to expand...
Click to collapse
thank you very very very much. Now what I have to do is just extract the boot.img from this OS and then patch it with Magisk and then flash this OS right? correct me if I'm wrong bcoz I don't at all wanna brick this phone and please mention the FULL method if I'm wrong and I'm new too new to these stuff. I will forever be indebted to you
DamnBro304 said:
thank you very very very much. Now what I have to do is just extract the boot.img from this os and then patch it with Magisk and then flash this right? correct me if I'm wrong bcoz I don't at all wanna brick this phone and please mention the FULL method if I'm wrong and I'm new too new to these stuff. I will forever be indebted to you
Click to expand...
Click to collapse
yes.
LR7875 said:
yes.
Click to expand...
Click to collapse
ok cool cool cool cool cool cool cool cool cool cool so this will get 3 advantages. I will get root + android 9 + Pixel Experience very noice thanks man ily
Hi All!
I've recently got P40 Pro and I like it very much. Now I need some software to be installed - maps, chats, banking etc.
However almost all of these apps need Google services or HMS. I'll try to avoid using these frameworks by using MicroG and Aurora store.
My goal is to have some set of required apps and don't have bloatware (like Huawei AI apps).
So I also going to find browser, phone, file manager and others on F-droid and use them instead of pre-installed apps. And disable those via ADB.
There are tons of information I need to read to do that, and I'll surely will read.
BUT, most manuals have big disclaimer which says "Do everything on your own risk, you can brick the phone!". And that's what I definitely don't want to.
So my questions are - what is the set of safe operations? What predefined applications can be safely removed via ADB? How to make backup that will restore phone if something goes wrong?
I believe there should be some thread with same concerns, but I could not find it. If somebody could point me to it, I'll be very grateful! Thank you in advance!
The first and main thing is "Everything Do at your Own RISK" if you want to go through android modding or making changes in the system you should not fear from resetting or formatting the system first and other thing is that installation of any unstable or unsupported mod can brick your device to get recover from these situations you should have knowledge about adb and fastboot,oem unlock and bootloader,custom recovery,root,magisk and custom roms to get the full back of your android in current state needs root for root you have to unlock your bootloader and for unlocking bootloader you need fastboot tool or your device oficial bootloader unlocker tool then you can backup you droid by the most common tool titanium backup or simply by backu option in your custom recovery
I think having a fully capable ROM bootloader (EDL mode, MTK, Allwinner, RockChip...) is most important.
There are still times that your system is wedged and you'll need either ROM mode test points or flash disable.
That's when the boot chain is broken enough to not work, but not broken enough to be recognized as broken.
If things are totally broken it will go to ROM bootloader mode all by itself.
Thank you for your advises!
I could not find P40Pro in TWRP devices list, and AFAIK, to unlock bootloader it needs to be disassembled. Is that correct?
To get used to rooting, custom ROMs, flashing and things I'll better get some cheap used phone - this one is way pricey for savage experiments, especially when you're completely noob. So rooting isn't an option for me for now.
At the moment I 'm debloating phone with "adb shell pm disable-user" and following lists:
[GUIDE] EMUI 11 Complete Debloating Guide & Bloatware List
This de-bloating guide will help you start using EMUI 11 as clean as possible. Please list packages in the comments section that you know is a bloatware and I didn't include in the spreadsheet. This guide assumes that you're using Windows 10 as...
forum.xda-developers.com
P40 Pro debloating guide
Hey everyone, I've spent the last couples days going through all the installed packages, cross-referencing different debloating guides and testing my changes. I'm running the latest EMUI 10.1.0.158 (C636). RECOMMENDATIONS: if you can, follow...
forum.xda-developers.com
[GUIDE] List of bloatware on EMUI safe to remove
Hi all, i was working on a guide on the vast amount of packages that we find already installed on EMUI by default and safe to remove because i'm sure that it would be useful for users like me, users that doesn't like to have space occupied on...
forum.xda-developers.com
Next step - involve Android profiles to isolate spying apps, which I still need, from each other and from contact list
I also looking for decent replacement for buit-in file-management, phone, messaging and contacts apps. And, maybe, launcher, I don't know if it's needed and secure. So far I found:
Emerald Dialer | F-Droid - Free and Open Source Android App Repository
Make calls, view call log
f-droid.org
Silence | F-Droid - Free and Open Source Android App Repository
Encrypted SMS/MMS conversations made easy!
f-droid.org
Koler | F-Droid - Free and Open Source Android App Repository
uniquely stylized phone app with customizable features
f-droid.org
But haven't installed or tried yet. I'd gratefully accept recomendations for those app categories.
Dont waste your time. On this phones you cannot unlock the bootloader and definitely you cannot have access to the root. Also debloating is a non-sense: you can do more bad things than good things. The phone is powerful enough to not need debloating. It is not a Galaxy S2.