yashsingh1/xdaforums huggingface dataset:
[Redmi Note 2 Android Development] Gyovany96:
What do you mean you can't get proper root ? What exactly doesn't work ?

Some MIUI apps like Updater etc. are somehow protected by Xiaomi since almost 1 month ago and you can no longer disable autostarts for those app , it's not a ROM issue , it's just an extra added Xiaomi 'protection'
[Redmi Note 2 Android Development] Iliyena:
[MENTION=5952980]jajk[/MENTION]

So Internal storage benefits some from changing IO Sheduler and read_ahead. How about IO Scheduler and read_ahead value for external SD? I'm adding it to my init for testing. From what I've read the external storage is where the biggest buff to speeds can be seen.

Edit: Removed the sentence accusing you of a typo, seems I had made the error... ;)
[Redmi Note 2 Android Development] jajk:
[MENTION=6037148]Vut[/MENTION] Click link in O.P. init.d script is named 01_init

[MENTION=3015894]giacomo1[/MENTION] Nothing to do with SuperSU - my version does not change function - just strips out surplus files to our phone. Latest SD Maid versions from 4.50 onward seem to have altered behaviour in freezing, autostarts and displaying what is running etc. I use MyAndroidTools exclusively for doing that stuff now and just use SD Maid for the cleaning stuff. Do the same or revert to SD Maid 4.41.

[MENTION=7442305]Iliyena[/MENTION] Post your results if you find anything useful - I am open to making alterations and additions providing that they demonstrate a real benefit.
[Redmi Note 2 Android Development] jajk:
SD Maid 4.53 has fixed the issue with displaying apps running when they are not and setting Freeze or autostarts. How's that for good timing?
[Redmi Note 2 Android Development] cukierkas:
I thought 4.4.1 is the latest?

Regards.

Edit: I see now, you were talking about the beta versions. My bad.
[Redmi Note 2 Android Development] jajk:
[MENTION=2606021]cukierkas[/MENTION] We are all trailblazers here;) Many other threads to suit the sheep:laugh:
[Redmi Note 2 Android Development] jajk:
Skinny_Pro_61215_Tweaked-v22.img uploaded

Changes:

Added settings for IO scheduler for sdcard1 and zram0

O.P updated with a revised init.d script that includes the extra settings should you wish to override them (some like to set the sdcard1 value to 2048 if apps are run from it - compensates a little for the usually slower memory technology)

[MENTION=7442305]Iliyena[/MENTION] Is this what you were doing for yourself? I thought about it after your post so you can take credit for stirring me into action;)
[Redmi Note 2 Android Development] Iliyena:
Wee! Exactly what I were thinking of proving trough a test. The difference where hard to see underclocked. But I believe I should've been able to prove a read-speed close to +1 MB/s for a 512 MB file written and read.

For me the difference between 1024 and 2048 is small, but for my 64 GB Samsung the last 0.2MB/s were at gained @ 2048 kb read-ahead. From read-speeds 8-9,5 MB/s to 9,8-10,3 MB/s. Next step were to compare schedulers and then finaly the magic "simplified comparison". Don't got the time for this stuff!

2 sons here with me alone and my spouse is hospitalised to keep a pair of twin girls from extreme premature birth (27 weeks and 2 days, normal is 4 weeks). The tech keeps my mind a bit clearer... Heh.

My next problem is related to setting the memfree values. Ditched Skynet (messed up swappiness for zram) to find out what a fully activated init-file can do for me. When booting I get the standard values for memfree, but the init-lines are fine, If I re-run the file trough eg. Kernel Adiutor the values are changed to set ones... Gives me an itch and I really wanna scratch it. Next problem is me running CM 12.1, not MIUI, so no real support there. Thx anyways for thinking further on my input ;)

With your recommended settings for gov and hps + Skynet I achieved 5h SOT last week over a 29h-span. ^^
[Redmi Note 2 Android Development] cukierkas:
Yes, I do see you like to try everything on your skin. It's time to move on, time to buy a Kate version :)

[MENTION=1951308]Iliyana[/MENTION]

I do got 3 boys, twins as well, but hacking the phone is the last thing I would do :)

