yashsingh1/xdaforums huggingface dataset:
[Redmi Note 2 Android Development] jajk:
There is something incompatible introduced in the 6.3.x ROMs and a load of problems with the 6.4.x ROMs. I will note that in OP. Perhaps best to not chase the "latest and greatest" to get a "blur" effect, IOS animations or center clock at the expense of stability and battery life. There has been no

real

development from Xiaomi, Mediatek, ALPS etc. since the phone was released. All you see is an illusion of progress where there is nothing but churning (copious amount of activity to give the impression of progress). What's the famous quote? It is easy to fool most of the people........

AOSP ROMs no longer supported.

MIUI ROMs based on 6.3.x or 6.4.x not supported due to some incompatibility.

MIUI ROMs from 7.1.1 to 7.2.30 supported (7.2.30 either native reno2 or reno3 port supported) 7.2.50 is a possibility to be determined.
[Redmi Note 2 Android Development] DarthJabba9:
I concur with the general sentiments of [MENTION=5952980]jajk[/MENTION] - I think much more would be achieved by focusing on one base ROM and working on how it can be improved by tweaks to init.d scripts.
[Redmi Note 2 Android Development] jajk:
7.14-8 posted for MIUI.

Changelog:

disabled mdlogger

disabled dualmdlogger

disabled emdlogger

disabled xlogboot

7.14-9 for MIUI posted

Changelog:

disable aee.rc script entirely

disable batterywarning

More debugging that can be disabled in init.d:

echo "0" > /sys/module/earlysuspend/parameters/debug_mask;
echo "0" > /sys/module/sbsuspend/parameters/sbsuspend_debug_mask;
echo "0" > /sys/module/snd/parameters/debug;

Looking back at a 6.4.7 boot.img it looks as though attempts have been made to to manipulate some settings involved in plugging cores in and out of service to save power. I think this is where the incompatibility creeps in as the 7.x.x ROMs have ro.build.type=user while 6.x.x images have ro.build.type=eng or userdebug. This property is used to determine what gets loaded by init so gives a different outcome. Maybe someone on 6.3.x or 6.4.x could try changing the build.type to user in build.prop before trying Skinny Pro?

The attempt to improve battery in 6.3.x and 6.4.x was and is a complete failure if anyone is wondering.
[Redmi Note 2 Android Development] black1dragon:
Hi everyone,

thank you for your efforts! I am using sMIUI 6.4.21 and your boot.img. works fine so far (3days with version 7, and just upgraded to version9)
[Redmi Note 2 Android Development] jajk:
[MENTION=7434768]black1dragon[/MENTION] That is interesting and thanks for reporting.

I am able to reduce some timings on 714-9 to take advantage of further reduced background activity (compared to 714-7) as follows:

echo 31000 > /sys/devices/system/cpu/cpufreq/interactive/timer_rate
echo 10000 > /sys/devices/system/cpu/cpufreq/interactive/min_sample_time
echo 10000 > /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay

This will give you a stable idle freq and pretty good responsiveness providing you have everything else under control. Always a good idea to retest these settings as you add / remove things from your phone.

Anyone aware of a difference between using /system/bin/tiny_mkswap and tiny_swapon and using /system/xbin/mkswap and swapon? Both work and I cannot see any difference.
[Redmi Note 2 Android Development] fossean:
Just tested this, and it finally fixed my swap partition not showing in terminal following boot.

Before, when using both tiny_mkswap/swapon or a renamed teeny_mkswap/swapon, it would only show up after executing the script in kernel adiutor. Strange:eek:
[Redmi Note 2 Android Development] jajk:
EU 61124:

https://yadi.sk/d/06o8H_MnzQuRp

Skinny_Pro_MIUI8_Tweaked-v20.img uploaded

Rebased on 61124. Not much else to report.

For those watching..... framework tweaks2.txt replaces the first version.
[Redmi Note 2 Android Development] cukierkas:
I do like your sense of humor ;)

