yashsingh1/xdaforums huggingface dataset:
[Redmi Note 2 Android Development] jajk:
[MENTION=6765673]bmdhj[/MENTION] Wrong thread! There is a Help and Troubleshooting section. Post a screenshot of WLD or BBS and specify the actual ROM version if you want advice on what is draining your battery. Just don't do it here.
[Redmi Note 2 Android Development] jajk:
[MENTION=5201188]AssToast[/MENTION] It didn't kill you so maybe it made you stronger? Maybe a kind reader with a bit of spare data could zip up the modem files and post a link so others do not have to endure what you have been through?
[Redmi Note 2 Android Development] AssToast:
[MENTION=5952980]jajk[/MENTION] I figured out the best way was add the files to disk then download them from there in a zip. Anyway here's the modem.

V24 P55

https://yadi.sk/d/U7O7S9kDyYqLn
[Redmi Note 2 Android Development] vetriolo:
Hello guys! This is my situation... :D

I'm on 7.5.3.0 stable and I have a weird battery drain. Tonight I unplugged my phone and this morning I found that attached Thumbnails...

I'm with skinny boot image V15.

What could I do?

Thanks
[Redmi Note 2 Android Development] jajk:
[MENTION=7694222]vetriolo[/MENTION] Quite a bit of activity attributed to Network Location and Bluetooth. I would be turning off Location or at least setting it to Device only mode and turning Bluetooth , WiFi and Data off when not being used.

Also turn off unneeded boot services in init.d script.

For V15 Skinny Boot, the remaining boot services that can be turned off are: (recommended basic config shown)

### Stop running boot-time services
stop sn
#stop wifi2agps
#stop agpsd
stop emsvr_user
stop PPLAgent
#stop mtkbt
stop batterywarning
stop debuggerd64
stop debuggerd
stop logd
#stop autokd
[Redmi Note 2 Android Development] vetriolo:
Location and Data was turned off. Wi fi was on e BT on (I usually utilize mi band).

I will try to stop boot service as you say. (I believed, that in the last version of boot image, the serviced was stopped at boot time and init.d could only overwrite; what about V16?).

Anyway thank you.
[Redmi Note 2 Android Development] jajk:
I am going to release a V17 shortly but first I need some feedback from the minions on whether or not you want tweaks embedded into the boot image (virtually all can be overridden by init.d script anywho)

So tweaks on the inside or tweaks on the outside (set by init.d script)?

Vote now or forever :crying::crying::crying:
[Redmi Note 2 Android Development] jajk:
[MENTION=7694222]vetriolo[/MENTION] The other things to look at is how many apps are running that could be frozen or autostarts turned off and how many services are running. MyAndroidTools screenshots like attached is handy to understand what is going on too.
[Redmi Note 2 Android Development] acestars:
I prefer init.d so i can easily read the scripts.

Sent from MIUI 8.0.2.0 on Redmi Note 2 using Tapatalk
[Redmi Note 2 Android Development] DarthJabba9:
I have no preference.
[Redmi Note 2 Android Development] AssToast:
Have it embedded for all the lazies and let people override what they want. :laugh:
[Redmi Note 2 Android Development] vetriolo:
If the tweaks don't break some main functionality (e.g. BT, GPS, radio FM ecc..) I prefer tweaks on the inside....
[Redmi Note 2 Android Development] Sleepy_Augie:
Internal tweaks are great as long as they are cross compatible with the prime version.

On another note, I do want to help and give feedback on the modem but my college wifi is shoddy as hell, and I ran out of my fast 3g data because the wifi kicks me off a lot. I've been downgraded to 2g or something for the rest of the month.
[Redmi Note 2 Android Development] Adam Hui:
Embedded, and inform what things are embedded & value.
[Redmi Note 2 Android Development] vaselor:
I agree. Embedded for being able to work out of the box as long as it doesn't disable anything (so everyone can disable whatever they don't need).
[Redmi Note 2 Android Development] jajk:
V17 is up and O.P completely redone. Tweaks are internal but init.d script has better explanation (I hope)

