yashsingh1/xdaforums huggingface dataset:
[Redmi Note 2 Android Development] jajk:
[MENTION=7260255]Brkge[/MENTION] Link is for MIUI EU 6.8.18 with no changes.

Installing a skinny boot image will end your ability to do an OTA update as will any other change you make. You can update prior to installing the boot.img and flash the boot.img afterwards providing the version of ROM upgraded to is still compatible (very unlikely not to be compatible)

The stock boot image for 6.6.18 has an extra service loaded called mqsasd. I have no idea what this is but the executable resides in /system/xbin if anyone wants to post it so I can see if it needs to be running.

That is the only change so the 6.8.11 image will work if that last service is not needed.
[Redmi Note 2 Android Development] jajk:
MR 6.8.18 for anyone that wants it.

https://yadi.sk/d/n4JA04DvuM3q8

The mqsasd service added to init.miui8.rc in MIUI6.8.18 has no matching executable file in /system/xbin. This means that there are no changes that affect the boot.img - use Skinny 6.8.11 image for these later ROMs.
[Redmi Note 2 Android Development] DarthJabba9:
[MENTION=5952980]jajk[/MENTION] The skinny boot images prevent BetterBatteryStats from being able to report on kernel wakelocks. This has been the case for a long time, but I've only just traced the cause to skinny boot. It is impossible for me to determine which version of skinny boot started this process. Do you have any idea which settings in the ramdisk would be responsible for this? It's not a deal breaker, but if the cause could be traced, that would be great. Thanks.
[Redmi Note 2 Android Development] jajk:
[MENTION=5850987]DarthJabba9[/MENTION] I don't know but I would guess one of the many logging / debugging services that is not started. Feel free to enable them one at a time and report back when you find the culprit;)

There is an incredible amount of debugging and logging going on in the stock MIUI ROM - normally you get the typical Android debugging and logging with minimal, if any Manufacturers additions but on our phone, we get Android + MTK + Xiaomi all debugging and logging away as if there was no tomorrow. We get an engineering proof of concept ROM that has never been tidied up before release.
[Redmi Note 2 Android Development] DarthJabba9:
Well, if there is no obvious culprit, then I think it will be like looking for a needle in a haystack. Life is too short for that!
[Redmi Note 2 Android Development] AssToast:
[MENTION=5952980]jajk[/MENTION] Do you recommend MIUI releases from MR or EU for an English user? Are there any specific advantages to them? I'm on the developer releases.
[Redmi Note 2 Android Development] AssToast:
EDIT: Woops, will continue investigating.
[Redmi Note 2 Android Development] Brkge:
They say "Lots of tweaks, less bloatware, and much more free ram" in their post. I think they can't be lying. Edit: Xiaomi.eu does
[Redmi Note 2 Android Development] AssToast:
Any specific advantage as to MR vs EU. Not what they say might be true though, just asking for an opinion from jajk

---------- Post added at 03:40 PM ---------- Previous post was at 03:30 PM ----------

From the BBS thread, "the app calls for the batteryinfo android service“. Did you disable this? If not, do you mind sharing what services have you exactly disabled in your boot.img

Are there any way to re-enable specific services without modifying the whole boot.img again?
[Redmi Note 2 Android Development] jajk:
[MENTION=5201188]AssToast[/MENTION] Firstly, I tend to prefer MR releases because of past stability. The current MR ROMs are barely modified apart from the added languages. EU ROMs are deleting more of the unwanted Xiaomi apps which makes them half way skinnied hence the extra RAM claims. Take your pick.

The edits are clear to see if you unpack the boot.img - anything with ### is my disables. You can either edit and repack it yourself or load the desired module from init.d script instead.

I am not too interested in finding the culprit as re-enabling it will consume more battery - so you can run an app consuming battery to find kernel wakelocks that you possibly can do nothing about anyway.
[Redmi Note 2 Android Development] AssToast:
I tried both, MR has more free ram but a more aggressive LMK compared to EU. MR also had better battery life and runs less hot, probably due to better Interactive governor tweaks. So far I like MR a lot compared to EU.

