yashsingh1/xdaforums huggingface dataset:
[Redmi Note 2 Android Development] acestars:
[MENTION=5952980]jajk[/MENTION] I bought RN2 because i find phone with 2GB ram, have microsd slot, root without void warranty, and reasonable price. But i dont know about xiaomi's bad behaviour. Where is the boot image url i cant find it on your gdrive?

[MENTION=5850987]DarthJabba9[/MENTION] is skinnify zip still apply to this miui8 8010?
[Redmi Note 2 Android Development] DarthJabba9:
I don't need their equaliser, and I don't need their installler. I removed both of them last night without any negative consequences.

I also removed QuickSearchBox and XMRemoteController.

---------- Post added at 08:46 AM ---------- Previous post was at 08:41 AM ----------

Yes. I think I already said so. I also said that there are some apps in 8.0.1.0 that my skinny mod does not remove (they were either not in 7.5.x, or they were in another place). I have since removed 4 of them manually, without any problems. See my post above.
[Redmi Note 2 Android Development] jajk:
[MENTION=5201188]AssToast[/MENTION] Both phones are the thinking man's choice I think you would agree;)

I get what I need out of the RN2 for the price despite Xiaomi's every effort to spoil it. Salt water exposure will give it the short life it deserves.

[MENTION=3885679]acestars[/MENTION] Link is at the bottom of first post as always. Check the name of the file....

I think Xiaomi are still keeping the lie about a pending upgrade to Marshmallow alive while there is still stock of RN2 and RN3 to be sold.

[MENTION=5850987]DarthJabba9[/MENTION] Are you saying that you can remove PackageInstaller and still install/uninstall apps normally? Never tried to see what the consequences are. Will you be removing the second space stuff also?
[Redmi Note 2 Android Development] AssToast:
Those 2 apps are not related to Xiaomi but whatever floats your boat :)
[Redmi Note 2 Android Development] DarthJabba9:
And thanks for the quick fix!

---------- Post added at 09:19 AM ---------- Previous post was at 09:13 AM ----------

I can install and uninstall apps from the Play Store, which is the only place I want to install apps from. It's been a long time since I've installed an apk outside the Play Store, and I'm not sure if I ever want to do it again - and if I did, I'm sure there are apps to do it.

What do you mean by "second space stuff"?

---------- Post added at 09:21 AM ---------- Previous post was at 09:19 AM ----------