Changes:

Find Device and Fingerprint Scanner related lines removed from SE contexts files (again)

LMK minfree setting set on boot (again) - use init.d script to override values if needed

TCP buffer sizes for LTE and WiFi tweaked (again)

Revert watchdog kicker timing back to stock (stopped working since 6113)

Increase sched_rt_runtime_us to 970000

Increase cpu.rt_runtime_us to 970000

Increase bg_non_interactive/cpu.rt_runtime_us 970000

Number of cores available decreased from 6 to 5

For those wondering about the recent cpu runtime changes....

Simplified: The cpu runtime scheduler allocates up to 1 second blocks on a cpu to a task. If the task needs more, it will be re-allocated another block of time on a cpu and so on until the task is completed.

If a task could take up 100% of the cpu time, all other tasks including the scheduler would be locked out of gaining access to the cpu so a bit of deadtime (throttling) is needed to ensure a task cannot hog the cpu indefinitely (a crash or runaway situation).

Now for the interesting bit...

The standard settings that we see in Android are inherited from Linux which has not, until very recently, taken into account the concept of multiple core processors very well. Some Google Devs now advocate 95% for all settings which gives 50mS of deadtime per second per cpu where each cpu can be retasked instead of the 200 and 300mS for foreground and background tasks that the current stock settings give. 50mS is still a very, very long time in computing terms!

Taking this to the extreme, how short can the deadtime become while still allowing the scheduler to get in there and do its job and not get runaway processes? The answer is... 30mS still works for me. This equates to a possible 97% utilization of cpu time as opposed to the stock 95%, 80%, 70% for scheduler, foreground and background tasks respectively.

If you look at the settings in later CM ROMs, it is likely that you will find cpu.rt_runtime_us is set to 950000 by default. This is one of the factors why CM can have better benchmark scores than its stock counterpart.

If you feel that these aggressive settings are giving you side-effects, make it known here please;)
[Redmi Note 2 Android Development] Adam Hui:
Found another libs, safe to delete in eu 61110 (cmiimw :silly: )

system/lib :

libnfc_ndef.so