Take care :)
[Redmi Note 2 Android Development] DarthJabba9:
Thanks. Are any of the previous releases now obsolete ?
[Redmi Note 2 Android Development] andrea210701:
Never expect partial source code,too
[Redmi Note 2 Android Development] jajk:
Skinny_Pro_MIUI8_Tweaked-v20.img is applicable to all MIUI8 and maybe MIUI7.5.xx if it doesn't break Bluetooth as before?

I think the kernel is identical so it is really just a maintenance release to keep the kernel and supporting files current.

I was prompted to include the Xiaomi corporate motto after reading up on upcoming MIUI8.1.1 and MIUI9 projects. I rarely visit official Xiaomi sites as they make me want to vomit:eek:
[Redmi Note 2 Android Development] DarthJabba9:
Launcher -> Nova Launcher

Email -> Blue Mail

Filemanager -> Amaze
[Redmi Note 2 Android Development] jajk:
O.K Finished playing with decompiling frameworks and can now feed this to the masses in a much easier form......using the built in MIUI Theme Engine:eek:

The attachment has everything you could possibly want to tweak everything that can be tweaked (in framework-res.apk that is) and best of all, it doesn't need a shiny app or Xposed.

Remember that we all have the same LTR559 alps device but we don't all have the same LCD panel so LCD backlight may need to be adjusted for your LCD but maybe not too much messing with the ambient light sensor values;)

Read instructions first, then screw it up:good:

Edit: Remember this is from an EU ROM so the ntp settings were already changed to from asia to europe.pool.ntp.org and SUPL_PORT=7276. This is the so-called "faster GPS lock" tweak. The example is reset to suit Australia. You can also add the following line from strings.xml to be more strictly correct: (adjusting for your ntp server of course)

<string name="config_ntpServer">au.pool.ntp.org</string>
[Redmi Note 2 Android Development] ser.clansman:
Is anyone expierencing inability to modify certain system apps services and bootups (security, updates and similar) in several latest developers builds from xiaomi.eu through both Sd maid and myandroittools or is it just my setup? (I always do clean setup, after a full wipe, skinnyfy per instructions, tweaked kernel etc. ) Also, is there a solution for that annoying "feature" - in developers options the install through usb and fastboot can't be enabled without a logged in xiaomi account(in order to restore backuped apps through titanium orbackup nandroid manager or whatever)? Sorry for being offtopic, again.
[Redmi Note 2 Android Development] jajk:
[MENTION=3761200]ser.clansman[/MENTION] There are a handful of services that refuse to be disabled since later builds. Put it down to Xiaomi being Xiaomi or maybe Google "security updates". I lost fastboot access when I installed a custom boot logo - flashing stock logo.img restores the ability;)

Today's amusement attached.....
[Redmi Note 2 Android Development] jajk:
Some good and bad news on the autobrightness front:

Good news: :good:

1. LcdBacklightValues can be probed here: /sys/class/leds/lcd-backlight/brightness (0 - 255)

2. Raw hex autoBrightnessLevels can be probed here: /sys/bus/platform/drivers/als_ps/als (max value c350)

3. Scaled Lux output only gives the following values: 0 5 10 30 80 120 225 320 550 800 1250 2000 3000 5000 5500 7500 13000 24000

4. LCD backlight values are interpolated when in-between light readings.

5. Test array by assigning LcdBacklightValues 18 20 22 24 26 28 30 etc. Probing the resultant brightness value will tell you exactly where you are in the array currently (18 19 20 21 22 23 etc)

6. Direct sunlight can only push the autoBrightnessLevels to around 2000. Unknown scaling but suspect it is hex with letter input being illegal.

