yashsingh1/xdaforums huggingface dataset:
[Redmi Note 2 General] DarthJabba9:
These are the only files that need to be restored:

/system/app/FingerprintService/ [this is a directory]

/system/vendor/lib64/libfingerprint_tac.so [necessary for the fingerprint service, otherwise you will be stuck with a crashed service start on bootup]

[MENTION=7467903]krlenjuska[/MENTION] - attached is a TWRP install zip to restore the necessary files.
[Redmi Note 2 General] krlenjuska:
[MENTION=5850987]DarthJabba9[/MENTION] thank you i will restore that.

Do you guys know what process is 1013? It seems this is some android bug with "audiomix". In Gsam i have 53,2 % of my battery used for that. Any ideas?

Is this issue related to some app or what. I cant find some pattern-sometimes i have this, sometimes i dont.

Also numbers from Gsam and from phone battery use is totaly different :)
[Redmi Note 2 General] DarthJabba9:
The audiomix issue is long-standing. Too many lines have been written about it in respect of many Android versions. Nobody has a foolproof solution. For me, I find that notification sounds can become a problem (e.g., from WhatsApp and the Messenger app - and any other app that can activate the speaker). It seems that the audio is then not turned off afterwards. You have to devise your own methods of dealing with that.

The numbers from Gsam and phone battery are the same here.
[Redmi Note 2 General] krlenjuska:
I think i have this issue when Viber is installed. Will try to test without Viber
[Redmi Note 2 General] DarthJabba9:
[MENTION=7467903]krlenjuska[/MENTION] - I uninstalled Viber a long time ago. It was a worse culprit than WhatsApp. However, my best solution was to seriously restrict which apps can turn on the audio (i.e., that can make notification sounds).
[Redmi Note 2 General] krlenjuska:
I restored 2 fingerprint files (i did manualy not with zip) and everything is ok with lock pattern now.

thanks
[Redmi Note 2 General] DarthJabba9:
You're welcome. It's great that the problem was easy to solve.

You will have noted that I have not gone to the bleeding edge with skinnifying. There are still things that can be removed, according to the guide by [MENTION=5952980]jajk[/MENTION] - but I am happy with things as they are. Look at /etc/init.d/000init.sh for myinitd tweaks. You may wish to change some of them.
[Redmi Note 2 General] jajk:
[MENTION=5850987]DarthJabba9[/MENTION] I have edited Stage 3 post referring to this problem and your solution. Thanks for contributing:good:

It seems that enabling app lock will disable MIUI Optimization as well. I guess that is to prevent a backdoor into locked apps?
[Redmi Note 2 General] DarthJabba9:
You're welcome. But I think we may have some wires crossed here. The issue was with setting/changing the lock screen password/pattern (i.e., protecting the device itself from being summarily accessed by any Tom, **** or Harry) rather than app lock. I'm not sure they are the same thing.
[Redmi Note 2 General] krlenjuska:
I finally managed to create what i wanted-Rom with solid battery life and smooth enough. I used 6.5.19 from Xiaomi.eu and i removed all Mi apps and complete google account, play store, services...

I set cpu to 1180 with RN2 tool and i have about 4h SOT with battery life 3-4 days ( i dont use phone very much-thats why i tried to decrease idle consuption).

Wifi or 3G is always on, 2 SIM cards, Greenify set to "root" mode without xposed, hibernation-lock screen shortcut added to home screen.

Betterbatterystats shows 90-95% of deep sleep.

Only youtube.apk cant work without google so far-everything else is ok.

Best for me so far.

