yashsingh1/xdaforums huggingface dataset:
[Redmi Note 2 Android Development] jajk:
[MENTION=3885679]acestars[/MENTION] Type this into Calc: Device - Xiaomi - MTK + Snapdragon. The answer should = fixed:laugh:

Actually that is a bit simplistic - I would buy an MTK based phone again providing the manufacturer is not Xiaomi, the GUI is stock Android and the SoC is 14nm or better.

First thing I do is replace the stock Calc with Real Calc - spooky:eek: starting to think like [MENTION=2606021]cukierkas[/MENTION]
[Redmi Note 2 Android Development] acestars:
[MENTION=5952980]jajk[/MENTION] [MENTION=2606021]cukierkas[/MENTION] I always remove miui calculator as skinifying process, lol

is MIUI 6.10.20 can be dirty flashed over 8.0.2.0?

Sent from MIUI 8.0.2.0 on Redmi Note 2 using Tapatalk
[Redmi Note 2 Android Development] jajk:
New boot image (714-5) posted for MIUI.

Changes:

chmod 0220 /sys/module/lowmemorykiller/parameters/adj ----------------------> chmod [B]0664[/B] /sys/module/lowmemorykiller/parameters/adj
chmod 0220 /sys/module/lowmemorykiller/parameters/minfree ----------------> chmod [B]0664[/B] /sys/module/lowmemorykiller/parameters/minfree

This allows you to easily change the horrendous stock LMK parameters in an init.d script by adding the line as follows:

#Tweak LMK
echo 1024,2048,4096,8192,12288,16384 > /sys/module/lowmemorykiller/parameters/minfree ###equivalent to medium setting

It is up to you to turn off other conflicting optimizations in settings;)

[MENTION=5850987]DarthJabba9[/MENTION] mentioned this some time ago I just realized so credit to him for his earlier wisdom that I have now adopted;)
[Redmi Note 2 Android Development] IshtaNoob:
[MENTION=5952980]jajk[/MENTION], I have two questions:

1. I'm was too lazy to create the init.d script you recommend, and instead I installed Xmister's Redmi Note 2 Tool, which allows to set CPU frequency and touchboost values. Is that enough, or should I really implement the script?

2. I'm not getting much difference regarding battery. From what I've seen, most of the consumption is on mobile data, and a game I play regularly (Stormfall: Rise of Balur). Is there any way to make mobile data more efficient, make it drain less? Some app or tweak?
[Redmi Note 2 Android Development] jajk:
[MENTION=6068190]IshtaNoob[/MENTION] I am too lazy to answer.
[Redmi Note 2 Android Development] Crim Soukyuu:
Reporting: I switched to xiaomi.eu stable (xiaomi.eu_multi_hermes_V7.2.1.0.LHMCNDB_v7-5.0) and so far it's rock stable. No replicant apps, no freezes, superSU just works and I now have more RAM available - thanks for the tweaks.
[Redmi Note 2 Android Development] jajk:
[MENTION=5898910]Crim Soukyuu[/MENTION] It looks like the rapid release of all the later developer editions has caused some very unstable ROMs for little to no gain at all. So we can add EU 7.2.1.0 to the recommended base list along with MR 7.2.30.