libpowerkeeper_jni.so (dont do it if u're in love with battery saver :v )

system/lib64 :

3 files of libBaiduMapSDKxxxx

libmatv_cust.so

libnfc_ndef.so

libpowerkeeper_jni.so

libprintspooler_jni.so (i never print smth from phone)

libttscompat.so

libunipaychsec.so

[MENTION=5952980]jajk[/MENTION] where does tunman go & what file created to replace it ?
[Redmi Note 2 Android Development] jajk:
[MENTION=4666525]Adam Hui[/MENTION] I think that you may run into camera video trouble deleting libmatv_cust.so. I did this a long time ago and hit problems. I would also keep the powerkeeper libs - we don't need the app, but the libs still provide some functionality without the app.

Tunman disappeared a while ago - maybe after being outed for what it is here?

Here is my (conservative) list of deleted libs on 61110 (I don't have any Google or Xiaomi Apps so careful following in my footsteps). You might see some that you have not yet discovered;)

As always, look at the ROMs updater-script to see apps that are generated by symlinking to libs.

/lib

libbspatch.so

libdce-1.1.14-mfr.so

libDecRes_sdk.so

libDToken.so

libentryexpro.so

libfamily_jni.so

libfdpp.so

libfdpp_jni.so

libgetuiext.so

libkcmutil.so

libkcmutilex.so

libminivenus.so

libMiuiGalleryNSGIF.so

libmresearch.so

libNative.so

libpatcher_game_jni.so

libsecurities_sdk.so

libsecuritysdk-3.1.27.so

libShopSigned.so

libsic_helper.so

libspaces_jni.so

libTmsdk-2.0.9-mfr.so

libwebp.so

libweibosdkcore_sogou.so

libxiaomimediaplayer.so

libxiaomiplayerwrapper.so

/lib64

libapssdk.so

libBaiduMapSDK_base_v4_0_0.so

libBaiduMapSDK_search_v4_0_0.so

libBaiduMapSDK_util_v4_0_0.so

libDexHelper.so

libdidi_secure.so

libduokantext.so

libjni_latinimegoogle.so

libjni_pacprocessor.so

libMiuiGalleryNSGIF.so

libnexcralbody_mc_jb.so

libnexeditorsdk.so

libnexralbody_audio.so

libpatcher_game_jni.so

libPinguoImageSDK.so

libprintspooler_jni.so

libTmsdk-2.0.9-mfr.so

libttscompat.so

libttspico.so

libweibosdkcore.so

libwrapnexpcmcalbody.so

libxmpass_sdk_patcher.so

xmpass_libweibosdkcore.so

/vendor/lib64

libcom_fingerprints_productiontestmanager.so

libcom_fingerprints_sensor.so
[Redmi Note 2 Android Development] bmdhj:
Can you make a ROM that is skinnified? Like without Xiaomi ecosphere? Unsure about flashing this.
[Redmi Note 2 Android Development] priandikawr:
Hi guys, i wanna ask. when we flash the boot.img, in TWRP, we must choose the boot partition, right?

And i'm using the Miui 8.0.2.0 (Skinny by Gyovany), so i must flash the Skinny Pro 8.0.2.0 boot.img or i just flash the latest Skinny Pro boot.img? Thanks before:D
[Redmi Note 2 Android Development] cukierkas:
I have sold the Hermes while time ago, but I still like to read this thread, knowledge is stimulating.

Thanks guys.
[Redmi Note 2 Android Development] jajk:
[MENTION=6765673]bmdhj[/MENTION] This has been discussed before. The major problem is that a truly Skinny ROM fails to get past the initial setup screens because Xiaomi have made this dependent on having quite a few Xiaomi apps present.

The alternatives are to install a full ROM and use a Skinnying script to strip out the unwanted bits, manually do it yourself or use one of Gyovany96 ROMs which are skinnied to a certain point. Past experience has shown that users want these skinny ROMs but then want to put back what is missing and then add bloat and rubbish apps defeating the purpose:eek:

[MENTION=6617063]priandikawr[/MENTION] In TWRP, install image and select boot partition. No need to wipe anything before or after. Latest version 17 based on 61110 is compatible and recommended for 8020;)
[Redmi Note 2 Android Development] jajk:
GPU tweaks that may help with battery. Get this in your init.d script:

# Tweak GPU Settings
# Look in /proc/gpufreq/gpufreq_opp_dump for valid gpu frequencies for your device
# Look in /proc/gpufreq/gpufreq_power_dump for power usage at different freqs
#echo 0 > /proc/gpufreq/gpufreq_input_boost # factory default 1 (enabled)
#echo 442000 > /proc/gpufreq/gpufreq_opp_max_freq # factory default 0 (disabled)

Highly recommend to at least disable the input boost.

Limiting the max freq will suit some users but not all.

I will add this to the reference init.d script once I get some feedback on what you find works or not with these tweaks;)

Can someone post gpufreq_opp_dump and gpufreq_power_dump for Prime version please?
[Redmi Note 2 Android Development] Sleepy_Augie:
Wifi button breaks after a certain amount of time for me. It auto-switches off when I switch it on. I've seen this before in my time using different phones, but I don't know what causes it.
[Redmi Note 2 Android Development] acestars:
attached

http://cloud.tapatalk.com/s/582bbd04d0721/gpufreq.txt

Sent from MIUI 8.0.2.0 on Redmi Note 2 using Tapatalk
[Redmi Note 2 Android Development] bmdhj:
Latest custom image v17 always lead me to this bug "system launcher has stopped". But I need to cancel the pop up bug and use nova launcher. Time to time it will appear though. And I am using the skinnied latest beta MIUI 8.2 with your custom pro image. Still have high battery drain.
[Redmi Note 2 Android Development] jajk:
Latest tweaks are so effective the phone has negative battery drain (charges while disconnected):good:

[MENTION=7150090]Sleepy_Augie[/MENTION] Do you have it set to keep it on during sleep? Never seen the issue before but maybe someone else can verify? Which ROM are you on?