Guys thanks for your help!
[Redmi Note 2 General] Sleepy_Augie:
[MENTION=5952980]jajk[/MENTION] ok, I'm back on board for miui 8! Gonna flash it now, and hopefully it will perform better than miui 7 out of the box.
[Redmi Note 2 General] DarthJabba9:
I get 90%-95% deep sleep as well on my skinny ROM ...
[Redmi Note 2 General] Sleepy_Augie:
Tons of apps are able to be frozen in Miui 8, but the real trick will be deleting them entirely, and dealing with the unfair priorities of ram. About 1gb of free ram at the moment. :(

Going off of the China rom, so all the Chinese apps are a bit hard to decipher.

Yo [MENTION=5952980]jajk[/MENTION] come thru.
[Redmi Note 2 General] jajk:
[MENTION=7150090]Sleepy_Augie[/MENTION] I'm sitting here waiting for a decent candidate MIUI8 ROM to be released for skinnification. Too many of the usual problems with everything up to 6.6.17 as before - developer ROMs are a poor choice.

I will wait for a stable release which should be numbered 8.x.xx and base the next skinny on it.

Post your boot.img only if you want me to do a skinnier version for you;)
[Redmi Note 2 General] Sleepy_Augie:
[MENTION=5952980]jajk[/MENTION] Ok good point, I'll sit tight. Boot times are already speedy compared to my memory of Miui 7 boots. :)
[Redmi Note 2 General] jajk:
[MENTION=7150090]Sleepy_Augie[/MENTION] What version did you load? Can you still upload the boot.img to somewhere I can grab it so I can come to terms with any differences and give you and others a preliminary skinny while waiting for the stable release.
[Redmi Note 2 General] Sleepy_Augie:
I downloaded the first version of Miui 8 that was released. Idk what it was. Here is the boot image. Tell me if this sharing works.

https://drive.google.com/file/d/0B1HL7PJyWyqfblhJLThob1ZVZzQ/view?usp=sharing

Edit: The version is "MIUI 8 6.6.17 | Beta"
[Redmi Note 2 General] jajk:
[MENTION=7150090]Sleepy_Augie[/MENTION] Thanks and sharing works. I will post a preliminary skinny version of this shortly.

