yashsingh1/xdaforums huggingface dataset:
[Redmi Note 2 Android Development] jajk:
[MENTION=6068190]IshtaNoob[/MENTION] You are not far off getting the phone fairly clean of unneeded services running. Her are my suggested improvements:

SD Maid - running - disable autostart if not done already

com.mediatek.atci.service - disable autostart (this is the AT command interface to the modem mainly for engineering mode use - it will still start if it needs to)

com.mediatek.omacp - disable autostart ( this is a generally unused WiFi protocol that will still start if needed)

com.xiaomi.metok - uninstall completely

com.fw.upgrade.sysoper - uninstall completely

***com.miui.securityadd - uninstall completely

***com.miui.guardprovider - uninstall completely

***com.lbe.security.miui - uninstall completely

com.miui.stepsprovider - uninstall completely (footsteps monitor - I think this needs a sensor that we do not have)

com.mediatek.batterywarning - uninstall or freeze (bizarrely consumes battery and achieves nothing)

Amplify - disable autostart or uninstall when no longer needed

*** This will remove the stock (crap) virus scanner. Replace with something of your choice if you really need one.

[MENTION=5850987]DarthJabba9[/MENTION] I installed BetterBatteryStats and get 99% + Deep sleep. It did show up the stock Calendar is a bit too restless for my liking so it is going bye-bye. The only other significant noisy apps are Gapps related stuff. Google is progressing towards being a malicious virus in its own right slowly but surely!
[Redmi Note 2 Android Development] jajk:
Skinny_Pro_MIUI7_7510-experimental_boot.img uploaded

Changelog:

Altered watchdog timings from 0 20 30 to 0 35 40. This kicks the dog less frequently so should result in less background activity hence better battery life. The values cause the watchdog to be kicked every 35 seconds with a window of 40 seconds before a reboot is forced. If Android crashes, your phone will not auto-reboot for 15 seconds longer than stock settings - do you care? I don't;)

Altered default /proc/sys/vm/dirty_expire_centisecs and /proc/sys/vm/dirty_writeback_centisecs to 300 and 500 respectively - up from the default 200 300. This reduces the overall amount of activity in writing to RAM so should result in battery savings. This is commonly set by the init.d script but embedding it in the ramdisk allows the settings to only be set once rather than being set at boot and then overwritten by init.d script at end of boot. You can still override the setting in init.d script if you don't like this setting.

The Roll your own Skinny thread has some added info: http://xdaforums.com/showpost.php?p=68105374&postcount=624

Updated busybox installer is in post 2 of that thread Edit - Postponed

Stock Calendar app is gone with all its associated services and replaced with an old-time favorite ColorNote. No wakelocks or data leakage from the Calendar now:laugh:
[Redmi Note 2 Android Development] DarthJabba9:
Wow! 99% ! That's what I call a result. I don't think I'll ever get that close - I have too many apps running in the background - including WhatsApp ...
[Redmi Note 2 Android Development] Dr Grato:
in the google drive, MIUI 8 file, it can be use in all MIUI 8?

---------- Post added at 09:55 AM ---------- Previous post was at 09:21 AM ----------

by uninstall completely, how can i do that? and another things, u asked to prepare a text contain tweak u gave in the OP, the text thing need to be place in init.d file or put it in build.prop?
[Redmi Note 2 Android Development] IshtaNoob:
[MENTION=5952980]jajk[/MENTION]

Funny fact about Amplify: out of 64k wakelocks detected, it blocked 47. Looks useful: p
[Redmi Note 2 Android Development] DarthJabba9:
You uninstall completely by using an app that can uninstall system apps - e.g., Titanium, SD Maid, etc. The tweaks should be in init.d scripts.
[Redmi Note 2 Android Development] jajk:
[MENTION=6068190]IshtaNoob[/MENTION] Whatever works best for you:)

I don't like running extra apps to get better performance or battery since most of the gains are consumed by the extra activity caused by the apps. Some apps are useful diagnostics to identify what needs to be changed (as I have just done for myself with BetterBatteryStats and then uninstalled it). Most tweaks can be done manually and don't download ads or send stats to who-knows or keep your phone awake.

[MENTION=5850987]DarthJabba9[/MENTION] Yes 99%. I need this level of tweaking to get 7hrs SOT otherwise I will run aground or get lost coming back from fishing trips - you will then have to take over the thread.

RN2 makes a good GPS if nothing else:laugh:

Not that my phone every gets beyond using 3 cores, I set a limit of 4 cores at 1950MHz max. This limits power consumption (by cpus) to half maximum unrestrained power - sort of an insurance policy should the phone try to go feral on me.