[MENTION=3885679]acestars[/MENTION] Thanks for the file:good:

[MENTION=6765673]bmdhj[/MENTION] Have you set Nova to be the default Launcher and uninstalled / freeze / disable autostart of MIUI Home Launcher? Installing Skinny Boot is just part of the process - it enables you to achieve good battery life if you follow through with the rest of the process....
[Redmi Note 2 Android Development] Gyovany96:
[MENTION=6765673]bmdhj[/MENTION] I use latest 8.2 Beta and tested Skinny Pro Boot v17 on it and it worked perfectly , no errors at all ! That 'Launcher FC' was an error on my first 8.2 Beta but I fixed it and uploaded the new working fine 8.2 ROM. Make sure you have the latest correct ROM ( look in system/app/ and see if you have

PersonalAssistantPlugin

app in there ; if not then download latest 8.2 Beta again ). I repeat , I used it too and no 'Launcher FC' !
[Redmi Note 2 Android Development] jajk:
GPU tweak and removal of symlink created apps added to O.P.

SuperSU-v2.78-SR4-arm64.zip uploaded. This is super-skinnied version only for arm64 and higher-res displays.

Latest weight-loss tip:

Google Webview contains both arm32 and arm64 versions which, when installed will take up to 192MB of memory.

If you

uninstall the existing webview

and then install a self-skinnied version containing only the arm64 libs, you will save around 100MB of memory;)

Download the latest Webview (or any other Google App) here:

http://www.apkmirror.com/apk/google-inc/
[Redmi Note 2 Android Development] cukierkas:
howdy.

short q: would your skiny supersu work on kate, 6.0.1?

or just for lp?
[Redmi Note 2 Android Development] AssToast:
[MENTION=5952980]jajk[/MENTION] Is making a skinny boot.img or kernel for AOSP based rom viable? Not asking for one now but..... In the future? *nudge* *nudge* *wink* *wink*
[Redmi Note 2 Android Development] Adam Hui:
Superman !!

Edit : for WebView, there's no arm64 variant, just arm64+arm, is it ? and miui gallery, what skinnied app u'll recommend to replace it? will it breaks camera?
[Redmi Note 2 Android Development] Gyovany96:
I always update Webview arm64+arm ( even Beta ) and it's working excellent , but if I try to integrate it into .zip ROM's I get FC's and some apps won't even start... Integrating Webview update into running system works tho... :/