Regards, wishing all the best for you and your family.
[Redmi Note 2 Android Development] Iliyena:
I got 2 phones due to my normal work so, I'm covered in the softbrick-department. I could watch cartoons I've seen 10 times the last month instead ;) just doing something small as long as I can. Already had to rewrite most of my persona because of the obstacles noone should have to face. Need one constant ;)
[Redmi Note 2 Android Development] jajk:
[MENTION=2606021]cukierkas[/MENTION] Hmmm... I noticed today that my backshell barely fits on anymore due to a swollen battery. That's 12 months to kill it, while I have an old Samsung Galaxy Mini and Moto G sitting in my drawer that still charge nicely. So time to buy another Xiaomi product? I think not. Next phone will likely be Chinese but will have brand name parts;)
[MENTION=7442305]Iliyena[/MENTION] Yes, good therapy or at least a harmless distraction - welcome to the Asylum. The same cannot be said for CM as it is a festering carcass that is being kicked around over and over again. Devs moved on 3 generations of Android ago.

memfree values are a bit fussy - I had to shift the setting of them to the very last thing that is done during boot since something changed dramatically in 6.11.10 onward. If this is not the case, the factory values overwrite anything you have set. The standard init.d support lines that are added to init.rc in the Ramdisk fail to set memfree because it happens too early in the boot process. That is why my implementation of init.d is so different to the majority out there. [MENTION=5850987]DarthJabba9[/MENTION] had a hand in getting that sorted out.
[Redmi Note 2 Android Development] Iliyena:
If there were a RR for our RN2 I'd opt for that. But MIUI drove me a tad crazy until I choose to go with CM 12.1 Aurora. Awaiting IR for MM build. Use it for the TV all the time.

Damn that minfree setting. Its very close to one of the preset/standard settings in K Aduitor though... Might let the app set those then.
[Redmi Note 2 Android Development] cukierkas:
[MENTION=5952980]jajk[/MENTION], get a new battery instead. That's the price of everyday charging.

What Chinese you're mentioning with solid named hw? 1+?
[Redmi Note 2 Android Development] Iliyena:
Huawei? ;)
[Redmi Note 2 Android Development] cukierkas:
No, I wouldn't consider buying Huawei at all. Same girl as xiaomi, but with different skirt. One plus something guessing is better choice.

But that is not my call. I'm happy with xiaomi second time in a row.
[Redmi Note 2 Android Development] jajk:
[MENTION=2606021]cukierkas[/MENTION] Not Huawei for sure and not 1+2=3 either since they are low end product priced as mid-range and heavily pushed here I must say....

How about UMI? Sharp displays, Sony or Samsung cameras etc. and seem to support their devices for longer than the day of sale.... and have unskinned Android available.

I just ordered 2 new batteries to see me through - might stick them together and change build.prop to report phone model as Kate:laugh:

I suspect battery puffed up like Steven Seigal because it spends time getting cooked in the sunshine when it is out in the boat.

[MENTION=7442305]Iliyena[/MENTION] But you must know that any CM will never fully support our hardware for the very same reason I will not buy Xiaomi again - they use bargain basement parts. Do you not think it strange that several X10 based phones have fully released source code and yet no dev can pick up the necessary blobs for our hardware? Maybe no other brand uses the obsolete crap parts that Xiaomi buys:confused:
[Redmi Note 2 Android Development] Iliyena:
Through work I have a Galaxy S6. Since day one I have preferred the RN2... Weird I know, It's just something off and ucky with Samsungs UI (cannot use anything but stock ROM due to work, rooted though to live with the battery.

Sure this phone is crap in many ways, that's why I like it. Gave 120 USD with 2 screen protectors and 2 cases... Hard to beat that price/performance-rate. Love to tweak, continue until I break something. Almost went and fixed the sceen on my Nexus 4 a while when the S6 started to feel ucky for reals.

A collegue if me got the UMI Touch, he's happy with it except the software support from UMI. When he first got it they were officially developing options to go with Android, Windows Phone, other iterations of android and such... A month later thaty were all scratched. But they seem as good as any chinese manufacturer.

The price/performance in a Xiaomi RN3 Pro (kenzo/kate) seemed nice also. Snapdragon 65x, Hexacore, 2*1,8GHz A72 if I'm not mistaken?

RR > Stock Android > CM > MIUI > Touchwiz > iOS9-10 :P

Running Nova Launcher Prime Nougat-isch on top of them all. I can live with some bugs if the pieces working works!!! If MM (or Nougat) won't cut it in spring I guess I'll go with MIUI again. Who knows, maybe I'll try it out in a week. Backups are great ;)
[Redmi Note 2 Android Development] jajk:
[MENTION=7442305]Iliyena[/MENTION] While I don't hold back in bagging out Xiaomi as a manufacturer, for US$120 the RN2 is a good play thing and its faults make it all the more endearing - like a 3 legged dog.