If an apps location in the installation ROM is /system/vendor/operator/ or /data/app (as in vova's AOSP) it will become a "replicant app" (reinstates itself after uninstall). Deleting the actual folder in these locations will get rid of the apps for good.
[Redmi Note 2 Android Development] kajo82:
HI, I am on the latest xiaomi.eu dev ROM, I try this mod and I am getting freezes, how can I revert to the original boot.img?

Thks

Enviado do meu Redmi Note 2
[Redmi Note 2 Android Development] tonydeli7:
Open the zip file of the ROM and extract the boot.img

After that, copy it to your phone, restart to TWRP and flash the img...
[Redmi Note 2 Android Development] jajk:
New version boot image for MIUI 714-6 posted.

Changelog: modified FSTAB file to give better ext4 filesystem performance.

Now mounts system, data and cache partitions as noatime,nobarrier,discard,data=writeback,commit=10

Look at /fstab.mt6795 for the complete settings for all partitions.

These tweaks are also added to the original example:

#Tweak LMK
echo "1024,2048,4096,8192,12288,16384" > /sys/module/lowmemorykiller/parameters/minfree ### equivalent to medium setting NOTE: only available from 714-5 onwards ###

#Tweak VM
echo 300 > /proc/sys/vm/dirty_expire_centisecs
echo 500 > /proc/sys/vm/dirty_writeback_centisecs

# Disable debugging on some modules
echo "0" > /sys/module/alarm_dev/parameters/debug_mask;
echo "0" > /sys/module/alarmtimer/parameters/debug_mask;
echo "0" > /sys/module/binder/parameters/debug_mask;

#FSTRIM
fstrim /data
fstrim /system
fstrim /cache
[Redmi Note 2 Android Development] Crim Soukyuu:
Isn't nobarrier and writeback kinda dangerous? Sure, there are few cases of sudden power loss mid-write on a smartphone, but it's a risk nonetheless.
[Redmi Note 2 Android Development] jerryshaw12:
You should change it back https://help.marklogic.com/knowledg...ce-datawriteback-vs-dataintegrity-dataordered
[Redmi Note 2 Android Development] jajk:
[MENTION=6150156]jerryshaw12[/MENTION] [MENTION=5898910]Crim Soukyuu[/MENTION] A lot of what is written is in reference to servers and PCs with rotational storage and no inherent power backup. Our phone cannot loose power suddenly unless you throw your phone at a hard surface and the battery jumps out. Search on using the ext4 filesystem on

emmc memory

specifically otherwise you will get all the wisdom in the world on running with hard drives. I have already seen cases of file corruption on our phones with stock fstab. Whether it is caused by the slightly dodgy emulated storage mechanism or running the memory too close to its maximum speeds I can not say, but the changes in fstab are not going to add to the already existing weakness. Use 714-5 if you have an issue with the latest changes.

I am open to suggestions on different fstab settings that yield measurably better performance.
[Redmi Note 2 Android Development] Sleepy_Augie:
[MENTION=5952980]jajk[/MENTION] Are these changes going to work for the aosp version too?
[Redmi Note 2 Android Development] jajk:
[MENTION=7150090]Sleepy_Augie[/MENTION] The recent changes will work very well in AOSP when I publish an updated version for it.

Just waiting for the recent updates to AOSP to settle down and then I will do a new image. I will need someone to post the latest AOSP boot image for me to modify when the time comes as I have no intention of downloading or running that line of AOSP again.
[Redmi Note 2 Android Development] barome:
Same kernel like 1.83
[Redmi Note 2 Android Development] jajk:
[MENTION=2923435]barome[/MENTION] Thanks for the heads up, I have 1.83 so I can do this now.
[MENTION=7150090]Sleepy_Augie[/MENTION] Ask and ye shall receive (sometimes);)

New AOSP version available with same updates as MIUI714-6 but based on AOSP1.83 boot.img. This should work on all vova AOSP from 1.77 to 1.89

LMK changes requires the appropriate init.d script entries to be added - it is simply made readily accessible by the boot.img changes.

FSTAB changes are inherent and need no further intervention.

The overall cpu idle activity has progressively got lower with the various changes, check if your init.d script timer_rate value can be lowered. I find 30000 is a fraction too low and the idle freq will start to wander. 32000 is working well in holding idle at 403MHz (ignoring cyclic background tasks kicking it). Keep this value as low as is practical for your situation to keep lags to a minimum.
[Redmi Note 2 Android Development] Sleepy_Augie:
[MENTION=5952980]jajk[/MENTION] thanks for this update! Hopefully aosp will get its (gpu?) kinks worked out soon for our rn2.