But skinnifying is not only about removing Xiaomi stuff. It is about removing anything that is unnecessary (including some Google stuff and some Cheetah Mobile stuff, neither of which are related to Xiaomi).
[Redmi Note 2 Android Development] jajk:
[MENTION=5850987]DarthJabba9[/MENTION] Read init.miui8.rc. This is all about adding a second logon capability with its own desktop basically. It is the only real (non-petty cosmetic) change from miui7 to miui8:( Worth waiting for???

I found the fix for kernel wakelocks when testing the basic 8010 image on 7550 to see if the kernel is backwards compatible (which it is). The single difference is whether or not to run init.miui8.rc - disabled = 7.5.x compatible, enabled = miui8 only
[Redmi Note 2 Android Development] DarthJabba9:
Yes, I saw the menu for second logon in the Settings app. I am not particularly interested in it. This is most certainly not worth waiting for. :mad: Unless enabling init.miui8.rc does not affect memory/battery in any negative way, perhaps one should just disable it? Who needs another battery/memory hog?
[Redmi Note 2 Android Development] redbird88:
Where did you post it?
[Redmi Note 2 Android Development] ser.clansman:
has anyone found a way to effectively tamper with touchboost (disable, underclock or undercore it)? perfservscntbl is ineffective from what I have experienced and learned...
[Redmi Note 2 Android Development] redbird88:
You can use redmi note 2 tool from the playstore
[Redmi Note 2 Android Development] jajk:
[MENTION=3761200]ser.clansman[/MENTION] The 2 core 1183MHz boost is hard-coded into the kernel and is part of the hps hotplugging system. I have looked hard into overriding the set values myself with no joy so far. You will see the commands that set it in a logcat or kmesg log (forget which one or maybe both). Interestingly it is commanded to set 2 cores and 1000MHz which obviously gets translated to the nearest freq for our SoC.

I tried adding lines to perfservscntbl.txt to mimic what is going on in boot but to no avail. It would be nice to be able to alter this so keep looking. FYI: hps setttings are found in /proc/sys/hps. Most will not tolerate editing and disabling it will give you 4 cores running permanently.

[MENTION=5850987]DarthJabba9[/MENTION] I will be disabling it for myself but I know it will cause division if that is the normal release.
[Redmi Note 2 Android Development] DarthJabba9:
So the perfservscntbl.txt setting is ineffective? Perhaps it's time for a hex editor job ...

Agreed.
[Redmi Note 2 Android Development] jajk:
[MENTION=5850987]DarthJabba9[/MENTION] The perfservscntbl.txt setting works but that changes only the touchboost component. There are other boost factors at play within the PerfServer / hps functionality. The 2 core 1183MHz that you will almost always see is not touchboost. I think is is triggered by anything that requires even the smallest screen update and I think the gpu requires 2 cpu cores to be running to work properly hence the hardcoding of this into the kernel with no way of defeating it that I can see.
[Redmi Note 2 Android Development] DarthJabba9:
I see. Well, if the gpu requires it, then I guess there is no point trying to change it.
[Redmi Note 2 Android Development] jajk:
By default, /data/media/0 (the real location for the emulated internal sdcard) is symlinked to /sdcard, /storage/emulated/0, /storage/sdcard0, /storage/emulated/legacy and /mnt/sdcard.

There is also a linking to /mnt/shell/emulated/0 via the "sdcard" command that "fuses" this locaion to /data/media/0. This is done to create the appropriate rights to access the resource remote from the Android file system.

So in init.ssd.rc we have the symlinking as follows:

# Support legacy paths
symlink /storage/emulated/legacy /sdcard
symlink /storage/emulated/legacy /mnt/sdcard
symlink /storage/emulated/legacy /storage/sdcard0
symlink /mnt/shell/emulated/0 /storage/emulated/legacy
symlink /mnt/shell/emulated/0 /storage/emulated/0

Separately we have the fusing as follows:

service sdcard /system/bin/sdcard -u 1023 -g 1023 -l /data/media /mnt/shell/emulated
class late_start

Just so you can understand it a bit better, the sdcard command parameters are as follows:

usage: sdcard [OPTIONS] <source_path> <dest_path>

-u: specify UID to run as ### 1023 = media_rw

-g: specify GID to run as ### 1023 = media_rw

-w: specify GID required to write (default sdcard_rw, requires -d or -l)

-t: specify number of threads to use (default %d)

-d: derive file permissions based on path

-l: derive file permissions based on legacy internal layout

-s: split derived permissions for pics, av

I have previously removed the symlinking to legacy without issue (no apps seem to be hardcoded to look there - only storage/emulated/0 seems to be used.

The export EXTERNAL_STORAGE /storage/emulated/legacy line gets changed to export EXTERNAL_STORAGE /storage/emulated/0 to make this work.

Now I have gone one step further and removed all symlinks but:

symlink /mnt/shell/emulated/0 /storage/emulated/0

I can't create any problems accessing the internal storage directly on the phone or via USB with this config.

Now a question for the brains trust....

Are there any situations where symlinking is needed to anything other than /storage/emulated/0? Maybe some weird obsolete games or apps are coded to look for /storage/emulated/legacy or /sdcard[/B? I haven't found any instance of this.

Why do this at all you might say.... you may notice sometimes, particularly if you search for a file starting from root, that all symlinks representing the sdcard can be treated as new occurrences of the sdcard so the search will take forever. Maybe you have had trouble installing apps from sdcard because you are trying to install from a symlinked location so you get a parse error. Maybe you accidentally delete your whole sdcard contents because it wasn't clear that deleting a symlink will also delete the target location.
[Redmi Note 2 Android Development] ser.clansman:
Thanks for replies despite being somewhat off topic, those are conclusions I was gathering myself but was hoping there's a workaround that I missed. I'm interested in this because after skinnying no matter what version (dev/stable branch either from xiaomi, xiaomi.eu or MultiRom) there's a peak in battery life of between 3 and 4 hours SoT (i'm aware it's not good measurement of battery life) despite underclocking, undercoring, fiddling with governor and/or anything else... My observation is that those who get better battery life (SoT >4 h) use phone in different way, their screen is on but there is no interaction with it (no frequent surging to 1183 mhz or whatever) while videos are being watched or some types of games are being played... I'm not sure how reliable are the measurements from EM/hardware testing/power/ charge/ current battery consumption but whenever there's interaction with screen consumption surges to above 500 mah (in some scenarios to around 800 mah). [MENTION=5952980]jajk[/MENTION] must be right it is dependent on gpu in great measure. So my next question is, maybe quite obvious, is there an efficient way of underclocking gpu through init.d or in some other way? I have tried some things that used to work on some other devices but it made a mess... sorry for the long post.
[Redmi Note 2 Android Development] Dr Grato:
well for my case, some apps was not deleted too. apps such as analytics, blocklist, cleaner, cheetah mobile cleaner, yellow pages
[Redmi Note 2 Android Development] jajk:
[MENTION=3761200]ser.clansman[/MENTION] Have a look in /proc/gpufreq for some settings to play with. Careful editing in there as quite a few are constantly updated by the O.S and rights need to be adjusted on some. This was discussed quite some time ago in the Roll your own Skinny thread - probably about half way through. Apart from knocking the max cpu freq down a bit and limiting the max number of cores, just getting the Interactive governor to scale nicely and sit on a good idle is about all you can do assuming you have dealt with all the running app processes as best as you can.

Simple things all add up to help like not using auto brightness setting (light sensor remains on), setting a short time before sleep, not setting prevent pocket dials (proximity sensor remains on), turning off data, wifi, bluetooth unless you are actually using them etc, etc.

Incidentally, I tested to see if there is any difference between running 3G or 4G as default (data disabled) and there is no discernible difference. Being in a poor reception area increases the battery consumption quite dramatically as the transmitter side of the radio ramps up in power to compensate - if it is vital to conserve battery, careful how many bars are showing where to sit your phone down for long periods.
[Redmi Note 2 Android Development] AssToast:
[MENTION=5952980]jajk[/MENTION] From what I read is that some have a batch of better batteries even though the capacity is the same. Thus, better battery life and SOT, the ones with 5-6+ hours.

Read post #9

http://en.miui.com/thread-187299-1-1.html

On a side note, I bought a 3rd party battery, will update once it gets here.
[Redmi Note 2 Android Development] DarthJabba9:
I don't know about blocklist (it is not covered by mod script), but all the others should be gone - here are the relevant commands in the script:

rm -rf /system/app/AnalyticsCore
rm -rf /system/app/KingSoftCleaner
rm -rf /system/priv-app/CleanMaster
rm -rf /system/priv-app/YellowPage

If they are not gone, then you need to check out for corpses.

Did you install the xiaomi.eu version of muiu 8.0.1.0?
[Redmi Note 2 Android Development] AssToast:
I have read that some other devices with the same SoC have battery life. Read my previous post about different battery as well(2 post up).

If it's not the software, not the battery then I think we can conclude that the developer tasked with building the kernel for our phone is incompetent.

Xiaomi is a great company in my opinion, they make great phones. Just that some of the developers they hire to make the kernels(since the software across the board are mostly similar) are just bad.
[Redmi Note 2 Android Development] DarthJabba9:
Self-inflicted wound. If they released the kernel sources, people would optimise the kernel for them (and for free too). There is no competitive advantage to be gained from not releasing kernel sources, and there are too many benefits to count. It's really a no-brainer, but some companies just don't get it.

In any case, back to topic, the "basic" Skinny Pro boot image for 8.0.1.0 by [MENTION=5952980]jajk[/MENTION] seems to be working well so far. Battery performance is on a par with 7.x. From what I can see, there is nothing compelling about miui 8.x in comparison with 7.5.5.0. Knowing what I know now, I wouldn't have bothered to move from 7.5.5.0.
[Redmi Note 2 Android Development] AssToast:
Its not as easy as you think. Companies don't just use the kernels made by the community. What companies look for in a kernel is stability, long term usage for the general public. I'm not saying kernels made by the community is unstable in anyway but they go through a lot of updating, tweaking and stuff. Xiaomi developers for this device are just bad.

As far as I know, it's not about Xiaomi not releasing the kernel source but the problem is with Mediatek. Community kernels for the rooted users are always great though.
[Redmi Note 2 Android Development] DarthJabba9:
This says it all: http://www.xda-developers.com/25-years-of-linux-and-the-gpl-and-how-android-benefits/

Other companies using MTK have released kernel sources, so the problem is not MTK. Our Skinny Pro boot images would be much improved if we had the kernel sources; but we have what we have, and we'll do the best we can with it. However, this is definitely my last adventure with Xiaomi+MTK.
[Redmi Note 2 Android Development] ser.clansman:
[MENTION=5201188]AssToast[/MENTION] yeah, there are a lot of excuses for bad battery life... I have two original batteries from very different batches and one Nohon's and unfortunately they perform the same...

[MENTION=5952980]jajk[/MENTION] I have fiddled with some of the settings in /proc/ since the noon and things are getting better (almost 2 hours of SoT with 30% battery)... Nothing unfortunately disables that crappy dual core gpu/touch entwined boost... thanks for the tip!
[Redmi Note 2 Android Development] jajk:
MTK cannot release the kernel source for a Xiaomi or any other brand phone as they do not provide the peripherals that make up the entire package. ALPS is tasked with taking the basic MTK provided kernel and adding on the extra drivers for LCD screen, cameras etc. ALPS is not doing this just for our model phone, drivers are included to make the one firmware package suitable to use across a wide range of devices (hence the amount of disabling in the Skinny images). Then Xiaomi wrap the MIUI8 GUI component around the whole lot. Where it all falls over is when the manufacturer uses dodgy parts from manufacturers that do not provide ongoing firmware support. i.e. you buy 1,000,000 LCD screens for a bargain price of 20c each because they are end-of-life, failed QA, seconds quality etc. The LCD manufacturer has no interest in providing updated drivers.

Now for the tricky bit..... if you claim that your phone has Sony this, Sony that part in it (Sony, Samsung, Sharp often being used as a "reputable" Japanese brand names), then where are the Sony drivers? I have found no evidence of Sony or Samsung drivers in our ROM so I suspect the usual Chinese manufacturing trick of using cheap knock-offs is at play.

This is the most likely cause of kernel source code not being released and updates to current O.S being avoided.

Look at the list of companies that have released Marshmallow updates for MTK phones compared to those that have not - it should be used as your buying guide for your next phone.

Before you attack these statements.... My trade? Electronics Engineer, what's yours?
[Redmi Note 2 Android Development] Adam Hui:
*] front LED holographic keyboard >> another dream in android
[Redmi Note 2 Android Development] jajk:
Skinny_Pro_MIUI8_8010_boot.img uploaded.

This is the full skinny version (most logging disabled plus other stuff)

It introduces the modified TCP buffer values that were mentioned a couple of pages back plus the reduction of symlinks to internal storage down to just /storage/emulated/0. It does not disable second space services found in init.miui8.rc. If you want to try that, just disable importing the script from init.miu.rc (requires unpack / repack)

Let me know if either of these changes give you any problems.

[MENTION=3761200]ser.clansman[/MENTION] On the topic of cpus and gpus, have a look at this and see if you can make anything happen. (note the typo "enbale", that is theirs not mine)

Usage: [B]perf_native_test[/B] command scenario
command
1: boost enbale
2: boost disable
3: boost enbale timeout
4: boost enbale timeout (ms)
5: user reg
6: user reg big little
7: user unreg
8: user get capability
9: user reg scn
10: user reg scn config
11: user unreg scn
12: user enable
13: user disable
14: user enable timeout
15: user enable timeout (ms)
16: user reset all
17: user disable all
18: dump all
19: set favor pid
20: notify user status
scenario
1: app switch
2: app rotate
3: sw codec
4: sw codec boost
5: app boost

[MENTION=4666525]Adam Hui[/MENTION] Exactly my point thankyou;)
[Redmi Note 2 Android Development] jajk:
I noticed a bit of a difference between my phone and the [MENTION=4666525]Adam Hui[/MENTION] posted info. I have a different MAG sensor and camera. Interesting if anyone else has variations???

Take a look at /sys/class/devmap/devmap/devinfo to find out what you got;)

