yashsingh1/xdaforums huggingface dataset:
[Redmi Note 2 Android Development] jajk:
[MENTION=4460588]MOVZX[/MENTION] What did you edit and was that to fix seeing thermal / fix thermal or enable init.hermes.power.rc again?

[MENTION=7361449]lukaks69[/MENTION] Be more specific please. Do you have a RN3 or RN2 phone? What CM file did you try? Skinny Pro for RN3 CM12.1 didn't work apparently and I will not be looking into that one any further since I do not have the device.
[Redmi Note 2 Android Development] MOVZX:
I did not enable hermes.power.rc as you suggested to keep it disabled. But I edited mt6795.rc and add some lines taken from stock MIUI Kernel, the thermal is fixed, the device suffers overheating no more, just as cool as stock MIUI. Currently I re-enabled logd (I need it for debugging) and trace.rc, also playing any heavy games running Unity Engine to see if the thermal is really fixed.

Attached are those files I edited, please take some review.
[Redmi Note 2 Android Development] jajk:
[MENTION=4460588]MOVZX[/MENTION] Your addition to default.prop could be added to build.prop instead to keep it out of the ramdisk (more accessible if you want to change it)

# Thermal Fix
sys.perf.profile=1

Your tune2fs and e2fsk lines in init.mt6795.rc have a non-standard path. These files are in /system/bin normally unless you have moved them to /sbin???

I realize now why the original tune2fs lines never worked - the path is wrong in MIUI stock ROM and this has been replicated over to CM. I will have a play with reinstating the lines corrected and adding the more important e2fsk check as you have done:good:
[Redmi Note 2 Android Development] MOVZX:
I place tune2fs & e2fsck inside /sbin because I need it before the mount_all command. I am also using your mount options, but instead of using data=writeback I use data=ordered, data integrity is critical to me as sometimes ROM could encounter random reboot.
[Redmi Note 2 Android Development] jajk:
[MENTION=4460588]MOVZX[/MENTION] You have it all sorted out nicely;)
[Redmi Note 2 Android Development] MOVZX:
Dude, I did some edits again about the thermal and instead of editing default.prop I edited mt6795.rc:

# performance mode switch
# service perfmode /system/bin/thermal_manager /system/etc/.tp/thermal.off.conf
# user root
# group root
# oneshot
# disabled

service normalmode /system/bin/thermal_manager /system/etc/.tp/thermal.conf
user root
group root
oneshot
disabled

on property:init.svc.thermald=running
start normalmode

It now follows thermald service.
[Redmi Note 2 Android Development] lukaks69:
I have rn2, sorry for not saying, I tried the last aosp version and one for cm what I found here, I have cm12.1 by daniel pinto
[Redmi Note 2 Android Development] jajk:
[MENTION=7361449]lukaks69[/MENTION] There is no boot.img for RN2 CM12.1. What I posted was the modified ramdisk files so anyone can create their own boot.img. There are too many variants of CM12.1 to make a perfect image for each so this is a better way. I do not run CM12.1 so cannot test thoroughly or keep up with any subtle changes that may occur. There are plenty of tools to unpack and repack boot images.
[Redmi Note 2 Android Development] MOVZX:
danielpinto build compared to jianminglok build is almost identical (the kernel), I have tried using your edited kernel on jianminglok build and danielpinto; it works well.

Unfortunately I have sold my RN2 and switched to RN3 Pro, thanks for all of your help mate & good luck!
[Redmi Note 2 Android Development] jajk:
Skinny Pro for MIUI version 15 is available. This disables sbchk (safeboot check) that is pointless logging plus disables more lines for sensors our phone does not have. Final version before MIUI 8 is released with Android N as base:laugh::laugh::laugh:
[Redmi Note 2 Android Development] Sleepy_Augie:
Do we know what miui 8 is based off of, (Lollipop, Marshmallow?) and will skinny pro mostly work with miui 8 right off the bat (or will it be a lot more work for you)?
[Redmi Note 2 Android Development] jajk:
[MENTION=7150090]Sleepy_Augie[/MENTION] We will all find out soon enough but regardless of what it is based on, I will rebuild based on the latest MIUI8 boot.img.