Edit: btw, disabling some debugging modules in the init.d breaks (i think just the testing for) clear motion on aosp (there is a switch on/off for clear motion under display settings, but underneath this where it is supposed to show the result, it just shows the result without clear motion enabled).
[Redmi Note 2 Android Development] jajk:
[MENTION=7150090]Sleepy_Augie[/MENTION] Can you tell me which line of disable debugging causes the problem? I don't have the settings page for ClearMotion to look at.
[Redmi Note 2 Android Development] Sleepy_Augie:
Well, I seem to have been mistaken. It must have just been rebooting that fixed clear motion because with all the disable debugging lines on, the clear motion test still works.
[Redmi Note 2 Android Development] jajk:
I have been going through some interesting articles from Google and Intel regarding best settings to optimize Android 5.0 on devices comparable to ours.

Our phone is close to ideal in the Dalvik settings so no changes needed there. It does seem that it is almost imperative to run some zram swap to avoid the situation of paging to emmc memory which is both very slow and wears out the memory faster with all the writes going on.

If you are not running with any zram, the swappiness=100 default setting should be changed to 0 to make it less likely that emmc will be used for paging - the side-effect is that LMK has no choice but to kill apps when you are near to running out of conventional memory. The swappiness setting can be thought of as the willingness of the kernel to load apps into swap memory. (Note: Stock MIUI runs 4 zram drives hence the default of 100) To change it, use the following code as a guide:

#Enable zram
echo 536870912 > /sys/block/zram0/disksize ### 536870912 = 512MB 1073741824 = 1GB
/system/bin/tiny_mkswap /dev/block/zram0
/system/bin/tiny_swapon /dev/block/zram0
#If zram is disabled, enable this line instead
#echo 0 > /proc/sys/vm/swappiness
[Redmi Note 2 Android Development] jerryshaw12:
But i still worry if i got bootloop, then i need to release the battery and put it back, or my phone suddenly drop
[Redmi Note 2 Android Development] jajk:
[MENTION=3885679]acestars[/MENTION] That is exactly what I did with no problems except the phone is still Xiaomi's forgotten model. 61027 is out today, why not flash it and get better angle calculations along with the dysfunctional Notifications?
[Redmi Note 2 Android Development] cukierkas:
True. The change log is rich as never was :)

Jajk, that's not spooky, that's true. You're using smarts since they appeared, I'm as well, so some useful app just were picked from thousands of others. That's life :)

Thinking to sell Hermes for 50€ like and upgrade to Kenzo. Fully working cm, I'm coming :)
[Redmi Note 2 Android Development] cukierkas:
Update. Just got Kate, Redmi Note 3 prime international version. 200€. Updating to 8.0.4 stable. Will see how it behave :)

Who needs Hermes for let's say, 50€?
[Redmi Note 2 Android Development] jajk:
[MENTION=2606021]cukierkas[/MENTION] That's very brave of you to stick with Xiaomi after being bitten by Hermes.
[Redmi Note 2 Android Development] acestars:
only 50€? wow so cheap but i am on different country :D

Sent from MIUI 8.0.2.0 on Redmi Note 2 using Tapatalk
[Redmi Note 2 Android Development] cukierkas:
Well, this step is counted. Qualcomm, ir-da, and specs. And I do like xiaomi, despite all that Spyware, which is easy removable. Plus, xiaomi.eu support is great with all XDA community :)
[Redmi Note 2 Android Development] cukierkas:
[MENTION=5952980]jajk[/MENTION], can you make me a favor? Could you skinify Kate's boot.img for me? I don't have such knowledge. Later on I would provide some link, by now I'm fiting with twrp installation without pc :)
[Redmi Note 2 Android Development] jajk:
[MENTION=2606021]cukierkas[/MENTION] Maybe... The Qualcom based ROMs are not anywhere near as much of a disaster as MTK ROMs so the benefits are always going to be less. Post a link and I will see what can be done;)
[Redmi Note 2 Android Development] jajk:
Skinny_Pro_MIUI8_61027_boot-v11.img uploaded. This is suitable for all MIUI from 7.5.x onwards.

Changelog:

Rebased on 61027 *some supporting files have changed in this version so do not use older versions on 61027
[Redmi Note 2 Android Development] cukierkas:
Glad you're willing to help, appreciate it.

https://mega.nz/#!AE9xWLoC!zvtVUvSGRkfkD2eAmGtjrvsFcmjMye-FbLHXtHD7avs