type module vender ic version info used
LCM tianma tianma nt35596 (null) 1080*1920 true
LCM auo auo nt35596 (null) 1080*1920 false
LCM boe boe nt35532 (null) 1080*1920 false
Battery Des (null) (null) (null) (null) true
Discrete LPDDR3 (null) Hynix H9CKNNNBKTMRPR (null) ram:2048MB false
Discrete LPDDR3 (null) Elpida EDFA164A2PF (null) ram:2048MB false
Discrete LPDDR3 (null) Samsung K3QF3F30BM (null) ram:2048MB true
CTP o-film Atmel mxt336t (null) (null) false
CTP BoEn FocalTech ft5346 T2.3 (null) true
CTP MutTon FocalTech ft5346 (null) (null) false
ALSPS (null) LTR ltr559 (null) (null) true
Gyro (null) bosch bmi160 (null) (null) true
MAG (null) AKM akm09911 (null) (null) true
Camera (null) Ofilm S5k3M2 (null) (null) true
Camera (null) Ofilm OV5670 (null) (null) true
Camera (null) sunny10-11 OV5670 (null) (null) false
Camera (null) sunny10-11 OV5670_flt (null) (null) false
Camera (null) Sunny S5k3M2_2ND (null) (null) false

Edit: O-Film and Sunny are Chinese manufacturers making cheap knockoffs of Samsung and OmniVision parts. And what did you think you were getting:confused:
[Redmi Note 2 Android Development] jerryshaw12:
Here's the one i have, sorry no spoiler tags (xda labs)

