yashsingh1/xdaforums huggingface dataset:
[Redmi Note 2 Android Development] Deic:
su daemon is already called from a symlink in /system/bin/app_process64 to /system/xbin/daemonsu
[Redmi Note 2 Android Development] jajk:
[MENTION=4476591]Deic[/MENTION] How did you determine that is the case? That would mean that su daemon could be started/restarted on 3 separate occasions. It would mean that we can keep it disabled in init.miui.rc and also delete the 99SuperSUDaemon script in init.d without problem (that is the way I have been running for some time already)
[Redmi Note 2 Android Development] BurntToast12:
Quick question, is MIUI 8.0.1.0 better compared to MIUI 7.2.3.0?
[Redmi Note 2 Android Development] DarthJabba9:
That depends on what exactly do you mean by "better".
[Redmi Note 2 Android Development] jajk:
[MENTION=7424719]BurntToast12[/MENTION] Now that the honeymoon is over, comments are slowly turning against MIUI8 because of increased battery drain and useless added complexities. Many are reverting back to 7.x.x. I am sitting on 7.5.50 but 7.2.30 is my all-time favorite.

Trolling through logcats, both provided and my own, I came across an anomaly as follows:

Errors in logcat:

E/MtkOmxCore( 261): dlopen failed, dlopen failed: library "libMtkOmxWmaDec.so" not found
E/OMX ( 261): FAILED to allocate omx component 'OMX.MTK.AUDIO.DECODER.WMA'
E/MtkOmxCore( 261): dlopen failed, dlopen failed: library "libMtkOmxWmaProDec.so" not found
E/OMX ( 261): FAILED to allocate omx component 'OMX.MTK.AUDIO.DECODER.WMAPRO'

These libs do not exist but are called from /etc/mtk_omx_core.cfg

Solution:

Delete the lines for non-existant libs:

OMX.MTK.AUDIO.DECODER.WMAPRO audio_decoder.wma libMtkOmxWmaProDec.so
OMX.MTK.AUDIO.DECODER.WMA audio_decoder.wma libMtkOmxWmaDec.so
OMX.MTK.AUDIO.DECODER.RA audio_decoder.ra libMtkOmxCookDec.so

and again delete lines in /etc/media_codecs.xml

