yashsingh1/xdaforums huggingface dataset:
[Redmi Note 2 Android Development] jajk:
[MENTION=4901294]hjthzz[/MENTION] Are you using TWRP 3022 Turbo version? Because that was using a 6.0 kernel, it writes wrong values to the battery log. I have removed the Turbo version for that reason. If this is not the cause of your problem, I do not know what else causes it.

[MENTION=7117356]vaselor[/MENTION] List is still in progress. I will add your suggestion.

[MENTION=2078083]asusm930[/MENTION] Pleased to be of help. Hmm.... Lets see if camera app can be decompiled and find where noise reduction is applied;)

Edit: Yes Camera app decompiles nicely but it is not evident where the noise reduction is applied:( The good news is that I can add a 4th Picture quality setting that applies 100% jpeg compression (lossless) :)

The stock settings are low: 67%, med 87% and high 97%. If you know you are going to edit jpegs, it is nice not to end up with a second generation of compression so I have added the full option for myself.

I have attached the camera app from EU 8130 with the mod done. This incidentally also works on 75xx. and probably all versions.

Edit Edit: On closer inspection, this will work for all languages. The 4th setting will always be called "Full" i.e. is not translated to the various languages. I could change it to "Max" or "100" if there is some translation difficulty or you could provide me with the language code and translation for the word "full" or "maximum"?
[Redmi Note 2 Android Development] vetriolo:
We only have to overwrite the actual miui camera app in System/privapp and then change permission?

edit: it works!

Maybe 100% is universal (or Max)...
[Redmi Note 2 Android Development] jajk:
[MENTION=7694222]vetriolo[/MENTION] Already tried 100% but not allowed to use % character so 100 is the closest I can do or Max of course. What version ROM did you try it on?

Sorry for not explaining how to install.....

Copy the file and overwrite the existing file in /system/priv-app/MiuiCamera

Permissions should be set to 0644 rw-r-r

Reboot first before using.
[Redmi Note 2 Android Development] Gyovany96:
[MENTION=5952980]jajk[/MENTION] MiuiCamera is working on Beta 6.12.29 too ! FULL option is great :good:
[Redmi Note 2 Android Development] jajk:
Can anyone with full access to 4pda forums download the file in this post for me?

http://4pda.ru/forum/index.php?s=&showtopic=557858&view=findpost&p=56486807
[Redmi Note 2 Android Development] vetriolo:
I have EU 8130 .
[Redmi Note 2 Android Development] jajk:
Will rebase a few tweaked things on 61229 tomorrow;)
[Redmi Note 2 Android Development] IshtaNoob:
[MENTION=5952980]jajk[/MENTION]

This may be a little off topic, but you being a knowledgeable guy might be able to shed some insight on this:

Whenever my RN2 reaches 10 or 5% battery, I remove it and reinsert it to obtain an extra 20%. This can't be normal behaviour, right? So I started wondering if the battery issue might be related to drivers, or somehow the device isn't acknowledging the kind of battery it has, or its correct charging level.

If so, how could it be corrected? Is there any available parameter that can be tweaked to force the system to recognise a higher battery level? Or, if it's a driver problem, and wrong files are being employed in the ROM, what files should be replaced?

PS: I think I can access the file you requested, but can only download it later today... Is it this one: https://yadi.sk/d/GBmAgipbxZg3N ?
[Redmi Note 2 Android Development] Adam Hui:
What's wrong ? I see no restriction to download batchAPKTool without login... :confused:
[Redmi Note 2 Android Development] cukierkas:
Will it work on mm? Will try later on.

Full is OK with me, using English only.
[Redmi Note 2 Android Development] prox:
apktool compiled the latest version of 12.23.2016,

Attached fileapktool_2.2.2_1223.zip (7.82 MB)

mirrorcreator

zippyshare
[Redmi Note 2 Android Development] jajk:
[MENTION=1013983]prox[/MENTION] Thanks, that is what I was after:good:

[MENTION=2606021]cukierkas[/MENTION] You will need to mod the camera.apk for your device.

[MENTION=4666525]Adam Hui[/MENTION] I don't want BatchAPKTool. You have spent too much time on 6.0 threads - brain is now gone:laugh:

[MENTION=6068190]IshtaNoob[/MENTION] Make sure you are not using my TWRP Turbo version as this will write screwed up 6.0 values to the battery log and give you this type of behaviour if you are not on 6.0. Also clean battery contacts.
[Redmi Note 2 Android Development] alexandarpb:
which version should i use with MIUI 8.1 Stable 8.1.3.0 ?
[Redmi Note 2 Android Development] IshtaNoob:
Darn, I actually am using your turbo version... which do you recomend, then? For 5.0, i mean.
[Redmi Note 2 Android Development] jajk:
Skinny_Pro_61229_Tweaked-v22.img posted