type	module	vender	ic	version	info	used

LCM	tianma	tianma	nt35596	(null)	1080*1920	true

LCM	auo	auo	nt35596	(null)	1080*1920	false

LCM	boe	boe	nt35532	(null)	1080*1920	false

Battery	Des	(null)	(null)	(null)	(null)	true

Discrete LPDDR3	(null)	Hynix	H9CKNNNBKTMRPR	(null)	ram:2048MB	false

Discrete LPDDR3	(null)	Elpida	EDFA164A2PF	(null)	ram:2048MB	true

Discrete LPDDR3	(null)	Samsung	K3QF3F30BM	(null)	ram:2048MB	false

CTP	o-film	Atmel	mxt336t	(null)	(null)	false

CTP	BoEn	FocalTech	ft5346	T2.3	(null)	true

CTP	MutTon	FocalTech	ft5346	(null)	(null)	false

ALSPS	(null)	LTR	ltr559	(null)	(null)	true

Gyro	(null)	bosch	bmi160	(null)	(null)	true

MAG	(null)	YAMAHA	yas537	(null)	(null)	true

Camera	(null)	Sunny	S5k3M2_2ND	(null)	(null)	true

Camera	(null)	Ofilm	OV5670	(null)	(null)	false

Camera	(null)	sunny9-9	OV5670	(null)	(null)	true