Have just gone through porting TWRP and creating a skinny boot.img for a Lenovo Tab 2A7-20F (MT8127 SOC) which starts off with pretty much naked Android but the all too familiar useless bloat apps and Mediatek universal boot.img to suit everything from a dishwasher to a TV. Somewhere in the mess were one or two drivers for the tablet. So it is not only Xiaomi that is hell bent on making their product perform like crap, Lenovo gets full marks from me on that score:(

Almost bizarrely, my other MTK phone (Ulefone Be Touch 3) has the cleanest of boot.img from stock and runs an unadulterated Android once the bloat is removed. However I would warn people away from the brand as the company has not progressed from being the dishonest, low quality fake maker it was under the brand name of Star.
[Redmi Note 2 Android Development] Crim Soukyuu:
[MENTION=5952980]jajk[/MENTION]: Just making sure, did you change anything related to bluetooth at all? I am getting bluetooth crashes/kills (icon shows bluetooth is active without any devices connected; no devices can connect; turning it off won't let me turn it on again for about 20 secs) more often on the current 7.2.3.0 ROM version than I did on the weekly miui.eu ROMS. If you haven't changed anything, is there maybe anything you can do to prevent it from getting killed (if it's getting killed and doesn't just crash)?
[Redmi Note 2 Android Development] jajk:
[MENTION=5898910]Crim Soukyuu[/MENTION] I don't think I have done anything to affect BT in version 15. Revert back to version 14 if you think the problem started after upgrading to 15. If that fixes it, let me know.
[Redmi Note 2 Android Development] acestars:
is this support 7.3.2.0 and 6.5.26?.
[Redmi Note 2 Android Development] jajk:
[MENTION=3885679]acestars[/MENTION] 7.3.20 yes, 6.5.26 maybe, maybe not. Best to stick with 7.x.x versions;)
[Redmi Note 2 Android Development] Crim Soukyuu:
I was asking overall, I'm still on an earlier version, like -6 or -7, before you changed the FS mount options. Couldn't bother to update further, so I was just asking in general.
[Redmi Note 2 Android Development] jajk:
[MENTION=5898910]Crim Soukyuu[/MENTION] FS Mount options have reverted somewhat - not because they caused a problem but there was no measurable gain to be had. It is safe to update to ver 15 from ver 7 and revert back if you don't like it. There is a considerable cut in the number of running services if you look at before and after (run getprop in terminal to list all services enabled on boot)
[Redmi Note 2 Android Development] Crim Soukyuu:
It's not that I didn't update because of that, just didn't have time for it. I'll try it out today, just flashed the p52 modem to see if it fixes my bt issues.
[Redmi Note 2 Android Development] jajk:
Skinny_Pro_MIUI8_6617-1_boot.img posted.

Thanks to [MENTION=7150090]Sleepy_Augie[/MENTION] for providing stock 6.6.17 boot.img

This is a preliminary version that provides init.d support plus most of the current skinnying except mcd services is left intact - this means you should not set your own zram swap in init.d scripts - leave MIUI to handle it for the time being. You can however set your own LMK values as before.

A more comprehensive version will be uploaded when MIUI8 stable is released.

Looks like the only significant change is new cpu core management that could give better responsiveness and better battery life but time will tell.....

This boot.img cannot be used on MIUI7 based ROMs.

Now added Skinny_Pro_MIUI7_6617-15b_boot.img

This is the MIUI7 version based on the 6.6.17 boot image from MIUI8.

It is not compatible with MIUI8

A new version TWRP3.0.2-2 with 6.6.17 kernel is added to thread over in General section. This is compatible with MIUI7 and MIUI8.

Go get it while it's hot:good:
[Redmi Note 2 Android Development] DarthJabba9:
[MENTION=5952980]jajk[/MENTION] - I am currently running Skinny_Pro_MIUI7_6617-15b_boot.img. It seems to be running fine so far.
[Redmi Note 2 Android Development] jajk:
If you run Skinny_Pro_MIUI7_6617-15b_boot.img on MIUI7 you will not take advantage (if there is any) of the newer cpu core hotplugging algorithms since these are not totally kernel / ramdisk based.
[MENTION=5850987]DarthJabba9[/MENTION] I am running the above way too and have not noticed anything different to running the 7.1.4 based boot.img.

I am getting an easy 6 hours with screen on full time (no sleep) at maximum brightness with GPS enabled to run a marine GPS Chartplotting app while out boating.
[Redmi Note 2 Android Development] acestars:
So based on your opinion if we want have better battery we better stick with old kernel?
[Redmi Note 2 Android Development] DarthJabba9:
Lucky you! I don't think I will ever get anything close to that. At the moment, I am getting 92% - 94% deep sleep on idle.
[Redmi Note 2 Android Development] jajk:
[MENTION=3885679]acestars[/MENTION] I haven't noticed a difference in battery or anything else between the new and older kernel on MIUI7 so there is probably no reason to switch at this point. It is there for anyone who wants to experiment.

For the very keen, there are 2 setting value changes between 15 and 15b that may or may not have a bearing on slightly improved performance. I am being too lazy to benchmark to see if there is a performance diff between the 2.
[MENTION=5850987]DarthJabba9[/MENTION] We all have different needs and uses we put our phone to. I don't have need for the majority of battery slurping apps that are prevalent out there so I get near 100% deep sleep.
[Redmi Note 2 Android Development] DarthJabba9:
True that we all have different needs. But the main culprits seem to be the Android system itself and the kernel and whatever it is that keeps the screen "awake" even when the screen is off. Also, I tend to leave wifi and bluetooth on 24/7 - perhaps I shouldn't ...
[Redmi Note 2 Android Development] Sleepy_Augie:
Anyone else finding that the Miui music app crashes after installing jajk's miui 8 boot.img? It would help a bunch if I know if the crash came from that, or just me freezing everything. ty :)

Otherwise, boot.img is working good, init.d is always great to have! [MENTION=5952980]jajk[/MENTION]
[Redmi Note 2 Android Development] DarthJabba9:
Sorry, I don't have the music app (I use MX Player).
[Redmi Note 2 Android Development] jajk:
[MENTION=7150090]Sleepy_Augie[/MENTION] If the music app is crashing, it is probably trying to upload your browsing history, call history, location, name & address, app history, sexual orientation etc. to the Communist Party. Remove the built in Music and Video apps and load something that doesn't report home. Skinny is about not being part of the Xiaomi culture.

[MENTION=5850987]DarthJabba9[/MENTION] BT, one phone service and InCallUI are running all the time just in case you plug in a BT headset. This goes back to KittyKat days which MIUI began on and is probably still dragging a lot of that old 32bit code into current incarnations. Most manufacturers (non-china) fixed this issue before Lollipop was released.
[Redmi Note 2 Android Development] DarthJabba9:
Thanks. I don't use BT headsets at all, but I have the Mi Band which connects to the phone via BT (but it is never near the phone at night)
[Redmi Note 2 Android Development] Crim Soukyuu:
Regarding the current xiaomi.eu MIUI8 betas, should I just comment out the ZRAM line in the init.d script, or should I do something else as well?

Also, slightly OT, but any idea where to edit sd card mount options? There doesn't seem to be an /etc/fstab on android.
[Redmi Note 2 Android Development] DarthJabba9:
It depends on what you are trying to do. So what excactly are you trying to do? Some things need to be done in /etc/permission/platform.xml; some might need changing somethings in the fstab.* files in the ramdisk; some can be done in an init.d script.
[Redmi Note 2 Android Development] Crim Soukyuu:
I want to reformat my sdcard as ext4. I can do it just fine from my PC, but it's not mounted by the phone because it expects it to be vfat. There is an app that apparently changes mount options (Note 2 tool), but I'd rather not have yet another app installed.
[Redmi Note 2 Android Development] DarthJabba9:
Try this, either from a root terminal, or from an init.d script

mount -t ext4 -o rw,noatime /dev/block/mmcblk1p1 /storage/sdcard1

or

mount -t ext4 -o rw,noatime /dev/block/mmcblk1p1 /mnt/media_rw/sdcard1

---------- Post added at 04:30 PM ---------- Previous post was at 03:52 PM ----------

If you're feeling brave or adventurous, then you can unpack the boot image and look for this line in ramdisk/fstab.mt6795

There you can change "vfat" to "ext4", and then repack and flash the boot image. Whether it will work is another matter ...
[Redmi Note 2 Android Development] Crim Soukyuu:
I don't really feel adventurous anymore - my attempt to update to MIUI8 resulted in a bootloop and I can't seem to be able to restore my backup via TWRP, because the bootloop is still there. Once I get out of it, I will try the mounting option, thanks. I was missing the name of the block device.

edit: I have put the following into an init.d script (yes, mounting both):

mount -t ext4 -o rw,noatime,data=ordered /dev/block/mmcblk1p1 /storage/sdcard1
mount -t ext4 -o rw,noatime,data=ordered /dev/block/mmcblk1p1 /mnt/media_rw/sdcard1

And while it mounts just fine, some apps can't see it... for example Sölid explorer doesn't show it in the side pane. I guess I will have to edit the boot.img for that.
[Redmi Note 2 Android Development] DarthJabba9:
You are very brave- installing

beta

ROMs ...
[Redmi Note 2 Android Development] jajk:
[MENTION=5898910]Crim Soukyuu[/MENTION] Don't mount both - they are fused at the boot image level - /mnt/media_rw/sdcard1 is the true filesystem location.

What you are wanting to do must be done by modifying the fstab file in the boot image before "fusing" takes place.

[MENTION=5850987]DarthJabba9[/MENTION] Exactly! Do people think that MIUI8 is actually released? I am gravitating toward updating to 7.3.20 as a daily driver since it seems to be a solid base. So far there is nothing in MIUI8 that is compelling.
[Redmi Note 2 Android Development] DarthJabba9:
Also there is the possiblity of "permissions" issues. My various attempts in the past to use ext4 on the external SD card eventually had to be abandoned because of permissions issues (basically, I seemed to have access permission to certain files, but not others). Full access was available at a root terminal, but that is not the point.

Nope, there is nothing. Just installed MM on my ancient and redundant Samsung Galaxy SII, it is like I have a brand new device - the speed and smoothness are unbelievable (nothing will cure the low resolution display though). If and when MIUI8 moves to MM, then I might consider it - but not before then.
[Redmi Note 2 Android Development] Crim Soukyuu:
Not brave, just desperate. The Bluetooth issue as well as being sometimes unable to pull down the notification shade are annoying me to no end. So I wanted to see if something changed with MIUI8.

I've chmod 777 the whole SD partition after formatting it on my pc, and so far there are no permission errors.

I recently installed cm13 on my Xperia arc, and it's blazing fast as well, especially compared to the mess cm12.1 was. Bluetooth is still unusable though, sometimes it works fine, then starts stuttering until you reboot the phone. So yes, still hoping for MM for RN2, but not really holding my breath.
[Redmi Note 2 Android Development] DarthJabba9:
I would be very surprised if MM ever came out for this device. The best we could hope for is that it will come out for RN3 and then "someone" will port that to RN2.
[Redmi Note 2 Android Development] DarthJabba9:
Even more so than 7.2.3.0? I have found this to be rock solid in terms of stability. I'm always looking for better battery optimisation though, and I would move base just for that.

As far as battery is concerned, my attention is now on kernel/zImage and modem. Any ideas as to which kernel (and modem) versions are the most optimised for battery life? I am currently on kernel 3.10.61+d5f23653-blah-blah, compiled on April 5 2016, and on modem p37. I switched to that kernel (extracted from an Angels&Demons ROM boot image) to see whether it would make any difference. I am not sure that it has improved anything, but it is not worse either.
[Redmi Note 2 Android Development] jajk:
[MENTION=5850987]DarthJabba9[/MENTION] I run with modem P52 that was packaged up with someones CM based ROM - can't remember the exact source..... P51 was a bit slow with my carrier.

I have tried 7.1.4, 7.3.20 and 6.6.23 kernel with the same 15b edits and really can't perceive a difference between them as far as battery or performance goes. I think the difference is mainly trying to sort out the fingerprint scanner woes of the RN3 rather than anything that benefits the RN2. I recommend 7.1.4 kernel with 15b ramdisk at present for all MIUI7 ROMs. It seems to yield a marginally lower idle cpu load than the later incarnations.

I have MR 7.3.20 ready to install but need my phone to be stable over the next couple of weeks so will hold off for a while. All reports tend to indicate it will be at least as stable as 7.2.30 is and is good on battery - some say better than 7.2.30 but exactly which version and what installed app base is the question that is not addressed. Will find out soon enough;)
[Redmi Note 2 Android Development] DarthJabba9:
Well, I am on annual leave this week, and ("she who must be obeyed" permitting), I will have time to play with these things (alongside pontificating about Brexit). Do you have a link to the 7.3.20 ROM that you are going to look at?
[Redmi Note 2 Android Development] jajk:
[MENTION=5850987]DarthJabba9[/MENTION] http://ua.multirom.me/MROTA/STABLE/multirom_HERMES_V7.3.2.0.LHMCNDD_v5.0.2_b37_90fc17cc18.zip
[Redmi Note 2 Android Development] DarthJabba9:
Thanks. I have seen other versions on xiaomi.eu and on en.miui.com - do you know the differences (if any) between them?
[Redmi Note 2 Android Development] DarthJabba9:
[MENTION=5952980]jajk[/MENTION] I have installed 3 different 7.3.2.0 ROMs, including the one you linked to. All end in bootloop. Back to MR-7.2.3.0 ...
[Redmi Note 2 Android Development] jajk:
[MENTION=5850987]DarthJabba9[/MENTION] The MR 7.3.20 in link I gave installs and runs well. I disabled installing Gapps and Busybox in the installer script first so that I could install these separately and after first boot. Maybe Gapps upsets the first boot?