I agree with your take on Samsung UI - it is the origin and definition of bloat.

Next year will see decent 14nm SoCs turn up in cheap end phones replacing the archaic 28nm versions found in things like Kenzo and Kate:laugh::laugh::laugh:
[Redmi Note 2 Android Development] cukierkas:
I see your point. But I do sleep very well knowing, that my Kate runs on archaic cpu [emoji33] :)

But let's be frankly, ram is more needed and battery life. So cpu and gpu (at least in my side) are left on third place.

I even downclocked it anyway.

Umi, never heard about them. Only you named it, so I googled it. No, wouldn't bother.

Third thing, about 1+.

I wouldn't call this brand low end, selling it self as mid range. SD 810 and higher are not placed in to that area.
[Redmi Note 2 Android Development] jajk:
[MENTION=2606021]cukierkas[/MENTION] Umi Z is the type of product I will look at when the prices drop. There will be a whole bunch of similar spec devices rolling out as both MTK and Qualcomm go mainstream with 14nm. The finer details are things like whether or not the RAM speed matches the cpu speed - quite often the manufacturers will put slow RAM with a SoC that can handle much faster i.e. LPDDR3 with an X20 that can take LPDDR4 to save 5c.

Hmmm..let me think back what phone manufacturers have been heavily promoted here..... LeTV, Elephone, Xiaomi, Oppo...
[Redmi Note 2 Android Development] Iliyena:
Lenovo got ZUK pushing prices as well ;) Were looking at the Z2 for a while. Seems the software needs some love. But well priced for a SD820 earlier this year. Dunno if it sold enough or if the community took it in though... :)
[Redmi Note 2 Android Development] vaselor:
[MENTION=7442305]Iliyena[/MENTION] Yes, I've read some bad reviews on the Z2 mainly because it got a really buggy software. I don't trust Lenovo, they have a nice history of putting spyware on both computers and mobile phones. Oh, and blocking Linux installation on computers while hacking the Winndows MBR to make it impossible to uninstall their bloatware.
[Redmi Note 2 Android Development] Iliyena:
And they have gained their piece of badwill for those things. Therefore I think the buggy software is almost all that's left ;) But software can be replaced. Which Samsuck will painfully get to know when some stubborn Note 7 owner gets something valuable blow up or such, heh. ;)
[Redmi Note 2 Android Development] vaselor:
[MENTION=7442305]Iliyena[/MENTION] Well, for sure. But I value a good stock software although a poorer one is way funnier :P. And supporting a company that puts spyware on devices is something I don't want to do again (we could blame Google but at least in that case you know it's the price you pay for their services).

On a side note, [MENTION=5952980]jajk[/MENTION], I'll definitely buy the same phone you do because I don't want to miss your future tweaks ;)
[Redmi Note 2 Android Development] jajk:
If you want to become even more paranoid, disassemble DownloadUI.apk and have a good read.

[MENTION=7117356]vaselor[/MENTION] The serious hunt for the next 3 legged dog (or cat with no tail) will start when all the new generation SoCs have flooded the market and prices crash - that should be around May / June going by current product announcements.
[Redmi Note 2 Android Development] vaselor:
[MENTION=5952980]jajk[/MENTION] I'm not interested in buying another phone until my Redmi totally breaks or gets too old to use some basic apps, but I'm interested in knowing your opinion about available phones because I've learnt a lot from your threads. Greetings from Spain.
[Redmi Note 2 Android Development] Iliyena:
My RN2 running CM 12.1 tweaked only with init-tweaks as by [MENTION=5952980]jajk[/MENTION] ;)

Now I'm gonna sacrifice some of that beautiful battery life for a little bit more umpfh. A tiny faster load time for every app and I'll still easily get through a whole day.

(Read-speeds/from SD-card, 64GB, were approx 8.8-9.3MB/s with cfq iosched and 128kb read-ahead, picture is with deadline ioshed and 2048kb read-ahead.)
[Redmi Note 2 Android Development] andrea210701:
Hmmm...chinese manufacturers are never reliable

Vernee...releases sources!....then starts producing same phone model with different hardware so only old user enjoy roms

Ulefone...same ****

Umi....hmmm,never heard any of any devoloping

Jiayu...So far so good,at least for the s3 and s3 plus

Lenovo...I would go for it,they release kernel sources(even if it can lack of some parts like it happened for the k3 note where audio driver was missing and daniel_hk solved it)and they are Pretty cheap,also if you want a cheap snapdragon go for the zuk z2

