yashsingh1/xdaforums huggingface dataset:
[Redmi Note 2 Android Development] Adam Hui:
The myth of alcohol & drugs was equal supporting coding skills still in their mind perhaps, which unfortunately reverse equal from bali's law underestimated by em :laugh:

Edit : looks like u dont use default skinny setting in kernel :rolleyes:

I bet it for games..
[Redmi Note 2 Android Development] DarthJabba9:
I thought the problem was alleged anti-competitive practices (pricing, etc?).
[Redmi Note 2 Android Development] acestars:
We have very strict rules about alcohol and drugs. Since the new president, the drug lords, the drug couriers, and the drug dealers will be death sentenced.

[MENTION=5952980]jajk[/MENTION] so do you ever went to bali? even I am from the neighbour island just once gone there :)
[Redmi Note 2 Android Development] jajk:
[MENTION=3885679]acestars[/MENTION] I fully agree with the strict laws and like to see more Australians caught over there.

I have never been to Bali and don't associate with the type of people who get locked up over there - just joking as always

[MENTION=4666525]Adam Hui[/MENTION] Games on a Moto G tiny screen? I don't use the Moto G any more except for testing out later version Android stuff that cannot be done on RN2:rolleyes:

[MENTION=5997739]dsjiffry[/MENTION] Have you set touchboost to 1 core and the lowest possible freq? If this causes no appreciable lag, it is the best setting for battery. You will still have another boost in operation that gives you 2 cores at some higher freq everytime a pixel is redrawn. This setting is not accessible to change.

Now try disabling perfserver completely in build.prop file: change this line ro.mtk_perfservice_support=1 to =0

Now all boosting of freqs and cores is done only by Governor and HPS so your gov settings will make more sense.
[Redmi Note 2 Android Development] dsjiffry:
I can disable perfervice in build prop. But when I change values in the hps folder they keep resetting........... So will it still help to keep perfservice disabled?? :confused:
[Redmi Note 2 Android Development] jajk:
[MENTION=5997739]dsjiffry[/MENTION] Yes, perfserv tends to over-anticipate the amount of processing power you are about to need so it serves only to eat your battery. HPS settings will reset until you change the permissions via boot.img mods.

The TWRP image will be accessible via TWRP filemanager if you cannot access it any other way:confused:
[Redmi Note 2 Android Development] Adam Hui:
Edit : wrong quotes :laugh: , it's djssfry gov setting..
[Redmi Note 2 Android Development] dsjiffry:
Ok. I'll give it shot..... :good:

One last question...... If change the hps values after each reboot will they work???? Or is the boot.img editing a must???

Thanks for all the help....... :D
[Redmi Note 2 Android Development] Adam Hui:
Disable perserv in build.prop & using init.d.script at jajk's gdrive is enough after u flash skinny boot.img. But u need to disable all miui optimizations at developer & battery setting. I left miui long time ago tough :p
[Redmi Note 2 Android Development] dsjiffry:
Umm...... I have an HTC device.....:angel:
[Redmi Note 2 Android Development] Adam Hui:
Man Skinny philosophy is working universal, i ran it since my 2012 GT- i9100
[Redmi Note 2 Android Development] dsjiffry:
Yeah I know that's why I'm here....... :laugh:

But my system keeps resetting most of the settings......... Hence the above question.
[Redmi Note 2 Android Development] Adam Hui:
it is answered and i'll let u in a lost now :laugh:
[Redmi Note 2 Android Development] jajk:
[MENTION=5997739]dsjiffry[/MENTION] To quote a wise person: "HPS settings will reset until you change the permissions via boot.img mods."

Hand over your boot.img or forever keep your silence:cool:
[Redmi Note 2 Android Development] dsjiffry:
K. I'll keep trying to get the boot.img...... :cowboy:

Thanks for all the info and support

---------- Post added at 12:43 PM ---------- Previous post was at 12:42 PM ----------

Finally got the boot.img....... Used twrp file manager to change permissions...... :victory:

https://drive.google.com/file/d/0B_mtD-mcFAwyazRsb1NNQ3FLa3c/view?usp=drivesdk
[Redmi Note 2 Android Development] firmaniac:
[MENTION=5952980]jajk[/MENTION] Where is Skinny_Pro_7224_Tweaked-v26.img?
[Redmi Note 2 Android Development] jajk:
[MENTION=7750130]firmaniac[/MENTION] No changes in 7224 boot.img so 7223 is the most current.
[Redmi Note 2 Android Development] jajk:
[MENTION=5997739]dsjiffry[/MENTION] I am almost finished but have a couple of questions...

Is this an HTC stock ROM?

Was there a line in build.prop for perfserv?

Do you have init.d support? If so, how are you getting init.d support? It doesn't look like it is from the boot.img.
[Redmi Note 2 Android Development] dsjiffry:
Yes it's the stock rom and stock kernel...... Yes the line is there in build.prop

........ I was going to use terminal emulator for the init.d script........ :p

Or since I'm using kernel auditor anyway I can emulate it in the app.
[Redmi Note 2 Android Development] Adam Hui:
I expect another brand join this thread to just know how a garbage rn2... at least for the spirit of collective soul. I've just put a SD 400 device though it was from same evil :laugh:

Edit : universality has been a bit proven.
[Redmi Note 2 Android Development] dsjiffry:
Duuudddeeee thanks man...... You are awesome... :good:

The file size is 9MB right??? Cus I uploaded a 32MB file.........

Restore it via twrp is all I have to do right????
[Redmi Note 2 Android Development] jajk:
[MENTION=5997739]dsjiffry[/MENTION] Install image via TWRP (not restore). The image size is correct. An uncompressed backup is always bigger than the packed image.

HTC has a lot of tamper detection paranoia going on so it is not guaranteed to work. Just restore the stock boot partition if it fails.

You will not be pleased to know that HTC rivals Xiaomi in making a complete mess of their firmware:eek:

Use my Interactive and LMK settings to start with. HTC settings would have been extremely sluggish but I expect they have covered over this by having aggressive boost settings just like Xiaomi does.
[Redmi Note 2 Android Development] asusm930:
Hey there can you give my kernel the skinny treatment?

https://drive.google.com/open?id=0B_Q4QjvbODxoUFpVUDhpVDd3R3M

Thanks in advance :D
[Redmi Note 2 Android Development] Iliyena:
*Deleted*
[Redmi Note 2 Android Development] jajk:
[MENTION=2078083]asusm930[/MENTION] Why can't I see the file something like boot.img or boot.zip when I open your link? I don't download stuff that don't look right. What phone do you you have now? If it is Qualcomm, the answer in no unless you send me your phone to test on;)
[Redmi Note 2 Android Development] asusm930:
Its just a kernel backup from flashify haha. Just rename it to something like boot.img

I do understand your security concerns though

Its a redmi note 4 (MTK) kernel thats been supersud'
[Redmi Note 2 Android Development] jajk:
[MENTION=2078083]asusm930[/MENTION] Google says you are downloading a file of type "application/octet-stream" with no preview available. That could be absolutely anything. How hard can it be to name your files something meaningful?

I will have a look at it but it might be a couple of days so chill;)
[Redmi Note 2 Android Development] dsjiffry:
Bad news the file doesn't work....... I had exams so I was unable to test it properly earlier.

But yesterday I tried to limit the number of cores to 6 and the system kept restting the value after the reboot.

Also hispeed freq still keeps resetting........ :crying:

It's ok though..... Thanks for trying...... :svetius:

Also in target loads..... If the value is larger will the cpu favour that processor state or try to stay away from it???
[Redmi Note 2 Android Development] jajk:
[MENTION=5997739]dsjiffry[/MENTION] Bad news - your attempts don't work. Don't be too quick to blame your tools. Android 6.0 does not tolerate changes to system files due to increased security. Is whatever file you are editing just being discarded after a reboot? Everybody wants the latest O.S but don't like the tightened controls:rolleyes:

There are documents that describe how Interactive Gov settings work - Google is your friend.
[Redmi Note 2 Android Development] dsjiffry:
Yep. Pretty much............. :(

Also I wasn't blaming anyone ........ Just informing. :D
[Redmi Note 2 Android Development] jajk:
[MENTION=5997739]dsjiffry[/MENTION] [MENTION=2078083]asusm930[/MENTION] I thought this might be a problem on 6.0 with files being replaced back to stock on reboot. I think I need to add the files into one of the SE linux boot files so the O.S is O.K with them. I will flash 6.0 onto my trusty Moto G and see if I can come up with a way of allowing an init.d folder and script to be accepted as a permanent fixture without disabling SE.
[Redmi Note 2 Android Development] Iliyena:
For my Galaxy S6, I'm using Kernel Adiutor to run my init.d-script after editing it/rebooting, some things just don't want to be set or get changed by default values not visible Synapse. VM-settings isthe obes not sticking mostly. So, does the file work when reunning the script? If so there is surely things to be done to make it just work.
[Redmi Note 2 Android Development] jajk:
[MENTION=7442305]Iliyena[/MENTION] I think we need to fix adding init.d support for Android 6.0+ so that we are ready for Xiaomi RN2 update :laugh::laugh::laugh::laugh::laugh::laugh::laugh:

Seriously though, I know the problem and will look into finding a solution. Does anyone know of a true init.d support solution for 6.0 for any other phones?

If you look at a logcat, you might see the fight between Kernel Adiutor and the boot process. Maybe add a bigger delay applying settings?

Edit: If any settings are set to 0220 permissions in the boot init files, user settings will not stick. That requires a boot unpack - edit - repack.
[Redmi Note 2 Android Development] acestars:
[MENTION=5952980]jajk[/MENTION] i think we need something like systemless init.d
[Redmi Note 2 Android Development] asusm930:
Just use the su.d folder in the su directory? (system less root).
[Redmi Note 2 Android Development] jajk:
[MENTION=2078083]asusm930[/MENTION] Not so easy unfortunately. One part of the problem is to find a "donor" script that is called by init and insert some code into. The next (and bigger) part of the problem is to control the timing of execution. If it happens too early, some settings will get overwritten so we need to be able to execute the lines on boot completed to guarantee no overwriting.
[Redmi Note 2 Android Development] acestars:
[MENTION=5952980]jajk[/MENTION] maybe you can look at magisk.
[Redmi Note 2 Android Development] Adam Hui:
How to make a delay writen in init.d script itself? Will it possible to win the fight?
[Redmi Note 2 Android Development] jajk:
[MENTION=4666525]Adam Hui[/MENTION] on property:sys.boot_completed=1 is the syntax I use to hold off starting init.d during boot from init.rc. Will the same syntax work in the init.d script itself? I don't know but someone might try it and tell me;)

[MENTION=3885679]acestars[/MENTION] Way too hard - there is an easy way for me to get what I want and that is to hard-code the settings into the boot.img. That doesn't help people with different needs, different phones and different ROMs.

Looking at my moto G with AOSP 6.0 and 7.0 loaded, there is what looks like a plausible attempt at init.d support but it does not run even though the sysinit script and init.d script named 90userinit is listed in file_contexts so SELinux should not have an issue with it. I think there is more likely that executing scripts outside of the init process is strictly forbidden now.
[Redmi Note 2 Android Development] dsjiffry:
Do you know how to run a script on screen unlock
[Redmi Note 2 Android Development] Iliyena:
Tasker/Automate/Microsoft flow.

I myself are using the paid version of Automate and it can do... Well, if it cannot do something I think its because of ones own laziness ;) There are quite a load of flows that change CPU gov and max freq and so forth on screen on/off. I don't know if it can run a script directly, but it can be put in line by line for sure... Easy and advanced but a bit.. Hard to do big things since it's block-based, gets a bit cluttered fast.
[Redmi Note 2 Android Development] dsjiffry:
Thank you........ Tasker did the trick...... Some hps settings were changing when the screen was locked....... :good:

Namely up_threshold, down_threshold and rush boost....... :D
[Redmi Note 2 Android Development] dsjiffry:
Is there a big battery gain when you do this??????

I tried it but I lost some network settings.........
[Redmi Note 2 Android Development] Iliyena:
It's alive!!! But the flex connector between the main board and charge controller+backlit diods for capacitive buttons and some anntena stuffs is broken, and the new is yet to arrive. So got this charge (approx 70%) to do my updates and such before turning it off for a few days again...

But soon I can put down this phone unless charging my RN2 ;)
[Redmi Note 2 Android Development] jajk:
[MENTION=5997739]dsjiffry[/MENTION] Yes you will loose all dual SIM network settings. Is that surprising? Battery saving is there for the taking - every little bit adds up.

[MENTION=7442305]Iliyena[/MENTION] Wow! That is way more love than I would give my device - great job. You can treat it to new version TWRP I just uploaded as a celebration and a new Skinny Boot soon when I get my new battery.
[Redmi Note 2 Android Development] Iliyena:
The Skinny Boot is not released for CM 12.1 Aurora last I checked ;) Will get the TWRP and the testing of prioritizing between the zRAMs... Then I have to be done with any extra tweaking since my twin daughters and boys need my full attention. Btw, this is my 3rd screen for the RN2 ;)
[Redmi Note 2 Android Development] jajk:
Hurray! Battery has arrived and phone is now skinny and flat again after resting under a heavy book while waiting for the battery. Unfortunately during the wait, I resurrected my old Moto G and tweaked the s@#t out of it. I went from 7.1.1 to 6.0.1 to 5.1 looking for the best result. All run smooth with 100% hardware support but the restrictions imposed by 6.0 and later drove me back to 5.1. I hate being told what I can and can't do:mad:

Anyway... between ending up with a real slick setup on the Moto G and unshackling a couple of key apps from requiring network connectivity, I kinda like the idea of using the Moto G as a phone and the RN2 as my cheapo marine GPS - I wouldn't want to get salt water in my 2013 Moto G:laugh:

I don't see much point in doing a Skinny 7.3.9 update at the moment since nothing is really changing except the stock boot image changes are getting less and less about RN2 and more about phones we do not have.

I will do an 8.2 version if we ever see it for RN2 and a 7.x.x version if something worthwhile (in the boot.img) appears.
[Redmi Note 2 Android Development] DarthJabba9:
Congratulations! :)

Why not? I would return to my Samsung Galaxy SII if the display wasn't only 800x480.

I did do one - your last Skinny ramdisk + 7.3.9 zImage, but I did not see any difference, so I returned to your last Skinny image.
[Redmi Note 2 Android Development] Iliyena:
Still waiting on my "main ribbon flex cable" to get those ... pretty important things working..; call capabilities, charging battery, capacitive buttons backlit ;)

Gotta get by using my ooold HTC Tattoo as a slow charger untill then. Just "hacked" away the plastic so i could get the pins to connect with help of a little rubberized fixture. Charging the battery with a massive 0.1A up to approx 50% (lower voltage in the Tattoo-charge circuit). I know its a useless setup but those battery packs I never use anymore and such are actually way harder to use without some soldering and stuff I don't feel like doing for now ;)
[Redmi Note 2 Android Development] cukierkas:
Engineering :)
[Redmi Note 2 Android Development] DarthJabba9:
Made a Skinny boot image with zImage from 7.3.16 and SkinnyPro 7223 ramdisk. All seems well.