There has been talk of a 6.6.20 version which is Android 6.0 but it could be a hoax - plenty of B.S floating around at the moment (or is that the norm in Xiaomi forums?);)
[Redmi Note 2 General] Crim Soukyuu:
I can't seem to be able to set my lockscreen or wallpaper on MIUI8, probably because I removed the gallery app. MIUI7 was fine because I could just use quickpic to pick the wallpaper, but apparently it's not possible anymore with MIUI8. Could someone please upload the gallery .apk (or tell me where it is in the ROM .zip file, I can't seem to be able to find it in system/app)?

edit: not working = touching the "+" icon causes the theme app to FC.

edit2: nvm, I will just wait until it reaches a stable release. I'm having the same issues on it as I did on MIUI7 anyway, so no reason to "upgrade".
[Redmi Note 2 General] DarthJabba9:
[MENTION=5952980]jajk[/MENTION] There are a whole load of new things in 7.5.10 - do you know which of these can be skinnified?

/system/app/CmasEM/

/system/app/CMASReceiver/

/system/app/MiDiscover/

/system/app/MiLivetalk/

/system/app/SystemAdSolution/

/system/priv-app/BackupRestoreConfirmation/

/system/priv-app/CellBroadcastReceiver/

/system/priv-app/GoogleBackupTransport/

/system/priv-app/ManagedProvisioning/

/system/priv-app/MediaProvider/

/system/priv-app/WallpaperCropper/

Thanks.
[Redmi Note 2 General] Xabadou:
I have deleted this apps:

/system/app/CmasEM/

/system/app/CMASReceiver/

/system/app/MiDiscover/

/system/app/MiLivetalk/

No problem.
[Redmi Note 2 General] jajk:
Confirmed the above deletions. I will post a "what is left" list shortly for 7510
[Redmi Note 2 General] jajk:
O.K here is my version of skinnied 7.5.10. This is a list of what is left rather than what is deleted.

/system/app

AtciService - autostart disabled

AutoDialer

BarcodeScanner

Bluetooth

BSPTelephonyDevTool

CaptivePortalLogin

CertInstaller

DeskClock

DrmProvider

EngineerMode

EngineerModeSim

FM

GoogleCalendarSyncAdapter

GoogleContactsSyncAdapter - autostart disabled

KeyChain

miui (miuisdk) - autostart disabled

MiuiCompass

miuisystem

MTKThermalManager

NetworkAssistant2

NlpService - autostart disabled

Omacp - autostart disabled

PackageInstaller

Provision

SoundRecorder

SuperSU

ThemeManager - autostart disabled

Updater - autostart disabled

UserDictionaryProvider

WebViewGoogle

XiaomiServiceFramework - autostart disabled, frozen

YGPS

/system/priv-app

AuthManager

BackupRestoreConfirmation

Calendar

CDS_INFO

CalendarProvider

Contacts

ContactsProvider

DefaultContainerService

DownloadProvider (download manager) - autostart disabled

DownloadProviderUi

ExternalStorageProvider

FusedLocation

GoogleBackupTransport

GoogleLoginService

GoogleOneTimeInitializer - autostart disabled

GoogleServicesFramework

InCallUI

InputDevices

ManagedProvisioning

MediaProvider

MiuiCamera

MiuiGallery

MiuiKeyguard

MiuiSystemUI

MmsService

Phonesky

PrebuiltGmsCore

ProxyHandler

SecurityCenter

Settings

SettingsProvider

SharedStorageBackup

Shell

Stk1 - autostart disabled

Telecom

TelephonyProvider

TeleService

VpnDialogs

WallpaperCropper

Keep MiuiHome and MiWallpaper if not going to a third party Launcher

Google Messenger replaces stock Mms app. Optionally replace stock Calendar with Google Calendar.

Third party launcher (adw), media player (VLC 2.02 Arm64), web browser (Polarity), root filemanager (Root Explorer 3.37), keyboard (hackerskeyboard 1.38-2)
[Redmi Note 2 General] TamOmachi:
Hello bro, can you guide me how to add init.d to boot.img, or give me a link to where have the guide? I want add init.d in rom myself :o
[Redmi Note 2 General] Busaton:
A my friend had the problem of the phone locked in the validation of mi account. Skinnying a miui rom is possible that the app that locks removes and unlock the device? Now he has a CM rom. Sorry for my english
[Redmi Note 2 General] jajk:
[MENTION=5808086]Busaton[/MENTION] This usually happens on Developer or Beta ROMs. Use a stable release - these tend not to have the validatrion problems.

Skinny is not Xiaomi friendly, it is for people who are not interested in being part of the propaganda machine.

[MENTION=7122332]TamOmachi[/MENTION] Not here, QA section for stuff like this
[Redmi Note 2 General] TamOmachi:
I have tried many times and I was successful :D Thanks for your kernel. I unpacked it and viewed code in it :D
[Redmi Note 2 General] apt2k2:
Hi! BIG THANKS for your guide.

I can confirm that Stage 3 works in my MIUI 8 xiaomi.eu ver 6.6.30 Redmi Note 2. The only difference being I kept Documents in order to give root privileges for certain third-party apps. Even without stage 1 and stage 2, the battery savings are very remarkable !

I copy-pasted your guide to MIUI forum and changed it a little. Please take a look !

http :// en.miui.com / thread-309712-1-1.html

again, thanks !:D
[Redmi Note 2 General] jajk:
[MENTION=4808740]apt2k2[/MENTION] You are welcome;)
[Redmi Note 2 General] s.slavko:
Skini mini 8

Hello [MENTION=4808740]apt2k2[/MENTION],

Can you please post your skinnified miui 8 rom if it is not too much trouble for you. I want to try it, but right now I have no time to do it my self. Will you do it, please?
[Redmi Note 2 General] nugroho2:
When you say 7.5.1, did you install and repeat all steps from Step 1 in page 1.?

Appreciate your guidance...
[Redmi Note 2 General] jajk:
[MENTION=2407612]nugroho2[/MENTION] There are at least 2 versions of 7.5.10 kicking around - MultiRom version and Official Global Stable version. I installed the Global Stable as there were reports of bugs in the MR version at the time.

The process I took was to edit the updater-script to disable installing GApps, SuperSu and Recovery as these are common sources of later problems. I did not install the skinny boot.img at this stage.