Xiaomi...We already know :D

Leeco/letv ... It's a big lottery,some kernel sources are ok,some are incomplete(see leeco le max 2) but ok for software updates ( letv le1s with helio x10 got updated to mm and his kernel source got released for both mm and lp)

I know there are other brands like dogee,gionee etc,but i don't want ti dig Deep in chinese phones
[Redmi Note 2 Android Development] jajk:
[MENTION=4772299]andrea210701[/MENTION] Some good points to consider:good:

[MENTION=7442305]Iliyena[/MENTION] If you find any settings that are better than what I advocate, share them here - always open to improvements;) You may find CM has some weird behaviours because some features like Hotplug are different/incomplete/buggy.

A bit O.T

Being a long time in the electronics manufacturing industry, it is easy to spot the bottom feeders that vacuum up all the end-of-life and sub-prime components to knock out cheap product. Why so many models you ask - it is because they have forever changing inventory available to them that is always in runout. Why no ongoing support you may also ask - because the hardware used is already obsolete. It is not an MTK issue, they don't make displays, cameras or IR sensors etc. so to expect ongoing upgrades from them is ludicrous. If the phone manufacturer releases ROMs that are based on unoptimized MTK

sample code

, who gets a bad name? Eyes open guys, don't believe the hype and B.S - it is just business;)
[Redmi Note 2 Android Development] jajk:
Skinny_Pro_61222_Tweaked-v22.img posted

Suitable for 7.5.xx onwards.

Changelog:

Rebased on 61222

IOsched readahead for sdcard1 upped to 2048 since this is what most users will end up changing to. Counterproductive to up this for the much faster internal eMMC memory based partitions;)

I have reverted to using p51 modem instead of p55. On average, I think p51 gives better data rates and less battery hungry. I don't use BT so I wouldn't notice any benefit in running p55 in that respect. Anyone else had some misgivings or otherwise about p55?
[Redmi Note 2 Android Development] Iliyena:
I don't think I'll find anything better for battery, but I'm testing re-tweaking the interactive gov with a looong timer_slack and lowering timer_rate and min_sample_time. And adding that 6:th core for the last little punch you sacrifice since the performance is rarely if ever needed. This is just testing. The responsiveness gets a bit better while battery should get noticeably worse. :)

To add I have forced the gpu to do all the 2d-drawing and killed off all animations, in dev. settings
[Redmi Note 2 Android Development] jajk:
[MENTION=7442305]Iliyena[/MENTION] I tried 4, 5 and 6 cores at max freq and throttled back to 1781MHz. Interestingly, boot is slower on 6 cores, fastest on 5 cores and only a touch slower on 4 cores. The drop in max freq hardly impacts anything.

What this confirms is that 5 cores is probably the sweet spot where the ever diminishing gain of adding more cores has reached equilibrium (due to all cores having to share / fight for access to shared cache memory and single RAM space). If you want to tweak interactive gov settings, reduce timer_rate progressively until idle becomes unstable then add a bit of time back until idle is stable again (ignore longer term blips). This has the biggest impact on responsiveness - the other settings are already much shorter than default and will result in "bounces" if shortened further. The less background activity going on, the lower you can get the timer_rate so it is not only ROM dependent, but app dependent too. Happy tweaking;)
[Redmi Note 2 Android Development] jajk:
For those who are patiently waiting for a skinny SuperSU 2.79-SR1, it's not going to happen as it does not boot on our phone:(
[Redmi Note 2 Android Development] Crim Soukyuu:
To be honest, BT is so god damn freaking awful on this phone, that any betterment is welcome. I gave mine away to my dad because he doesn't need bluetooth, so the only reason I'm here is because I'm updating his to MIUI8. How does p51 compare to p55 BT-wise?
[Redmi Note 2 Android Development] Crim Soukyuu:
Uhm. Flashed v22 on 8.1.3.0 and superSU 2.79 stopped working. The popup prompt does not appear and apps (SD Maid/Adaway) just hang there. Tried skinny superSU as well and same problem. Reverting to non-skinny boot and reinstalling superSU works. Did I misunderstand the "7.5.xx onwards" part?
[Redmi Note 2 Android Development] hjthzz:
Hello [MENTION=5952980]jajk[/MENTION]

I flashed your latest Skinny Pro Custom Boot Image (61222 v22) in the latest developer MIUI ROM from Xiaomi.EU and everything seems to be perfect. I also removed the recommended APK files, folders, libs and more, so my ROM is only 426Mb and is working very well for now.