Newly added Kate, 10.21st, android 6.0.1.

Regards.
[Redmi Note 2 Android Development] acestars:
[MENTION=5952980]jajk[/MENTION] can you enable adb and disable secure adb by default? so we can get adb command like logcat after flashed rom before device booted.

Sent from MIUI 8.0.2.0 on Redmi Note 2 using Tapatalk
[Redmi Note 2 Android Development] jajk:
[MENTION=3885679]acestars[/MENTION] I won't enable it by default in the boot.img because it is a major security risk. It is not a backdoor, but a wide open front door! It is done in default.prop if you want to do it yourself.

A departure from the normal Skinny images, I have done a Skinny_Pro_MIUI8_Tweaked-v12.img that has all the standard tweaks that would normally be applied via init.d embedded into it. This means that out-of-the -box, it works as if you have my standard init.d script present and functional. All values can still be overridden in an init.d script so if you like being difficult, argumentative or an individual, create your own.

There are 2 inbuilt tweaks that you can't override:

wdk "0 30 40" (default "0 20 30")

loglevel 0 (default 6)

Why do this?

Simple:

1. It gives a guaranteed OOBE;)

2. Efficiency: It avoids the double handling of everything being set to factory defaults during boot, then being set again by init.d script afterwards with new values.

The attached init.d script shows the state of all the options and other settings that can be enabled such as limiting max cpu freq.
[Redmi Note 2 Android Development] cukierkas:
Would it fit my freshly Kate? Or would end up with boot loop? :)
[Redmi Note 2 Android Development] cukierkas:
Hehe, I would call it unbelievable :)

Worth upgrading to Kate ;)

Never ever had such sot on mtk.

Latest weakly, a little bit tweaked with help of [MENTION=5952980]jajk[/MENTION] and [MENTION=5216574]Gyovany96[/MENTION] help.

Jajk, have You overlooked Kate's boot.img? Does it worth to edit something?

Regards.
[Redmi Note 2 Android Development] Gyovany96:
Well that look very nice ! :D

I think it's normally to have better SOT since the phone and phone's battery of course are new ! Also as I know the battery capacity is 4000mAh... Hope you'll have this SOT over few months as well :fingers-crossed:

On my RN2 the best SOT with 50% battery remaining was 2h:30 :p
[Redmi Note 2 Android Development] jajk:
[MENTION=2606021]cukierkas[/MENTION] This is a Hermes thread, please refrain from taunting the already suffering:(

I have had a look at Kate and a Skinny can be done but there is a lot of guesswork on my part to do it. Can you send me a Kate phone to make it a lot easier?

First thing I need to know is what SoC is used in terms of MSMxxxx descriptor. The scripts are for multiple variants so we can cut out all but the one in use. You may find that in build.prop or in about phone.
[Redmi Note 2 Android Development] jajk:
Skinny_Pro_MIUI8_Tweaked-v13.img posted.

Changes:

Tweaks to TCP/IP buffer settings to increase (potential) speed.
[Redmi Note 2 Android Development] cukierkas:
Thanks for the answer. I could send you the Kate, do you want one or will wear up yours Hermes till it die? :) Let me to save some money first:)

I sold my already.

Tell me more, what's needed.

Regards!
[Redmi Note 2 Android Development] jajk:
[MENTION=2606021]cukierkas[/MENTION] I will flog my Hermes to its death and then flog my backup phone to death before buying again. Hopefully by then there will be another low-end phone boxing way above its weight. Not a good market at the moment with low-end being truly low-end or being pushed into mid-range price brackets (like Kate with its 28nm SoC):laugh::laugh::laugh:

Let me skinny the image down to MSM8956 first and then I will ask a couple more questions;)