Bad news (at least on 61110) :(

No matter what you do, you will only get 3 distinct transition levels (0-80, 80-2000, 2000+) plus a bit of interpolation depending on whether the brightness is rising or falling.

Please share your experience if you are hacking autobrightness and remember to state exactly what ROM version you are on.
[Redmi Note 2 Android Development] Adam Hui:
Anyone playin Prisma? I couldnt get any results as the photo previews were blank blackened... 61124+v20 (disable 'force gpu rendering')
[Redmi Note 2 Android Development] Xabadou:
http://en.miui.com/thread-293853-1-1.html

Maybe aid on automatic brightness.
[Redmi Note 2 Android Development] jajk:
[MENTION=6199310]Xabadou[/MENTION] I have seen that already and while it seems perfectly correct, it falls over because Xiaomi/MTK have a bug in the code. This is probably the reason why the original figures are so retarded - some coder must have just chucked those values in and walked away in disgust knowing that the simple task of adjusting brightness according to ambient light is beyond Xiaomi's capability. We can take solace in knowing that this affects the rest of their phones like RN3Pro.

I note that turning autobrightness off in framework-res actually turns off the non-stop polling of the ALS and saves on battery. Just turning off autobrightness leaves the sensor running. Apps that need the ALS will still work happily.

<bool name="config_automatic_brightness_available">false</bool>

If you have replaced the Launcher, then you can kill the SystemUI - Wallpaper service by:

<bool name="config_enableWallpaperService">false</bool>

Another SystemUI service that can be shut down is DessertCaseDream:

<bool name="config_dreamsSupported">false</bool>

I have looked at 6121 and there are no changes that affect the current skinny boot image. The 61124 based v20 image will work for 6121.
[Redmi Note 2 Android Development] ShuppaGail:
How to set live wallpaper on this rom? Forest live wallpaper to be exact. I haven't find a way to do it.
[Redmi Note 2 Android Development] asusm930:
hey man I'm a redmi note 4 user here and I'm trying to find ways to fix multitasking because it is SHI* on this device/rom

What I've tried is removing whetstone, freezing battery saver app, and renaming the whetstone libs but it (the phone/rom) still likes to kill apps even if I have like 700/800mb free ram

is there a way to fix this without modifying my kernel/boot.img appart from the steps I've listed above.

Also, youtube playback is HORRIBLE for 1080p 60FPS

plays fine using google photos and other video players, just not on youtube which is RETARDED. Is there anyway to remedy this? I've tried disabling clearmotion and mira image thingy via build.prop and it doesnt do jack shi*

This is phone is so new and theres like almost zero development lol

thanks in advance. You guys are doing an awesome job here for the redmi note 2
[Redmi Note 2 Android Development] jajk:
[MENTION=2078083]asusm930[/MENTION] Do you at least have TWRP, root and init.d support?
[Redmi Note 2 Android Development] asusm930:
Yes I do and I'm ready to experiment to improve these stupid app closes
[Redmi Note 2 Android Development] jajk:
[MENTION=2078083]asusm930[/MENTION] delete the contents of etc/mcd_default.conf and save it (as an empty file). This effectively disable MIUI's default and useless zram config. Next, update Busybox to 1.25.1 (file in O.P link).

Next, create or add this to an init.d script:

#Enable zram
echo 536870912 > /sys/block/zram0/disksize # 536870912 = 512MB (for 2GB RAM version) 1073741824=1GB (for 3GB RAM version)
/system/xbin/busybox mkswap /dev/block/zram0
/system/xbin/busybox swapon /dev/block/zram0
echo 100 > /proc/sys/vm/swappiness

Next, install KernelAdiutor and check what the reported LowMemoryKiller settings are.

Add this to init.d script if the settings are way too aggressive:

# Tweak LMK 48 64 80 96 112 156MB
echo 12288,16384,20480,24576,28672,39936 > /sys/module/lowmemorykiller/parameters/minfree

Reboot and see if you have functioning zram and changed minfree values. This gives you the biggest boost to keeping more apps in memory.

Next, install SD Maid and uninstall, Freeze and disable autostarts for the vast majority of Xiaomi provided apps.
[Redmi Note 2 Android Development] asusm930:
Ive done the init.d part and it still is kill happy.

Is there a kernel solution? (involving unpacking boot.image etc?)

Because Im ready to experiment

Another thing i remember the xiaomi ppl saying that the rom is optimized for the 2GB version of my phone (mine is 3gb) so maybe it explains why its so kill happy? Does this info help you in any way? Thanks in advance

Also, the values in kernel audiotor match with the init.d script values
[Redmi Note 2 Android Development] helmiazrin:
Hi... I'm running Skinny rom by [MENTION=5216574]Gyovany96[/MENTION] stable 8.0.2.0 and I flashed boot.img v20. Just wondering am I doing it correct or do I need to flash boot.img for v8.0.2.0?
[Redmi Note 2 Android Development] Gyovany96:
[MENTION=6394443]helmiazrin[/MENTION]

According to jajk "

Skinny_Pro_MIUI8_Tweaked-v20.img is applicable to all MIUI8

" , so it's ok. If you notice something strange just try the Skinny Pro 8.0.2.0:good:
[Redmi Note 2 Android Development] helmiazrin:
Thanks for answering [MENTION=5216574]Gyovany96[/MENTION]. All good after I flashed the boot image v20. Only FC on Battery Saver after I deleted libs for whetstone . No more FC after freezing Battery Saver. :good:
[Redmi Note 2 Android Development] jajk:
[MENTION=2078083]asusm930[/MENTION] If you have the 3GB version, you set the zram to 1GB if you haven't already. That is as good as you will get for memory availability and the minfree values are moderate - not agressive like original values.

If you are still getting apps killed, then start freezing and disabling autostarts using SD Maid. You should be able to free up a ton of memory without needing a tweaked kernel.

[MENTION=6394443]helmiazrin[/MENTION] Seems wrong but it is correct - BatterySaver consumes more battery. It is bloat to make you feel like you are cared for:eek:

SuperSU-v2.78-SR5-arm64.zip uploaded. This is ultra-skinnied by stripping out unneeded libs plus using GOptimize app to compress PNGs etc. Only suits arm64 processors.

A new (and nicer) set of Custom Root Explorer icons is uploaded which is also GOptimized for amazingly small size.
[Redmi Note 2 Android Development] jajk:
[MENTION=6394443]helmiazrin[/MENTION] That script is good as it is. You could stop all the logging services for a little reduction in activity.

Now start looking at reducing the number of apps and services that are running by default. SD Maid and MyAndroidTools are my tools of choice. Start with a long hard look at the bundle of apps rolled up into the Security Centre. I always get rid of Blocklist, Virus Scanner and Cleaner related apps since these are nothing more than trojans. The Security app can then be limited to providing the 3 basic services worth keeping. See attached pic to understand how;)
[Redmi Note 2 Android Development] Gyovany96:
[MENTION=5952980]jajk[/MENTION] I limited my CPU to 4 cores at 1482000Mhz ( also modified Hotplug to 4 cores ) but I can still see freqs like