EU also strips away a lot more MIUI stuff like the Xunlei download accelerator which I find pretty useful.

All these are without Skinny Pro as I experienced random freezes.

---------- Post added at 06:01 AM ---------- Previous post was at 05:05 AM ----------

Some more information to share, i could achieve 5 hours SOT with LTE/H+ in MR. This could be even better with Wi-Fi.
[Redmi Note 2 Android Development] DarthJabba9:
The random freezes should disappear after some time.
[Redmi Note 2 Android Development] Adam Hui:
EU 6.8.18. works great with [MENTION=5952980]jajk[/MENTION] 's skinnied 6.8.11, [MENTION=5850987]DarthJabba9[/MENTION] script cuts any wasted time to my taste of skinnifying, but i still miss stock miui cleaner app i found it enuf useful, thanks.

*] front LED holographic keyboard >> another dream in android
[Redmi Note 2 Android Development] DarthJabba9:
Just comment out the line in update-binary that removes CleanMaster, and there you have your cleaner app. Or, better still, install it from the Play Store.
[Redmi Note 2 Android Development] AssToast:
I know but it was bothering me
[Redmi Note 2 Android Development] everdeath66:
Its was better work boot.img for miui8

http://en.miui.com/thread-329657-1-1.html
[Redmi Note 2 Android Development] jajk:
[MENTION=5761138]everdeath66[/MENTION] Are we supposed to kiss ass to get a link to the file? How about posting a direct link to the file so we can try this out and see what makes it so fast;)
[Redmi Note 2 Android Development] AssToast:
Here you go, it's on Mega though.

https://mega.nz/#!YwUkQRLQ!kI8RaLTtH2Hz4Uyu1N90QH3MmYJogtadqeMz4LRbemo

It's based on this old boot.img mod.

http://xdaforums.com/redmi-note-2/development/kernel-miui-v7-1-init-d-support-t3285769
[Redmi Note 2 Android Development] jajk:
[MENTION=5201188]AssToast[/MENTION] Thanks for that. I won't even bother downloading it since I already know what it does.

[MENTION=5761138]everdeath66[/MENTION] Do you understand how the scripts contained in this boot.img work? Seriously man, anything that claims to have a modified kernel (for our phone) has lost all credibility from the word go.
[Redmi Note 2 Android Development] jajk:
Looking into reasons why our phone has connectivity issues on some networks, I noticed a while back that the TCP buffer sizes specified in init.mt6795.rc are a bit "unusual" for edge, gprs and evdo networks:

# Define TCP buffer sizes for various networks
# ReadMin, ReadInitial, ReadMax, WriteMin, WriteInitial, WriteMax,
setprop net.tcp.buffersize.default 4096,87380,524288,4096,16384,524288
setprop net.tcp.buffersize.wifi 524288,1048576,2097152,262144,524288,1048576
setprop net.tcp.buffersize.lte 524288,1048576,2097152,262144,524288,1048576
setprop net.tcp.buffersize.umts 4094,87380,524288,4096,16384,524288
setprop net.tcp.buffersize.hspa 4094,87380,524288,4096,16384,524288
setprop net.tcp.buffersize.hsupa 4094,87380,524288,4096,16384,524288
setprop net.tcp.buffersize.hsdpa 4094,87380,524288,4096,16384,524288
setprop net.tcp.buffersize.hspap 4094,87380,1220608,4096,16384,1220608
setprop net.tcp.buffersize.edge 4094,87380,524288,4096,16384,524288
setprop net.tcp.buffersize.gprs 4094,87380,524288,4096,16384,524288
setprop net.tcp.buffersize.evdo 4094,87380,524288,4096,16384,524288

If you have such large buffers on the much slower networks, problems may occur when reception is less than perfect. I am trying the more universally adopted values found in reputable brand phones (not the crazy "tweaked" values kicking around)