<MediaCodec name="OMX.MTK.AUDIO.DECODER.WMA" type="audio/x-ms-wma" />
<MediaCodec name="OMX.MTK.AUDIO.DECODER.WMAPRO" type="audio/x-ms-wmapro" />
[Redmi Note 2 Android Development] jajk:
[MENTION=5850987]DarthJabba9[/MENTION] I found and downloaded the factory 24p52 modem for RN3 but it gives the annoying No Sim error on RN2:(
[Redmi Note 2 Android Development] DarthJabba9:
Yes, I sent you a PM about that yesterday - but looking it seems that the message never got sent - ie, it disappeared into the ether after I sent it - something is seriously wrong with PM :(

---------- Post added at 05:57 PM ---------- Previous post was at 05:13 PM ----------

Here's a diff to correct the anomaly

diff -u -d -w -B system/etc/media_codecs.xml.old system/etc/media_codecs.xml
--- system/etc/media_codecs.xml.old	2016-03-10 16:56:00.000000000 +0000
+++ system/etc/media_codecs.xml	2016-09-04 17:49:29.046771074 +0100
@@ -98,8 +98,6 @@
<Quirk name="decoder-lies-about-number-of-channels" />
</MediaCodec>
<MediaCodec name="OMX.MTK.AUDIO.DECODER.FLAC" type="audio/flac" />
- <MediaCodec name="OMX.MTK.AUDIO.DECODER.WMA" type="audio/x-ms-wma" />
- <MediaCodec name="OMX.MTK.AUDIO.DECODER.WMAPRO" type="audio/x-ms-wmapro" />
<MediaCodec name="OMX.MTK.AUDIO.DECODER.APE" type="audio/ape" >
<Quirk name="decoder-lies-about-number-of-channels" />
<Quirk name="supports-multiple-frames-per-input-buffer" />
diff -u -d -w -B system/etc/mtk_omx_core.cfg.old system/etc/mtk_omx_core.cfg
--- system/etc/mtk_omx_core.cfg.old	2016-03-10 16:56:00.000000000 +0000
+++ system/etc/mtk_omx_core.cfg	2016-09-04 17:48:33.162725533 +0100
@@ -11,12 +11,9 @@
OMX.MTK.VIDEO.DECODER.DIVX3 video_decoder.divx3 libMtkOmxVdec.so
OMX.MTK.VIDEO.DECODER.XVID video_decoder.xvid libMtkOmxVdec.so
OMX.MTK.VIDEO.DECODER.S263 video_decoder.s263 libMtkOmxVdec.so
-OMX.MTK.AUDIO.DECODER.RA audio_decoder.ra libMtkOmxCookDec.so
OMX.MTK.AUDIO.DECODER.MP3 audio_decoder.mp3 libMtkOmxMp3Dec.so
OMX.MTK.AUDIO.DECODER.G711.ALAW audio_decoder.g711 libMtkOmxG711Dec.so
OMX.MTK.AUDIO.DECODER.G711.MLAW audio_decoder.g711 libMtkOmxG711Dec.so
-OMX.MTK.AUDIO.DECODER.WMAPRO audio_decoder.wma libMtkOmxWmaProDec.so
-OMX.MTK.AUDIO.DECODER.WMA audio_decoder.wma libMtkOmxWmaDec.so
OMX.MTK.VIDEO.ENCODER.AVC video_encoder.avc libMtkOmxVenc.so
OMX.MTK.VIDEO.ENCODER.HEVC video_encoder.hevc libMtkOmxVenc.so
OMX.MTK.VIDEO.ENCODER.H263 video_encoder.h263 libMtkOmxVenc.so
[Redmi Note 2 Android Development] jajk:
[MENTION=5850987]DarthJabba9[/MENTION] and now I get the PMs;) Previous post on OMX corrected (deleted one too many lines). Is that now correct?
[Redmi Note 2 Android Development] DarthJabba9:
I've corrected the diff above - but I couldn't see those errors in my logcat anyway.
[Redmi Note 2 Android Development] panzerpig:
does 8.0.1.0 work on 6.9.1 MR? Tried to find in this thread but couldnt find it (isnt 6.9.1 miui 8.1, not 8.0.1.0?)
[Redmi Note 2 Android Development] jajk:
[MENTION=3068510]panzerpig[/MENTION] I haven't looked at the 6.9.1 boot image yet so cannot say for sure but it is unlikely that there are any kernel changes that would make it incompatible. If you have both the stock boot.img and the 8010 skinny image, there is no harm in trying then reverting back if it doesn't work.
[Redmi Note 2 Android Development] acestars:
So which version of 7.5.5.0 and 7.2.3.0 you use? official miui, xiaomi.eu, multirom, or miuipro?

any link?

Why did you put init.d script on "boot completed" not on "boot animation"?
[Redmi Note 2 Android Development] jajk:
[MENTION=3885679]acestars[/MENTION] MR7550 and special Indonesian version of MR7230. Links have been mentioned previously.

The init.d runs at "boot completed" so the chances of anything else overwriting the settings are minimal. The only thing that could overwrite the init.d settings would be another script set to run at boot completed.

Why do you ask? Do you need some scripting to occur earlier?
[Redmi Note 2 Android Development] acestars:
Just want to know the reason because some developer write init.d on "boot animation".
[Redmi Note 2 Android Development] jajk:
[MENTION=3885679]acestars[/MENTION] I have never seen a timing point called on boot animation. The most common way init.d is implemented is as a service that is part of the main class for timing purposes. This can be too early as there are many things that run later than the main class such as anything in the late_start class.

Anyone interested in the nuts and bolts behind the pretty GUI, take a look at /system/data/misc/ProjectConfig.mk. This is the make file that builds the project that is the base of our ROM.

Some interesting bit I can see:

MTK_EMMC_DISCARD = no The fstab file sets DISCARD to enabled for data and cache but it does not actually work probably because support is not built in. Better off not setting DISCARD in fstab and doing it via fstrim command.

MTK_CPU = arm_cortexa7 This means it will be compiled as 32 bit, not 64 bit if arm_cortexa8 was specified.

MTK_CLEARMOTION_SUPPORT = no no idea why this would be disabled when SoC supports it.
[Redmi Note 2 Android Development] khangcobra:
Can u give me the links of MR7550 or the special ver MR7230 ?

I can't find anything :(
[Redmi Note 2 Android Development] DarthJabba9:
http://www.needrom.com/download/miui-7-2-3-0-redmi-note-2/ (special Indonesian version of MR-7230).
[Redmi Note 2 Android Development] khangcobra:
Do i need to del any system app or just install it like the tut ?
[Redmi Note 2 Android Development] DarthJabba9:
In order to do what?
[Redmi Note 2 Android Development] jajk:
[MENTION=5437902]khangcobra[/MENTION] And MR 7550 here:

http://xdaforums.com/showpost.php?p=68148143&postcount=437

Both need some form of skinnying including deleting system apps to get decent performance.
[Redmi Note 2 Android Development] khangcobra:
Ok thanks for your help ~ i will try it and see the result :)
[Redmi Note 2 Android Development] khangcobra:
What system app should i del ?
[Redmi Note 2 Android Development] jerryshaw12:
You can check in "roll your own" thread
[Redmi Note 2 Android Development] BurntToast12:
Do any of you guys have any flashable skinny-fied ROMs?