Suitable for MIUI8 ROMs (not 7.5.xx - use dedicated version for these)

Rebased on 61229

No other changes

Autobrightness fix for EU 61229 attached

Camera for 61229 with Max Picture quality mod attached - may work with other RN2 ROM versions (works on 7550)
[Redmi Note 2 Android Development] jajk:
[MENTION=6068190]IshtaNoob[/MENTION] Use my other version:eek:

[MENTION=7329475]alexandarpb[/MENTION] Use latest mentioned in previous post
[Redmi Note 2 Android Development] ragilcepot:
I flashed your boot.img, but some of the init.d file, like memory swap and swapiness, also limiting the max. Cpu freq doesnt work (i put the right number) Checked using kernel adiutor.

Do you know how to fix this ? [MENTION=5952980]jajk[/MENTION]
[Redmi Note 2 Android Development] jajk:
[MENTION=5022570]ragilcepot[/MENTION] What ROM version? What Skinny boot version? What init.d scripts do you have? What permissions on init.d script? Have you installed the updated Busybox? Anything else I need to know like are you running XPosed or other "Tweak" packages?
[Redmi Note 2 Android Development] ragilcepot:
I don't think so.

I tried on 6.11.17, and now 8.1.30 stable, both the same result, half of tweak are not applied, so i have to put the unapplied number manually from kernel auditor, like zram, max cpu freq and stuff.

Yes, i did install the latest busybox from your drive, also "stock" init.d from your drive, only cpu max edited to 1326000.

No, i don't run anything except for xposed and kernel adiutor.

I followed your instruction good, and still don't understand why ?
[Redmi Note 2 Android Development] jajk:
[MENTION=5022570]ragilcepot[/MENTION] By default, zram is off and there is no freq limiting. It is up to each user to enable the extra lines that they want or to over-ride my default settings.

Your init.d script must have 0755 permissions and it must be in Unix format for EOL characters - not Microsoft / Windows otherwise it is just another text file. In other words, be careful what you edit the file with.

Example:

Default disabled lines for zram:

#Enable zram (no zram set by default, [B]enable all 4 lines if zram required[/B])
#echo 536870912 > /sys/block/zram0/disksize # 536870912 = 512MB (for non-prime version) 1073741824=1GB (for prime version)
#/system/xbin/busybox mkswap /dev/block/zram0
#/system/xbin/busybox swapon /dev/block/zram0
#echo 100 > /proc/sys/vm/swappiness

Change to enabled lines if you want zram:

#Enable zram (no zram set by default, [B]enable all 4 lines if zram required[/B])
echo 536870912 > /sys/block/zram0/disksize # 536870912 = 512MB (for non-prime version) 1073741824=1GB (for prime version)
/system/xbin/busybox mkswap /dev/block/zram0
/system/xbin/busybox swapon /dev/block/zram0
echo 100 > /proc/sys/vm/swappiness

Same deal with freq limit:

# Limit CPU max freqs ([B]To limit the maximum cpu freq, enable both of these lines[/B]. Select a valid freq for your device from table at start)
#echo 1781000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
#echo 1781000 > /proc/cpufreq/cpufreq_limited_max_freq_by_user

becomes in your case:

# Limit CPU max freqs ([B]To limit the maximum cpu freq, enable both of these lines[/B]. Select a valid freq for your device from table at start)
echo 1326000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
echo 1326000 > /proc/cpufreq/cpufreq_limited_max_freq_by_user

Turn off the settings on boot in Kernel Adiutor so you know what is doing what.
[Redmi Note 2 Android Development] ragilcepot:
Thanks mate.

One more thing, i checked xposed and there is no disabled stuff, meaning all the modules should work fine.

However, Xmiui and whatsapp extension dont seem to work after installing your boot.img

Does it have to do with either your framework or system ui setting, or idk i'm no expert so maybe you could give me a little bit of light here, i need xmiui so bad ?
[Redmi Note 2 Android Development] jajk:
[MENTION=5022570]ragilcepot[/MENTION] Skinny boot image doesn't alter any files in /system or /data so that is not the cause. Try reinstalling Xposed and modules right from the start again. Xposed shouldn't have any interaction with what's in the boot.img but sometimes it seems to need to be reinstalled all over again for some reason. I don't run Xposed so maybe someone that does can help more?
[Redmi Note 2 Android Development] acestars:
I flashed this boot image and got bootloop. When using boot 61222 v22 is ok. I am using Miui 8020.