Camera	(null)	sunny	OV5670_flt	(null)	(null)	false

Camera	(null)	Ofilm	S5k3M2	(null)	(null)	false
[Redmi Note 2 Android Development] Adam Hui:
Hey man just tap 5X "kernel version" then tap s/w version, scroll down & take a SS for that !

Black texts were your components...

*] front LED holographic keyboard >> another dream in android
[Redmi Note 2 Android Development] Dr Grato:
Yep. I installed that one. Well, maybe need to go another round. Btw, even without this skinny boot, i managed to get 3h SOT. Cant wait to use this boot.

---------- Post added at 07:14 AM ---------- Previous post was at 07:10 AM ----------

And btw, will this img conflict if we use redmi note 2 tools apps, the one in playstore.
[Redmi Note 2 Android Development] Adam Hui:
Or maybe O-Film & Sunny were bought Samsung & OV Chip/IC/Sensor as they were listed as Vendor & Samsung/OV as IC at Table Header.

EDIT : [MENTION=5952980]jajk[/MENTION] has said that earlier [emoji12] , sorry for getting rush.. at least we still lick a samsung or OV taste.. lol.

*] front LED holographic keyboard >> another dream in android
[Redmi Note 2 Android Development] acestars:
Is anyone has installed xposed on miui 8? I already tried installing xposed on miui 8 but always got random reboot and sometime got bootloop and cannot boot eventhough i already uninstall xposed.
[Redmi Note 2 Android Development] DarthJabba9:
Isn't it interesting that the battery has no "vender" information?