Network speeds seem to be much improved on the latest image - almost like someone has stolen the settings from a later and better performing ;)phone
[Redmi Note 2 Android Development] cukierkas:
To say the truth, I don't care what nm is used. I prefer no lag feeling with battery backup. Mtk is not in this range :)
[Redmi Note 2 Android Development] Brkge:
Nanometer is the thec. used to make cpus. Refeers the size of an metal or something idk. Smaller part means much less resistance which means less energy lost from heat and less energy lost means less energy used. So It makes a BIG difference :)
[Redmi Note 2 Android Development] cukierkas:
I know all that. But smaller parts means bigger heating. It's in need to be dispersed somehow :)
[Redmi Note 2 Android Development] jajk:
[MENTION=2606021]cukierkas[/MENTION] Just fishing to see if I could get a bite;)
[Redmi Note 2 Android Development] AssToast:
Actually a smaller die size it's fabricated on means less heat and less energy is required to power it. So it's more of a less is more situation.
[Redmi Note 2 Android Development] jajk:
[MENTION=2606021]cukierkas[/MENTION] Just been looking around and see that Kate is just a Kenzo with different modem firmware (and possibly hardware) for extra bands. You can flash custom Kenzo Kernels on it providing you have unlocked bootloader first of course. I would be researching that path since a true custom kernel will give you a lot more than a skinny boot image.
[MENTION=5201188]AssToast[/MENTION] is correct, less nanometers = smaller die size = less power consumed. There is no increasing problem pulling the heat out of the smaller die.

Qualcomm has lost its edge now that TSMC is building 14nm and 10nm SoCs for Mediatek. Maybe Qualcomm should buy into the simpler automotive electronics market and quit the phone market:confused:

If only MTK would learn how to write better code to start with and then remember their responsibility to release the source code!!!!!
[Redmi Note 2 Android Development] AssToast:
[MENTION=5952980]jajk[/MENTION] I read that Qualcomm is looking forward to acquiring NXP Semiconductors
[Redmi Note 2 Android Development] cukierkas:
So tell me why Hermes was sometime so hot, that I could fry eggs on it? :)

Optimization? I guess so.

Jajk, Kate got different camera module, fingerprint sensor newer and different modem with wider antennas. So it's longer than Kenzo more than 2mm.

Was thinking to buy Kenzo first, but 4g wider band support convinced me to get Kate.

Will see later on on the kernels, but not sure if Kenzo kernel would fully support Kate's fingerprints scanner. Next week we will see. Now family time, will inform in next week's time about breakages.

And yes, my bootloader is unlocked officially.

Edit, update with same battery run. And it's only half battery left :)
[Redmi Note 2 Android Development] jajk:
Skinny_Pro_MIUI8_Tweaked-v13b.img uploaded. This one adds a little more aggressive settings for 4G and WiFi in send direction (uploading). Feedback please....

Skinny-SuperSU-v2.78-SR2-arm64.zip posted. Only for arm64 cpus - support for everything else stripped out.

[MENTION=2606021]cukierkas[/MENTION] Hermes is smokin' hot - at least that's what Kate told me:p
[Redmi Note 2 Android Development] jajk:
This is a little bit OT but here it is anywho...

MIUI8 Toggles.zip posted.

If you simply want to alter the displayed number of rows and columns for Toggles or maybe change some font sizes in the status bar, download the file and read the enclosed instructions;)
[Redmi Note 2 Android Development] cukierkas:
Yep, Hermes is smoking hot. At least while jajk's settings weren't applied :)

Yesterday I tried some Kenzo kernels. One wrecked finger sensor, another one - camera. :)

So, libs are different :)

Regards.
[Redmi Note 2 Android Development] cukierkas:
So, no need to have init script loaded? :)

Išsiųsta naudojantis Redmi Note 3 Tapatalk 4 Lt
[Redmi Note 2 Android Development] acestars:
The toggle become 4 rows but 2nd sim wont detect. Weird.

Sent from MIUI 8.0.2.0 on Redmi Note 2 using Tapatalk
[Redmi Note 2 Android Development] jajk:
[MENTION=2606021]cukierkas[/MENTION] There are still some things that an init.d script would be beneficial for but the major settings for gov, scheduler and lmk are preset.

[MENTION=3885679]acestars[/MENTION] Weird for sure. Maybe reduce font size back down to the default 10? It could be that 2nd SIM runs out of room on status bar? I cannot see any other reason for it to affect SIM2 and definitely not in the actual detection.