MIUI8 stable on 16th August apparently. Will we be surprised and see it rebased on Marshmallow? Let's see if Xiaomi disappoints yet again? It has been a long drawn out process so far to get a horizontal notification area:laugh::laugh::laugh:
[Redmi Note 2 Android Development] IshtaNoob:
If they intended on changing to marshmallow, the developer version would already be on it, i think...
[Redmi Note 2 Android Development] DarthJabba9:
Well, we wouldn't want you to run aground or get lost now, would we? :eek: The Australian coastline is a very big place to get lost!

Do you have wifi and 4G on when you get 7 hours SOT?
[Redmi Note 2 Android Development] Dr Grato:
Thanks mate. Howeve, i find that some apps i didnt have it in Titanium Backup and i assumed it is not in my phone. So, i wanna have ur oppinion about how my phone running. How can i do that? Screenshot Betterbatery stats result? Do something related in SD Maid?(i am not sure so hope u can clarify me. Read past post but just to make sure im in the right path)
[Redmi Note 2 Android Development] DarthJabba9:
If you can't find it in Titanium ("Uninstall all user & system apps ....") then it is not there.

Yes, screenshots from BetterBatteryStats or GSAM Battery Monitor will reveal a lot about what is going on.
[Redmi Note 2 Android Development] Dr Grato:
well thanks again. u r very helpful.
[Redmi Note 2 Android Development] jajk:
Also, when trying to see how well things are going, issue the getprop command in a terminal app and see the list of int.svc tasks running. These are the services that are started by boot (in the boot.img).

DisableService is another excellent app that is often forgotten. Useful for not only disabling things but just to see what is running at a level below what is normally visible. A good, clean app with no ads and terminates when you close it (it does not need to be running all the time). Warning: Guaranteed to make you very angry with Google:mad:
[Redmi Note 2 Android Development] Dr Grato:
Why i feel my ram running out fast? What do i need to look to? Apps running? Or maybe i did wrong step in setup?
[Redmi Note 2 Android Development] jajk:
[MENTION=6264717]Dr Grato[/MENTION] Skinny disables MIUIs attempt at a fancy zram and does not fix the dreadful stock LMK values.

I recommend setting up zram and fixing lowmemorykiller values in your init.d script. These 2 items fix the O.S memory handling issues but....

MIUI is a memory hog and Android 5.02 is not good at reclaiming used memory (memory leak), together these conspire to make the available memory less than ideal. But wait, there's more....

Having a 1080p screen resolution increases the amount of memory needed for every app quite considerably - the price we pay to boast about having full HD instead of just a good quality screen.

A rule of thumb - every app will consume around 250MB of RAM. If you divide your free memory by 250MB, the result indicates how many (more) apps you can run in memory before LMK will start killing things.

A Skinnied ROM typically gives you the space to run 2 apps more than stock.

[MENTION=5850987]DarthJabba9[/MENTION] I have 4G on but data disabled. I was just thinking after the last trip that I should switch to 3G since 4G reception vanishes as soon as I go offshore anyway.
[Redmi Note 2 Android Development] jajk:
7.5.5.0 link:

https://yadi.sk/d/xTwd9uh3u9oQx

6.8.11 eu link:

https://yadi.sk/d/sVrMUiANu9mq6
[Redmi Note 2 Android Development] Gyovany96:
Wow ! How did you get it ? It's not even released on xiaomi.eu
[Redmi Note 2 Android Development] jajk:
Skinny_Pro_MIUI7_7550_boot.img uploaded - this is compatible back to 7.5.10

Skinny_Pro_MIUI8_6811_boot.img uploaded - this is compatible with all MIUI8 so far

Both the above images are preferred over previous releases since they include the latest kernel offerings from Xiaomi.

[MENTION=5216574]Gyovany96[/MENTION] Magic;)
[Redmi Note 2 Android Development] DarthJabba9:
Great! Presumably one can dirty flash this over 7.5.1.0?
[Redmi Note 2 Android Development] jajk:
[MENTION=5850987]DarthJabba9[/MENTION] This is MR version so is deodexed. I wouldn't dirty flash unless it was over MR7510 but no harm in trying since you can always reload your current backup:laugh:

I just reloaded old backups of MR7230 and MR7320 to see how they stack up to the current ROMs. 7230 feels a bit weak but 7320 is as good as the new crop still. How far we haven't come Xiaomi!!!
[Redmi Note 2 Android Development] DarthJabba9:
I am having issues with Gmail not syncing under 7510 properly (unless done manually) - perhaps something I changed. I also prefer the extras on the boot menu (including reboot to recovery) under 7320. But if I am going to revert or change, I would prefer to upgrade - but I probably should wait for miui 8 official release. Let's hope miui8 ROMs are better.