Sent from MIUI 8.0.2.0 on Redmi Note 2 using Tapatalk

---------- Post added at 06:24 PM ---------- Previous post was at 06:21 PM ----------

I am using xposed but everything is fine. Do just two modules you mentioned that not worked? How about you try to enable and disable the modules via xposed installer or maybe reinstall the modules?

Sent from MIUI 8.0.2.0 on Redmi Note 2 using Tapatalk
[Redmi Note 2 Android Development] Gyovany96:
Bootloop on Beta 6.12.29 too using Skinny_Pro_61229_Tweaked-v22.img , unfortunately there's something wrong with this last 61229 v22 [MENTION=5952980]jajk[/MENTION]
[Redmi Note 2 Android Development] IshtaNoob:
I replaced TWRP, and am using flyme ROM now, and the issue persists. I cleaned the contacts too, the symptoms are the same: once down to 5% battery, it becomes 25% after removing the battery...
[Redmi Note 2 Android Development] ragilcepot:
[MENTION=5952980]jajk[/MENTION] [MENTION=4647504]Acestar[/MENTION] both don't work at all but i guess some of my modules are not working the way it should be too. I have tried to uninstall and reinstall, enable and re-enable us a ton of reboots and no result. ?

Btw i am using, 8.1.3 stable from skinny and it is by far the worst rom i've ever tried.

Not skinny fault, it comes from the xiaomi itself, i think.

The best rom i've ever had is 6.11.17 from skinny+boot img from here. (TBH i mixed it with govtuner mod project and surprisingly it didn't conflict. I just replaced the number on init.d from here and put them on govtuner's script ?)

I've got 4 hours of SOT, with super heavy usage (inc. streaming youtube within very poor signal reception for almost an hour)

The normal state is around 5 hours-6 hours.

I posted the screenshot of my SOT on skinny rom thread.
[Redmi Note 2 Android Development] Adam Hui:
Well, maybe along these time we should called it xiaomi F-fast charge trick, with F means 'fake'... :D
[Redmi Note 2 Android Development] jajk:
O.K something is wrong with 61229 boot image - don't use it - removed now. Use the 61222 v22 instead. I am not going to fix the 61229 one as there are no changes other than the newer kernel that is screwing things up somehow :confused:

[MENTION=5022570]ragilcepot[/MENTION] Try with 61222 v22 image.

I agree that 8130 is the worst ever. My best recent version was 61110 - it rivals 7550 for battery and stability. 8030 was another one that wasn't too bad. Unfortunately or fortunately, I have so much fine tuning and tweaking invested in 7550 it is hard to not go back to it after being unimpressed with the bling bloat creeping into new versions.

[MENTION=6068190]IshtaNoob[/MENTION] As if Flyme is any better:rolleyes: Maybe you need to come back to MiuiLand where everything is fantastic. We are all expecting something wonderful is about to happen:rolleyes:

[MENTION=4666525]Adam Hui[/MENTION] Xiaomi would never fake anything would they? I came across a list of data compression ratios while decompiling stuff that is used to report how well Xunlei is saving you data - absolutely, completely fake data from a pre-written list - not actual measured performance!!!
[Redmi Note 2 Android Development] jajk:
Mods for EU 80x0 ROMs: Should work on 8010, 8020 and 8030

Autobrightness fix

Camera with Max Picture Quality setting - may work with other versions but not tested.

Other mods are available on demand for changing the toggles grid and changing the MIUI home launcher grid. Adds that bit of finesse missing from the default setting:)

75xx toggles attached. 4x5 in portrait, 7x2 in landscape with free bonus: ability to change statusbar item sizes:good:

I will redo the version for all MIUI8 with better sizing next year:laugh:

[MENTION=5216574]Gyovany96[/MENTION] Include some or all of these mods as part of Skinny ROMs as you see fit;)
[Redmi Note 2 Android Development] Gyovany96:
Thanks man ! I'm gonna include this into my ROMs ! :)

Great work like always ! :good:

But for some reasons I can't download any of those 3 attachments with my phone or PC.. :/
[Redmi Note 2 Android Development] hjthzz:
[MENTION=5952980]jajk[/MENTION] the "problem" of the battery percentage was solved after doing a full uncharge and charge cycle. So everything is now ok!

By the way, I was not using your TWRP Turbo version (I use the normal TWRP).

For now, I am getting about 3 hours of screen, but I am using 4G (LTE), Bluetooth... it is ok for now. I have to wait for more results after more charging cycles.

Thank you very much.

---------- Post added at 11:35 AM ---------- Previous post was at 11:29 AM ----------