EDIT : Almost same results with Gplay Services... If I replace stock one ( 240-no dpi ) with latest Gplay Services for our devices ( 248- 480dpi ) into ROM's , some users reported that can't sign into Google account or Gplay Services FC ( I personally don't had that issue when I updated Gplay Services into .zip ROM ) so I quit updating Gplay Services into ROM's..
[Redmi Note 2 Android Development] PavelPerm:
It would be nice if somebody would have made SH script to apply all the changes that are specified in the header theme .....
[Redmi Note 2 Android Development] jajk:
[MENTION=2606021]cukierkas[/MENTION] Yes.

[MENTION=5201188]AssToast[/MENTION] Yes, already done but not released. What a pleasant meme you have now - your mother would like that:laugh:

[MENTION=4666525]Adam Hui[/MENTION] Yes, arm64+arm is what I am talking about. Remove the arm v7 lib before installing. The best Gallery replacement I have found is QuickPic_4.7.2.2404.

[MENTION=5216574]Gyovany96[/MENTION] Yes, that is the weird way Android keeps the original copy and an updated copy of the app hence the high memory usage. I may not have explained it very well but if you uninstall webview and then reinstall it with the arm v7 lib removed from within the downloaded app, all is well. I don't know if it will integrate into the ROM though.

[MENTION=4391460]PavelPerm[/MENTION] Yes, when you have it completed, post it here.
[Redmi Note 2 Android Development] Brkge:
Open inside and there must be libs folder. In libs folder there is almost always 2 or 3 variants. Delete all except armeabi-v8 or something I can't remember. It is arm64
[Redmi Note 2 Android Development] AssToast:
[MENTION=5952980]jajk[/MENTION] I'm ready whenever you are ;). Make my mom proud hahaha
[Redmi Note 2 Android Development] Gyovany96:
[MENTION=5952980]jajk[/MENTION] Removing armv7 lib into Webview makes apps like Phone , RAR , Browser to FC
[Redmi Note 2 Android Development] jajk:
[MENTION=5216574]Gyovany96[/MENTION] So starting by totally uninstalling the current webview, removing armeabi-v7a folder from the new app before you install it and then installing it, you get FCs?

Why does it work for me? Anyone else getting FC problems with this?

[MENTION=5201188]AssToast[/MENTION] Too many serious flaws in the kernel to be viable - devs out chasing butterflies. Hey, I make your mom happy already, it's up to you to make her proud:highfive:
[Redmi Note 2 Android Development] Gyovany96:
Nah..still not working. Anyway doesn't really matter for me :)
[Redmi Note 2 Android Development] Adam Hui:
Yep confirmed, phone, sms, etc. FCs. Offline theme (/w xiaomi fwork frozen) fall back to stock default after reboot.

Steps was uninstall WebView, deleting arm libs, repack again by rootex >> reinstall.

Ehm, why just not upload the proper skinnied one to your glorious gdrive ? :cowboy:

edit : oops, it's a 54mb, so will bothering & sleepy to wait it uploaded, and i havent been contributing anything...:D
[Redmi Note 2 Android Development] priandikawr:
Thanks for the answer jajk! it's work,no bootloop. so all the latest version is compatible for 8020? it's okay if i installed it with xposed? i'm just curious if it doesn't work.. and just put the 01_init to init.d folder right? no need to use kernel adiutor?

sorry for this many question:D
[Redmi Note 2 Android Development] jajk:
I don't know why you guys are getting FCs with the webview skinny. Maybe need to do wipes before reinstalling since it will be in dalvik cache?

It re-installs into /data/app with 2 permissions which works perfectly...... for me.

[MENTION=4666525]Adam Hui[/MENTION] Not too much point in uploading something that is continuously getting updated - better to know how to do it yourself;)

[MENTION=6617063]priandikawr[/MENTION] Yes, drop 01_init into init.d folder

and

give it 0755 permissions. Kernel Adiutor is not necessary but is useful to look at the settings rather than set them;)

Install Xposed last and only if you really have to.
[Redmi Note 2 Android Development] Adam Hui:
Yes. indeed. Thanks for your effort & dedication. Keep sharp.
[Redmi Note 2 Android Development] jajk:
Can anyone post a link to just the boot.img from 61117?

I will rebase on it and release a V18 shortly with lots of shiny trinkets included:)

The whole ROM is here (as is every new version of EU ROMs when released):

http://miuif.celogeek.com/

Never mind... found it
[Redmi Note 2 Android Development] jajk:
I just tried the skinny webview trick on 7.5.50 and found that the procedure needs to be a bit more elaborate:

1. Uninstall the app.

2. Delete the left behind folders /system/app/WebViewGoogle (it doesn't really uninstall - just pretends to to make you feel in control)

3. Reboot and use SD Maid to get rid of Corpses

4. Install new webview app with lib/arm folder pre-removed (an apk is just a zip file in disguise)

5. Click Thanks until your finger bleeds;)

I got annoyed with the retarded battery charge indications, notification LED issues and whacky notification volumes in recent MIUI versions so I have gone back to 7550 which has none of these issues.

I know that 61117 fixes all existing faults.........:rolleyes:
[Redmi Note 2 Android Development] jajk:
Skinny_Pro_MIUI8_Tweaked-v18.img uploaded

Changes:

Rebased on 61117

Rearranged boot sequence and lots of small settings changes for faster booting

Note: 61117 adds some new settings. It is still compatible with 7.5.xx and later ROMs. 61117 ROM users can not flash earlier versions of Skinny boot.