# Define TCP buffer sizes for various networks
# ReadMin, ReadInitial, ReadMax, WriteMin, WriteInitial, WriteMax,
setprop net.tcp.buffersize.default 4096,87380,524288,4096,16384,524288
setprop net.tcp.buffersize.wifi 524288,1048576,2097152,262144,524288,1048576
setprop net.tcp.buffersize.lte 524288,1048576,2097152,262144,524288,1048576
setprop net.tcp.buffersize.umts 4094,87380,524288,4096,16384,524288
setprop net.tcp.buffersize.hspa 4094,87380,524288,4096,16384,524288
setprop net.tcp.buffersize.hsupa 4094,87380,524288,4096,16384,524288
setprop net.tcp.buffersize.hsdpa 4094,87380,524288,4096,16384,524288
setprop net.tcp.buffersize.hspap 4094,87380,1220608,4096,16384,1220608
setprop net.tcp.buffersize.edge 4093,26280,35040,4096,16384,35040
setprop net.tcp.buffersize.gprs 4092,8760,11680,4096,8760,11680
setprop net.tcp.buffersize.evdo 4094,87380,262144,4096,16384,262144

You can set these values in your build.prop file to override what is in the boot.img. The syntax is:

net.tcp.buffersize.default=4096,87380,524288,4096,16384,524288
net.tcp.buffersize.wifi=524288,1048576,2097152,262144,524288,1048576
net.tcp.buffersize.lte=524288,1048576,2097152,262144,524288,1048576
net.tcp.buffersize.umts=4094,87380,524288,4096,16384,524288
net.tcp.buffersize.hspa=4094,87380,524288,4096,16384,524288
net.tcp.buffersize.hsupa=4094,87380,524288,4096,16384,524288
net.tcp.buffersize.hsdpa=4094,87380,524288,4096,16384,524288
net.tcp.buffersize.hspap=4094,87380,1220608,4096,16384,1220608
net.tcp.buffersize.edge=4093,26280,35040,4096,16384,35040
net.tcp.buffersize.gprs=4092,8760,11680,4096,8760,11680
net.tcp.buffersize.evdo=4094,87380,262144,4096,16384,262144

If you are having connection issues like failing to negotiate up or down to the available networks, give this a try and report back please;)
[Redmi Note 2 Android Development] everdeath66:
But ak.kernel working and there are results better than your skinny in productive mode, the phone began to work because I have to work

---------- Post added at 05:49 AM ---------- Previous post was at 05:44 AM ----------

And your changes give hovering and lags in some people when ak.kernel just works and works much better stok
[Redmi Note 2 Android Development] vaselor:
Have you noticed that lots of people commented in this thread and no one is reporting such lags? If someone did, they got fixed. So you're obviously doing something wrong.
[Redmi Note 2 Android Development] Adam Hui:
Nice try, but a sense of popularity is not enough to be an energy to customizing a kernel.

We need both performance & battery.

