yashsingh1/xdaforums huggingface dataset:
[Redmi Note 2 Android Development] DarthJabba9:
Indeed. And it says a lot about the values/standards of the manufacturer. In any case, what is reported, as you rightly point out, can be quite bogus - after all, it is up to manufacturers to embed (or let the hardware report) whatever identity they wish. It seems that manufacturers can make their hardware report part numbers that are the same as anybody else's (on the basis that the hardware is "compatible" with whatever it reports itself as). In Western countries, someone might end up in court on charges of passing off - but this can be a grey area at best.
[Redmi Note 2 Android Development] redbird88:
Where do i download Skinny_Pro_MIUI8_8010_boot.img?
[Redmi Note 2 Android Development] DarthJabba9:
Go to the OP.

---------- Post added at 12:37 PM ---------- Previous post was at 11:57 AM ----------

Indeed (assuming one wishes to stay with MTK and not move to Snapdragon). But is such a list available?

Edit: a quick search revealed the following - Jiayu; LeTV (LeEco) ; Zopo; UMI; Cubot; Elephone; Ulefone/Star (which has its own issues...)
[Redmi Note 2 Android Development] Adam Hui:
Unfortunately the other helio x10 phones did not bring a removable battery, that's a deal breaker for me.

Xiaomi poor development attitudes wasn't on my sums...

*] front LED holographic keyboard >> another dream in android
[Redmi Note 2 Android Development] Dr Grato:
So u recommend me not to use redmi note 2 tools together with this apps?
[Redmi Note 2 Android Development] Adam Hui:
Been using it for months till i notice it's a pretty big size, resources & ram consumption that are not deserve as it really does.

*] front LED holographic keyboard >> another dream in android

---------- Post added at 07:15 PM ---------- Previous post was at 07:07 PM ----------

anyway guys OOT, what's your favorite app to replacing mainstream RN2 owner's 'the dream of dt2w' & keep power button stays healthy ?

I've been using proximity's ScreenWakeUp as it's a tiniest.

*] front LED holographic keyboard >> another dream in android
[Redmi Note 2 Android Development] AssToast:
It's just a tool to set touch boost, cpu frequency and some other stuff. Why would it use a large amount of RAM when it doesn't need to run in the background.

As for the large size, it only does that if you downloaded TWRP from it.

---------- Post added at 03:11 PM ---------- Previous post was at 03:09 PM ----------

With all these different parts showing up in our devices, I'm now a little bit sceptical towards Xiaomi. Maybe the flagships Mi devices (other than Redmi series) are better in this regard.
[Redmi Note 2 Android Development] DarthJabba9:
[MENTION=5952980]jajk[/MENTION] We certainly are! But I discovered that copying 20GB from external sdcard to PC is far quicker than copying it back (which took about half an hour). Are there sdcards faster than class 10? :rolleyes:
[Redmi Note 2 Android Development] jajk:
New images based back on 7.1.4 posted in O.P. There is nothing wrong with the 7.2.20 based images as far as I can see but neither is there any benefit.

Link is to a folder now so you can see all available files. The minor revision number (-x) indicates what is a later version as opposed to the base ROM it was taken from.

The 714-4 versions have minor improvements over -3 versions but there is no pressing need to upgrade if you do not want to.
[Redmi Note 2 Android Development] jwchen119:
Just to mention a better way to apply the setting between standard and prime version of this device.

I've used this for long time but don't have time to share with all you guys.

Here's the example, I think [MENTION=5952980]jajk[/MENTION] you will make it clear ;)

sourceStandard="1950000 1781000 1625000 1469000 1326000 1183000 806000 403000"
freqStandard=$(echo $sourceStandard | sed -e 's/\r//g')

file="/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies"
sourceDeviceType=$(<"$file")
deviceType=$(echo $sourceDeviceType | sed -e 's/\r//g')

rm /data/interactiveTweak.log