See /proc/mtprof/cputime and /proc/bootprof for a breakdown of what makes up your boot time.
[Redmi Note 2 Android Development] DarthJabba9:
I believe what you mean is /proc/mtpro

f

/cputime
[Redmi Note 2 Android Development] Adam Hui:
Still not working in 61110+v17

The only webview folder for me is /data/app/com.google.android.webview-1 and it's deleted right after uninstalled.

I deployed my own twrp backup of "jajk's SOP" skinnied 6110+v17 into my wife RN2 Prime & then restore her private app's data for social apps, just to make a shortcut of skinny process. So, 2nd question is why mine & her couldnt pass keycode BT pairing. I didnt stop mtkbt at init.d.
[Redmi Note 2 Android Development] jajk:
[MENTION=5850987]DarthJabba9[/MENTION] Indubiously my dear Watson. The keys are side by side so it doesn't take a rocket surgeon to figure that one out:rolleyes:

[MENTION=4666525]Adam Hui[/MENTION] Another typo! Should have read /system/app/WebViewGoogle. If it works for me, it must work for everyone;)

2nd question is interesting. Maybe you now have 2 phones with the same crypto keys? Dis this only happen after you essentially cloned your phone onto hers?

Anyone have comments about p55 modem compared to p51? You need to compare on the same version of Skinny boot since TCP settings are different over recent versions.

I have a feeling p51 is faster....
[Redmi Note 2 Android Development] Adam Hui:
Ok lets forget webview, it doesnt meet any workaround except in jajk's which not having gapps. I think phone, message, themes apps were using 32 bit (arm) libs that makes apps FCs.

Yes i think the same cryptos is the cause, wipe bt data then it will be fix ?
[Redmi Note 2 Android Development] jajk:
For those who are sitting on 7.5.x (like me at present) I have done a special Skinny_Pro_75xx_Tweaked-v19.img that reverts back to being based on 7550 kernel.

I am trying out running "drm-less" at the moment (stop drm service and change 3 lines in build.prop). Not sure what the full ramification will be but I can still play music and videos on the phone.

This may be of interest to those who do not stream or otherwise listen to or watch protected media content.

[MENTION=4666525]Adam Hui[/MENTION] Which partitions were flashed from the backup? Try to do things the easy way and see what happens:rolleyes:

The evil tunman did not gone away quietly - it is renamed to /system/bin/OperaMaxSystem on some later versions which is more indicative of its origins. Delete it if it exists.
[Redmi Note 2 Android Development] Adam Hui:
[MENTION=5952980]jajk[/MENTION] /boot, /system &/data

OperaMaxSystem doesnt exist at /system/bin (61110) or just delete by corpse finder?
[Redmi Note 2 Android Development] priandikawr:
Thank you jajk!:D is the boot.img v18 compatible to 8020? so i must flash xposed uninstaller first to flash the boot.img right?
[Redmi Note 2 Android Development] jajk:
[MENTION=4666525]Adam Hui[/MENTION] I'm just saying it changed its name. I think the Chinese now remove this along with Xunlei downlloader in global versions and maybe the Russians also get rid of it in EU and MR ROMs?

[MENTION=6617063]priandikawr[/MENTION] Hold off updating for now. I am not too happy with the added settings that came with 61117 so I might do a cleaner version for pre-61117 that will be better for 8020. I advise to uninstall Xposed then reinstall if you change the skinny boot image. Always boot up without it first;)

Edit: Nov security update in 61117 ROM might break Xposed - not sure if there are any changes in the boot.img that would affect it but be warned and direct your gripes to Google and Xposed devs - not me;)
[Redmi Note 2 Android Development] priandikawr:
So all the newest is compatible.. okay , I'll wait for it:D yup! that's what i mean, thank you!

Yeah, the newest security patch in RR marshmallow is break Xposed too, maybe I'll just test it if it's affect the boot.img or not:D
[Redmi Note 2 Android Development] vaselor:
Does this special boot.img have the Android 6.0 tweaks, TCP and all the fancy stuff like the MIUI 8 based ones?

Would the DRM removal affect Spotify, for example?

Thanks!