Next, installed the ROM, booted up without connecting to any Xiaomi accounts and then rebooted into TWRP recovery.

Installed updated busybox, SuperSu, Gapps and skinny boot.img. Reboot.

Install root explorer, sd maid and other apps that will replace stock versions.

Edit perfservscntbl.txt and create an init.d script.

Start uninstalling / freezing / disabling autostarts to get desired outcome.

Hope that helps?
[Redmi Note 2 General] nugroho2:
Thanks so much
[Redmi Note 2 General] acestars:
I will try this if i have time. thanks for the tutorial.
[Redmi Note 2 General] _NemO_:
[MENTION=5952980]jajk[/MENTION]

Could you please just tell me how to disable mcd service?
[Redmi Note 2 General] jajk:
[MENTION=5236875]_NemO_[/MENTION] You could try to run with an empty /etc/mcd_default.conf file to see if that is sufficient to render mcd inactive.

If you want the services to be disabled completely, there are a lot of lines to be disabled across a number of init files. Unpack the Skinny image and copy all the disabled lines (marked with ###) that refer to mcd to your own image. Also in init.rc, change the perms to allow changing LMK settings - that is an important part of getting better memory management.

chmod 0664 /sys/module/lowmemorykiller/parameters/adj
chmod 0664 /sys/module/lowmemorykiller/parameters/minfree
[Redmi Note 2 General] _NemO_:
[MENTION=5952980]jajk[/MENTION]

You know, that's really what I want!

I've just renamed /system/etc/mcd_default.conf , created ZRAM using init.d script (I've tested, ZRAM is no longer created with mcd) and tuned lmk values.

It works perfectly: I can run 8-10 apps and everything is on the same place when I switching between them!

Thank you for good advice.

PS: no freezes at all!
[Redmi Note 2 General] jajk:
[MENTION=5236875]_NemO_[/MENTION] The difference in doing it that way is that you will have unneeded services running in the background with the inherent mem and cpu usage detracting from the ultimate obtainable performance. It is however a quick and effective way of getting back to the core Android memory management instead of MIUI's nonsensical interference.
[Redmi Note 2 General] jerryshaw12:
I just dont get it, after flash skinny boot.img mybphone always stuttering and unable to get access root from prompt
[Redmi Note 2 General] jajk:
[MENTION=6150156]jerryshaw12[/MENTION] and all.....What ROM version did you install, what ROM did you previously have installed, do you do wipes before installing ROM, do you avoid installing supplied versions of Gapps, SuperSu and recovery, what version of recovery are you using, do you restore apps from TB, do you update Busybox, do you install exposed........ the list of things that effect the outcome is huge which is why I say Not for Noobs. The expectation is that you can do your own detective work to see what is affecting your installation and even repack the boot.img to suit your own requirements should you want to add something back - everything is intentionally in plain sight for all to see and modify as they wish. I have never been able to recreate the occasionally reported stuttering issue which leads me to believe that it is due to the actions and decisions made by individuals. No-one gives feedback when they eliminate the cause - only blaming everything but themselves publicly.
[Redmi Note 2 General] jerryshaw12:
7.5.1.0 Global Stable

Yes, i always wipe data and cache

Supersu 2.76
[Redmi Note 2 General] jajk:
A couple of new tricks:

###For any ROM version these are extra debug disable lines not in original list
echo "0"> /sys/module/lowmemorykiller/parameters/debug_level;
echo "Y"> /sys/module/spurious/parameters/noirqdebug;

###Only for 7510 or MIUI8 ROMs - a different way to limit cpu cores to a max of 4 cores (0-7 is default)
#Tweak Cpu cores
echo "0-3" > /dev/cpuset/foreground/cpus

Busybox installer updated with later and better binaries. See 2nd post Edit - Postponed
[Redmi Note 2 General] jerryshaw12:
So if i want to limit to 6 core the value is 0-5?
[Redmi Note 2 General] DarthJabba9:
Yes.

---------- Post added at 11:30 AM ---------- Previous post was at 11:14 AM ----------