I am now running a skinnied MR7.3.20 as a daily driver which is pretty much identical to the MR7.2.30 before it.
[Redmi Note 2 Android Development] DarthJabba9:
Thanks. Perhaps it is GAPPS. Which version of GAPPS did you install? If battery life is not significantly better under 7.3.2.0, then perhaps I will just keep my current setup.
[Redmi Note 2 Android Development] acestars:
Which better between mr 7.3.2.0 and 7.0.12? I still use mr 7.0.12
[Redmi Note 2 Android Development] DarthJabba9:
If you are happy with what you have and it does all you want it to do, there is no reason to change it!
[Redmi Note 2 Android Development] jajk:
[MENTION=5850987]DarthJabba9[/MENTION] What about a sense of adventure and discovery? "If it's not broken, your not trying hard enough":laugh:

I installed the Gapps that came with the ROM but after first boot setup without issue.

[MENTION=3885679]acestars[/MENTION] MR 7.3.20 seems to be stable and tolerates customization well. I think it is sufficiently advanced over 7.0.12 to make it worthwhile.

As mentioned, remove loading of Gapps and Busybox from the installer script just in case either of these causes a bootloop. Install and reboot first then install Skinny_Pro_MIUI7_7320-15b_boot.img for a decent boost.
[Redmi Note 2 Android Development] Sleepy_Augie:
What is the reason at the moment to not use miui 8? It seems to basically be the same as miui 7, and I haven't had any random reboots, crashes, or stutters. I enjoy the UI more, so I'm sticking with miui 8, and hopefully I'll be able to trim it down a bit. Lots of bootloops ensued last weekend since miui is so fragile, so I just froze everything instead. I also got to learn why you should never use the update app.