I flashed 7.3.16 today (my own skinnified version) - dirty-flashed over 7.3.9. It seems as solid as 61110 (battery performance seems to be about the same). So there are all these weekly beta releases, but nothing seems to have improved :rolleyes: - and the Android security patch level is still 2016-12-01. Sometimes I wonder why I bother!
[Redmi Note 2 Android Development] jajk:
Skinny_Pro_RN3_Test2_boot.img is confirmed to be working. This has a small set of initial edits to get it up and running.

This will be "skinnied" down towards what has been done to the RN2 version if demand is there for it???
[Redmi Note 2 Android Development] DarthJabba9:
Running v12 with no issues.
[Redmi Note 2 Android Development] Sleepy_Augie:
[MENTION=5952980]jajk[/MENTION] I found some sort of explanation for most of the tweaks in L speed (some of which we already have implemented in init.d).

http://xdaforums.com/showpost.php?p=58990783&postcount=3

Do any of these look useful to implement to you?

Edit: just asking you opinion because I have little technical knowledge in these things.
[Redmi Note 2 Android Development] jajk:
[MENTION=7150090]Sleepy_Augie[/MENTION] I cannot comment too much on others work even though it is tempting sometimes. There is no harm in trying out a few things but be aware that you can cause conflicted settings if you do not know what the setting is doing and many settings will not work at all if the kernel and cpu type do not support it. I try to cherry pick the best and most effective tweaks so if it is not listed here, there might be a reason;)

I am always open to suggestion if someone has found a useful tweak that can be added here.

[MENTION=5850987]DarthJabba9[/MENTION] Thanks for the feedback.

For RN3 users watching this, test version 3 is uploaded. This disables the bulk of services for non-existent devices, streamlines SSD mounting and the big one that may break things: disables mcd services.
[Redmi Note 2 Android Development] MOVZX:
Make one for CM12.1 please...
[Redmi Note 2 Android Development] jajk:
[MENTION=4460588]MOVZX[/MENTION] I have not pulled apart a CM12.1 boot.img but since these should be purpose built for the phone, I would expect them to be considerably less cluttered than the stock version which is a conglomerate for many different devices (some are evidently not even phones!).

Post the init scripts (all the xxx.rc files from root directory) and I will have a look if there are gains to be had.
[Redmi Note 2 Android Development] DarthJabba9:
[MENTION=5952980]jajk[/MENTION] Here is a very good reason to continue to resist all calls to set SELinux to permissive in the boot image - http://www.tomshardware.co.uk/qualcomm-netd-vulnerability-android-4-0-3,news-52924.html
[Redmi Note 2 Android Development] schmanto:
[MENTION=5952980]jajk[/MENTION]: flashed Skinny_Pro_RN3_Test3_boot.img

i'm afraid the sim error is back with this one..
[Redmi Note 2 Android Development] MOVZX:
Here you go:

factory_init.project.rc: http://pastebin.com/5g373NJM

factory_init.rc: http://pastebin.com/D1Ree5w7

init.cm.rc: http://pastebin.com/6aBJefUA

init.environ.rc: http://pastebin.com/79jWHeVr

init.hermes.power.rc: http://pastebin.com/PkCVwYpU

init.modem.rc: http://pastebin.com/hnR1JyKg

init.mt6795.rc: http://pastebin.com/J4cQqybJ

init.mt6795.usb.rc: http://pastebin.com/TzxZLaLH

init.project.rc: http://pastebin.com/B7JbxTmC

init.rc: http://pastebin.com/Kxp8GTQz

init.ssd.rc: http://pastebin.com/NUm9eqHP

init.storage.rc: http://pastebin.com/2KGkkVEd

init.superuser.rc: http://pastebin.com/cbZb4EKf

init.trace.rc: http://pastebin.com/jWCnK6pQ

init.usb.rc: http://pastebin.com/SVR3ELGP

init.xlog.rc: http://pastebin.com/g06tkmN7

init.zygote32.rc: http://pastebin.com/QwPyrBTy

init.zygote64_32.rc: http://pastebin.com/Gw9kuT8b

meta_init.modem.rc: http://pastebin.com/Myhe8b2z