@188500Mhz

and

@2152000Mhz

into CPU-Z app , although the CPU cores numer is correct ( 4 cores ).

Also I enabled all

"disable services"

lines but when I type getprop into Terminal Emulator I can see all that services still

[running]

!
[Redmi Note 2 Android Development] jajk:
[MENTION=5216574]Gyovany96[/MENTION] You will see the higher freqs for brief periods as the limit doesn't come into effect until boot is finished. No idea why your stopped services are still running - try issuing the same commands in Terminal to see if it is an init.d issue.
[Redmi Note 2 Android Development] Gyovany96:
Stopping services will not work in Terminal Emulator until I grant

su

access... That's a bit weird :/

Beta 6.12.1-SKINNY and your latest Skinny SuperSU 2.78-SR5

EDIT : Also the CPU frequency keeps climbing above selected limit (1,4Gh) to 1,8Ghz/2,1Ghz even long time after boot
[Redmi Note 2 Android Development] jajk:
[MENTION=5216574]Gyovany96[/MENTION] Yes you need su rights to start or stop services. Anything in the init.d script is automatically run with su rights.

I am suspecting that your script is not running because it contains an error or does not have the correct permissions (0755). The script will abort if an error is found therefore you can get a situation where the script only partly completes. Easily tested by adding lines through the script like: echo "this is line 5" >> /sdcard/test.txt