I think I had the same problem. Try to do a full uncharge of the battery. Then charge it again full. I think is a battery calibration "problem" that is solved after some cycles of charge.
[Redmi Note 2 Android Development] IshtaNoob:
True, flyme is just patchwork, like CM, and it's not as pleasant to look at, but at least it's different.

Flyme did something very weird, though: when I finished flashing and started using it, I had 49% battery left; the phone lasted around 2 and a half hours on screen until it reached 8% battery. However, on a full charge and the same usage, it doesn't even reach 3 hours... How odd is that?

PS: what might be about to happen? I'm expecting something "wonderful" from Xiaomi since I bought the phone, and all I got so far was cosmetics. The most work I've seen done for this device was by XDA and 4pda members, not Xiaomi or miui.
[Redmi Note 2 Android Development] jajk:
Seems like last year since I visited this site.....

Happy New Year to everyone and now back to business.

Here is the improved Miui8 toggles mod suitable for all Miui8 versions.

Not tested with Search from status bar or Weather activated but if you don't like the result, do some edits yourself or just delete the 2 files to go back to stock.

2017 will be the year that Xiaomi finally fixes autobrightness - it will be worth the wait:good:

Edit: Unable to open image error is XDA problem - not mine:(
[Redmi Note 2 Android Development] acestars:
Dont worry, Xiaomi will release nougat for rn2 this friday. [emoji14]

Sent from MIUI 8.0.2.0 on Redmi Note 2 using Tapatalk
[Redmi Note 2 Android Development] jajk:
[MENTION=3885679]acestars[/MENTION] With autobrightness fixed too :good:

[MENTION=5216574]Gyovany96[/MENTION] It looks like the 61229 modded camera works with everything at least from 7.5.x onwards (haven't checked on older ROMs if anyone wants to try?). After the talk of which ROMs have proven to be the best, I restored 61110 and updated everything to current. So far it is purring along as good as 7550. Was there a 6.11.xx or 6.12.xx ROM that stands out from the others in your view? I don't load every version - just once in a while I try out the latest to see what crap has been added with the slim hope that something might get fixed by accident:(

Whatever is wrong with downloading files and pics from my posts is a recent XDA issue
[Redmi Note 2 Android Development] jajk:
Skinny_Pro_61229_Tweaked-v22.img re-instated

Fixed (was missing a crucial file first time around that caused boot failure)

Interactive Gov tune is tweaked a bit from previous values to lessen a few micro-lags. Always a thin line between battery vs performance but this should not hurt battery

providing

you are sensible with the amount of junk running in the background - it is in your hands;)

Let me know if you find the new Gov values better or worse.
[Redmi Note 2 Android Development] Gyovany96:
[MENTION=5952980]jajk[/MENTION] So I can use 61229 modded Camera to fit in all my ROMs then (testing first , of course ) , that's very good then :good:

If I remember right , Beta 6.12.15 was standing pretty good , I could get around 5h SoT even without Skinny Pro Boot , with the rest of ROMs I got 4h-4h40 SoT. If that 6.11.10 is as good as say maybe I can pack that too , what do you think ? :)

EDIT :

Actually 6.12.29 seems pretty good too , got 5h SoT with heavy use including 2h Twitch stream !

On others thoughts hope that XDA solve this downloading issue :(

BTW - Happy New Year man ! We all thanks you for your wonderful work ! Keep on in 2017 too , if don't change you "stunning" Xiaomi phone ?
[Redmi Note 2 Android Development] acestars:
boot 61229 v22 worked, now waiting xiaomi update miui to be best rom in the world.

Sent from MIUI 8.0.2.0 on Redmi Note 2 using Tapatalk
[Redmi Note 2 Android Development] jajk:
[MENTION=5216574]Gyovany96[/MENTION] I have put the mod files on GDrive with the rest of stuff. Seems like every 2nd or 3rd release is good with duds in-between. The latest "good" release has the attraction of having later Google security updates so probably a good idea to keep going forwards. The only issue is that a "dud" ROM may become good when skinnied down removing the offending pieces. I regard all MIUI ROMs as being useless until they are stripped back and at that point, some (like 61110) perform well but not necessarily before then.

I have altered the 8020 autobrightness fix on GDrive to have slightly lower brightness at the darker end of the scale as I found the initial settings a bit bright (on my display). I have not heard any feedback on how well the brightness tracks ambient conditions and whether or not users are needing to tweak the settings themselves. Feedback makes the product better guys........

[MENTION=3885679]acestars[/MENTION] That will happen when there are options in Setup as follows:

Do you wish to install MIUI skin?

Do you wish to install Xiaomi bloatware?

Do you want adware and spyware pre-installed as part of the O.S?

Do you want autobrightness to work?
[Redmi Note 2 Android Development] Gyovany96:
You're absolutely right ! The MIUI ROMs are not constant at all ! You can have a very good ROM this week and the next update screw it all... Thanks Xiaomi again for that:good:

I might slim ROMs even much more and get rid of useless big apps like MiuiGallery+MiuiVideo and replace them with better lighter ones like QuickPic for example ( I'm still searching the right replacement apps list ). Every ROM is better slimmed out , I remember me skinny every ROM for all my phones , some ROMs sizing just ~100mb for Samsung Galaxy Gio long time ago...

I remember that one of your brightness fix keep my LCD quite bright during the night so adjusting it it's a good thing ( minimum brightness should be like the stock one for me )
[Redmi Note 2 Android Development] jajk:
[MENTION=5216574]Gyovany96[/MENTION] Some ROMs allow the brightness to be fine tuned with the slider even when on auto. Other ROMs disable the slider when on auto (as happens in 61110). I might compare the code to see if I can always have that fine adjustment as it can take into account different LCD screens and lighting conditions.

Edit: Nope - the slider adjust part of the code is elsewhere :( Might trip over it one day

Better brightness values added to O.P of autobrightness fix thread. You won't burn your eyes out as much with the revised values:cool:
[Redmi Note 2 Android Development] Adam Hui:
Can u pls rewrite that interactive changes to your 01_init at your gdrive ? It seems universal useful for mt6795t, love it.

MIUI taste feels boring day by day, it seems like live at years ago.

Been moving to Bule's cm13 20161203 (also with his kernel) since all sensor i needed work, after weeks of feeling suspicious about privacy intrusions in his track. Phone's getting hotter & drainy, as always skinny SOP & 01_init act like hammer to straighten that curved iron, yep revived & imo cut his power of home calling. Thanks.

Sorry for being OT, if u dont bother to skinny his kernel, i'll upload, maybe it'll useful for 6.0 rush there :D

Pls folks, dont throw that stones to my face...:p
[Redmi Note 2 Android Development] jajk:
[MENTION=4666525]Adam Hui[/MENTION] I will redo the init file shortly even though you have wandered from the path of righteousness. You will be back or having to buy a new phone shortly:p

................................................. done
[Redmi Note 2 Android Development] Adam Hui:
Oh sh*&%@...

:laugh: funny enuf sensei... :hatsoff

Thanks... only will be back while asking for ETAs.. :p

---------- Post added at 04:56 AM ---------- Previous post was at 04:27 AM ----------

@jajk https://mega.nz/#!IY93Qa7R

u see i keep my word about ETAs :laugh:

Just ignore if u're getting bothered.
[Redmi Note 2 Android Development] jajk:
[MENTION=4666525]Adam Hui[/MENTION] What is that link for? An encrypted file I cannot see but if it is a 6.0 boot.img the answer is no. Why? Because the kernel is dangerous to hardware and when you blow up the charge controller or battery I will :laugh: but others will :crying::crying::crying: and try to deflect blame to me. When a better kernel is produced, I will look at it;)
[Redmi Note 2 Android Development] Adam Hui:
Lol..sorry for that wrong tapping clipboard..haha...

Ok, got it. Still wondering why u called it hw dangerous cuz i repeatedly turn by turn without matter..
[Redmi Note 2 Android Development] Adam Hui:
My half battery, old 01_init, still no services are disabled, there's still much junks in my phone...
[Redmi Note 2 Android Development] jajk:
SuperSkinnySU-v2.79-SR2-arm64.zip uploaded

It works.

[MENTION=4666525]Adam Hui[/MENTION] That's not how a MIUI Battery Usage screen looks:confused: Posting S.O.T shots is about as useful as posting Antutu benchmark results - both are as useless as tits on a bull.

1st step: Have you done a getprop to see what boot services are running and adjusted init.d script to stop any uneeded? You will have different services to contend with. Maybe you will find one that turns your phone into a Bot:eek:
[Redmi Note 2 Android Development] Adam Hui:
Been using Bule's cm13 20161203.

So what app to proves SOT that get real point? BBS ?

I got getprop result seems like identical to my build.prop, so whether services at this can be disabled alas essential system works ?
[Redmi Note 2 Android Development] Iliyena:
Doesn't it feel great that the battery life is the main problem we fight with this phone's hardware compared to phones presented today at CES with prices well over $200! ;) (Got mine for approx $120) Cannot help but love this slab of a mid-class device. Not feeling as special with the 5.5" longer though.