meta_init.project.rc: https://justpaste.it/u27e

meta_init.rc: https://justpaste.it/u27i

ueventd.rc: https://justpaste.it/u27k

Or in a single packed file (ZIP) as attached to this post.
[Redmi Note 2 Android Development] jajk:
[MENTION=4460588]MOVZX[/MENTION] Not as clean as expected..... Are these files pretty much unchanged in all CM12.1 flavors?

The script init.hermes.power.rc exposes one of the unspoken weaknesses in CM (and AOSP) not having a properly functional Hotplugging module (MTKs High Performance System) so we see simulation of performance modes by crude manipulation of setting fixed number of cores and max / min freqs. I wonder what is happening to the core voltage and thermal limiting controls?

I will post a set of edited files if you can repack those into the boot.img yourself?

[MENTION=5850987]DarthJabba9[/MENTION] Phew!! Just as well we don't have one of those rubbish Qualcom SOCs then:laugh: MediaTek would not have perpetuated the same problem in their netd code now would they:confused:

[MENTION=6720440]schmanto[/MENTION] O.K watch for Test 4 version which will roll back the mcd disable.
[Redmi Note 2 Android Development] jajk:
[MENTION=4460588]MOVZX[/MENTION] See attached ramdisk.zip. I have edited the obvious and left things like logging and debugging alone since I can't test the impact on CM. Apart from the cleaner boot, you can now control LMK minfree values in an init.d script if the defaults are crap. I trust you can repack these into the boot.img?

[MENTION=6720440]schmanto[/MENTION] RN3 test 4 is up which reverts disabling mcd. If this is the problem child, I will leave it intact but add the rest of the edits for a test 5 version. Thanks for being a tester.
[Redmi Note 2 Android Development] MOVZX:
Almost every CM12.1 Kernel for our device contains the same files, unchanged maybe because there is no Kernel source, so the Kernel itself I can't tell if it's a true CM Kernel, just a 'port'.

I could repack it, and eager to use your Skinny tweaks.

Maybe it's easier for us (CM users) to track your works through GitHub so we can actually see what files you edited in the future to reference us.

---------- Post added at 07:51 AM ---------- Previous post was at 07:20 AM ----------

I booted the Skinny-edit Kernel. Performance is almost identical to the original (a bit higher of course, Antutu still 59K), but it's not the point because I am expecting better battery life.

Will report back in near future. Thanks dude for the help!

Do you think disabling auditd and sn service safe? Because it's spamming logcat.
[Redmi Note 2 Android Development] jajk:
[MENTION=4460588]MOVZX[/MENTION] I wondered what that auditd was (it is not in MIUI). I think it will be safe to disable - easy enough to try. The sn just fetches the serial number and nothing else so if it can be disabled without side-effect, do it. I was looking at doing that in the next MIUI version strangely enough. Just need to check whether it upsets versions of TWRP that use the serial as the save directory.

You may want to compare the 714-12 files I posted and introduce a few more edits that are not yet done - I was playing it safe since I don't have CM.

I would not be happy with the init.hermes.power.rc settings and messing with the governors etc. That is a legacy from way back when it was not fully understood how to tame the beast. The example init.d script is virtually all you need to make the phone economical.

A few more disable debugging entries for the keen:

echo "0" > /sys/module/pvrsrvkm/parameters/gPVRDebugLevel;
echo "0" > /sys/module/musb_hdrc/parameters/debug_level;
echo "0" > /sys/module/leds_drv/parameters/debug_enable_led;
echo "0" > /sys/module/accdet_drv/parameters/debug_enable_drv;

Also....

/system/etc/bluetooth/bt_stack.conf - set trace level to 0 for all entries
[Redmi Note 2 Android Development] MOVZX:
Thanks for the additions. Now that my CM setup is almost complete...

I also edited your init.d scripts to duit my own needs, like this one:

I setup the target_loads using a guide from Nexus 5X Subforum with a calculation of:

Frequency * 0.9 / Next Frequency