Edit: For people who do not want to run with the skinny boot images but do want init.d support........

Edit /system/etc/partition_permission.sh and add these lines to the bottom:

# init.d
service runparts /system/xbin/busybox run-parts /system/etc/init.d
class main
user root
disabled
oneshot
on property:sys.boot_completed=1
start runparts

This gives you init.d support (without needing an app to do it) but you will have to create the init.d folder manually. Not all settings used with skinny boot images will work but that is the users choice;)
[Redmi Note 2 Android Development] Gyovany96:
[MENTION=5952980]jajk[/MENTION] I solved the problem by downloading your 01_init script. I created the first script using Notepad++ by copy-paste init.d code from O.P. and save file in Unix format.

I also compared the 2 scripts using Notepad++ and was exactly identical , but mine doesn't work and your does :p

Anyway, thanks for support !:good:
[Redmi Note 2 Android Development] Iliyena:
On a small Note (pun definitely intended) Isn't it 3 cores @ 1183 MHz that is the default MIUI setting for touchboost? (Says 2 cores in OP)
[Redmi Note 2 Android Development] Xabadou:
New stable rom 8.1.2:

http://en.miui.com/thread-394496-1-1.html
[Redmi Note 2 Android Development] jajk:
Or maybe 8.1.30 :confused:

https://yadi.sk/d/_vK1ky3B32jDxr

I will look at both the latest 6.xxx and 8.1.xx boot images to see if they are still cross-compatible. If not, I will post a skinny for each separately.

Watch this space;)

[MENTION=7442305]Iliyena[/MENTION] I was trying to be kind to Xiaomi and not make it look even more ridiculous - 3 cores @ 1183MHz just because you touch the screen is an extreme overreaction!!!
[Redmi Note 2 Android Development] Iliyena:
O

Pretty smart though, when everyone keeps nagging about how bad their battery is they just get overshadowed by all reasons this can happen and be solved... (Everyone whines about battery life) While those who just don't care about how many times they need to charge gets happy not getting any stuttering waking an "overloaded" stock configuration ;) Compensates for all but batterylife :P

Additionally I did try out the CM 12.1 boot img earlier today... I'm on the november release (last version) of CM 12.1 Aurora. It did not work out. Booted just fine but did nothing to my hotplugging or gov parameters, lost thermal sensors of CPU and some other things.

So I've restored all but the switch from built in root to SuperSU and will use my edited Automate.flow for your settings and hope it give some nice results.

Were back on MIUI for a week trying the Skinny Rom based on MIUI 8.0.2.0 Stable. Were ok but those bloody permissions and settings spread throughout the whole ROM... CM seems to have yanked 'Mi' away from MIUI.

And finaly! A question [MENTION=5952980]jajk[/MENTION]

How come Xmisters ramps is so different from the way you go at it? Have given loads of folks the Redmi Note 2 tool as a tip. It does do good against touchboost and can disable cores, UC and such so its still great in that way. But the gov parameters are way off yours. Except I do think deep sleep got a bit of a buff with yours.

I am also using Skynet btw so that might make comparing obsolete.
[Redmi Note 2 Android Development] jajk:
[MENTION=7442305]Iliyena[/MENTION] Don't mix your tweak tools - more is not better. I won't comment on other peoples offerings but I have had a long hard look at most of them to see if there is anything of merit and I credit the source of anything I use;)

As with all Skinny stuff I put out: My tweaks do not require a resident app and don't download ads or steal your data.....
[Redmi Note 2 Android Development] Iliyena:
I never mix the tweaks to begin with :)

First I try them out one by one, then trying to get the other to get "absorbed", third trying to not do things that clash, fourth mix them up and compare stats ;)