I keep getting bootloops whenever I try to skinny-fy one.
[Redmi Note 2 Android Development] DarthJabba9:
https://mega.nz/#!j48WjKDS!fK1fjftNwZvw4uvmYFFpSXq9ke72BL4Uz_a1d4sGIMk

But don't ask me any questions about it. If it gives you a boot loop (which it shouldn't), then sorry.

PS: wipe data before installation. The installer itself will wipe cache and dalvik-cache, but there is no harm in wiping them too.

PSS: the ROM comes with stock kernel and boot image; you will need to install a skinny boot image after booting the ROM successfully.
[Redmi Note 2 Android Development] jajk:
Skinny_Pro_MIUI7_7550_boot-v2.img and Skinny_Pro_MIUI7_7140_boot-v2.img posted.

Changes:

init.modem.rc previously not imported at any point (factory error). Now imported in init.mt6795.rc

in init.mt6795.rc:

chown radio radio /sys/devices/platform/mtk-kpd/driver/kpd_call_state

points to an invalid location (another factory error) - should be:

chown radio radio /sys/bus/platform/drivers/mtk-kpd/kpd_call_state

Removed discard option from fstab files since it is non-functional (at hardware level) so is just a wasted overhead.

Removed init.xlog.rc and init.aee.rc.

MIUI8 version is a problem now that 6.9.1 includes and extra service mqsasd in init.miui.rc that 8.0.1.0 does not have. Since I don't run MIUI8, I can't really tell what can stay or go with these new services popping up. I will sit on it for a while to see what version prevails;)
[Redmi Note 2 Android Development] khangcobra:
where is the file ? i cant see it in your link :(
[Redmi Note 2 Android Development] jajk:
[MENTION=5437902]khangcobra[/MENTION] Link to all versions is in first post;)
[Redmi Note 2 Android Development] khangcobra:
ok i have seen it by switching to other gg account :D

---------- Post added at 09:19 AM ---------- Previous post was at 08:44 AM ----------

only 1 question : why i cant use home and recent button ?
[Redmi Note 2 Android Development] BurntToast12:
It didn't boot loop, but I had a lot of problems with it.

But thanks, anyway.
[Redmi Note 2 Android Development] DarthJabba9:
There shouldn't be any problems - apart from perhaps ones relating to the skinnyfying process, if certain functionality has been deleted that you happen to want to use (if this is the case, then you will need to do your own skinnyfying from a fresh install; but you say that this gives you a bootloop - which it shouldn't, if everything is done correctly).
[Redmi Note 2 Android Development] DarthJabba9:
Settings->Additional Settings->Buttons
[Redmi Note 2 Android Development] acestars:
I am using skinny pro 7.1.4.0 and i just realized the mtp wont work on my computer but after i reflash the stock image the mtp work again. so which service that you disabled about mtp?
[Redmi Note 2 Android Development] jajk:
[MENTION=3885679]acestars[/MENTION] Just you have this problem. Are you sure it didn't just go to sleep? Sometimes needs an unplug and replug to be recognized.