*] front LED holographic keyboard >> another dream in android
[Redmi Note 2 Android Development] Sleepy_Augie:
Thanks both [MENTION=5952980]jajk[/MENTION] and [MENTION=5850987]DarthJabba9[/MENTION] for the info and help w/sp flash tools. So uhh, I used the scatter.txt and image files to seemingly fix my phone, but there is one part missing. I have no cache partition :(

It wasn't part of the scatter.txt, and there wasn't an image for it, and I can't reformat because there's nothing there to reformat, so yeahhh. In the recovery log it's showing up as "Failed to mount '/cache' (Invalid argument)" so I can't really do much, and I'm totally new to sp flash tools so idk how to (find a cache.img?) fix the cache on my own. Any help would be awesome.
[Redmi Note 2 Android Development] jajk:
[MENTION=7150090]Sleepy_Augie[/MENTION] See attached tried and tested working scatter file just in case the one you have is different? Note that the cache partition is listed as an actual image file that you will only get from a full stock ROM from Xiaomi - not a TWRP recovery installed one. There is another way to get this basically empty cache image file - if you rename a TWRP backup of the cache partition to cache.img, it will do the job. I am running low on data so maybe [MENTION=5850987]DarthJabba9[/MENTION] or someone else can backup a freshly wiped cache partition (uncompressed I think?) and upload it for you. Or....maybe someone has a stock cache.img file to lend you? Doesn't matter what version ROM it comes from as it is an empty file.
[Redmi Note 2 Android Development] Sleepy_Augie:
Thanks for the reply, I fiddled around with recovery and may have come across what you are talking about with the empty cache area. I was trying to resize the cache, and then repair it, all with the same error 8, but then i tried to changed the file system to ext4 (our regular fs i think) since it said it was blank file system, and then it just poped into existence as a ext4 cache with 581mb of space. Is this size of cache right? I was able to boot up my phone now though, so it seems to be working.
[Redmi Note 2 Android Development] jajk:
[MENTION=5761138]everdeath66[/MENTION] Skinny images put the power in

your hands

to customize after clearing out the stock clutter and obstructive settings. If you are dissatisfied with Skinny performance, it is a failure on your part which is why I say Not for Noobs.
[Redmi Note 2 Android Development] jajk:
[MENTION=7150090]Sleepy_Augie[/MENTION] Actual size is 629,145,600 bytes which makes your figure sound right. Make sure to do a repair filesystem on system, data and cache to flush out any more filesystem problems. You will be pleased not to have to buy a real phone just yet:laugh:
[Redmi Note 2 Android Development] Sleepy_Augie:
[MENTION=5952980]jajk[/MENTION] Done! All of 'em are repaired. Data failed to repair with error 1 the first time I did it, but went through the second time. I was having a lot of fun (and some nostalgia) improving my trusty old galaxy nexus (it had a full 996mb of ram available of it's 1gb), but I guess I'll come back to the quagmire that is xiaomi. At least there are a few awesome people in the xda forms :)
[Redmi Note 2 Android Development] DarthJabba9:
Congratulations! :)

[MENTION=5952980]jajk[/MENTION] I note that the external SD card gets automounted and assigned a drive letter on Windows. This is an excellent mod (I believe, originally from [MENTION=5223771]Nikoz47[/MENTION]). However, the internal SD card doesn't get automounted like this. You can still access it with Windows FileExplorer, but it doesn't get mounted and assigned a drive letter. Is there a way to do this, either in the ramdisk or via an initd script? I am investigating this myself, but I thought it would help if there were more than one person working on it!
[Redmi Note 2 Android Development] jajk:
[MENTION=7150090]Sleepy_Augie[/MENTION] See - impossible to brick (without adding water);)

[MENTION=5850987]DarthJabba9[/MENTION] Unfortunately the internal SDCard is just part of the data partition in eMMC memory (crudely) emulating an SDCard so it is quite a different proposition since it is not a USB device. I will incorporate the mod when you upload it;)
[Redmi Note 2 Android Development] Adam Hui:
How could a button push of clearing all apps in recent page results signal lost aka no sim card ??

Idk where the bug (maybe, or my noobish :v ) takes part... Using both MR & EU 6.8. 18. with [MENTION=5952980]jajk[/MENTION] 's kernel & [MENTION=5850987]DarthJabba9[/MENTION] skinnifying script.

Somebody should enlighten me..

*] front LED holographic keyboard >> another dream in android
[Redmi Note 2 Android Development] jajk:
[MENTION=4666525]Adam Hui[/MENTION] That is why I don't use beta/eng/developer versions of the ROMs;)

Never fear, MIUI8.01 stable is out for RN3 today so must be just about out for RN2 as well. I'll still wait for the EU or MR version.
[Redmi Note 2 Android Development] Adam Hui:
Well it's so funny as it never happened before even on first beta release..

*] front LED holographic keyboard >> another dream in android
[Redmi Note 2 Android Development] DarthJabba9:
User error is always the starting point.

---------- Post added at 06:18 AM ---------- Previous post was at 06:05 AM ----------

Yes, I saw that the internal sdcard is sited in /data/media/. The interesting that is that it all used to work in previous MTK devices using pre-KitKat ROMs. It was in KitKat that it all started going awry, requiring all sorts of mods. I find it impossible to believe that Google developers find it technically difficult to support this, so it must have been a deliberate design decision to go down this route (perhaps they consider it all as "legacy" stuff).