Anything interesting here? https://rt.wiki.kernel.org/index.php/CPU_shielding_using_/proc_and_/dev/cpuset
[Redmi Note 2 General] jerryshaw12:
Current Rom : Global Beta 6.8.4 with 684 boot.img

No problem at all, root and app installing have no problem like in 7.5 (maybe it's only me)
[Redmi Note 2 General] rena71rai73:
hello, I have your same rom, give me the boot link 684

Inviato dal mio Redmi Note 2 utilizzando Tapatalk
[Redmi Note 2 General] DarthJabba9:
The link is in the first post in this thread.
[Redmi Note 2 General] rena71rai73:
Good morning, after this flash, you get benefits on the battery, or you're forced to, make any other changes?

Inviato dal mio Redmi Note 2 utilizzando Tapatalk
[Redmi Note 2 General] DarthJabba9:
Read posts #1 to #4 in this thread.
[Redmi Note 2 General] vaselor:
You'll get some battery improvements, but it gets much better if you do every step.

Enviado desde mi Redmi Note 2 mediante Tapatalk
[Redmi Note 2 General] jajk:
Some info in the OPs is getting a bit dated and MIUI7.5 / MIUI8 have some unique settings that cannot be applied to previous versions. The general techniques remain the same - the devil is in the detail though.

Once MIUI8 stable is released, I will switch to using it and do a more definitive guide just for MIUI8. How long I stay using MIUI8 is another matter since it comes with more baggage I do not need.
[Redmi Note 2 General] rena71rai73:
hello, I tried the flash however busybox me error 1

Inviato dal mio Redmi Note 2 utilizzando Tapatalk
[Redmi Note 2 General] msdadoel:
how to enable zram again???

in setting/developer option not work :(:(:(:(
[Redmi Note 2 General] jajk:
[MENTION=7592448]msdadoel[/MENTION] Read 2nd post:)

I have updated my busybox installer with new binaries (compiled from source 11/8/16) and changed the installer script to uninstall old versions from /sbin as well as /system/xbin (just in case).

The installer no longer installs busybox with symlinks to internal commands and will remove any found during the install process. This avoids possible conflicts with the same command that is found elsewhere (usually /sbin or /system/bin) and reduces the overall footprint.

The side-effect of this is to make it (again) necessary to specify the path to any busybox commands e.g busybox free. The full path is not required as /system/xbin is already set in the environment.

Make sure you look over any scripts that use busybox commands and add the missing bit if necessary.
[Redmi Note 2 General] jajk:
On disabling pesky services..........

Want to know what services are currently disabled per app?

Read /data/system/users/0/package-restrictions.xml

If you use the highly recommended DisableService app, then you can do a Backup within the app. Now look at /storage/emulated/0/DS_Backup.txt to see what is disabled.

Also, you can quickly reduce the initial number of services that can run by a bit of smart searching e.g. I don't use Gapps for gaming, fitness or wearable items so I will do the following:

In DisableService, select an app with many services (this example Google Play services).

Click on Search and type in games. Disable all relevant entries.

Now type in wear. Disable all relevant entries.

Type in fitness and again disable relevant entries.

Too easy;)
[Redmi Note 2 General] DarthJabba9:
Great tips! MyAndroidTools, by the same author, seems more comprehensive than DisableService. Any reason why that is not the highly recommended one?
[Redmi Note 2 General] jajk:
[MENTION=5850987]DarthJabba9[/MENTION] Indeed. MyAndroidTools is the more comprehensive and later (replacement) version of DisableService which means you can screw your phone in so many more ways. I also highly recommend it but only when the user has become comfortable is using DisableService first;)

Edit: Just for interest I have attached my MyAndroidTools backup file so you can see the extent of disabling that can be done (while still maintaining basic Google services).
[Redmi Note 2 General] vaselor:
Hello.

At first, I wanted to say thanks to [MENTION=5952980]jajk[/MENTION] for his efforts in making this phone better than Xiaomi wants. I'm running 7.1.1 from xiaomi.eu. I flashed the latest boot.img, added the 01_tweaks file, skinnified the system apps, but I just get ~60% deep sleep at maximum. I've been tinkering around with Disable Service, but it didn't improve a lot (in fact, now I don't get push notification from Gmail).

I've run Wakelock Detector, and I see the culprit can be Telegram. I'd like to reduce the wakelock time, but I've seen Xposed is not recommended. I have lots of apps on my phone, but I really want to squeeze its capabilities. Still, on a daily basis I can get 4 hours SOT using it for two days, ~36 hours of use and 0 battery drain overnight. I think it's ok, but maybe I can get more from it (those 6-7 hours get me envous :P).

Thank you very much.
[Redmi Note 2 General] jajk:
[MENTION=7117356]vaselor[/MENTION] Everyone has different requirements / desires therefore gets different results. Telegram is a known problem app when it comes to waking the phone so if you choose to use it, you will get lower results. This applies to many apps that are heavily promoted but written poorly.

Xposed, (on MIUI) increases the cpu processing time by a factor of around 2 so battery and performance suffers along with some stability.

My recommendation:

If WLD, BetterBatteryStats or DisableServices is showing you have some noisy apps (won't shut up by themselves, too many services started etc.), find a better app to do the same job.
[Redmi Note 2 General] jajk:
Something everyone should be watching out for.....

When disabling services, you can go too far and cause processes to fail or get stuck thereby decreasing your phones deep sleep ability.

The attaches images show this has happened because Google Event log was disabled.

Moral of the story - do things incrementally with regular backups so you can step back if you make things worse;)
[Redmi Note 2 General] vaselor:
Thank you very much
[Redmi Note 2 General] Adam Hui:
App size & RAM consumption ?

*] front LED holographic keyboard >> another dream in android
[Redmi Note 2 General] DarthJabba9:
My early report on skinnifying MIUI 8.0.1.0 Stable (from Xiaomi.eu) - http://xdaforums.com/showpost.php?p=68328684&postcount=525
[Redmi Note 2 General] vetriolo:
In miui stable 8.0.1 (xiaomi.eu) I can't find init.d... Could you list the apps that it's possible to delete in this version? Thanks
[Redmi Note 2 General] DarthJabba9:
http://xdaforums.com/showpost.php?p=68193060&postcount=465
[Redmi Note 2 General] apt2k2:
Sorry.. I am not familiar with ROM cooking.