if [ "$deviceType" = "$freqStandard" ]; then
echo "Your device is standard" > /data/interactiveTweak.log
if [ -e /sys/devices/system/cpu/cpufreq/interactive/ ]; then
echo "Applying interactive tweaks..." >> /data/interactiveTweak.log
# echo blahblahblah
fi
else
echo "Your device is prime" > /data/interactiveTweak.log
if [ -e /sys/devices/system/cpu/cpufreq/interactive/ ]; then
echo "Applying interactive tweaks..." >> /data/interactiveTweak.log
# echo blahblahblah
fi
fi
[Redmi Note 2 Android Development] PalychUA:
jajk, there is a possibility to add support Mass storage device (USB MS) ?!
[Redmi Note 2 Android Development] jajk:
[MENTION=5261119]jwchen119[/MENTION] It would be even nicer to be able to query the cpu speed directly - as is done in "About phone - CPU". Might have to pull apart a few apps to find how that works:p

[MENTION=7231977]PalychUA[/MENTION] I think this is what you are after. This is the method of [MENTION=5857044]vova.vafin[/MENTION] published on 4pda site - credits to him. This is done external to the boot.img. Let me know if this works for MIUI.

edit /system/etc/permissions/platform.xml to read as follows:

<permission name="android.permission.READ_EXTERNAL_STORAGE">

<group gid="sdcard_r"/>

</permission>

<permission name="android.permission.WRITE_EXTERNAL_STORAGE">

<group gid="sdcard_r"/>

<group gid="sdcard_rw"/>

<group gid="media_rw"/>

</permission>

<permission name="android.permission.ACCESS_ALL_EXTERNAL_STORAGE">

<group gid="sdcard_r"/>

<group gid="sdcard_rw"/>

<group gid="sdcard_all"/>

<group gid="media_rw"/>

</permission>

Don't know why the word STORAGE appears with a space in it - it is not there so don't put one in.
[Redmi Note 2 Android Development] jwchen119:
OK, there's another less complicated way to achieve it:

#!/system/bin/sh

file="/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq"
deviceType=$(<"$file")

rm /data/interactiveTweak.log

if [ "$deviceType" = "1950000" ]; then
echo "Your device is standard" > /data/interactiveTweak.log
if [ -e /sys/devices/system/cpu/cpufreq/interactive/ ]; then
echo "Applying interactive tweaks..." >> /data/interactiveTweak.log
# echo blahblahblah
fi
else
echo "Your device is prime" > /data/interactiveTweak.log
if [ -e /sys/devices/system/cpu/cpufreq/interactive/ ]; then
echo "Applying interactive tweaks..." >> /data/interactiveTweak.log
# echo blahblahblah
fi
fi

You can't expect all the user is using MIUI, which you can see the information from "About phone - CPU" but all the information in system is the same. This should be less work for end-user to edit the script if they are using prime device. And you can add something different to it.
[Redmi Note 2 Android Development] jajk:
[MENTION=5261119]jwchen119[/MENTION] I like that - much simpler. No need to look further :)
[Redmi Note 2 Android Development] PalychUA:
I have exactly these values: http://s8.hostingkartinok.com/uploads/images/2016/04/379aec939974b53c8e280eec454fcf27.png

Firmware [Rom/OTA] Nik Rom Project MultiRom 7.2.2.0 Service Pack 3 OTA. USB MS works in the native kernel.
[Redmi Note 2 Android Development] Nikoz47:
It works, because i modified native kernel to anable USB MS on my rom

---------- Post added at 04:31 PM ---------- Previous post was at 04:29 PM ----------

My friend, PalychUA asked about USB Mass Storage support at your boot.img, not about rw permissions fo external sdcard;)

P.S: Or i misunderstood something?
[Redmi Note 2 Android Development] PalychUA:
jajk,

Now, another thing! Dear Nikoz47 has made adjustments in your kernel. USB Mass earned.