type	module	vender	ic	version	info	used
LCM	tianma	tianma	nt35596	(null)	1080*1920	false
LCM	auo	auo	nt35596	(null)	1080*1920	true
LCM	boe	boe	nt35532	(null)	1080*1920	false
Battery	Des	(null)	(null)	(null)	(null)	true
Discrete LPDDR3	(null)	Hynix	H9CKNNNBKTMRPR (null)	ram:2048MB	true
Discrete LPDDR3	(null)	Elpida	EDFA164A2PF	(null)	ram:2048MB	false
Discrete LPDDR3	(null)	Samsung	K3QF3F30BM	(null)	ram:2048MB	false
ALSPS	(null)	LTR	ltr559	(null)	(null)	true
Gyro	(null)	bosch	bmi160	(null)	(null)	true
MAG	(null)	AKM	akm09911	(null) (null)	true
Camera	(null)	Sunny	S5k3M2_2ND	(null) (null)	true
Camera	(null)	Ofilm	OV5670	(null)	(null)	false
Camera	(null)	sunny9-23	OV5670	(null)	(null)	true
Camera	(null)	sunny	OV5670_flt	(null)	(null)	false
Camera	(null)	Ofilm	S5k3M2	(null)	(null)	false
[Redmi Note 2 Android Development] Sleepy_Augie:
Looks like I got dat real Samsung ram:
[Redmi Note 2 Android Development] jajk:
Fascinating the variation in parts we are seeing so far. Might explain some battery drain differences with different LCDs.

[MENTION=4666525]Adam Hui[/MENTION] Or type *#*#6484#*#* into Phone, click on Software Version and scroll down. I try to educate people with the real locations of all this wonderful information and you go dumbing it down:mad:

Careful what you lick mate - might taste like sh..t:silly: Having a Samsung part number does not make them Samsung parts or Samsung quality. The websites for the clone part manufacturers show the same shiny factories as every Chinese manufacturer shows on their websites.

[MENTION=5850987]DarthJabba9[/MENTION] Have you peeled the label off the battery yet to see what brand it really is? Try licking it to see what flavor it is or get [MENTION=4666525]Adam Hui[/MENTION] to do it on his and let you know:) The battery may well be a "dumb" battery with no ID chip.

[MENTION=3885679]acestars[/MENTION] Are you using solarwarez modified version or normal version? Russian forums indicate no xposed is stable on MIUI8 yet.

[MENTION=6264717]Dr Grato[/MENTION] Only the contents of your own init.d script might conflict if you have one.
[Redmi Note 2 Android Development] AssToast:
Xposed works fine for me in Developer 6.8.18. Make sure you're using v86 by Solarwarez.

---------- Post added at 10:27 AM ---------- Previous post was at 10:23 AM ----------

@jajk mind explaining what does the abbreviations stand for in /devinfo?
[Redmi Note 2 Android Development] Adam Hui:
Lol....

Hats off Mr. Engineer... ;)

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