The only progress I have made is to find the data directory being accessible via /dev/block/vold/179:17 (with the external sdcard in /dev/block/vold/179:129). However, what you really want is /data/media/. The struggle continues (or not) ...

---------- Post added at 06:25 AM ---------- Previous post was at 06:18 AM ----------

Perhaps sporting Android Nougat? We can at least keep dreaming ...:rolleyes:
[Redmi Note 2 Android Development] jajk:
MIUI8.0.1 stable:

https://yadi.sk/d/KuWdYn5IuQf4E

Not so lucky! We get Froyo:laugh:
[Redmi Note 2 Android Development] Adam Hui:
Clean install MR 6.8.18 (including wipe system) > reboot

Flash [MENTION=5952980]jajk[/MENTION] 's 6.8.11 kernel > reboot

Flash your script (unmodified) > reboot

Open BBM & Whatsapp, go to recent apps page > push "clear all" button > no signal > no sim card

Yes, u're right, absolutely, my fault was opening bbm & Whatsapp. TIA.

*] front LED holographic keyboard >> another dream in android
[Redmi Note 2 Android Development] jajk:
[MENTION=5850987]DarthJabba9[/MENTION] I think older phones had a physically separate sdcard or memory chip rather than this stupid shared memory space arrangement that crept in around the KittyKat era. It must save them 5c in manufacturing costs but pisses off most users who discover that their 16GB memory only has 11GB free to use.

[MENTION=4666525]Adam Hui[/MENTION] Have you done a repair filesystem on your partitions lately? I went from 7.5.10 with no errors to 7.5.50 with filesystem errors magically appearing. If left unchecked, they can overwrite other partitions and you will loose SIM connection. Who cares, you can now download stable and post the boot.img for me to play with:)
[Redmi Note 2 Android Development] DarthJabba9:
Possibly. But sarcasm (which occurs too frequently in your posts) will get you nowhere. I repeat - user error is

always

the

starting

point. Once you conclusively eliminate user error, then rewind steps one by one until the problem disappears. There you have the cause of your problems.

BTW: I don't have 6.x installed, and I know nothing about it. I made it very clear that I am on 7.5.x. If you run my skinnny mod on 6.x, you are on your own.

---------- Post added at 09:17 AM ---------- Previous post was at 09:11 AM ----------

Froyo - I haven't heard that name in a long while! But I wouldn't be surprised to find that or Gingerbread under the hoods. :eek:

Currently downloading miui8.0.1 stable (all 1.1GB of it - it's a pretty slow link - but I guess many people are downloading it at the same time). When it finishes, I'll see whether "someone" has cleaned it up a bit, and whether it is already deodexed. Otherwise, I'll wait until "someone" does all that.

Edit

: It is not deodexed ...
[Redmi Note 2 Android Development] DarthJabba9:
This (from Xiaomi.eu) appears to be cleaned up and deodexed: https://www.androidfilehost.com/?fid=24591000424958683
[Redmi Note 2 Android Development] jajk:
[MENTION=5850987]DarthJabba9[/MENTION] Post the boot.img from EU 8.0.1.0 if you can, I can't download the full ROM till next month:(
[Redmi Note 2 Android Development] DarthJabba9:
Attached ...
[Redmi Note 2 Android Development] DarthJabba9:
From what I can see, the Xioami.eu ROM is already semi-skinnified, as usual ...
[Redmi Note 2 Android Development] Adam Hui:
This paragraph sounds fair...

*] front LED holographic keyboard >> another dream in android
[Redmi Note 2 Android Development] DarthJabba9:
I have installed MIUI 8 from Xiaomi.eu over my 7.5.5.0 (only wiped cache and dalvik-cache). After rebooting twice to let everything settle down, and running SD Maid to remove corpses, I then installed my skinny mod. I have had no problem at all (not even after running WhatsApp several times).

For the very brave or the curious, these are the differences between my 7.5.5.0 skinny ROM and the full Xiaomi.eu MIUI 8.0.1.0 ROM