Nikoz47, thank you very much for the modification.
[Redmi Note 2 Android Development] Nikoz47:
No problem, but to see USB MS option also settings.apk needs to be modified, in my rom it worked because i've done that too, in other roms, usb mass storage is an invisible option
[Redmi Note 2 Android Development] smokerman:
this is nice to see..growing our development..stock kernel needs reallya big improvement..im gonna test Nikoz47 rom in a bit..;)
[Redmi Note 2 Android Development] jajk:
[MENTION=7231977]PalychUA[/MENTION] I got a bit confused there with my reply - sorry for the confusion. As [MENTION=5223771]Nikoz47[/MENTION] mentioned, he has a modified kernel + modified settings.apk to achieve UMS support so it is applied to specific ROMs - not a universal solution for any ROM. If it is just the kernel itself that is modified (nothing in the init scripts), then anyone can unpack mine and substitute the kernel.gz file to get that part of the support at least.

Further to discussion about auto-detecting the cpu type, thanks to suggestions by [MENTION=5261119]jwchen119[/MENTION] here is a tested working example:

I have included the method to limit cpu freq on this example for the battery conscious users out there.

#!/system/bin/sh

file="/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq"
deviceType=$(<"$file")

### This section for Redmi Note 2 Standard Edition
### Available freqs: 403000, 806000, 1183000, 1326000, 1469000, 1625000, 1781000, 1950000

case "$deviceType" in
"1950000")
echo "90 403000:80 806000:85 1326000:90 1625000:95 1950000:99" > /sys/devices/system/cpu/cpufreq/interactive/target_loads
;;
esac

### This section for Redmi Note 2 Prime Edition
### Available freqs: 403000, 806000, 1183000, 1326000, 1482000, 1664000, 1885000, 2158000

case "$deviceType" in
"2158000")
echo "90 403000:80 806000:85 1326000:90 1664000:95 2158000:99" > /sys/devices/system/cpu/cpufreq/interactive/target_loads
;;
esac

### Tweak Interactive CPU Governor
echo 806000 > /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq
echo 85 > /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load
echo 32000 > /sys/devices/system/cpu/cpufreq/interactive/timer_rate
echo 10000 > /sys/devices/system/cpu/cpufreq/interactive/min_sample_time
echo 15000 > /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay
echo 20000 > /sys/devices/system/cpu/cpufreq/interactive/timer_slack

### uncomment the following lines and enter a valid freq to limit cpu freq
### You must also rescale "target_loads" to this freq limit at 99% for correct operation

#echo 1625000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
#echo 1625000 > /proc/cpufreq/cpufreq_limited_max_freq_by_user

### Enable zram swap - enable these lines if needing extra ram capacity
#echo 536870912 > /sys/block/zram0/disksize ### 536870912 = 512MB 1073741824=1GB
#/system/bin/tiny_mkswap /dev/block/zram0
#/system/bin/tiny_swapon /dev/block/zram0

### Tweak Entropy to avoid regular depletion of available pool
echo 512 > /proc/sys/kernel/random/read_wakeup_threshold
echo 1024 > /proc/sys/kernel/random/write_wakeup_threshold
[Redmi Note 2 Android Development] DarthJabba9:
[MENTION=5952980]jajk[/MENTION] This is my init script (000init.sh, which I have renamed 000init-sh.txt in order to be able to upload it). It works pretty well here, but if there are any suggestions for optimisation, I'm all ears!
[Redmi Note 2 Android Development] jajk:
[MENTION=5850987]DarthJabba9[/MENTION] Does the GPU limiting work without problems as someone complained about a while back? Do you get noticeable battery improvement by limiting GPU? I have never bothered to test this thoroughly apart from seeing how to implement it in init.d script.

If these scripts get any more complicated, they will become sentient:eek:

I have uploaded a "Special Edition" Skinny_Pro_AOSP_183_boot.img just for AOSP 1.83 fans. This version keeps the kernel that vova packages but is skinnified to the max. There is no loss of functionality at all because you have already cut the umbilical cord to Xiaomi by choosing to go AOSP. I am currently running it now on a heavily skinnied AOSP 1.83 and it is good:)
[Redmi Note 2 Android Development] DarthJabba9:
You can see from the script that the code (2 lines) to write the speed-limited gpu settings is commented out. I had issues with random rebooting when I first used it, but it may be that those problems were caused by something else. I will try it again later - all that is needed is to uncomment two lines.

SkyNet will then know what it feels like to be on the receiving end.:victory:
[Redmi Note 2 Android Development] _NemO_:
[MENTION=5952980]jajk[/MENTION], could you explain how to cook own images?

Also there is 7.2.3.0 update with new kernel, do you plan to patch boot.img ?
[Redmi Note 2 Android Development] jajk:
[MENTION=5236875]_NemO_[/MENTION] There is no advantage chasing the latest kernel - most newer kernels for redmi note 2 are bloated with redmi note 3 fingerprint services and other stuff for locked bootloaders that don't really apply to our phone. If something better comes out, I will definitely pull it apart and tune it up. Do not confuse a kernel with a boot.img that holds the kernel and supporting configuration files.

The boot images based on 7.1.4 are suitable for 7.1.1 right up to 7.2.30. Some devs are using 7.1.1 or 7.1.3 boot images in preference to newer versions. The reality is that Xiaomi are just churning away releasing new versions that only change a couple of minor graphical features - it give people the sense that progress is being made where there is none:p

Possibly asking for trouble but I have uploaded a simple yet reliable tool (first post link) for unpacking and repacking boot.img and recovery.img files. Take the whole folder - it is a Windows based tool. Drop a boot or recovery image into the folder and run the menu batch file - it is self explanatory after that.

The first trick is to unpack the file and understand what is inside it. If you use one of my boot images as an example, it is easy to see where I have commented out lines in the init scripts. Most of the time I use #### to indicate what lines I have disabled (as opposed to some already disabled lines). Sometimes this is not practical when shifting blocks of line between files. If you compare a stock boot.img with one of mine, you will see some files are missing as well. Comparing a stock image to a modified one will start you down the path of acquiring knowledge or insanity;)
[Redmi Note 2 Android Development] Crim Soukyuu:
Would applying this stop my phone from kicking active apps/services out of RAM sporadically? It keeps randomly killing all media players I tried except the MIUI one. Already deleted the whole cleaner+SDK thing and set low memory killer to "light" using Kernel adiutor and it keeps happening.
[Redmi Note 2 Android Development] DarthJabba9:
Disable "Turn on MIUI optimization" in the developer options (if you have enabled developer options). After this, you will have to close down recent apps manually (I use "RecentTask" from the Play Store).
[Redmi Note 2 Android Development] jajk:
There is nothing wrong, and it is common practice, to multi-source components as is done in the RAM on our device but when critical components like the LCDs are sourced from various suppliers as is the case, we end up with a very "generic" version that I see has only 70% color gamut which is well behind the offerings of similar phones. I also noticed that Xiaomi have changed their original advertising wording to say that Samsung is one of their suppliers but not that the camera is going to be a Samsung as was originally stated. Samsung must have had a growl at them but not yet OmniVision.

What this indicates (to me) is that the company is no different to many other Chinese manufacturers who are dishonest in their advertising and open to substituting parts for lower quality "clone" items. Why would their ethics change for the new RN4? There is a time and a place for cheapo Chinese products and I bought my RN2 knowing it would not be built like a Samsung or (original) Motorola.

Incidentally, my other phone which is a Ulefone, does not give access to devinfo by any means - I know why and am not at all surprised;)

Enough said on this I think - fun to have a poke around in this area but lets get back on topic:)

On the topic of Redmi Note 2 tools:

Sure, use the app but it is better to understand what settings it is changing and what effect they have and then doing it yourself without using an app. Not everything the app does is sound.