Also modified the recommended build.prop lines. However, I noticed two things:

-I have disabled the "batterywarning service" through the init.d file and the battery seems to charge very slow (about 7 hours from 5% to 100%). I have tried enable it and now it seems to be good (but I have to test more time). This is my fault, of course.

-I did an Antutu test and the score is lower compared with the same ROM but stock boot.img . It is normal?

Thank you very much for your effort and for share this, it seems to work perfectly (no placebo effect, wich is the best part).

Sorry for my bad english.
[Redmi Note 2 Android Development] jajk:
[MENTION=5898910]Crim Soukyuu[/MENTION] Skinny boot image does not affect SuperSU but corruption of data partition can. In TWRP, do a repair file system on data to check for any problem. A small minority of people occasionally complain of the loss of SU in some ROMs - more often on 4pda forums - I have never experienced it myself even when using the identical ROM and have no idea why this might be so. Have you come from a 6.0 ROM? Do you have a matching set of preloader, uboot, logo partitions for your ROM version? I don't use BT and have no feedback on how p55 performs in comparison to p51. I have been on p51 for several days now and still think it is better for data connections and battery.

[MENTION=4901294]hjthzz[/MENTION] Battery Warning Service has no effect on battery charging time - that is controlled by healthd service. Battery warning is to let you know when your battery is getting too hot or is almost flat but this all still works without having the service permanently running in the background waiting for these events. Antutu scores will be lower because, by default, Skinny is setting 5 cores max. The default init.d settings and build.prop tweaks will lower benchmark scores slightly because the cpus are no longer over-reacting to ever little event;)

All, it looks like there are some inconsistencies if running older 7.5.x ROMs with newer Skinny boot images. If all the boot related partitions (preloader, uboot and logo) are also updated, there is no problem but if you are running 7.5.x vesions of these partitions, you may get some failure to boot issues. For this reason, I have uploaded a fresh dedicated version for 7.5.x. as it is preferable to stick with the matching set.
[Redmi Note 2 Android Development] jajk:
Skinny_Pro_7140_Tweaked-v22.img uploaded

Suitable for all 7.1.xx ROMs.

This one is for the 7.1.xx diehards;)

Updates to catch up with other versions. The only difference being the way the cpu cores are assigned. The following init.d script line is

NOT

usable in 7.1.xx ROMs

#echo 0-4 > /dev/cpuset/foreground/cpus

I have purged all the old versions to make it easier to find the appropriate files for your device. Don't ask for them back - they have been superseded by superior versions.
[Redmi Note 2 Android Development] Crim Soukyuu:
[MENTION=5952980]jajk[/MENTION]: I came from the 7.5.x rom, dirty flashed with 8.3.1.0 wiping cache, so no 6.0 ROM and the partitions should be matching. I'll try checking data partition for errors, thanks for the hint.
[Redmi Note 2 Android Development] asusm930:
I disabled perfservice via build.prop and deleting the perfservice related files in system/etc on my Redmi Note 4 and battery life has been insane man. I dont know what the fuc* xiaomi was thinking using that crap thing manage the cpu.

I found an interesting find for my device inspired by your work here and made a thread for it

link is here http://xdaforums.com/redmi-note-4/how-to/xiaomi-eu-redmi-note-4-rom-multi-t3527345

I love my phone so much, now that it actually works properly. Thanks for sharing your own discoveries on here.

Also did you notice how xiaomi effectively disabled access to camera pictures that have zero noise reduction if we used burst mode? lol. During burst mode (hold shutter button) the pictures would be not post processed for noise reduction, giving a really clean image vs what we have now. That's the only thing bugging me now.

Again, thanks for your work here.
[Redmi Note 2 Android Development] vaselor:
Jajk, did you elaborate the list for lightweight apps? Would like to check it. Oh, and I have been trying K-9 Mail for the last few days and it's great.
[Redmi Note 2 Android Development] hjthzz:
Hi again [MENTION=5952980]jajk[/MENTION]

Thank you for your fast reply.

Another question. With the stock boot.img the battery percentage is different than with your boot.img. For example, with the stock boot.img if the percentage is 25%, with your boot.img is 50%. With your boot.img also I noticed that during some hours the battery percentage was 100%, then suddenly went down to 75%. It is normal? Maybe is necessary to do some full charge and discharge battery cycles?

Otherwise everything seems to work OK with the latest Developer EU ROM and your boot.img.

Thank you and sorry again for my bad english.