2 new lines that seem to be useful in init.d script:

echo 0 > /sys/block/mmcblk0/queue/add_random ### default 1
echo 0 > /sys/block/mmcblk0/queue/iostats ### default 1
[Redmi Note 2 Android Development] DarthJabba9:
I am using this with a freshly installed and skinnified MR-7250 ID (http://www.needrom.com/download/mirockstyle-v-7-2-5-0/) - apparently ported from Redmi Note 3 7.2.5.0 Multirom . So far, all is well. I like the ID versions because of the 6 options they give you in the power menu.
[Redmi Note 2 Android Development] jajk:
[MENTION=5850987]DarthJabba9[/MENTION] Any noteworthy improvements in MR7250 ID over MR7230 ID? I should add it to the range of ROMs that are compatible with the 714 image.
[Redmi Note 2 Android Development] DarthJabba9:
Other than a more up-to-date Android security patch level (whatever that is worth) I have not noticed any significant improvement. I dirty-flashed it over MR7230 ID, with little obvious deleterious effect (other than needing to clean the data for WhatsApp, the Play Store, and Gmail). So far, it has been rock solid, but battery performance is no different from 7230. I will later try modem p52, which is what I was using with 7230. For some reason, it always "feels" like p52 gives better battery performance, but it is not a hypothesis that I have tested empirically...
[Redmi Note 2 Android Development] acestars:
Oke will try it.
[Redmi Note 2 Android Development] jajk:
[MENTION=5850987]DarthJabba9[/MENTION] Did you have to install the Patch fix as well? I'm the same about the p52 modem - hard to say why it feels better but it kinda does.
[Redmi Note 2 Android Development] DarthJabba9:
Yes, I installed the patch fix as well. Actually, I just extracted it along with the main zip, and copied the contents of the system directory over that of the main zip, edited the main updater-script to stop it installing busybox, gapps, supersu, preloader, logo and uboot/lk, and then zipped it again, before installing.
[Redmi Note 2 Android Development] jajk:
[MENTION=5850987]DarthJabba9[/MENTION] Could you post a stripped down, but otherwise unaltered, version of the MR 7.2.50 ID ROM as you have mentioned with patch incorporated and all the unneeded partitions, gapps, superSU, BB etc, actually deleted to save on size? I think there is a need to have a good alternative to the MIUI8 offerings and this is probably the best of the MIUI7 bunch.
[Redmi Note 2 Android Development] DarthJabba9:
Yes, I will do that tonight (northern hemisphere time!).
[Redmi Note 2 Android Development] acestars:
btw what is the function of uboot partition?
[Redmi Note 2 Android Development] DarthJabba9:
http://www.slideshare.net/chrissimmonds/android-bootslides20
[Redmi Note 2 Android Development] acestars:
any bugs? can the 2nd sim use 4g?
[Redmi Note 2 Android Development] DarthJabba9:
No idea about 4g on 2nd sim. No bugs that I am ware of.

---------- Post added at 07:03 PM ---------- Previous post was at 07:02 PM ----------

Here it is - with a brief README file as well: https://mega.nz/#F!ihsw2SqI!H7YAwiZk-lqThvCI7OvtpA
[Redmi Note 2 Android Development] panzerpig:
weird "bug" I have noticed in newer versions of skinny boot.img. (Tested on 6.8.4, 7.5.5.0 and 7.2.3.0):

X-plore file manager doesnt show internal SD-card. I can access the internal SD via Root->storage-emulated. But just the external SD shows up at the start window.

Anyone know why and how to fix? I have tried other file managers and it shows up normally, but Im so damn used to using x-plore :)
[Redmi Note 2 Android Development] acestars:
Second sim can use 4G. But after i flashed skinni 7550 v2 after boot some system apps and franework got fc then reboot. i need to restore to default kernel to boot normally.
[Redmi Note 2 Android Development] jajk:
[MENTION=5850987]DarthJabba9[/MENTION] Thanks for the links:)

