yashsingh1/xdaforums huggingface dataset:
[Redmi Note 2 General] krlenjuska:
i guess i deleted something else important. i have contacts and dialer but cant make call-no sound at all. im new in this so i need to learn on my mistakes :D

think i will return to 7.2.3.0 global version with boot.img file from jajk and start from there step by step.

just one question to you guys-i can remove apps in android with some app remove application? is this same as remove apps from ROM before installation?
[Redmi Note 2 General] Xabadou:
Some apps can be deleted before installation, but is better to do it after.

Fist setup requires more apps to work properly.
[Redmi Note 2 General] jajk:
Just to clear up a potential source of confusion: When referring to ROM versions, be very specific as to where it came from i.e. MR (MultiROM) 7.2.30 is not the same version as China or Global 7.2.30. The MR version was originally ported from RN3 phone so the version numbers to not match that of RN2 based ROMs.

Each ROM tends to have its own set of apps, peculiarities and bugs hence the user experience being different when trying to skinny it down. Backups are your friend here and a knowledge of how to restore removed components if need be. Community input is really helpful in solving problems and is appreciated:good:
[Redmi Note 2 General] krlenjuska:
Thanks for information. Jajk dont worry about versions-i know MR 7.2.3.0 is from rn3. I will use Miui global 7.2.3.0
[Redmi Note 2 General] eric2:
I'm using a Redmi-2, so a different phone and different MIUI (and probably also different base Android version) as you. This Skinny MIUI has also my interest, but tell me if my question is inappropriate here.

Since MIUI's stable version 7.1.x (or development version somewhere in november/december 2015) background tasks like WhatsApp and Telegram get killed often.

Now, normally this is not a problem if GApps is installed. Because Google's gcm will notify me of new messages. But I have uninstalled GApps, so I will not be notified of new messages until I manually restart WhatsApp and Telegram.

My question is, what can I tweak to change this memory management behaviour of MIUI?
[Redmi Note 2 General] acestars:
In developer option set memory optimization to off and if you have root you can tweak the LMK to multitasking mode using lspeed or something similar.
[Redmi Note 2 General] jajk:
[MENTION=5954429]eric2[/MENTION] Changing apps to system apps also helps them not to be killed. The majority of what applies to RN2 will also apply to R2 since the MIUI component of the O.S is the same across all phones and MTK/ALPS built ROMs are very similar in their unrefined nature - designed to cover a lot of different devices poorly rather than one device well. Post your boot.img and I can mod it with at least the basic Skinny Mods for you to try.
[Redmi Note 2 General] Adam Hui:
Been setting "Power Saving Mode" to "Advanced" which means MIUI will automatically restricts all background apps when possible, so killing act will be tightened but my WA, BBM & many apps i wanted it to TSR & active were not killed.

It becuz i set it all enable to autostart.

Security > Autostart > choose to enable.

Skinnied MR 7.2.3.0, hermes prime.

*] front LED holographic keyboard >> another dream in android
[Redmi Note 2 General] krlenjuska:
unfortunately i dont undersand 90% of this. i dont know what is boot.img or everything else. i just wanna try to create rom with decent battery time but i just cant do it. i tried 15 ROMs so far and i cant get more than 2-2,5h SOT. TBH main problem is idle-i want to decrease idle consuption but i just cant. Sometimes idle consuption is 10-15% over night(depends of ROM). Maybe i have bad battery?

My laters ROM is A&D 7.0 and i have wakelock issues here. Screen awake is more that 10% and thats more than other roms.

Any suggestion? Where i should start?
[Redmi Note 2 General] jajk:
[MENTION=7467903]krlenjuska[/MENTION] You have to know what is running to consume the battery. WakeLock Detector app is a good start and SD Maid to freeze or uninstall any unwanted running apps or alter their autostart behavior. Battery consumption tends to follow the amount of running processes on the phone (whether you are aware of them or not).
[Redmi Note 2 General] acestars:
You can visit and follow the instructions here http://xdaforums.com/showthread.php?t=3095884