What I did is on top of a clean xiaomi.eu MIUI 8 ROM install.
[Redmi Note 2 General] DarthJabba9:
[MENTION=5952980]jajk[/MENTION] I think we have a major problem with AnalyticsCore.apk, mentioned here http://xdaforums.com/redmi-note-2/general/analyticscore-apk-reason-xiaomi-release-t3462670 (read particularly the first link). The apk allegedly dials home every 24 hours, and allegedly can download and install anything called AnalyticsCore.apk from xiaomi's servers. It is

very

scary. (

Edit: this is removed as part of the skinny process in the OP

). Apparently, dial home problems can be worked around by blocking xiaomi domains - eg, by adding this to /etc/hosts

127.0.0.1 micloud.xiaomi.net
127.0.0.1 xiaomi.net
127.0.0.1 account.xiaomi.com
127.0.0.1 pdc.micloud.xiaomi.net
127.0.0.1 wifiapi.micloud.xiaomi.net
127.0.0.1 xiaomi.com
127.0.0.1 contactapi.micloud.xiaomi.net

Perhaps this should be added to the instructions in the OP? Everyone be warned!
[Redmi Note 2 General] Gyovany96:
I always deleted AnalyticsCore from every MIUI ROM and had no problem/error ! So it can be deleted.. :)
[Redmi Note 2 General] DarthJabba9:
Yes, I have just noticed that it is deleted as part of the skinny process. But my real concern is that this is just the tip of the iceberg, and that there may be any number of other processes trying to do the same thing. The skinny boot images by [MENTION=5952980]jajk[/MENTION] do a great job in trying to stop other "dial home" activities - but it may be that one needs to just block all access to xiaomi sites.