The Holy Grail in all this is to be able to write a script (upgrader-script or shell script) that will skinnify a ROM automatically. I do have drafts of such scripts, but I won't try them until I have time to burn ...
[Redmi Note 2 Android Development] ser.clansman:
I've written such a script, tested it on previous builds... I can share it later when I have tested it with these freshest updates from today if anyone is interested... :cyclops:
[Redmi Note 2 Android Development] vaselor:
Yes please, share them! [emoji14]
[Redmi Note 2 Android Development] Dr Grato:
i might be messed up with the init.d. can someone check whats wrong with mine?
[Redmi Note 2 Android Development] Sleepy_Augie:
I would try and test the miui 8 boot image, but I got stuck in a hard brick right after flashing it (no access to recovery, and running on zero battery so fastboot is useless)... :(

Once again using my good old trusty galaxy nexus running mm.
[Redmi Note 2 Android Development] DarthJabba9:
Why do you think that anything is wrong with it? I cannot see anything wrong with it.

---------- Post added at 06:21 PM ---------- Previous post was at 06:21 PM ----------

Please share it. At least, I can compare it with mine!
[Redmi Note 2 Android Development] ser.clansman:
Here it goes, it should be probably be cleaned up a bit, hopefuly I haven't missed to much bloat... There are some google stuff deleted... it worked for me with official developers miui's 11.8.16 rom...

all the usual caveats apply, you risk bricking your devices although it's highly unlikely... should be flashed after at least first boot up...
[Redmi Note 2 Android Development] jajk:
[MENTION=6264717]Dr Grato[/MENTION] No glaring mistakes in your script.

[MENTION=7150090]Sleepy_Augie[/MENTION] No such thing as a hard-brick on this phone. Use SP Flash Tools to get out of trouble unless you want a new phone (non-Xiaomi I would hope)

[MENTION=3761200]ser.clansman[/MENTION] [MENTION=5850987]DarthJabba9[/MENTION] The "Holy grail" is to skinny the ROM before install. The hurdle is to get past the initial setup screens. Xiaomi do a pretty good job of tying you into their software (at least for the first boot). You will always hit the problem that every user will have a whinge about the choices you made in your scripts and blame you for failures when they mess up their phones with Xposed and restoring Titanium backups etc. Still an interesting exercise to produce a script to almost instantly skinny the installed ROM:good:
[Redmi Note 2 Android Development] Dr Grato:
Thanks guys for checking. :) Because im currently lacking of RAM. My pokemon go is not smooth anymore. Maybe i need to change ROM. Cause i used Lspeed and govtuner. So maybe things too much inside phone.
[Redmi Note 2 Android Development] vaselor:
I'm curious. What brand would you buy instead of Xiaomi, [MENTION=5952980]jajk[/MENTION]? (Sorry for the off topic)

Enviado desde mi Redmi Note 2 mediante Tapatalk

---------- Post added at 02:05 AM ---------- Previous post was at 02:02 AM ----------

And excuse me for not having introduced myself. I've read all this threat and find it fascinating. Thank you very much for your work. I want to make some tests with my own battery life, I'll post results here.

Regards.

Enviado desde mi Redmi Note 2 mediante Tapatalk
[Redmi Note 2 Android Development] Sleepy_Augie:
Yeah, guess not. Closest I've ever got to one tho, and its gonna be a hassle since I can't charge the battery. Does sp flash tools work different from fastboot, because fastboot won't do anything without a bit of battery?
[Redmi Note 2 Android Development] jajk:
[MENTION=7150090]Sleepy_Augie[/MENTION] SP Flash is different, it requires the phone to be off and powers the core thru USB. You need the SP Flash Tools software plus the specific USB drivers for the PC and obviously a ROM or at least sufficient partition images to get you back into TWRP.

[MENTION=7117356]vaselor[/MENTION] In the

dirt cheap China phone

category, I would be looking at TCL, UMI or even Ulefone ahead of Xiaomi now that their quality has come up. I would definitely insist on a naked Android (without the 2nd GUI wrapped around it) and a proven track record of updating Android on older models.

[MENTION=6264717]Dr Grato[/MENTION] Set up a 512MB zram swap (and swappiness set to 100)
[Redmi Note 2 Android Development] DarthJabba9:
SP Flash Tool normally requires the battery to be removed. As long as you have the MTK VCOM drivers installed, a decent "scatter file", and a suitable ROM (i.e., with everything in suitable .img files) it is the best way to debrick a router.