My wish is to have one init-file like this but since I don't have the time to get all I want perfect I keep trying stuff out until I get the best result. I know you don't want to comment on others gov parameters but I'ts just exciting to see such different approaches trying to reach the same goal. :)

When I get my deep-sleep stabilised I will get to changing some parameters by myself :)
[Redmi Note 2 Android Development] jajk:
Skinny_Pro_8130_Tweaked-v20.img uploaded. Same as previous version - just rebased on 8.1.30 kernel and supporting files. Should work on 6.12.xx also but does not support the games accelerator gimmick that should be ignored anyway.

No surprises, autobrightness is still broken but we have 3 finger screenshot - Whooopie :rolleyes: so I have also uploaded a premade autobrightness fix only for 8130 EU to my autobrightness fix thread if anyone is interested;)
[Redmi Note 2 Android Development] jajk:
SuperSkinnySU-v2.79-arm64.zip uploaded.

This is the TWRP flashable version. It is for arm64 only and resolutions above hdpi. Can be used on any phone that meets these 2 requirements.
[Redmi Note 2 Android Development] jajk:
Skinny_Pro_61215_Tweaked-v21.img uploaded.

Usable on all MIUI7.5.x and MIUI8 ROMs

Changes:

Rebased on 6.12.15 Boot.img

LMK minfree values altered to now be the same as "light" setting in

latest

Kernel Adiutor.

Useless GPU settings for "Game Booster" removed (was only ever in 6.12.xx versions)
[Redmi Note 2 Android Development] KelSanity01:
i cannot restore apps from titanium backup after flashing Skinny_Pro_8130_Tweaked-v20.img and install via usb is disabled.im using MIUI 8.1 Stable 8.1.3.0-SKINNY by Gyovany96 so i cannot access mi account to enable install via usb in dev options.what should i do.tnx in advance
[Redmi Note 2 Android Development] jajk:
[MENTION=6790212]KelSanity01[/MENTION] Rule No. 1: Don't use Skinny boot images if you want to connect to Xiaomi.

Just flash back the ROMs standard boot image and then take your complaints to the appropriate thread.
[Redmi Note 2 Android Development] Vut:
Ok. I have a question. I would like to install this mod, because my battery to withstand lte hour Sot. It is worth a try.

Enough to install 'skinny boot' and so do I need to change something in the files? Can you explain?

I use only the Internet and 2-3 applications. Not games, so I do not need the performance for gaming but i need long battery life.

Wysłane z mojego Redmi Note 2 przy użyciu Tapatalka
[Redmi Note 2 Android Development] jajk:
[MENTION=6037148]Vut[/MENTION] By installing the Skinny boot image, you will get most of the settings that are usually done through init.d preloaded as is shown in O.P. My default is to run on 5 cores max but I leave the frequency limit to be set by the user. I recommend going only 1 step down from max because going lower only makes more cores kick in more often.

So, install the boot image and you will get 75% of the tweaks done for you without doing anything else. Add the init.d script to configure another 10% which will generally be limiting the max cpu frequency and choosing which boot-time services to stop. The remaining 15% involves uninstalling or freezing apps, stopping autostarts and disabling various services. Do the first 2 steps first and get used to what this does for your phone before venturing further;)
[Redmi Note 2 Android Development] Vut:
My English is not high.

Summarizing. I have done so:

1) Install Super SkinnySU

2) Install SkinnyPro

3) Install (optional) Xposed

4) Install the init (give someone a link?)

5) Install BusyBox

6) Change manually or use the file 01_init

If something is wrong I would ask to write in the correct order;)
[Redmi Note 2 Android Development] giacomo1:
thanks jajk for your work, i use the last Skinny Stable 8.1.3.0 with your Skinny_Pro_8130_v20.img and last SuperSkinnySU-v2.79-arm64 installed but I can't get proper root on the system, i am unable to disable autostarts for some applications like miui updater or under security services.

Enybody else had this issue?