[MENTION=3068510]panzerpig[/MENTION] Yes there is a problem that I will fix shortly. Android is a bit retarded in the way it handles sdcards and apps can be hardcoded to refer to it as many different things such as /data/media/0 or /sdcard or storage/sdcard0 etc. I removed some of the symlinks but will put them back to keep all apps happy.

[MENTION=3885679]acestars[/MENTION] MR7250-ID ROM requires skinny 7140 boot image, not 7550 boot image.
[Redmi Note 2 Android Development] acestars:
Sorry my bad, flashed wrong kernel. Thank you.
[Redmi Note 2 Android Development] jajk:
7140 v3 and 7550 v3 images posted. These fix the sdcard symlinks issue mentioned a couple of posts back.
[Redmi Note 2 Android Development] Adam Hui:
How about 8.0.1.img, i have same issue.

*] front LED holographic keyboard >> another dream in android
[Redmi Note 2 Android Development] jajk:
[MENTION=4666525]Adam Hui[/MENTION] No idea what the screenshot is meant to show - you have Rootexplorer? 8010 v3 is uploaded so no need to feel left out:crying: (only joking)

It is now updated to be at the same mod level as 7140 and 7550 images.

[MENTION=5850987]DarthJabba9[/MENTION] Damn Mega doesn't play nice with me for some reason. Can't complete the download of your 7250 ROM but nevermind for now. [MENTION=6199310]Xabadou[/MENTION] has also built a skinny version of 7.2.50 and posted it on http://www.htcmania.com/forumdisplay.php?f=1930 (which I cannot download either).
[Redmi Note 2 Android Development] jajk:
Modem v24p52 from RN3 works on RN2. Just need to change preferred network type on 1st reboot to trigger an NVRAM update - SIM will then be recognized. No idea whether this is superior to v24p51 but it is here for the trying:)

TWRP flashable zip:

https://drive.google.com/open?id=0BwdRTuyj12_yUVZNX3RRejRYLUE
[Redmi Note 2 Android Development] Adam Hui:
So why'd u always have ideas for jokes at ur every posts? [emoji12]

I had a sdcard dir for internal by stock images & it turns to storage/emulated/0 by yours img.

Yep, fast & perfectionist but followed with unsimplified as always... (Only joking).

*] front LED holographic keyboard >> another dream in android
[Redmi Note 2 Android Development] acestars:
I flashed this rom and i really like it. But the device is recognized as Redmi Note 3 when i try to change the build.prop to Redmi Note 2, it got bootloop.
[Redmi Note 2 Android Development] DarthJabba9:
Just changing "Redmi Note 3" to "Redmi Note 2" in build.prop should not cause a boot loop. Something else (eg, corruption of the file by whatever app you used to edit it or by something else) is responsible for the boot loop.

BTW: I changed the build.prop before installation. What was uploaded was the original ROM, unchanged, except for the things that were removed. I can post a TWRP installer with my own build.prop if anyone wants. It involves more than just changing Note 3 to Note 2...

---------- Post added at 05:56 AM ---------- Previous post was at 05:48 AM ----------

Try this: https://drive.google.com/drive/folders/0B_tZo6-mdlNuQlBxS1RXaEVhRzg?usp=sharing
[Redmi Note 2 Android Development] acestars:
Yes please i want it [emoji2]
[Redmi Note 2 Android Development] jajk:
[MENTION=3885679]acestars[/MENTION] If you edit build.prop, always make sure that permissions are 0644 rw-r-r otherwise you will get a bootloop. It is important to change to redmi note 2 instead of redmi note 3 and also change hennesey to hermes otherwise you will hit problems with TWRP backups and future installs that look for the device type.

[MENTION=5850987]DarthJabba9[/MENTION] Thanks again for the new link. Are you trying out the RN3 p52 modem?

[MENTION=4666525]Adam Hui[/MENTION] You brought it on yourself a long time ago - so long ago that I have forgot the original reason why I should stir you up. Always in jest of course;)
[Redmi Note 2 Android Development] DarthJabba9:
Can't get it to work here - the settings menu for configuring the SIM cards simply gets disabled, and I can't get around it.

---------- Post added at 12:12 PM ---------- Previous post was at 12:09 PM ----------