The directories listed above are the ones that my skinny mod will NOT remove. I have no intention of removing any of them for the time being (until I know for sure that I will not break something). It seems that "PackageInstaller" and "MusicFX" were moved from /system/app/ to /system/priv-app/, so it may be okay to remove them. However, I am not feeling brave at the moment.
[Redmi Note 2 Android Development] jajk:
[MENTION=5850987]DarthJabba9[/MENTION] Good work:good:

I will have a look at the 8.0.1.0 boot.img and post a skinnified version of it soon. Do we need a moderate version with logging/debugging still enabled etc. along with a hardcore version?
[Redmi Note 2 Android Development] DarthJabba9:
Yes, a moderate version would be helpful, please - with logging/debugging, but without all the stuff that should not be there at all (e.g., dial home stuff, and redundant stuff).
[Redmi Note 2 Android Development] Adam Hui:
Clean flashed eu 8.0.1 last night over 6.8.18 (no simcard/no signal), everything's back to normal.

Waiting for [MENTION=5952980]jajk[/MENTION] 's skinnied image... ;)

*] front LED holographic keyboard >> another dream in android
[Redmi Note 2 Android Development] jajk:
Wait no more....

Skinny_Basic_MIUI8_8010_boot.img posted. This is not for NOOBS!!!

This will work for all MIUI8 versions so far. It leaves all logging and debugging enabled plus is not so thorough in disabling other stuff. You get init.d support of course and it does disable mcd services.

I will release a "Hardcore" version later next week when I have had chance to have a play.
[Redmi Note 2 Android Development] Adam Hui:
Been following your posts from opening, how could u be so fast & sharp?

Signal problem appears again later after sometime and it fixed by two taps by TWRP... :good

*] front LED holographic keyboard >> another dream in android
[Redmi Note 2 Android Development] acestars:
[MENTION=5952980]jajk[/MENTION] [MENTION=5850987]DarthJabba9[/MENTION] Waiting for your magic.

[MENTION=5068885]XiaoMi[/MENTION] And we still got no M.

farewell xiaomi this RN2 is my last phone from you.
[Redmi Note 2 Android Development] AssToast:
PackageInstaller is required for installing apps and MusicFX is for music equaliser.
[Redmi Note 2 Android Development] jajk:
[MENTION=3885679]acestars[/MENTION] Don't be one of those who get taken in a second time and buy another Xiaomi product based on propaganda glowing reviews, they will screw you every time.

[MENTION=5850987]DarthJabba9[/MENTION] The mystery is solved......... init.trace.rc must be enabled to get kernel wakelocks in BBS. This does not start any extra services so I will re-enable this on all future builds. Thanks for pointing out the deficiency.

[MENTION=4666525]Adam Hui[/MENTION] Do share the reason why you loose Sim connection once you figure it out. Helping others (in-between giving them a hard time) is what we are all here for:good:

I forgot to change rights to allow adjusting lowmemorykiller in the 8010 image. I am sure you can all unpack and repack it with these values substituted in the init.rc:

chmod 0664 /sys/module/lowmemorykiller/parameters/adj
chmod 0664 /sys/module/lowmemorykiller/parameters/minfree

and I forgot..... [MENTION=5201188]AssToast[/MENTION] stop buying the same phones as me. I notice a few users have gone from Moto G to RN2 which means they are all poverty stricken tight-asses like me:)
[Redmi Note 2 Android Development] AssToast:
[MENTION=5952980]jajk[/MENTION] I actually liked my Moto G quite a lot compared to this phone. Buying a Xiaomi phone isn't that bad for me to be honest. I might consider another one in the future but not one with a Mediatek SoC. As far as system skins goes, Xiaomi is a lot better compared to some other manufactures in the budget market like Lenovo, Asus or Huawei. I would buy another Motorola but they are pretty much destroyed by Lenovo. Xiaomi is a good choice for the senior generation that wants a decent and affordable smartphone compared to the other chinese manufacturers.

Huawei might be a good choice in the future if what they say is true with the Honor 8. I like them on screen buttons.

Would consider ZTE Axon or One Plus if it was available in my country and not imported with high prices.

Just my 2 cents.