Also, anyone know what "turn on miui optimization" is at the bottom of developer settings? Yuh think turning it off would be beneficial? ? I still get a lot of problems with persistent services that I want to have running (pebble app, SoundCloud) that to run correctly really just need to have the permissions of system apps. I wish there was a fix, other than making all apps system apps.
[Redmi Note 2 Android Development] DarthJabba9:
Thanks. I think I'll wait for now. My sense of adventure exited with Brexit. :p
[Redmi Note 2 Android Development] acestars:
I really want to reflash the rom because the device just getting weird, such as notification manager stop working.
[Redmi Note 2 Android Development] jajk:
[MENTION=7150090]Sleepy_Augie[/MENTION] Because it is a Beta and Dev version. If you turn MIUI optimization off, the task manager will disappear off the menu button but can be re-assigned in the Buttons menu. If you are running a Skinny boot image, setting a fixed zram swap drive and better LMK values in init.d script will allow for around 6 (significant) apps in memory instead of the stock 3-4. Remember that the price we pay for FHD screen resolution is that each app consumes more memory. The Google Android recommended memory capacity for a FHD device is 3GB not 2GB.
[MENTION=5850987]DarthJabba9[/MENTION] Maybe you could sneak across the border to Scotland and seek refugee status there:silly:
[MENTION=3885679]acestars[/MENTION] I am happy with MR-7.3.20 - if you are going to update, do factory wipes first - don't try to dirty flash
[Redmi Note 2 Android Development] DarthJabba9:
Internet searches from the UK in respect of Irish citizenship have surged tremendously. That sounds just as promising as a move to Scotland (both of which are pretty much on the agenda, depending on what happens in the end)! One one could just move down under - but you guys are now talking about your own AusExit. :D

As for dirty flashing of 7.3.2.0, is this discouraged for those moving from MR-7.2.3.0 as well?
[Redmi Note 2 Android Development] jajk:
Hmm.... maybe I switched to 7.3.20 too soon. Not only is 7.3.30 out but 7.5.10 is out in a couple of days too. You may well ask why this has come out instead of releasing MIUI8.
[Redmi Note 2 Android Development] DarthJabba9:
[MENTION=5952980]jajk[/MENTION] I managed to get 7.3.20 going, and I have tried to persevere with it (even to the point of skinnifying it to the hilt). I am yet to see any improvement over 7.2.3.0, and it does suffer occasionally from the odd random lag; but I will give it a few more days. Presumably I should be able to move between these two (both multirom stable) without wiping my data?

As for 7.3.30 and 7.5.10, do you know whether this is all just tinkering with the UI, or whether there is something substantive (eg., a better optimised kernel)?