Indeed. All this was in my modified build.prop.
[Redmi Note 2 Android Development] jajk:
[MENTION=5850987]DarthJabba9[/MENTION] Just downloaded 7250 in record time using the RN3 p52 modem LTE mode on 7550. It came from MIUI8 so maybe something is not compatible with MIUI7?
[Redmi Note 2 Android Development] DarthJabba9:
Hmm ... Maybe I should look for a miui7 RN3 ROM with p52?

Edit: I found 3 such RN3 ROMs (7250, 7310 and 7510) with p52 - got exactly the same problem as before ...
[Redmi Note 2 Android Development] Adam Hui:
lol didnt feel like a cookie dough even a bit that lead me wasnt guilty to ask ETAs whenever i want [emoji13] ...

anyway honestly an SS of 5 tapping 'kernel version' still looks nicer instead a /devmap texts.

*] front LED holographic keyboard >> another dream in android
[Redmi Note 2 Android Development] acestars:
miui 7.0.12 can rotate upside down/180 degree but how can mr 7.3.2.0 able to do it which file i need to edit? I need it when i put the phone on car holder because the charger port is not on the middle.
[Redmi Note 2 Android Development] AssToast:
Doesn't work for me either, baseband version in about phone reports as unknown and IMEI Information reports IMEI SV as unknown as well.

Currently on Dev 6.9.1
[Redmi Note 2 Android Development] acestars:
I can do it using app "Screen control rotation" from SJ Corp"

I am using p52 right now and its working fine. I got it from http://xdaforums.com/showthread.php?t=3295946.

Btw I lost "Prefer 4G" in network preferred mode, any way to restore it or maybe add mode like 4G only? I can decompile framework if needed.
[Redmi Note 2 Android Development] acestars:
After i restore the build.prop back to Redmi Note 3 the "Prefer 4G" back.

Weird, LOL
[Redmi Note 2 Android Development] jajk:
Something from Bules ROMs:

Single Sim (This edit might save you some battery life). If you only have one sim card in slot one and won't use sim 2.
Edit the build.prop line from persist.radio.multisim.config=dsds to persist.radio.multisim.config=ss and reboot.

Tested works on 5.02 versions as well. Whether there is a battery saving is unknown but it might speed up locking on to your network if you only have one SIM.

Report back if you try this and notice a difference.
[Redmi Note 2 Android Development] jajk:
I could kick myself after finding the method of disabling the 1183MHz 2 core boost built into the kernel. It was hidden in plain sight all along:mad:

Edit the build.prop line as shown:

ro.mtk_perfservice_support=0

Now you will have no PerfServer boosting at all and you will need to re-assess all Interactive Governor settings to find a new compromise between responsiveness and battery use. Keep in mind that the governor's boost function is intentionally crippled by MTK.

Happy playing;)
[Redmi Note 2 Android Development] Brkge:
[MENTION=5952980]jajk[/MENTION] Disabling It alone didn't work. Just hoped :P

Statusbar wasn't there and buttons vibrated when pressing but did nothing.
[Redmi Note 2 Android Development] vetriolo:
I tried to change this value. But it didn't work. [emoji17]

Inviato dal mio Redmi Note 2 utilizzando Tapatalk
[Redmi Note 2 Android Development] DarthJabba9:
[MENTION=5952980]jajk[/MENTION] Thanks for this. Is it possible to diable perfserv in an initd script, rather than editing build.prop directly?

---------- Post added at 08:06 AM ---------- Previous post was at 07:59 AM ----------

I have got "Prefer LTE" without restoring "Redmi Note 3".
[Redmi Note 2 Android Development] jajk:
[MENTION=5850987]DarthJabba9[/MENTION] Nothing obvious - I noticed /proc/hps/num_base_perf_serv gets set to 1 instead of 3 when you disable perfserv but you cannot edit that setting and make it stick while perfserv is enabled. I am sure there will be another setting somewhere - when you find it, let us all know thanks;)
[Redmi Note 2 Android Development] acestars:
How about using setprop command?

Lol, so its just me then. Its become more weird :D
[Redmi Note 2 Android Development] vetriolo:
[MENTION=5952980]jajk[/MENTION]. Thanks. Now it's works. Do we also have to modify the perfservscntbl.txt file?