[MENTION=5201188]AssToast[/MENTION] ALSPS = ambient light sensor / proximity sensor, CTP = capacitive touch panel, LCM = liquid crystal module, Gyro = gyroscopic sensor, MAG = magnetic sensor, Discrete LPDDR3 = low power double data rate version 3 RAM chip, Camera = Camera, Battery = Battery

Anyone flashed the Skinny_Pro_8010.img yet? Interested in some feedback....
[Redmi Note 2 Android Development] DarthJabba9:
I have. So far, I've not seen much difference between it and the "Basic" version, although it seems that the kernel wakelocks, as reported by BBS, are very much reduced in comparison with the Basic version. But it is early days yet (also, I'm not sure how I would reliably measure the difference between the two).

PS: you may wish to add a readme file to your downloads directory, which explains the ROM versions that the boot images are compatible with; this could be obvious from the filenames, but it would help preempt guesswork (and people guessing wrongly)!
[Redmi Note 2 Android Development] Brkge:
[MENTION=5952980]jajk[/MENTION] I flashed the boot image on to smiui 8.0.1.0 but didn't work well for me. Every time SuperSU gets an request phone stoped working for an half or a second. Music I listen stops every minute and continues again in 2 or 3 seconds which is the reason I am formatting the phone again. It might not be your boot image's problem but I will reflash the clean EU ROM and test it again. Great work anyway. I could feel the change when I flashed the boot image. But there is a problem: When I clean flash my ROM I can't flash the boot image before I boot system and pass the opening because In the screen of mi account login It checks the find my phone info or something I can't remember. It stays and never leave.
[Redmi Note 2 Android Development] Adam Hui:
Of course, u'd better flash this after skinnifying.

*] front LED holographic keyboard >> another dream in android
[Redmi Note 2 Android Development] jajk:
Yes, always get past the first time boot stuff before flashing Skinny and don't do that if you want to use things like Xiaomi's "Lock me out of my own device".

I have cleaned out all historic versions of skinny so only current versions are left. I am in the process of redoing the O.P so check back in a while.
[Redmi Note 2 Android Development] jerryshaw12:
Do i really need to reflash supersu after flash this? I don't know why it always delayed when I request to get root access
[Redmi Note 2 Android Development] jajk:
[MENTION=6150156]jerryshaw12[/MENTION] Do not rely upon the inbuilt Su and do not install the Su app from Playstore - download the SuperSU zip that installs through TWRP and all will be well;)
[Redmi Note 2 Android Development] jerryshaw12:
I never rely to inbuilt su app, I always do flashing through twrp
[Redmi Note 2 Android Development] jerryshaw12:
Why I always get ColorDrawable in logcat after flash this kernel
[Redmi Note 2 Android Development] DarthJabba9:
Much clearer now! Thanks.
[Redmi Note 2 Android Development] Adam Hui:
Double posting ?

https://multirom.me/MROTA/STABLE/multirom_HERMES_V8.0.1.0.LHMCNDG_v5.0.2_b53_117e596aae.zip

*] front LED holographic keyboard >> another dream in android
[Redmi Note 2 Android Development] Sleepy_Augie:
[MENTION=5952980]jajk[/MENTION] sry, haven't been able to check out your new MIUI 8 boot image. I am using xposed for a bunch of things (Spotify skip, SoundCloud cache, more volume buttons, etc) which I don't want to give up at the moment, but I've been removing bloat apps as much as I can. Any idea what the conflict is between your boot.img and xposed framework?

Still on some MIUI 8 beta dev something. Were there any changes in MIUI 8 stable besides the label?

Also, it was mentioned on the latest dev changelog on miui forms that miui 8 based on 6.0 was in early development for rn3. Yay?
[Redmi Note 2 Android Development] Gyovany96:
[MENTION=5952980]jajk[/MENTION] Can we use your zip to update Busybox ( 1.25.0 ) or we need to use the app ( 1.24.2 )? Thanks