I have almost 0 (zero) battery consumption after followed the instructions.
[Redmi Note 2 General] krlenjuska:
I know about wakelock detector. however many ROMs have issues with some wakelocks(EINT_wakelock, md1_cldma_peer....). I dont know what there are but i think its related to wifi. Anyway i will try to follow that link and see whats gonna be.

Thanks for your help!

Edit: i tried to install xposed but i get bootloop. Tried several times and no luck

Edit #2 : managed to install xposed. problem was related to xposed version
[Redmi Note 2 General] kristiantokarim:
Can I flash this boot.img with MIUI 6.5.19 developer rom?

I don't know if i can flash this with official miui redmi note developer rom, because when I try it, my redmi note 2 got bootloop ..
[Redmi Note 2 General] krlenjuska:
See first post-developer roms are not best choice for this.
[Redmi Note 2 General] kristiantokarim:
may I ask for link of your ROM that already skinnied ? (: thanks
[Redmi Note 2 General] jajk:
[MENTION=7509423]kristiantokarim[/MENTION] It is near impossible to offer a comprehensively skinnied ROM as a finished item since the first time setup screens require the majority of Xiaomi bloat and spyware to be present at that point otherwise boot will fail. Also, each and every user has their own inclusion and exclusion requests - this is why this thread shows you how to make your own;)
[Redmi Note 2 General] kristiantokarim:
Actually I just always fail to flash the boot.img kernel, my device always got boot loop. I just need the rom that skinnied to stage 2, and i will do the stage 3 (:
[Redmi Note 2 General] DarthJabba9:
Ok (against my better judgment) I will make my own personal Skinny ROM available (see links below). This was created for my own personal use, and is tailored according to my own personal preferences. Take it (or leave it) as it is. It is based on

MR-7230

.

The downloads below are

TWRP install zip files

(i.e., you need to install them from TWRP recovery). If you don't know how to install ROMs from TWRP recovery, then stop now!

1.

System only

: (wipes system only, and then installs - system and skinnied boot only)

https://mega.nz/#!K41W1byA!29m5yy2V1adP3QEVgGi_g9aB0uUrEwfCpoLoggQRCho

2.

Full Install

: (wipes system, cache, dalvik-cache, and then installs - system, skinnied boot, logo, recovery, preloader, and a handful of 3rd party apps)

https://mega.nz/#!WxtTibRZ!xEmOJ1WiqV7gisuYLLY17csQvW6IkPlRS_lQqaU9efo

Edit

: see post #583 for a fix of a problem with setting the lockscreen pattern.

NOTE:

Both of these downloads contain exactly the same files, but each has

a different updater script

, which determines what is installed. There are 3 different updater scripts, and if you are knowledgeable enough, you can download and unzip just one of them, and then replace the updater script with the version you want, and then zip the file again. Yeah, I know that one can produce a complicated Aroma script that allows you to select dynamically what to install. Didn't I say that these packages were created for my own personal use?

IMPORTANT

: I

do not and will not offer any support for these downloads

. They work perfectly fine for me, but your mileage may vary. Use at your own peril. If your device gets bricked, do

not

ask me for advice. I will not know how to advise you, and I will not even attempt to do so. All you will get is silence.

INSTALLATION:

It might be a good idea to wipe data and cache before installation (but if your current ROM is based on MR-7230, then you may not need to wipe data).

FINALLY:

1. I have no desire or time to be a ROM "cooker" for this device. So, all suggestions of what to add, what to remove, new releases, etc., will simply

get the silent treatment

.

2. If this works for you, excellent. If it doesn't work for you, just delete it. Did I say that I have no intention of offering any support for this?
[Redmi Note 2 General] kristiantokarim:
THANKYOU SO MUCH !!!!:good::good::good:
[Redmi Note 2 General] krlenjuska:
[MENTION=5850987]DarthJabba9[/MENTION] i tried your ROM (2nd link) and this seems very good. however i dont understand this part about 3 updater scripts. i see 3 files in there but what i should do? should i just install as it is or i should choose 1 file and cook zip again?
[Redmi Note 2 General] DarthJabba9:
You only need to cook the zip if you want to do something different from what I have done. As described, link #1 installs only system and boot. Link #2 installs a lot more. In each case, I have decided what it installs, and this is tailored according to my own needs. If you are happy with my choices, then just install it as it is. If not, then you have to cook the zip by either editing the updater-script, or copying one of the others over it, and then zip again.
[Redmi Note 2 General] krlenjuska:
TBH i dont understand difference here-im not in this long enough so... i tried file from link 2 and i will try from link 1. i dont know what is difference in 3 updater-scripts. also i dont know what is in boot.img

total noob-what can i do :D

however i know how to cook zip file. at least something :p
[Redmi Note 2 General] DarthJabba9:
The boot.img is Skinny Pro v15 from [MENTION=5952980]jajk[/MENTION] with my own minor modifications.

If in doubt, just install the file from link 2. If the file from link 2 doesn't help you, neither will the file from link 1. Like I said, both files have exactly the same content - the only difference is what is installed by the updater script.
[Redmi Note 2 General] krlenjuska:
[MENTION=5850987]DarthJabba9[/MENTION] i have strange issues with your ROM. i cant set screen lock pattern because settings stop if i try to use this option. also charging is much longer. do you have similar issues?
[Redmi Note 2 General] DarthJabba9:
I have just checked, and I also get crashes on the screenlock password/pattern menu. :( This is strange - but I haven't changed my screenlock pattern for ages, so I don't know which point of my skinnifying process this developed (probably somewhere back in March - I have an earlier version (early March) running on the wife's phone, and this problem does not occur there).

Solutions? One option is to revert to an earlier version - but I have no interest in doing that. I have put in too much effort since early March, and I will not lose all that effort. Another option is to use a 3rd party screenlock app (of which the choices are unlimited on the Play Store).

If and when

I find a solution to this that

does not involve reverting to an earlier version

of my ROM, then I will post it. But this is not a priority for me, especially since 3rd party screen lock apps would do the job just as well. If using a 3rd party app for this bothers you, then you can always return to your original ROM. TBH, if I could have gotten rid of the MIUI settings app completely, I would have done so long ago. Another option is to wipe your data (which is a good thing to do after changing ROMs).

This is probably the real solution

, but, again, I have no interest in doing that.

As far as slow charging is concerned, do not be deceived by apparently fast charging (it only leads to fast battery drain). I never believe it when the charge apparently reaches 100%. I still leave it charging for about 30 minutes to an hour afterwards. The result is seen in how quickly or slowly the battery drains afterwards. This has been observed by others in this forum.
[Redmi Note 2 General] krlenjuska:
Ok thanks for explanation about battery.

About lock pattern-its not something important-and yes i can use 3rd party app.

Anyway thanks
[Redmi Note 2 General] DarthJabba9:
You're welcome. Is everything else okay?
[Redmi Note 2 General] DarthJabba9:
[MENTION=5952980]jajk[/MENTION] I have compared the current system folder with the one from early March (in which trying to change the screenlock pattern/password does not crash the settings app) and these are the differences

Only in 20160317/: addon.d
Only in 20160317/app: FingerprintService
Only in 20160317/app: FTPreCheck
Only in 20160317/app: GuardProvider
Only in 20160317/app: jjcontainer
Only in 20160317/app: jjhome
Only in 20160317/app: jjknowledge
Only in 20160317/app: jjstore
Only in 20160317/app: MusicFX
Only in 20160317/app: PowerKeeper
Only in 20160317/etc: radvd
Only in 20160317/lib: libcaFingerPrintShared.so
Only in 20160317/lib: libcom_fingerprints_service.so
Only in 20160317/lib: libfamily_jni.so
Only in 20160317/lib: libjeejenmsc.so
Only in 20160317/lib: libpatcher_game_jni.so
Only in 20160317/lib: libvoicerecognition_jni.so
Only in 20160317/lib: libvoicerecognition.so
Only in 20160317/lib: libwhetstone_jni.so
Only in 20160317/lib: libwhetstone_sdk.so
Only in 20160317/lib: libxiaomimediaplayer.so
Only in 20160317/lib64: libairtunes_jni.so
Only in 20160317/lib64: libairtunes.so
Only in 20160317/lib64: libBankCardRecognizer.so
Only in 20160317/lib64: libduokantext.so
Only in 20160317/lib64: libjni_pacprocessor.so
Only in 20160317/lib64: libweibosdkcore.so
Only in 20160317/lib64: libwhetstone_jni.so
Only in 20160317/lib64: libwhetstone_sdk.so
Only in 20160317/lib64: xmpass_libweibosdkcore.so
Only in 20160317/vendor/lib64: libcom_fingerprints_productiontestmanager.so
Only in 20160317/vendor/lib64: libcom_fingerprints_sensor.so
Only in 20160317/vendor/lib64: libfingerprint_tac.so
Only in 20160317/xbin: tunman

I am guessing that the ones causing the problem may be the "fingerprint" libraries, even though I know why they should cause the problem (but the menu reads "password & fingerprint"). I can see less why any of the others should cause the problem. I am going to try restoring these one by one - but before I start, I just wondered whether you had any thoughts on this? Thanks.
[Redmi Note 2 General] DarthJabba9:
Ok, I restored all the fingerprint files, and the problem is gone. Weird :rolleyes:
[Redmi Note 2 General] DarthJabba9:
From the start, I believe. I had noticed it before, but forgot to query it.
[Redmi Note 2 General] jajk:
[MENTION=5255952]hr21[/MENTION] Copy the boot.img file to the phones internal storage. Boot into recovery and choose "Install". Select "Install Image" and navigate to the boot.img on sdcard and select it. Now select the "Boot" partition as the destination and swipe to confirm flash. That's it - no wipes required, just reboot to system.
[Redmi Note 2 General] mikkelson:
[MENTION=5952980]jajk[/MENTION] Rom was 7.1.4 chinese version and I used App Manager and other tools that comes with Rom Toolbox Pro. I tried wiping dalvik and cache but that didn't help. Gapps package was nano and I didn't restore any apps. I don't know if using external sd card was a bad choice because when I tried to restore stage 2 backup, it didn't succeed before third try. And after restore I did not get my app manager to delete any system apps anymore, so it didn't work very well. Now I have got my phone stable by doing everything over from the beginning, but I didn't delete any apps, I only froze them so that I could defroze if problems would come out..

What app do you recommend to toggle autostarts off that you mention in stage 3. Is it same thing if I toggle receivers off from those apps with advanced freeze. I've also frozed the app store app and didn't have any issues with that.
[Redmi Note 2 General] anguslaw:
hi, thanks for this tutorial, it works great on my 7.1.4 chinese stable. But I encouter a problem, my google account didn't sync my contact to my phone, can you help me out?
[Redmi Note 2 General] jajk:
[MENTION=4698415]mikkelson[/MENTION] Toggling autostarts is the same as toggling receivers. I use SD Maid for that but Rom Toolbox is equally capable to do this.

Do you get any frozen apps still starting? Freezing App Store for me will stop the phone booting.

It is relatively easy to corrupt the file system which will cause the type of problems you describe. In TWRP, go into advanced wipe and choose to repair flie system on cache, data and system in that order. If you get an unrepairable error, just reboot and try again - it will fix itself.

[MENTION=399136]anguslaw[/MENTION] What version of Gapps did you put on? I have no problem when using open gapps pico. The process does not remove or turn off anything critical to Gapps. Have you been able to log on to create your Google account on the phone? If not, enable One Time Init and go into settings, other accounts and create an account.
[Redmi Note 2 General] anguslaw:
Hi, thanks for the reply. I can log in google account and am using the open gapps pico also. Under my account, it shows sync is off. When I press the gear icon on the bottom of the page and press sync now, nothing happen.

Also a new problem now, I cannot open xda premium app.
[Redmi Note 2 General] jajk:
[MENTION=399136]anguslaw[/MENTION] Both of those functions may require tunneling to be running (tunman). I might have stopped that service loading by default in the pre-made boot.img I posted originally. It is corrected in the version that is linked to now. If you used the older boot.img, flash the current one and maybe everything will work? I am only guessing as I can sync without problem.
[Redmi Note 2 General] anguslaw:
Thanks for the quick reply, yes , I used your premade boot.img. I shall download the new one and try now.
[Redmi Note 2 General] jajk:
[MENTION=399136]anguslaw[/MENTION] In TWRP, select Install, then Install Image instead of Install Zip. Now select Boot as the destination partition and swipe to start the flash. No wipes needed.

Let me know if this was the cause of the problem and I will make sure everyone knows.
[Redmi Note 2 General] mikkelson:
[MENTION=5952980]jajk[/MENTION] No, frozen apps don't start anymore. I runned the repairs on twrp and the data partion gave errors, but after reboot it also repaired. Thanks for the info, I've certainly learned new things allready. :)
[Redmi Note 2 General] anguslaw:
hi, jajk, the problem still exists. Could you tell me which rom are you using　ｓｏ　ｔｈａｔ　Ｉ　ｃａｎ　ｔｒｙ　ａｇａｉｎ．　Ｉ　ａｍ　ｕｓｉｎｇ　ｃｈｉｎａ　ｓｔａｂｌｅ　ｖｅｒｓｉｏｎ　７.１.４.
[Redmi Note 2 General] hr21:
Hi jajk, I've done all the steps now and all seems OK, however, when I download new apps from the store they don't seem to update into my launcher (nova) so I can't find them? [seem to appear on a reboot]

Gmail won't sync either.

Wondering why this is happening. Cheers.
[Redmi Note 2 General] DarthJabba9:
I've built my own version of Skinny Miui ROM, using SlimMIUI as a base. Following the instructions in this thread, I deleted all these:

*Analytics

*Back up Home screen layout

*Browser

*com.miui.mipub

*Documents

*Find device

*FwkPlugin

*FWUpgrade

*HTML Viewer

*JeejenMIUIContainer

*Metok

*Mi Cloud

*Mi Drop

*Notes

*PacProcessor

*Pico TTS

*Traffic Control

*Uniplay

*UpgradeSys

*VCalendar

*Voice Unlock

*Weather

*Weather provider

*Whetstone

*Xiaomi Assistant

*Xiaomi service framework

*Yellow Pages

*delete folder /data/miui/mms

*delete folder /etc/jeejen

*delete etc/voicecommand and etc/voiceextension folders if you have removed voice related apps

*delete /system/tts folder if you have removed Pico TTS

*delete folder /system/etc/radv

*/etc/custom.conf - delete (Xiaomi backdoor)

*/etc/fake_cdrom_install.iso - delete file

*/etc/IAmCdRom.iso - delete file

*/etc/whetstonePermission delete folder

I added a few apps (not in /system, but in /data, so they can be easily uninstalled). These include Nova Launcher, 360 Security, File manager, Flashify, SD Maid, Swiftkey, Titanium, GSAM, Firefox, etc.

I have now created a TWRP zip install package to install the Skinny ROM. I have installed this twice, to make sure it is okay, and everything seems to be working well. Whether all this will optimise battery power is another matter. Anyway, if anyone is interested in this , I can upload it "somewhere" (where that "somewhere" is, I have no idea - perhaps on NeedROM, since I don't know whether one can uploads ROMS to this forum). Of course, you are on your own if it doesn't work for you, or it crashes your phone, or the sky falls on your head, etc., etc.
[Redmi Note 2 General] jajk:
[MENTION=399136]anguslaw[/MENTION] [MENTION=5255952]hr21[/MENTION] [MENTION=399136]anguslaw[/MENTION] Turn on "Settings / Sync" first then try "Settings / Other Accounts / Google" syncing.

If you install a replacement launcher like Nova , remember to give it permission to autostart in Security - that may be the problem?

I am using 7.1.4 China stable and don't see the problems some are having.

Let me know what fixes any problem when you discover it please.

[MENTION=5850987]DarthJabba9[/MENTION] If you upload your ROM, you are welcome to link to it in this thread with an explanation of what it is.
[Redmi Note 2 General] anguslaw:
Ｉhave done the steps, but it just cannot sync, there is a grey words saying sync is off under my google account name.
[Redmi Note 2 General] jajk:
[MENTION=399136]anguslaw[/MENTION] [MENTION=5255952]hr21[/MENTION] I am almost out of ideas except maybe it has something to do with network permissions that are tied up in the data usage app (com.miui.networkassistant).

If you have uninstalled it, you can copy back the NetworkAssistant2 folder in the ROM to /system/app and give it 0755 perms for folders and 0644 for files. Reboot and it should be back.

Go into Security and check out the Restrict data usage settings.

I don't have the problem but I have Data usage installed and configured so maybe...

Let me know how you get on, if this is the cause I will remove Data Usage from the list of deletions and mention why.

Edit: Just a late thought.....Have you changed the locale in Build.prop and made sure your time and date is accurate?

Xiaomi (like most chinaphone brands) have really tied Android in knots to make it difficult to remove their backdoors for harvesting your data!!!

A proper firewall doesn't go astray but now Google is trying to kill those off too! I think the "Don't" has gone missing from their original corporate motto.
[Redmi Note 2 General] exiacruzalta:
[MENTION=5952980]jajk[/MENTION]

hey mate i used your boot image but i cant seem to make the init.d work. the test script i use to see if init.d works works fine if i execute them but when rebooted nothing happen. i've tried stericson, busybox on rail but nothing seems to work. what can i do to make it works
[Redmi Note 2 General] anguslaw:
put back the networkassistant folder and still no luck.
[Redmi Note 2 General] DarthJabba9:
Are you sure that your init.d directory and the files in it have the correct permissions? If so, then try introducing some delays (e.g., "sleep 1") here and there in the script
[Redmi Note 2 General] exiacruzalta:
[MENTION=5850987]DarthJabba9[/MENTION] thanks mate but no worries, i managed to make it runs after unpacking the boot image and editing the init.d line. I dont know which that help, either the 'services run-parts', adding one line of command 'busybox run-parts /system/etc/init.d' or deleting some blank lines below the end part (leaving only one blank line).
[Redmi Note 2 General] jajk:
[MENTION=5850987]DarthJabba9[/MENTION] Nothing weird about that - most Xiaomi apps intentionally intertwine themselves with other functions to make it difficult to remove them. Can you narrow it down to a specific file or does it require all of them?
[Redmi Note 2 General] DarthJabba9:
These are the ones that I restored:

/system/app/FingerprintService

/system/lib/libcaFingerPrintShared.so

/system/lib/libcom_fingerprints_service.so

/system/vendor/lib64/libcom_fingerprints_productiontestmanager.so

/system/vendor/lib64/libcom_fingerprints_sensor.so

/system/vendor/lib64/libfingerprint_tac.so

It may well be that they don't all need to be restored - but I would imagine that the real issue is the fingerprint service, and that all these would somehow be involved in that service. I might try to remove them one by one ...