Defaults are:

<dimen name="statusbar_clock_size">10.0sp</dimen>

<dimen name="statusbar_carrier_size">10.0sp</dimen>

<dimen name="statusbar_battery_size">10.0sp</dimen>
[Redmi Note 2 Android Development] acestars:
Yeah, already ok.

Sent from MIUI 8.0.2.0 on Redmi Note 2 using Tapatalk
[Redmi Note 2 Android Development] Sleepy_Augie:
Can I delete the desk clock, and how would I edit your tweaked boot images so that the new integrated init.d portion will have values corroding to the prime version of our phone?
[Redmi Note 2 Android Development] jajk:
[MENTION=3885679]acestars[/MENTION] I take it that means it was just the font size setting pushing SIM2 off the cliff?

[MENTION=7150090]Sleepy_Augie[/MENTION] For any of the init.d settings, it is the same deal as before - enable the appropriate lines and set whatever values you want. It will override the values set during boot.

I have never deleted the stock Deskclock but it can certainly be replaced if you have a preferred app.

Any feedback on v13, v13b 3G, 4G and WiFi network performance? Is there a noticeable improvement or otherwise?
[Redmi Note 2 Android Development] Rio Rapha:
Thanks followed this guide to RN 3 Snapdragon and all worked.. very very nice to delete bloatware and run with only Usefull APP
[Redmi Note 2 Android Development] acestars:
I am not sure though. I try to set airplane mode on and off but still can't get signal. I removed the zip file and reboot the signal come back. I modified the font size and it worked.

Sent from MIUI 8.0.2.0 on Redmi Note 2 using Tapatalk
[Redmi Note 2 Android Development] jajk:
Skinny_Pro_MIUI8_Tweaked-v14.img uploaded.

Suitable for 7.5.x and all MIUI8

Changes:

6.11.3 as base

Merge functional init.aee.rc lines into init.rc then remove init.aee.rc

Set TCP buffers to optimum values for MT6795

LMK minfree values changed

Increase cpu.rt_runtime_us from 800000 to 950000

SuperSU-v2.78-SR3-arm64.zip uploaded.

This is a cut down version that only does arm64 hence the small size.
[Redmi Note 2 Android Development] cukierkas:
[MENTION=5952980]jajk[/MENTION], have looked in to Kate's boot? Or just left it somewhere forgotten? :)

Small update with sot. :)
[Redmi Note 2 Android Development] vaselor:
Don't make us envious ;)
[Redmi Note 2 Android Development] jajk:
Skinny_Pro_MIUI8_Tweaked-v15.img posted.

Changes:

bg_non_interactive/cpu.rt_runtime_us 700000 increased to 900000

bg_non_interactive/cpu.shares 52 increased to 64

Default number of cores available for foreground tasks increased from 4 to 6

With the cumulative settings changes in v14 and v15, cpu time available to foreground tasks is increased by 18.75% and background tasks by 30%. It is noticeable and feels quicker than Android 6.0:laugh:

[MENTION=2606021]cukierkas[/MENTION] Kate skinny boot is going to be a bit too difficult without actually having the device to play with:(
[Redmi Note 2 Android Development] DarthJabba9:
He's volunteering his phone to be the guinea pig!:D
[Redmi Note 2 Android Development] jajk:
[MENTION=5850987]DarthJabba9[/MENTION] I know that but apart from the basics like adding init.d support, the going gets tough because I cannot query the phone to see what is running, what hardware is present or not etc. There would be too much guesswork and Android 6 + fingerprint scanner makes bootloops far more likely. The RN3 Pro family (including Kate) has a reasonable dev community doing some good stuff already. The trick is really to adapt what is built for one variant to the other or sit tight until the devs turn their attention to Kate. The information is out there hidden amongst the noob bull**** that plagues Xiaomi phones.
[Redmi Note 2 Android Development] DarthJabba9:
Indeed, the noise-to-signal ratio is appalling, and, quite off-putting. I guess initd support is a good starting point - that would at least give the user something to play with and then to report back.