---------- Post added at 08:06 AM ---------- Previous post was at 07:57 AM ----------

If you are looking for a suitable ROM that also has a decent scatter file, download this: https://mega.nz/#!K41W1byA!29m5yy2V1adP3QEVgGi_g9aB0uUrEwfCpoLoggQRCho

This is an example of my skinny version of MR-7230 ROM (posted in June). Unzip the archive, and you have all you need to recover the phone - MT6795_Android_scatter.txt, and all the necessary .img files. Once you recover the phone, then you can flash whichever ROM you want in the normal way.
[Redmi Note 2 Android Development] Dr Grato:
can i ask u guys, what rom u guys using now? that works with this skinny.
[Redmi Note 2 Android Development] jerryshaw12:
Maybe someone could make AROMA installer just for slim down miui through recovery by add option in it
[Redmi Note 2 Android Development] DarthJabba9:
Maybe someone will do it one day. In the meantime, I have attached my TWRP update-zip version. I have tested it on Miui 7.5.5.0, and the phone survived the experience. It should be fine with Miui 7 ROMs from 7.2.3.0 onwards (perhaps earlier).

Note: this should not be used before first boot. It is best to boot up a newly installed ROM, make sure that everything is working correctly, then reboot to TWRP and then installing this zip.

This worked okay for me. Your mileage may vary. Be sure to backup everything before trying this.
[Redmi Note 2 Android Development] jajk:
[MENTION=5850987]DarthJabba9[/MENTION] [MENTION=6264717]Dr Grato[/MENTION] Automated wiping Cache & Dalvik as part of the TWRP version would be good. Also writing the modified perfservscntbl.txt and maybe even a basic (non-cpu or ROM dependent) init.d script would be handy too? There will always be some leftover work to do manually but most users will not notice the difference once 90% of the work is done by a script such as has been demonstrated.

I am sitting on 7510 for a while longer since I am data challenged.
[Redmi Note 2 Android Development] DarthJabba9:
Indeed. I am using a script-based rather than a binary "update-binary" in my package (great idea, borrowed from SuperSU installer). This enables me to avoid a bloated binary just to delete a few files and directories. Wiping cache and dalvik is a simple matter of adding "rm -rf /cache" and "rm -rf /data/dalvik-cache" to the script. However, I haven't quite worked out how to copy over files from the installer to the system. I don't want to revert to using a binary update-binary, so I will investigate this a bit further and see what I can learn.
[Redmi Note 2 Android Development] DarthJabba9:
Postscript: I have now learned how to copy files over. The attached now does it all - wiping cache and dalvik automatically, and writing the modified perfservscntbl.txt.
[Redmi Note 2 Android Development] jajk:
[MENTION=5850987]DarthJabba9[/MENTION] Indeed. The SuperSU installer script has a wealth of techniques to do anything and everything imaginable with a script. I have been known to borrow from it occasionally as do many others;)

What more could a person want:good:

Maybe add /system/etc/permissions/platform.xml with altered permissions to write external storage and remove debugging from /system/etc/bluetooth/bt_stack.conf - These 2 files remain the same regardless of MIUI version so far so can be done this way. There are a few others that I edit for my own circumstances that would not be universally appropriate.
[Redmi Note 2 Android Development] DarthJabba9:
Done - see attachment. This one also fixes a bug in the script, and so should be used instead of any of the earlier versions.
[Redmi Note 2 Android Development] jajk:
New busybox installer uploaded - see http://xdaforums.com/showpost.php?p=68194243&postcount=636 for details.

https://drive.google.com/open?id=0BwdRTuyj12_yclBVNHZYRnJ4VTA

[MENTION=5850987]DarthJabba9[/MENTION] Now we need an innocent victim volunteer to test this out on a freshly installed ROM without the foreknowledge that we have.
[Redmi Note 2 Android Development] DarthJabba9:
Well, I did test it (an earlier version of it) out on a freshly installed 7550 (dirty-flashed over 7510 - but having commented out the installer for GAPPs and SuperSU in the updater-script) - but not before first booting up to see that the ROM actually boots up properly (which required removing both SIM cards and external SDCard), after which I installed GAPPs and SuperSU manually.

Like you once said, the Holy Grail is skinnifying before installation. I am not sure whether this will ever work.
[Redmi Note 2 Android Development] jajk:
[MENTION=5850987]DarthJabba9[/MENTION] I am sure you did test it but you know what you are doing and what to expect. It is the minor details like commenting out Gapps that make the difference. Often mentioned but few take on board advice and fall into the same traps over and over again - luckily there is CM for them;)

How is 7550 in comparison to 7510?
[Redmi Note 2 Android Development] DarthJabba9:
Indeed. I too learnt the hard way ...