I created init.d script using Notepad++ , Unix .bash file
[Redmi Note 2 Android Development] jajk:
[MENTION=5216574]Gyovany96[/MENTION] Sure you can use it and thanks for asking first. The 1.25.0 version is my recommendation.

[MENTION=7150090]Sleepy_Augie[/MENTION] Android 6 maybe for RN3 Pro (Qualcom version) only at the moment:( Skinny boot should not interfere with Xposed providing it is flashed first, then Xposed.

MIUI8 stable has different bugs to the Betas:laugh:

[MENTION=4666525]Adam Hui[/MENTION] That looks like a later version of MR 8010. It is beta 53 so might fix some early bugs. First release version was beta 44 I think?

[MENTION=6150156]jerryshaw12[/MENTION] Did this happen after installing 6.8.25 or was it there beforehand? Let's see if anyone else can confirm the same ColorDrawable messages in their logcat? I don't have it but I am still 7.5.50. Check for odd settings in your build.prop that relate to GPU or GL rendering.

The latest reference init.d script in O.P is working beautifully - take the time to look at it and understand the not so standard arrangement we have in MTK based phones.
[Redmi Note 2 Android Development] jerryshaw12:
Here's is stock MIUI.eu 8.0.1.0 boot.img logcat
[Redmi Note 2 Android Development] redbird88:
How can i check that the init.d is working?
[Redmi Note 2 Android Development] DarthJabba9:
RN4 (MTK) is to be released with Android 6. Depending on the absence of deep incompatibilities embedded in the kernel, it might be possible to port it to RN2 ...

PS: I have a whole load of ColorDrawable in my logcat.

PSS: I am totally underwhelmed by miui 8 - so much so that I am actively considering going back to 7.5.5.0. Battery life is not better (actually, it seems noticeably worse), and the UI does nothing for me. Having been playing with the wife's 7.2.3.0 skinny ROM (with SkinnyPro 714-final boot image), MR-7.2.30 is looking even more attractive than all the others. :rolleyes:

---------- Post added at 01:28 PM ---------- Previous post was at 01:25 PM ----------

Get it to write something to /data/local/tmp, and then check whether it is there - eg

date >> /data/local/tmp/bootups.txt
[Redmi Note 2 Android Development] Adam Hui:
Idk about b44 since this is 1st time download from original site. the past i always use mirrors from guys in my country RN2 forum.

MR 8010 v53 works great with your 8010_pro.img with extended battery life, performance & free RAM (after extreme skinnied) for early report on light use (chat, socials, news, call, mini ol games, etc.), later should be better.

I like mr ram management, 7 recent apps simultaneuously load & reload without redrawing, something that eu missed.

One thing at first boot i always used to replace is the system font.

*] front LED holographic keyboard >> another dream in android
[Redmi Note 2 Android Development] redbird88:
The folder is empty.
[Redmi Note 2 Android Development] DarthJabba9:
Well, you have your answer then.
[Redmi Note 2 Android Development] redbird88:
I created the script as OP showed. In unix format, named it as 01_tweaks and changed the permission of the file to 0755.

Am i missing something?
[Redmi Note 2 Android Development] DarthJabba9:
I have no idea. It should work if everything has been done correctly.
[Redmi Note 2 Android Development] Deic:
Remove all files in init.d folder & create a new file in /etc/init.d/ to test:

#!/system/bin/sh
echo "#init.d starts at: $(date)" > /system/etc/init.d/initd.txt
while :; do
if [ ! -f /data/local/tmp/initd.txt ]; then
echo "#init.d works at: $(date)" > /data/local/tmp/initd.txt
else
cat /data/local/tmp/initd.txt >> /system/etc/init.d/initd.txt
cat /system/etc/init.d/initd.txt > /system/etc/init.d/initdOK.txt
rm -f /system/etc/init.d/initd.txt /data/local/tmp/initd.txt
exit
fi
done

:

Reboot & check if initdOK.txt exist in /etc/init.d (wait a minute as max to file is create) & read it to get info.