The main difference seems to be better RAM management with 7550. In 7550 I generally get about 400mb

extra

free RAM.
[Redmi Note 2 Android Development] jajk:
[MENTION=5850987]DarthJabba9[/MENTION] Could it be that MR7550 is deodexed whereas Global Stable (non-MR) 7510 is not:confused:

I noticed the considerable drop in available memory going from deodexed 7320 to odexed 7510. I much prefer deodexed ROMs.

16th August came and went with no release of MIUI8 stable - no surprise there really. What's Xiaomi's corporate motto?

"Make you feel like something wonderful is about to happen"

I translate that as you will order a better brand of phone and be looking forward to it arriving:laugh:
[Redmi Note 2 Android Development] DarthJabba9:
Yes, 7550 is deodexed and 7510 isn't. That probably explains the differences in available memory.

As for Xiaomi, no, I am not surprised that miui 8 was not released yesterday. Let's just say that Xiaomi+MTK is not a brilliant combination for those who like to squeeze the best optimisation for their phones. I have come to the conclusion that Snapdragon is the preferred chipset for tinkerers ...
[Redmi Note 2 Android Development] jajk:
[MENTION=5850987]DarthJabba9[/MENTION] I buy cheap (disposable) phones for a reason and no, I am not a drug dealer:cool:

I have modest expectations of these cheap phones but never a Xiaomi again....even if it has a Qualcom SoC. As far as MTK goes, it is not the major issue as other brands have successfully provided up-to-date O.S with good performance and battery to rival Qualcom. It falls back on the manufacturer to put the effort into supporting their product for more than the pre-release marketing period.

The issue with Xiaomi is that it has not come to terms with the global market and still thinks it can ride rough-shot over its customers as it can in China.

What doesn't get much of a mention are the design flaws, poor engineering, low quality parts etc.

Who has pending vol and pwr switch failures?

What use is a bottom ported speaker?

Anyone notice the screen quality is less than its rivals?

Sunlight readability issues?

Q: What is the opposite of waterproof or even water-resistant?

A: Xiaomi phones.
[Redmi Note 2 Android Development] DarthJabba9:
Same here. I have a plethora of cheap Chinese phones, acquired over time - and I haven't yet managed to kill any of them. I am running Resurrection Remix Marshmallow on my old Zopo MTK phone, which is beyond anything I ever expected for that phone. I had higher hopes for the RN2 though. I did a bit of research before buying it and thought it had great 3rd party firmware support; which it does - up to a point - but without the manufacturer's support via release of kernel sources, it's an uphill struggle.
[Redmi Note 2 Android Development] jerryshaw12:
I think i am very oot right now

I want to download MR 7550 but i can't find it, i want to download it because i think it's recommended with this boot.img
[Redmi Note 2 Android Development] DarthJabba9:
This was posted earlier.
[Redmi Note 2 Android Development] ThunderBird891:
Hey guys, as I am running ROM 7.5.3.0 from Xiaomi.eu - which image should I use? 7510 or 7550 - I cannot find image 7530?

P.S. - Also after reading some more of the explanations in the two threads regarding the Skinny, I want to ask also:

- Can this be installed on Xiaomi.eu roms?

- After flashing the image, I still need to do the changes in some files and create the init.d script?

- If I upgrade my ROM to MIUI v8 I will have to do the procedure again?

- When I am doing it on already installed and running ROM (not new installation) which steps should I follow - those in this thread , or those in :"Roll your own" SKINNY MIUI - Revised 09/04/16
[Redmi Note 2 Android Development] DarthJabba9:
Only [MENTION=5952980]jajk[/MENTION] can answer that definitively.
[Redmi Note 2 Android Development] jajk:
[MENTION=4372473]ThunderBird891[/MENTION] 7550 image will do all 75xx ROMs. Of course the image can be installed on an EU ROM but do note that any customization to the ROMs original ramdisk (the init scripts) will be lost- this applies to all ROMs. Mostly this is a good thing since a lot of ramdisk customization is crap that has been floating around for years and is not appropriate.

Do make an init.d script to fix the Interactive Gov and LMK setting and edit the /etc/perfservscntbl.txt as a minimum. Everything else is just icing on the cake.

If you install MIUI8, the same process all over again.
[Redmi Note 2 Android Development] jajk:
MIUI8 EU 6.8.18 for anyone who wants it.

https://yadi.sk/d/rE8D1WpkuKQDB
[Redmi Note 2 Android Development] Brkge:
Is It only rom or does It contain your boot image?

If I setup your boot image on a rom will I be able to update then install the image again?