VillainROM Team VS Cronos Dev - Hero, G2 Touch Android Development

So... I did some research and what are the odds.. VillainROM Team did steal Feeyo's libraries from the first Cronos ROM he released here. And I did not see any thanks from VillainROM Team towards Feeyo in any release notes!
And they are accusing him from stealing their work from the start?
In fact you guys have been saying the libraries en framework files he was using have always been the same because it was from some CDMA leak. This is Bull****!
And I will prove it soon.
I know he did use some Framework files for his latest release without knowing he was using VillainROM's work.
He thought he was using some other dev his Graphic User Interface and DID credit him for it. Not knowing it was the work from VillainROM. So accusing him from STEALING your work is also Bull****! As he did credit someone for it, how can that be stealing?
So anyhow here is the PROOF VillainROM Jerks did steal his files and are have been lying about it since the start! Hypocrite bastards.
Here are the differences from Cronos 1.5.x and VillainROM 5.5.0.
Code:
2,3c2,3
< 426042b40e913a9600fe77c7368347db ./libDMCmd.so
< 49d99a895237d70f78d34bf1f53997bc ./libEGL.so
---
> 7e4d2164781fe3a15e89bb06a412c49b ./libDMCmd.so
> bf63b0ce0e5225df810fc988bfafe042 ./libEGL.so
8c8
< 1b40fc1bbfd95dfc48b1e085a1736deb ./libOlaBase.so
---
> 901d5cdad1ba63e5d654a85a7aea7202 ./libOlaBase.so
10,12c10,13
< 69f8b11ca3360ba96bdc4c8330bbf7a8 ./libOmxH264Dec.so
< 7735a3180dc1606c60e00720d09c9471 ./libOmxMpeg4Dec.so
< 8eaf47fca40fa1182eff4753c44b8714 ./libOmxVidEnc.so
---
> 73ddb59d8d46b8bb94cc5f334dd6563d ./libOmxH264Dec.so
> 9a27cc496b1ae5d8838755d85d23982d ./libOmxMpeg4Dec.so
> c0ecaece722524c2e7d0d74373e962f2 ./libOmxVidEnc.so
> a45acfd93cef001ee27417d3d7dbc269 ./libRS.so
16,17c17,18
< 9b6f249e91a2c43b5854a182e510aa7a ./libalbum_util.so
< f2258ccd01bbe8bc4528a0a3ef128afd ./libandroid_runtime.so
---
> f7fd98214a127de95084c19a32b1274f ./libalbum_util.so
> a57f1060e96d1dae03149a137b1cd3de ./libandroid_runtime.so
19c20
< 5fe01673621de7476c098b3fb7e4859a ./libaudio.so
---
> 9855b002281be104dd51045e970ee183 ./libaudio.so
21,22c22,23
< 9bbe72b88eac6975f6d2d86d098c777d ./libaudioflinger.so
< 2b381f2d15ff9bec4fa3210b60b77245 ./libaudiopolicy.so
---
> 9f5963d1543d846185b65b7857fe23be ./libaudioflinger.so
> 503920af49d40f3fe09f2a3ff4d12fdd ./libaudiopolicy.so
24c25
< fe6c99ec4c2fadabb973bcb5d2ef15a3 ./libbinder.so
---
> c0786a23b090dcfac8cff48eda072142 ./libbinder.so
28,30c29,31
< 486007459d5cee0a8e4837878f801096 ./libc.so
< c7f1c125f3f69596721a50b86aa6aa2f ./libcamera.so
< f9f6faaf3d30154a70f4cb1f10a70aa7 ./libcameraservice.so
---
> 89bbeb932cfa31894f20d204645ff32a ./libc.so
> 38f258747b53a60d15ae7a5be4bb762b ./libcamera.so
> 60e5cdb209b03cf02c0fa6c5f8174cf4 ./libcameraservice.so
31a33,34
> 4052927e5ba53c4fe494c51a543c89b6 ./libciq_client.so
> 88879f8faf4f409322b1e6c7d96d6750 ./libciq_htc.so
34c37
< 54979541ffbdbdb0c00dbb2de0404935 ./libcurl.so
---
> f9832f3714c9262dc8128ed96431343b ./libcurl.so
39,41c42,44
< d6c910c13697a4fa38d1042bf6af2628 ./libdrm1.so
< 22b2ea27535a1028ff01714aa7d48c1c ./libdrm1_jni.so
< 841b1278c0f5d722ef30bcd296dedf04 ./libdvm.so
---
> b14093c9d30d302e3afd1ebfffd97967 ./libdrm1.so
> e62f89e2ffad80a3cdc214968ba2514c ./libdrm1_jni.so
> a328b7ca388f38c7d9dc519770787974 ./libdvm.so
45,48c48,51
< cc4c88afb027536513416525216173c8 ./libflashlite.so
< 65a5319b9414b741d3bddd511ec7ea2c ./libflashsnddec.so
< 75c508f934e5970ef4b38ff803a39c4c ./libflsaplayerlib.so
< 5688054711e2371c7dff6c36c415951f ./libgps.so
---
> 5e232bc91af5530b77b93fb9df35c677 ./libflashlite.so
> 10fc05b9d285db1dfe424e08b85c7a86 ./libflashsnddec.so
> 0b4b929ecb1dc32b0bf6fd0e3fc63a66 ./libflsaplayerlib.so
> ef23583aaf7cdc6f337154c5c1045af9 ./libgps.so
53c56
< 2857bca5b51163004d2254a1b13ab0cd ./libhtc_ril.so
---
> fa6f724144bdb7b08c340fa264ecad27 ./libhtc_ril.so
55c58,59
< 7fd711adb74f231ddc93dd60c0004a24 ./libiconv.so
---
> 40cf5abc2ee3d8d5eb73f4562c3101c8 ./libhtciqagent.so
> 307b3775c349cacbeff603e517acd096 ./libiconv.so
62c66
< 4f19b9cfbc3d4d9ba1c4618ba570d4a7 ./libmedia.so
---
> 5478df9f4037349ba67764dc9c91eaf6 ./libmedia.so
64c68
< 61a08aef150c73bea718c4cc7deca251 ./libmediaplayerservice.so
---
> c2a848982365ffe0c03bd073337ea435 ./libmediaplayerservice.so
68c72
< f30d633e1c1ba67dcb50621f9c97859c ./libnativehelper.so
---
> 6fa64e507dc32f72a345b86834ff5ed5 ./libnativehelper.so
70c74
< b1efb2d03a015fd47caa3138c44e79b6 ./liboemcamera.so
---
> 24455623ea7a8ea19b1e908f65fe424d ./liboemcamera.so
74c78
< 789193da55b4aadf0fb72678917443b0 ./libomx_avcdec_sharedlibrary.so
---
> fdee666971a3d824d459d128c0c24500 ./libomx_avcdec_sharedlibrary.so
77c81
< 3ac5f6d5eeaa96a222fc29b7f3ad328e ./libomx_sharedlibrary.so
---
> 065562c2d4ef5d33e530b5677435a9ec ./libomx_sharedlibrary.so
80,83c84,87
< e27446d23305a6c90bf670a701f1ef7e ./libon2.so
< b30ff7564c26767ddad111af3654cb6d ./libopencore_author.so
< b7922a0f97477c0738a97547f5a0100a ./libopencore_common.so
< 8505b5e6b3c68dd29bb55401cbed27f4 ./libopencore_download.so
---
> c0f8c7bf2262413e63a427476000a60b ./libon2.so
> d5a90d28c846b0e8c49ab700693d7520 ./libopencore_author.so
> 6bfe57203292d0557b768329ed31e977 ./libopencore_common.so
> 1afe6f68e6ceb76b24314d3ad2168b1a ./libopencore_download.so
85c89
< 828f7da7156e25ed2decef5abed20832 ./libopencore_mp4local.so
---
> 079cb1b10bc705bc78bc079dff171a6b ./libopencore_mp4local.so
87,89c91,93
< bae4f489dbedbaf205f30f9603520b4b ./libopencore_net_support.so
< ec1f4c7575903599730baa097b3888ed ./libopencore_player.so
< 8f7e81ab0cb3274eb05becc9c9f08d4e ./libopencore_rtsp.so
---
> d58696122e9adf2a236015cd6047500a ./libopencore_net_support.so
> 4fe6d34d4703a224e308b9e6081c7c3b ./libopencore_player.so
> fb07bd9b8a9b9602f91d5676fbe526bc ./libopencore_rtsp.so
93c97,98
< 265cb69c9e666c137c89932ce4e4fc0d ./libpdfreader.so
---
> 47eb91ca938e06cb2315b14b8853f047 ./libpagemap.so
> 284671a848dafdcfe8459bc1552f33b0 ./libpdfreader.so
95c100
< 4151b62ce7e2864e5dc9ed643db87229 ./libpng.so
---
> b28049ebca1e49617c7144df1b852a9c ./libpng.so
102c107
< dc9190cb11832471b928f89336f8213b ./libril.so
---
> 82a5fe1b361af67a63f8ca6e8ede0e18 ./libril.so
104c109,110
< 86f985092adce4a337e7bc837387cb37 ./libscalado_htcalbum.so
---
> e2a6acb3c11e1565ef922ea86776c53e ./librs_jni.so
> 242fc6432bf7ca088fad06656a7ff701 ./libscalado_htcalbum.so
106,108c112,114
< 748eb67e541ff4ed69cd9b4dfc265355 ./libscaladoutil.so
< 63c7616244ed67dcd62b563cbf8d8083 ./libsiimpl.so
< 8e2d2b9b0ea214bbb31595b29407ecda ./libskia.so
---
> cfc95838d1f579b79b07afe5e15ee0dd ./libscaladoutil.so
> b502f276d0874a0c2c41d91240eb5c8f ./libsiimpl.so
> fb0862274616c9875c9cc045d2b290bc ./libskia.so
111,112c117,118
< a34ba7352a33b7b1de8002a3897e0ae1 ./libsorenson.so
< b6d5e23e92e243cf77fd5f5553a4f573 ./libsoundpool.so
---
> a10e359cd82d3056f137394ad0288041 ./libsorenson.so
> 75a6c9dbcba76e445c578e6d74f1e9c3 ./libsoundpool.so
114c120
< 92b95514e67598375aba00d9aa7ae462 ./libsqlite.so
---
> 8fb9489560dc15fcfe3623527ded1779 ./libsqlite.so
118c124
< 3be7c6d470e7c13400581a8ec713a8e8 ./libstagefright_omx.so
---
> c2075058fce338d1191f163757d98f7b ./libstagefright_omx.so
120c126
< f4a067e0c5d75b7c987ac8eb7a49809d ./libsurfaceflinger.so
---
> 9601969f5353325e6e001c7515f1b589 ./libsurfaceflinger.so
123c129
< 923f986bf6cc3b0d237a5ce471782d06 ./libt9.so
---
> 1786d27c2c6a802eb9d19627678e188d ./libt9.so
127,128c133,134
< 5935e16f649edf953fd0a2f0ee69349e ./libui.so
< 3fc236a560fb5fad26dc7bd3cf7b95fe ./libutils.so
---
> 0541937ea21ea7475044c90d78b8fb83 ./libui.so
> ecc05a845f3a908d5d82dd4a1e1014cb ./libutils.so
130c136,137
< 8821d12213bf755516b3b9e29918dd23 ./libwebcore.so
---
> 820547c2222351e0873a0fd4eb7c5b76 ./libwbxml_jni.so
> bd5d2f0a86880c774cf3fad8da942900 ./libwebcore.so
133a141
> e478b6642290430ec99c59f8c4f2714d ./libxml2wbxml.so
137,160c145,168
< aeb5ee21a84b3f51eb66a1159e9fbb41 ./am.jar
< 6e2278f281d7c2a3be742dec082424e7 ./android.policy.jar
< fa80463684f815f31fba70b0a8848d4a ./android.test.runner.jar
< f206ab13b9d2b2e93ef544083d668c8d ./bmgr.jar
< 6d6f73773df94924749fb75a62f89cb8 ./com.google.android.gtalkservice.jar
< f6a1de68bd536905bb2aa164284fb8b2 ./com.google.android.maps.jar
< 2d5a2998938ae3550fe65c0bd051e05e ./com.htc.android.easopen.jar
< fa80463684f815f31fba70b0a8848d4a ./com.htc.android.pimlib.jar
< 2e0e9f2c40b3d9f41c6c25fa76600bc8 ./com.htc.framework.jar
< 221d52de7667e388c50a646cce4a3293 ./com.htc.resources.apk
< 2d5a2998938ae3550fe65c0bd051e05e ./com.scalado.util.ScaladoUtil.jar
< 00382b12354fb8abfc385cb251c1af84 ./core.jar
< 3e45bf3b17d5126149f25e0a617b0ed7 ./ext.jar
< e38c632e17e366205d617a8ef4782295 ./framework-res.apk
< 12d3a426fa8bde7764ff456723eeeeba ./framework-tests.jar
< 8f70cd27f09ca4dfbb41cfc0db90f856 ./framework.jar
< f206ab13b9d2b2e93ef544083d668c8d ./ime.jar
< f206ab13b9d2b2e93ef544083d668c8d ./input.jar
< fa80463684f815f31fba70b0a8848d4a ./javax.obex.jar
< d41d8cd98f00b204e9800998ecf8427e ./libs
< f206ab13b9d2b2e93ef544083d668c8d ./monkey.jar
< f206ab13b9d2b2e93ef544083d668c8d ./pm.jar
< 044c72308169df624db0d9685a0852d2 ./services.jar
< f206ab13b9d2b2e93ef544083d668c8d ./svc.jar
---
> 1a841b0015b26f894a3e497657722f14 ./am.jar
> 2717079b5e76171bd6a725a48fc854bd ./android.policy.jar
> 3eaa53806fb0f73f35c33761792b10d5 ./android.test.runner.jar
> 9ccd5adadb2d8c7b04fbad94830f0d9b ./bmgr.jar
> cfcd8db937e3264250e54910d8459a1d ./com.google.android.gtalkservice.jar
> d936d256ee84aba06fc73de1d8e69d19 ./com.google.android.maps.jar
> 12f39b8b9196d49c7a5a0e81933b458b ./com.htc.android.easopen.jar
> e8ff01ab1d466e3c96b48be305a66898 ./com.htc.android.pimlib.jar
> e0ea625b80db9580f33d29fa26757986 ./com.htc.framework.jar
> de8032b0c7dc4fdef91c4775d08daa19 ./com.htc.resources.apk
> 892bc39e6ccdca96e90d3b380dbeb3a0 ./com.htc.rss.jar
> be7c119cb51cb61a5719c859956e6f86 ./com.scalado.util.ScaladoUtil.jar
> 874c26e2b3ed3c3299819b1eea8b7485 ./core.jar
> cd98f51a47694451a54c1152c82c01e2 ./ext.jar
> 55cd6a4cb3836506d2e9cd27b55c4b37 ./framework-res.apk
> 9704be446064fa017b118e61df9c0228 ./framework-tests.jar
> d45aef2c4a6d64febeb4aff65ef68100 ./framework.jar
> 6cade0d545db2f51df19998ce9bee2d8 ./ime.jar
> 84f18308870236837227e6c72675e7b6 ./input.jar
> b1890cc71cfa01ac67ca4b0f579c7fb9 ./javax.obex.jar
> d739d68368da39e603dd0886f62a5fcb ./monkey.jar
> feeacf4c771977de1464b2af99948165 ./pm.jar
> efe399bab9f2ac51bca728cc6387195c ./services.jar
> 8332528abff948315f2ec7839cf2c4bc ./svc.jar
You see? EVERYTHING here is different.
Now lets compare the VillainROM 6.x files with Cronos 1.5.x:
Code:
0a1
> 2a0f4ae1d71b8026b71688e48631a3c7 ./libAdobeReader.so
45c46
< cc4c88afb027536513416525216173c8 ./libflashlite.so
---
> 5e232bc91af5530b77b93fb9df35c677 ./libflashlite.so
107c108
< 63c7616244ed67dcd62b563cbf8d8083 ./libsiimpl.so
---
> b502f276d0874a0c2c41d91240eb5c8f ./libsiimpl.so
123a125
> 0c47935ca9e2ae028e53e77984f106af ./libt99.so
137,149c139,152
< aeb5ee21a84b3f51eb66a1159e9fbb41 ./am.jar
< 6e2278f281d7c2a3be742dec082424e7 ./android.policy.jar
< fa80463684f815f31fba70b0a8848d4a ./android.test.runner.jar
< f206ab13b9d2b2e93ef544083d668c8d ./bmgr.jar
< 6d6f73773df94924749fb75a62f89cb8 ./com.google.android.gtalkservice.jar
< f6a1de68bd536905bb2aa164284fb8b2 ./com.google.android.maps.jar
< 2d5a2998938ae3550fe65c0bd051e05e ./com.htc.android.easopen.jar
< fa80463684f815f31fba70b0a8848d4a ./com.htc.android.pimlib.jar
< 2e0e9f2c40b3d9f41c6c25fa76600bc8 ./com.htc.framework.jar
< 221d52de7667e388c50a646cce4a3293 ./com.htc.resources.apk
< 2d5a2998938ae3550fe65c0bd051e05e ./com.scalado.util.ScaladoUtil.jar
< 00382b12354fb8abfc385cb251c1af84 ./core.jar
< 3e45bf3b17d5126149f25e0a617b0ed7 ./ext.jar
---
> 9562b3cce9228437147d12ff8e7831f8 ./am.jar
> 738d0bbf0350d9210d14353c155aa45f ./android.policy.jar
> 586d8546c17549be0ebc90a54280d305 ./android.test.runner.jar
> c656279fc11cca42d733646dca30fc0a ./bmgr.jar
> 24a2858c35900ddd70cc68bd2fa1f82c ./com.google.android.gtalkservice.jar
> 048fb1e412f6b104702983a030455d1d ./com.google.android.maps.jar
> df060f241b0203069fd5a1ee96ac4f17 ./com.htc.android.easopen.jar
> c800cee88d40e9f6f9e724df0b2fbdeb ./com.htc.android.pimlib.jar
> df2924bcd1f5761220748c4604da6f48 ./com.htc.framework.jar
> 0ff831489251bd29b2255168f5b13667 ./com.htc.resources.apk
> 892bc39e6ccdca96e90d3b380dbeb3a0 ./com.htc.rss.jar
> 1ec05b57dd8e200454304684bcff3322 ./com.scalado.util.ScaladoUtil.jar
> 6bc72906b98baf7edf4e3bd1f545c334 ./core.jar
> e84b0b5245bbfa7451d28bda6e5d3d72 ./ext.jar
151,160c154,162
< 12d3a426fa8bde7764ff456723eeeeba ./framework-tests.jar
< 8f70cd27f09ca4dfbb41cfc0db90f856 ./framework.jar
< f206ab13b9d2b2e93ef544083d668c8d ./ime.jar
< f206ab13b9d2b2e93ef544083d668c8d ./input.jar
< fa80463684f815f31fba70b0a8848d4a ./javax.obex.jar
< d41d8cd98f00b204e9800998ecf8427e ./libs
< f206ab13b9d2b2e93ef544083d668c8d ./monkey.jar
< f206ab13b9d2b2e93ef544083d668c8d ./pm.jar
< 044c72308169df624db0d9685a0852d2 ./services.jar
< f206ab13b9d2b2e93ef544083d668c8d ./svc.jar
---
> 6e3679282cf3a91bc22eb20dbb2477f3 ./framework-tests.jar
> 4f8f749668246940685087f734258600 ./framework.jar
> 6dd5de43fd1daa193cf95b5eb31cf915 ./ime.jar
> 5f027f3c7439407909ca9d3234b5ab45 ./input.jar
> 312c0bf18b42cac7dc095be8987bbca1 ./javax.obex.jar
> 346bcdec54666f0258a003ea5911a8c9 ./monkey.jar
> 0e3d40c0c28c831b03ecb27fbeb9c4b1 ./pm.jar
> a6ac5ca10a669a3b18c1a28079eb5e56 ./services.jar
> f0334f865d099d4d2022fcdfe0cb0545 ./svc.jar
Ouch! They are using the files from Cronos 1.5.x! Did you guys post this in your release notes? What? Sorry? I cant hear you... NO!
The framework files are only different because VillainROM deodexed his framework. That is the only difference.
Ok lets compare some more stuff please.
VillainROM 5.5.0 and their newer release 6.x:
Code:
Almost your whole build is different from villain5 to villain 6 series..
0a1
> 2a0f4ae1d71b8026b71688e48631a3c7 ./libAdobeReader.so
2,3c3,4
< 7e4d2164781fe3a15e89bb06a412c49b ./libDMCmd.so
< bf63b0ce0e5225df810fc988bfafe042 ./libEGL.so
---
> 426042b40e913a9600fe77c7368347db ./libDMCmd.so
> 49d99a895237d70f78d34bf1f53997bc ./libEGL.so
8c9
< 901d5cdad1ba63e5d654a85a7aea7202 ./libOlaBase.so
---
> 1b40fc1bbfd95dfc48b1e085a1736deb ./libOlaBase.so
10,13c11,13
< 73ddb59d8d46b8bb94cc5f334dd6563d ./libOmxH264Dec.so
< 9a27cc496b1ae5d8838755d85d23982d ./libOmxMpeg4Dec.so
< c0ecaece722524c2e7d0d74373e962f2 ./libOmxVidEnc.so
< a45acfd93cef001ee27417d3d7dbc269 ./libRS.so
---
> 69f8b11ca3360ba96bdc4c8330bbf7a8 ./libOmxH264Dec.so
> 7735a3180dc1606c60e00720d09c9471 ./libOmxMpeg4Dec.so
> 8eaf47fca40fa1182eff4753c44b8714 ./libOmxVidEnc.so
17,18c17,18
< f7fd98214a127de95084c19a32b1274f ./libalbum_util.so
< a57f1060e96d1dae03149a137b1cd3de ./libandroid_runtime.so
---
> 9b6f249e91a2c43b5854a182e510aa7a ./libalbum_util.so
> f2258ccd01bbe8bc4528a0a3ef128afd ./libandroid_runtime.so
20c20
< 9855b002281be104dd51045e970ee183 ./libaudio.so
---
> 5fe01673621de7476c098b3fb7e4859a ./libaudio.so
22,23c22,23
< 9f5963d1543d846185b65b7857fe23be ./libaudioflinger.so
< 503920af49d40f3fe09f2a3ff4d12fdd ./libaudiopolicy.so
---
> 9bbe72b88eac6975f6d2d86d098c777d ./libaudioflinger.so
> 2b381f2d15ff9bec4fa3210b60b77245 ./libaudiopolicy.so
25c25
< c0786a23b090dcfac8cff48eda072142 ./libbinder.so
---
> fe6c99ec4c2fadabb973bcb5d2ef15a3 ./libbinder.so
29,31c29,31
< 89bbeb932cfa31894f20d204645ff32a ./libc.so
< 38f258747b53a60d15ae7a5be4bb762b ./libcamera.so
< 60e5cdb209b03cf02c0fa6c5f8174cf4 ./libcameraservice.so
---
> 486007459d5cee0a8e4837878f801096 ./libc.so
> c7f1c125f3f69596721a50b86aa6aa2f ./libcamera.so
> f9f6faaf3d30154a70f4cb1f10a70aa7 ./libcameraservice.so
33,34d32
< 4052927e5ba53c4fe494c51a543c89b6 ./libciq_client.so
< 88879f8faf4f409322b1e6c7d96d6750 ./libciq_htc.so
37c35
< f9832f3714c9262dc8128ed96431343b ./libcurl.so
---
> 54979541ffbdbdb0c00dbb2de0404935 ./libcurl.so
42,44c40,42
< b14093c9d30d302e3afd1ebfffd97967 ./libdrm1.so
< e62f89e2ffad80a3cdc214968ba2514c ./libdrm1_jni.so
< a328b7ca388f38c7d9dc519770787974 ./libdvm.so
---
> d6c910c13697a4fa38d1042bf6af2628 ./libdrm1.so
> 22b2ea27535a1028ff01714aa7d48c1c ./libdrm1_jni.so
> 841b1278c0f5d722ef30bcd296dedf04 ./libdvm.so
49,51c47,49
< 10fc05b9d285db1dfe424e08b85c7a86 ./libflashsnddec.so
< 0b4b929ecb1dc32b0bf6fd0e3fc63a66 ./libflsaplayerlib.so
< ef23583aaf7cdc6f337154c5c1045af9 ./libgps.so
---
> 65a5319b9414b741d3bddd511ec7ea2c ./libflashsnddec.so
> 75c508f934e5970ef4b38ff803a39c4c ./libflsaplayerlib.so
> 5688054711e2371c7dff6c36c415951f ./libgps.so
56c54
< fa6f724144bdb7b08c340fa264ecad27 ./libhtc_ril.so
---
> 2857bca5b51163004d2254a1b13ab0cd ./libhtc_ril.so
58,59c56
< 40cf5abc2ee3d8d5eb73f4562c3101c8 ./libhtciqagent.so
< 307b3775c349cacbeff603e517acd096 ./libiconv.so
---
> 7fd711adb74f231ddc93dd60c0004a24 ./libiconv.so
66c63
< 5478df9f4037349ba67764dc9c91eaf6 ./libmedia.so
---
> 4f19b9cfbc3d4d9ba1c4618ba570d4a7 ./libmedia.so
68c65
< c2a848982365ffe0c03bd073337ea435 ./libmediaplayerservice.so
---
> 61a08aef150c73bea718c4cc7deca251 ./libmediaplayerservice.so
72c69
< 6fa64e507dc32f72a345b86834ff5ed5 ./libnativehelper.so
---
> f30d633e1c1ba67dcb50621f9c97859c ./libnativehelper.so
74c71
< 24455623ea7a8ea19b1e908f65fe424d ./liboemcamera.so
---
> b1efb2d03a015fd47caa3138c44e79b6 ./liboemcamera.so
78c75
< fdee666971a3d824d459d128c0c24500 ./libomx_avcdec_sharedlibrary.so
---
> 789193da55b4aadf0fb72678917443b0 ./libomx_avcdec_sharedlibrary.so
81c78
< 065562c2d4ef5d33e530b5677435a9ec ./libomx_sharedlibrary.so
---
> 3ac5f6d5eeaa96a222fc29b7f3ad328e ./libomx_sharedlibrary.so
84,87c81,84
< c0f8c7bf2262413e63a427476000a60b ./libon2.so
< d5a90d28c846b0e8c49ab700693d7520 ./libopencore_author.so
< 6bfe57203292d0557b768329ed31e977 ./libopencore_common.so
< 1afe6f68e6ceb76b24314d3ad2168b1a ./libopencore_download.so
---
> e27446d23305a6c90bf670a701f1ef7e ./libon2.so
> b30ff7564c26767ddad111af3654cb6d ./libopencore_author.so
> b7922a0f97477c0738a97547f5a0100a ./libopencore_common.so
> 8505b5e6b3c68dd29bb55401cbed27f4 ./libopencore_download.so
89c86
< 079cb1b10bc705bc78bc079dff171a6b ./libopencore_mp4local.so
---
> 828f7da7156e25ed2decef5abed20832 ./libopencore_mp4local.so
91,93c88,90
< d58696122e9adf2a236015cd6047500a ./libopencore_net_support.so
< 4fe6d34d4703a224e308b9e6081c7c3b ./libopencore_player.so
< fb07bd9b8a9b9602f91d5676fbe526bc ./libopencore_rtsp.so
---
> bae4f489dbedbaf205f30f9603520b4b ./libopencore_net_support.so
> ec1f4c7575903599730baa097b3888ed ./libopencore_player.so
> 8f7e81ab0cb3274eb05becc9c9f08d4e ./libopencore_rtsp.so
97,98c94
< 47eb91ca938e06cb2315b14b8853f047 ./libpagemap.so
< 284671a848dafdcfe8459bc1552f33b0 ./libpdfreader.so
---
> 265cb69c9e666c137c89932ce4e4fc0d ./libpdfreader.so
100c96
< b28049ebca1e49617c7144df1b852a9c ./libpng.so
---
> 4151b62ce7e2864e5dc9ed643db87229 ./libpng.so
107c103
< 82a5fe1b361af67a63f8ca6e8ede0e18 ./libril.so
---
> dc9190cb11832471b928f89336f8213b ./libril.so
109,110c105
< e2a6acb3c11e1565ef922ea86776c53e ./librs_jni.so
< 242fc6432bf7ca088fad06656a7ff701 ./libscalado_htcalbum.so
---
> 86f985092adce4a337e7bc837387cb37 ./libscalado_htcalbum.so
112c107
< cfc95838d1f579b79b07afe5e15ee0dd ./libscaladoutil.so
---
> 748eb67e541ff4ed69cd9b4dfc265355 ./libscaladoutil.so
114c109
< fb0862274616c9875c9cc045d2b290bc ./libskia.so
---
> 8e2d2b9b0ea214bbb31595b29407ecda ./libskia.so
117,118c112,113
< a10e359cd82d3056f137394ad0288041 ./libsorenson.so
< 75a6c9dbcba76e445c578e6d74f1e9c3 ./libsoundpool.so
---
> a34ba7352a33b7b1de8002a3897e0ae1 ./libsorenson.so
> b6d5e23e92e243cf77fd5f5553a4f573 ./libsoundpool.so
120c115
< 8fb9489560dc15fcfe3623527ded1779 ./libsqlite.so
---
> 92b95514e67598375aba00d9aa7ae462 ./libsqlite.so
124c119
< c2075058fce338d1191f163757d98f7b ./libstagefright_omx.so
---
> 3be7c6d470e7c13400581a8ec713a8e8 ./libstagefright_omx.so
126c121
< 9601969f5353325e6e001c7515f1b589 ./libsurfaceflinger.so
---
> f4a067e0c5d75b7c987ac8eb7a49809d ./libsurfaceflinger.so
129c124,125
< 1786d27c2c6a802eb9d19627678e188d ./libt9.so
---
> 923f986bf6cc3b0d237a5ce471782d06 ./libt9.so
> 0c47935ca9e2ae028e53e77984f106af ./libt99.so
133,134c129,130
< 0541937ea21ea7475044c90d78b8fb83 ./libui.so
< ecc05a845f3a908d5d82dd4a1e1014cb ./libutils.so
---
> 5935e16f649edf953fd0a2f0ee69349e ./libui.so
> 3fc236a560fb5fad26dc7bd3cf7b95fe ./libutils.so
136,137c132
< 820547c2222351e0873a0fd4eb7c5b76 ./libwbxml_jni.so
< bd5d2f0a86880c774cf3fad8da942900 ./libwebcore.so
---
> 8821d12213bf755516b3b9e29918dd23 ./libwebcore.so
141d135
< e478b6642290430ec99c59f8c4f2714d ./libxml2wbxml.so
145,154c139,148
< 1a841b0015b26f894a3e497657722f14 ./am.jar
< 2717079b5e76171bd6a725a48fc854bd ./android.policy.jar
< 3eaa53806fb0f73f35c33761792b10d5 ./android.test.runner.jar
< 9ccd5adadb2d8c7b04fbad94830f0d9b ./bmgr.jar
< cfcd8db937e3264250e54910d8459a1d ./com.google.android.gtalkservice.jar
< d936d256ee84aba06fc73de1d8e69d19 ./com.google.android.maps.jar
< 12f39b8b9196d49c7a5a0e81933b458b ./com.htc.android.easopen.jar
< e8ff01ab1d466e3c96b48be305a66898 ./com.htc.android.pimlib.jar
< e0ea625b80db9580f33d29fa26757986 ./com.htc.framework.jar
< de8032b0c7dc4fdef91c4775d08daa19 ./com.htc.resources.apk
---
> 9562b3cce9228437147d12ff8e7831f8 ./am.jar
> 738d0bbf0350d9210d14353c155aa45f ./android.policy.jar
> 586d8546c17549be0ebc90a54280d305 ./android.test.runner.jar
> c656279fc11cca42d733646dca30fc0a ./bmgr.jar
> 24a2858c35900ddd70cc68bd2fa1f82c ./com.google.android.gtalkservice.jar
> 048fb1e412f6b104702983a030455d1d ./com.google.android.maps.jar
> df060f241b0203069fd5a1ee96ac4f17 ./com.htc.android.easopen.jar
> c800cee88d40e9f6f9e724df0b2fbdeb ./com.htc.android.pimlib.jar
> df2924bcd1f5761220748c4604da6f48 ./com.htc.framework.jar
> 0ff831489251bd29b2255168f5b13667 ./com.htc.resources.apk
156,168c150,162
< be7c119cb51cb61a5719c859956e6f86 ./com.scalado.util.ScaladoUtil.jar
< 874c26e2b3ed3c3299819b1eea8b7485 ./core.jar
< cd98f51a47694451a54c1152c82c01e2 ./ext.jar
< 55cd6a4cb3836506d2e9cd27b55c4b37 ./framework-res.apk
< 9704be446064fa017b118e61df9c0228 ./framework-tests.jar
< d45aef2c4a6d64febeb4aff65ef68100 ./framework.jar
< 6cade0d545db2f51df19998ce9bee2d8 ./ime.jar
< 84f18308870236837227e6c72675e7b6 ./input.jar
< b1890cc71cfa01ac67ca4b0f579c7fb9 ./javax.obex.jar
< d739d68368da39e603dd0886f62a5fcb ./monkey.jar
< feeacf4c771977de1464b2af99948165 ./pm.jar
< efe399bab9f2ac51bca728cc6387195c ./services.jar
< 8332528abff948315f2ec7839cf2c4bc ./svc.jar
---
> 1ec05b57dd8e200454304684bcff3322 ./com.scalado.util.ScaladoUtil.jar
> 6bc72906b98baf7edf4e3bd1f545c334 ./core.jar
> e84b0b5245bbfa7451d28bda6e5d3d72 ./ext.jar
> e38c632e17e366205d617a8ef4782295 ./framework-res.apk
> 6e3679282cf3a91bc22eb20dbb2477f3 ./framework-tests.jar
> 4f8f749668246940685087f734258600 ./framework.jar
> 6dd5de43fd1daa193cf95b5eb31cf915 ./ime.jar
> 5f027f3c7439407909ca9d3234b5ab45 ./input.jar
> 312c0bf18b42cac7dc095be8987bbca1 ./javax.obex.jar
> 346bcdec54666f0258a003ea5911a8c9 ./monkey.jar
> 0e3d40c0c28c831b03ecb27fbeb9c4b1 ./pm.jar
> a6ac5ca10a669a3b18c1a28079eb5e56 ./services.jar
> f0334f865d099d4d2022fcdfe0cb0545 ./svc.jar
Ouch! That gotta hurt real bigtime. EVERYTHING is different between their 5.5.0 and 6.x release. Why in the hell would you make such a big change in your core? Oh yeah because Cronos was passing you by in a time teleporter.
Sorry guys. But you guys are jerks. Flaming Cronos Thread with LIES all f*****g lies.
PS. If Cronos Droid was the faulty one here. I would have write it exactly the same. I have been following you guys in the Cronos Thread all this time and thought I really needed to do this as I think the mods and VillainROM have not been playing fair against Feeyo and his ROM.
Feeyo, you rock man. You did a great job. Keep up the good work!

Oh come on, stop this damn drama.
Who cares really?
I, for one, am massively happy that the Hero scene is rolling again (it was pretty quiet for a while).
Any chance a mod could lock nonsense like this and let us enjoy the fine work devs put out?

I am just making a point here. As they have been fully attacking for no reason and everyone accepted it.

No one from the villain rom ever accused him of stealing you bloody downsie. They just asked for some credit Jesus Christ, drop it already.

Interesting point your making here; but for clarity: how should your listings be interpreted? What are we looking at anyway? I see what looks like MD5 hashes to me in some sort of diff output. When is something different and when not?

seshmaru said:
No one from the villain rom ever accused him of stealing you bloody downsie.
Click to expand...
Click to collapse
wrong. just wrong.

Not wrong, it was all the fanboys who accused him of stealing, all team Villain did was ask for some credit. Stop being so bloody dense.

seshmaru said:
Not wrong, it was all the fanboys who accused him of stealing, all team Villain did was ask for some credit. Stop being so bloody dense.
Click to expand...
Click to collapse
Well the PM he showed was not really asking him anything. More forcing him or he will get noted by the devs as he was braking the opensource rules or forum rules whatever.
Also not to note they have been attacking him stating he did not have any goldfish sources and was lying bastard.

'It's just a disco, darlings.'

You really had some spare time didn't you Shakor?
To be honest I am happy I did not steal anything and lied about it with these kind of proofs you are really pushed the ground in ehhehe/

Oh yeah you know what. As you guys want to play the game like this. I changed my mind about the goldfish sources I use to compile my kernels from.

Shakor said:
Well the PM he showed was not really asking him anything. More forcing him or he will get noted by the devs as he was braking the opensource rules or forum rules whatever.
Also not to note they have been attacking him stating he did not have any goldfish sources and was lying bastard.
Click to expand...
Click to collapse
The original request was not telling him he was stealing, it was asking to give homersp credit, whatever happened after is mostly because of fanboys blowing the situation up and things that were said during the whole dramafest really don't have to be accounted for since everyone was flinging poo at eachother.

seshmaru said:
Not wrong, it was all the fanboys who accused him of stealing, all team Villain did was ask for some credit. Stop being so bloody dense.
Click to expand...
Click to collapse
i know it. i could proof it. but i dont publish pm's (im not feeyo ).
this topic is also not related to the credit things, but points to another highly interesting direction. For the credits of the work and the whole story bout the 1.7 there are other threads.
This thread possibly just shows another face. But im investigating the results. Perhaps there is a reason why Villain got exactly the same libs like Feeyo had (new leak ?). We will see in a short time, I think the guys at Villain have an explanation for that, else... this would be a nightmare for them. Lets see

http://forum.xda-developers.com/showthread.php?p=6764765#post6764765

Andro1d said:
i know it. i could proof it. but i dont publish pm's (im not feeyo ).
this topic is also not related to the credit things, but points to another highly interesting direction. For the credits of the work and the whole story bout the 1.7 there are other threads.
This thread possibly just shows another face. But im investigating the results. Perhaps there is a reason why Villain got exactly the same libs like Feeyo had (new leak ?). We will see in a short time, I think the guys at Villain have an explanation for that, else... this would be a nightmare for them. Lets see
Click to expand...
Click to collapse
Yeah they can make up anything really. BUT if they are saying there was a new leak then I want the original leak posted with exact name of the leak and where they got it from so I can check if that is true or not.

I used both roms and in my modest opinion this is all going too far!
Make Roms not War!
Please!

cyberon said:
I used both roms and in my modest opinion this is all going too far!
Make Roms not War!
Please!
Click to expand...
Click to collapse
Wrong, if this post (#1) here is true, than Villain should be banned. Completely. The libs are 90% of the work of a ROM, and IF (i say, IF, and not they have for sure) they have stolen the complete libraries of Feeyo, THEN this is much much much more massive then credits for 1-2 widgets and a bit of gui.
Not saying that this was OK (the apps feeyo used from vr without the correct credits), but we should take the relations into credit
Im highly interested in an official statement of Villain and a proof that this proof (post #1) is wrong or misinterpreted.
*puh* it's getting complicated

oh my... this is really getting hot

[highlight]Mod Edit: odin13... this is the second time I see a reported post from you. Consider yourself warned[/highlight]

I am happy the truth is finally coming forth. Can someone please tell Villains Devs this thread is going as they are normally really fast with answering.
Also I want proof that my libs were taken from that cdma leak and the post with the exact release date from that so called leak. As I can then compare it with my first rom post and the so called leaked one.

Related

Ziggy's Tweak

Does anyone know how to delete ziggy's tweak? I have root explorer installed but dont know where to look to find those files.
Thanks
What do the tweaks even do??
Sent from my Htc Evo 4g
Go on system folder then etc folder then init.d folder then 90 screen scale and 90 sys delete
I actually hacked the tweak to completely sleep and run 998mhz when screen is tapped here's the tweak script its excellent!!!
#!/system/bin/bash
Max & Min to 12800
AWAKE_GOVERNOR="interactive"
AWAKE_GOVERNOR_FREQENCY_MAX="998000"
AWAKE_GOVERNOR_FREQENCY_MIN="245000"
SLEEP_GOVERNOR="ondemand"
SLEEP_GOVERNOR_FREQENCY_MAX="128000"
SLEEP_GOVERNOR_FREQENCY_MIN="128000"
(while [ 1 ]
do
AWAKE=`cat /sys/power/wait_for_fb_wake`
if [ $AWAKE = "awake" ]; then
echo $AWAKE_GOVERNOR > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo $AWAKE_GOVERNOR_FREQENCY_MAX > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
echo $AWAKE_GOVERNOR_FREQENCY_MIN > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
AWAKE=
fi
SLEEPING=`cat /sys/power/wait_for_fb_sleep`
if [ $SLEEPING = "sleeping" ]; then
echo $SLEEP_GOVERNOR > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo $SLEEP_GOVERNOR_FREQENCY_MAX > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
echo $SLEEP_GOVERNOR_FREQENCY_MIN > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
SLEEPING=
fi
done &)
THANKS
thanks a lot cornell. I think im gonna try your script.
No doubt I barely get battery drain on it because I only clocks up when I'm making screen touches

[TUTORIAL]Better Battery Life (FLASHABLE ZIP) [KERNEL+GOVERNOR TWEAKS]

The essential feature to save battery has fixed on galaxy y now.
(FLASHABLE ZIP : Kernel+Governor Tweaks) (THANKS FOR KUROTSUGI)
http://www.mediafire.com/?uy14ahd6yjrrs4t
(All Credits for Irfanbargus for modules,and repencis team for kernel)
Second: App For Set and Optimize governor.
APPS:
SetCPU (FREE FOR XDA MEMBERS )
http://forum.xda-developers.com/showthread.php?t=505419
NoFrillsCPU (DONT SUPPORT CUSTOM GOVERNOR CONFIGS)
http://forum.xda-developers.com/showthread.php?t=911917
Antutu Cpu Master
https://play.google.com/store/apps/details?id=com.antutu.CpuMasterFree
Click to expand...
Click to collapse
USING:
NoFrillsCPU:
Install apk
open
Choose the frequences: Min/MAX 312/624 or 312/832
Chose the Governor: Ondemand/Conservative/Scary (You can choose other)
Check the box: Apply on boot
Hit Aplly.
SetCPU:
Download the apk (ITS PAID)(PLZ DONT POST WAREZ HERE)
Open,Alow The SuperUser Permitions
On Main window
Chose the frequencies: Min/MAX 312/624 or 312/832
Chose the Governor: Ondemand/Conservative/Scary (You can choose other)
Check the Box: Set On Boot
Go to Window "Advanced" (This is only Available on theses governors,UP)
Now Edit:
Conservative Governor
For Battery Save
Sampling Rate [120000]
What is this?
Sampling Time/Rate measured in uS by which the polling function determines how often to poll and decide if frequency should be scaled-down or scaled-up. [Some governors will have different sampling time for scaling-up and scaling-down]
Up Threshold [95]
What is this? >
Thresholds measured in percentage. When CPU load reaches this point, governor scales up or scales down the CPU. [Most of the governors will have down-threshold and up-threshold, for which CPU is scaled down or up respectively.
Down Threshold [40] [EXPLICATION IS SAME AS UP THRESHOULD]
Ignore Nice Load [SKIP THIS]
Freq Step [5] [0 to 10 value is aplicable][You chose the better]
What is This?
Defines how much (as a percentage of the maximum CPU speed) the conservative governor will increase the CPU speed by each time the CPU load reaches the Up Threshold.
YOU CAN CUSTOMIZE ALL VALUES AND GET THE BETTER VALUE
Click to expand...
Click to collapse
For performance
Sampling Rate [40000]
Up Threshold [60]
Down Threshold [20]
Freq Step [25]
Click to expand...
Click to collapse
Use The SetCPU CONFIGS and Configure Antutu Cpu master.
I Just Making This All-in-one Thread for Help
All Credits for droidphile.
Original Thread From GS2 Forum
READ FOR OTHER GOVERNOR TWEAKS (ondemand,smartass...etc)
http://forum.xda-developers.com/showthread.php?t=1369817
Repencis Original Thread :
http://forum.xda-developers.com/showthread.php?t=1587398
i read some post on repencis thread that says smartassv2 is good for performance seekers..
anyways.. Thanks for this!!
Read The complete thread on end of post.
this might help. copy this script into a *sh file then execute. don't forget to give execute permission.
Code:
#!/system/bin/sh
# for savaged zen
echo "312000" > /sys/devices/system/cpu/cpu0/cpufreq/savagedzen/awake_min_freq;
echo "312000" > /sys/devices/system/cpu/cpu0/cpufreq/savagedzen/sleep_max_freq;
echo "312000" > /sys/devices/system/cpu/cpu0/cpufreq/savagedzen/sleep_wakeup_freq
echo "85" > /sys/devices/system/cpu/cpu0/cpufreq/savagedzen/max_cpu_load;
echo "45" > /sys/devices/system/cpu/cpu0/cpufreq/savagedzen/min_cpu_load;
echo "200000" > /sys/devices/system/cpu/cpu0/cpufreq/savagedzen/ramp_up_step;
echo "200000" > /sys/devices/system/cpu/cpu0/cpufreq/savagedzen/ramp_down_step;
echo "48000" > /sys/devices/system/cpu/cpu0/cpufreq/savagedzen/up_rate_us
echo "49000" > /sys/devices/system/cpu/cpu0/cpufreq/savagedzen/down_rate_us
# for smartassv2
echo "312000" > /sys/devices/system/cpu/cpufreq/smartass/awake_ideal_freq;
echo "312000" > /sys/devices/system/cpu/cpufreq/smartass/sleep_ideal_freq;
echo "312000" > /sys/devices/system/cpu/cpufreq/smartass/sleep_wakeup_freq
echo "85" > /sys/devices/system/cpu/cpufreq/smartass/max_cpu_load;
echo "45" > /sys/devices/system/cpu/cpufreq/smartass/min_cpu_load;
echo "200000" > /sys/devices/system/cpu/cpufreq/smartass/ramp_up_step;
echo "200000" > /sys/devices/system/cpu/cpufreq/smartass/ramp_down_step;
echo "48000" > /sys/devices/system/cpu/cpufreq/smartass/up_rate_us
echo "49000" > /sys/devices/system/cpu/cpufreq/smartass/down_rate_us
# for interactive
echo "95" > /sys/devices/system/cpu/cpufreq/interactive/go_maxspeed_load
echo "10000" > /sys/devices/system/cpu/cpufreq/interactive/min_sample_time
# for interactivex
echo "10000" > /sys/devices/system/cpu/cpufreq/interactivex/min_sample_time
# for conservative
echo "95" > /sys/devices/system/cpu/cpufreq/conservative/up_threshold
echo "120000" > /sys/devices/system/cpu/cpufreq/conservative/sampling_rate
echo "1" > /sys/devices/system/cpu/cpufreq/conservative/sampling_down_factor
echo "40" > /sys/devices/system/cpu/cpufreq/conservative/down_threshold
echo "10" > /sys/devices/system/cpu/cpufreq/conservative/freq_step
currently I only made the tweak for these gov. you can make yourself by change the script line.
I can't change the sampling rate, it automatically revert back to 1000000 every time.
kurotsugi said:
this might help. copy this script into a *sh file then execute. don't forget to give execute permission.
Code:
#!/system/bin/sh
# for savaged zen
echo "312000" > /sys/devices/system/cpu/cpu0/cpufreq/savagedzen/awake_min_freq;
echo "312000" > /sys/devices/system/cpu/cpu0/cpufreq/savagedzen/sleep_max_freq;
echo "312000" > /sys/devices/system/cpu/cpu0/cpufreq/savagedzen/sleep_wakeup_freq
echo "85" > /sys/devices/system/cpu/cpu0/cpufreq/savagedzen/max_cpu_load;
echo "45" > /sys/devices/system/cpu/cpu0/cpufreq/savagedzen/min_cpu_load;
echo "200000" > /sys/devices/system/cpu/cpu0/cpufreq/savagedzen/ramp_up_step;
echo "200000" > /sys/devices/system/cpu/cpu0/cpufreq/savagedzen/ramp_down_step;
echo "48000" > /sys/devices/system/cpu/cpu0/cpufreq/savagedzen/up_rate_us
echo "49000" > /sys/devices/system/cpu/cpu0/cpufreq/savagedzen/down_rate_us
# for smartassv2
echo "312000" > /sys/devices/system/cpu/cpufreq/smartass/awake_ideal_freq;
echo "312000" > /sys/devices/system/cpu/cpufreq/smartass/sleep_ideal_freq;
echo "312000" > /sys/devices/system/cpu/cpufreq/smartass/sleep_wakeup_freq
echo "85" > /sys/devices/system/cpu/cpufreq/smartass/max_cpu_load;
echo "45" > /sys/devices/system/cpu/cpufreq/smartass/min_cpu_load;
echo "200000" > /sys/devices/system/cpu/cpufreq/smartass/ramp_up_step;
echo "200000" > /sys/devices/system/cpu/cpufreq/smartass/ramp_down_step;
echo "48000" > /sys/devices/system/cpu/cpufreq/smartass/up_rate_us
echo "49000" > /sys/devices/system/cpu/cpufreq/smartass/down_rate_us
# for interactive
echo "95" > /sys/devices/system/cpu/cpufreq/interactive/go_maxspeed_load
echo "10000" > /sys/devices/system/cpu/cpufreq/interactive/min_sample_time
# for interactivex
echo "10000" > /sys/devices/system/cpu/cpufreq/interactivex/min_sample_time
# for conservative
echo "95" > /sys/devices/system/cpu/cpufreq/conservative/up_threshold
echo "120000" > /sys/devices/system/cpu/cpufreq/conservative/sampling_rate
echo "1" > /sys/devices/system/cpu/cpufreq/conservative/sampling_down_factor
echo "40" > /sys/devices/system/cpu/cpufreq/conservative/down_threshold
echo "10" > /sys/devices/system/cpu/cpufreq/conservative/freq_step
currently I only made the tweak for these gov. you can make yourself by change the script line.
Click to expand...
Click to collapse
I have to execute it via script manager?
kurotsugi said:
this might help. copy this script into a *sh file then execute. don't forget to give execute permission.
Code:
#!/system/bin/sh
# for savaged zen
echo "312000" > /sys/devices/system/cpu/cpu0/cpufreq/savagedzen/awake_min_freq;
echo "312000" > /sys/devices/system/cpu/cpu0/cpufreq/savagedzen/sleep_max_freq;
echo "312000" > /sys/devices/system/cpu/cpu0/cpufreq/savagedzen/sleep_wakeup_freq
echo "85" > /sys/devices/system/cpu/cpu0/cpufreq/savagedzen/max_cpu_load;
echo "45" > /sys/devices/system/cpu/cpu0/cpufreq/savagedzen/min_cpu_load;
echo "200000" > /sys/devices/system/cpu/cpu0/cpufreq/savagedzen/ramp_up_step;
echo "200000" > /sys/devices/system/cpu/cpu0/cpufreq/savagedzen/ramp_down_step;
echo "48000" > /sys/devices/system/cpu/cpu0/cpufreq/savagedzen/up_rate_us
echo "49000" > /sys/devices/system/cpu/cpu0/cpufreq/savagedzen/down_rate_us
# for smartassv2
echo "312000" > /sys/devices/system/cpu/cpufreq/smartass/awake_ideal_freq;
echo "312000" > /sys/devices/system/cpu/cpufreq/smartass/sleep_ideal_freq;
echo "312000" > /sys/devices/system/cpu/cpufreq/smartass/sleep_wakeup_freq
echo "85" > /sys/devices/system/cpu/cpufreq/smartass/max_cpu_load;
echo "45" > /sys/devices/system/cpu/cpufreq/smartass/min_cpu_load;
echo "200000" > /sys/devices/system/cpu/cpufreq/smartass/ramp_up_step;
echo "200000" > /sys/devices/system/cpu/cpufreq/smartass/ramp_down_step;
echo "48000" > /sys/devices/system/cpu/cpufreq/smartass/up_rate_us
echo "49000" > /sys/devices/system/cpu/cpufreq/smartass/down_rate_us
# for interactive
echo "95" > /sys/devices/system/cpu/cpufreq/interactive/go_maxspeed_load
echo "10000" > /sys/devices/system/cpu/cpufreq/interactive/min_sample_time
# for interactivex
echo "10000" > /sys/devices/system/cpu/cpufreq/interactivex/min_sample_time
# for conservative
echo "95" > /sys/devices/system/cpu/cpufreq/conservative/up_threshold
echo "120000" > /sys/devices/system/cpu/cpufreq/conservative/sampling_rate
echo "1" > /sys/devices/system/cpu/cpufreq/conservative/sampling_down_factor
echo "40" > /sys/devices/system/cpu/cpufreq/conservative/down_threshold
echo "10" > /sys/devices/system/cpu/cpufreq/conservative/freq_step
currently I only made the tweak for these gov. you can make yourself by change the script line.
Click to expand...
Click to collapse
yeah.. how to? write on notepad then move to init.d?
kurotsugi said:
this might help. copy this script into a *sh file then execute. don't forget to give execute permission.
Code:
#!/system/bin/sh
# for savaged zen
echo "312000" > /sys/devices/system/cpu/cpu0/cpufreq/savagedzen/awake_min_freq;
echo "312000" > /sys/devices/system/cpu/cpu0/cpufreq/savagedzen/sleep_max_freq;
echo "312000" > /sys/devices/system/cpu/cpu0/cpufreq/savagedzen/sleep_wakeup_freq
echo "85" > /sys/devices/system/cpu/cpu0/cpufreq/savagedzen/max_cpu_load;
echo "45" > /sys/devices/system/cpu/cpu0/cpufreq/savagedzen/min_cpu_load;
echo "200000" > /sys/devices/system/cpu/cpu0/cpufreq/savagedzen/ramp_up_step;
echo "200000" > /sys/devices/system/cpu/cpu0/cpufreq/savagedzen/ramp_down_step;
echo "48000" > /sys/devices/system/cpu/cpu0/cpufreq/savagedzen/up_rate_us
echo "49000" > /sys/devices/system/cpu/cpu0/cpufreq/savagedzen/down_rate_us
# for smartassv2
echo "312000" > /sys/devices/system/cpu/cpufreq/smartass/awake_ideal_freq;
echo "312000" > /sys/devices/system/cpu/cpufreq/smartass/sleep_ideal_freq;
echo "312000" > /sys/devices/system/cpu/cpufreq/smartass/sleep_wakeup_freq
echo "85" > /sys/devices/system/cpu/cpufreq/smartass/max_cpu_load;
echo "45" > /sys/devices/system/cpu/cpufreq/smartass/min_cpu_load;
echo "200000" > /sys/devices/system/cpu/cpufreq/smartass/ramp_up_step;
echo "200000" > /sys/devices/system/cpu/cpufreq/smartass/ramp_down_step;
echo "48000" > /sys/devices/system/cpu/cpufreq/smartass/up_rate_us
echo "49000" > /sys/devices/system/cpu/cpufreq/smartass/down_rate_us
# for interactive
echo "95" > /sys/devices/system/cpu/cpufreq/interactive/go_maxspeed_load
echo "10000" > /sys/devices/system/cpu/cpufreq/interactive/min_sample_time
# for interactivex
echo "10000" > /sys/devices/system/cpu/cpufreq/interactivex/min_sample_time
# for conservative
echo "95" > /sys/devices/system/cpu/cpufreq/conservative/up_threshold
echo "120000" > /sys/devices/system/cpu/cpufreq/conservative/sampling_rate
echo "1" > /sys/devices/system/cpu/cpufreq/conservative/sampling_down_factor
echo "40" > /sys/devices/system/cpu/cpufreq/conservative/down_threshold
echo "10" > /sys/devices/system/cpu/cpufreq/conservative/freq_step
currently I only made the tweak for these gov. you can make yourself by change the script line.
Click to expand...
Click to collapse
I have to do after flashing the kernel? And where to put this file?
put it in init.d
GzC said:
I can't change the sampling rate, it automatically revert back to 1000000 every time.
Click to expand...
Click to collapse
Its is a bug. You have to Set 120000 All time when you change for other governor.
Nt workin wid me.. Stuck on boot logo
Sent from my GT-S5360 using XDA
hell_lock said:
Nt workin wid me.. Stuck on boot logo
Sent from my GT-S5360 using XDA
Click to expand...
Click to collapse
What Rom/Firmware you use ?
hell_lock said:
Nt workin wid me.. Stuck on boot logo
Sent from my GT-S5360 using XDA
Click to expand...
Click to collapse
Frist flash stock kernal then flash it...
You flash this custom kernal stuck boot logo...
Some custom rom change your kernal automatically.....conform that....
:thumbup:
Sent from my GT-S5360 using XDA
Sharmaskss said:
Frist flash stock kernal then flash it...
You flash this custom kernal stuck boot logo...
Some custom rom change your kernal automatically.....conform that....
:thumbup:
Sent from my GT-S5360 using XDA
Click to expand...
Click to collapse
?LOL?
I flashed this and my phone booted properly.
So how to use this after flashing then?
Would i just pick one of the governors listed in your script?
EliTSamsunG said:
?LOL?
Click to expand...
Click to collapse
I mean some roms have custom kernal...(eg:chobiv2,..)
So first flash stock then custom kernal....
Flash this kernal upon Merruk kernal must get stuck boot
I face this problem on repines rom flashing....
After flashing the file i checked the system value compared to the script's echo value, i found out that they are different-- which probably means that the script is not taking any effect.
Besides theres no instruction follows after flashing it. But thanks though.
* after flashing the script i set my governor to interactiveX,max freq to 624,min freq 312 and i/o to noop .
From 100% battery and 6hrs running time my battery went down to 85% which is not bad at all!! Hahaha!!
EliTSamsunG said:
Its is a bug. You have to Set 120000 All time when you change for other governor.
Click to expand...
Click to collapse
it always revert back to 1000000 even if i set it to 120000...
the script should be activate manually after every reboot. the problem is that the app like setCPU set the gov and io after the script in init.d run. if you have setCPU you can set the value in that script into your setting. in that way you don't need to run the script manually.
PS: you don't need to buy setCPU at market. every member XDA have special privilage to download it free from this forum
Setcpu is paid but its free on xda..
Here: http://forum.xda-developers.com/showpost.php?p=3638937&postcount=1
Sent from my X8 using xda premium

Init' special ? [ A script resource ]

Added a big list of disable/enable android.permissions
Cleaned up Op.
Made information more concise and easier on the eyes.
read_ahead_kb:
Code:
#
for i in /sys/devices/virtual/bdi/*/read_ahead_kb
do
echo "(AnyMultipleOf 128)" > $i
done
inode_readahead_blks
Code:
#
for i in /sys/fs/ext4/*/inode_*
do
echo "VAR" > $i
done
You won't find more simple scripting SETTING=VALUE...
Code:
write='busybox sysctl -w /sys/devices/system/cpu'
i=$write/cpufreq/conservative
j=$write/cpu0/cpufreq
$j/scaling_governor=conservative
$j/scaling_max_freq=1200000
$jscaling_min_freq=25000
$i/sampling_rate=25000
$i/up_threshold=40
$i/down_threshold=50
$i/freq_step=5
$i/sampling_down_factor=2
|
Code:
\( An Ondemand example \)
write='busybox sysctl -w /sys/devices/cpu'
i=$write/cpufreq/ondemand
j=$write/cpu0/cpufreq
$j/scaling_governor=ondemand
$j/scaling_min_freq=25000
$j/scaling_max_freq=1400000
$i/sampling_rate=50000
$i/up_threshold=65
$i/powersave_bias=10
$i/sampling_down_factor=3
$i/down_differential=30
$i/freq_step=65
|
Code:
\( Pegasus example \)
write='busybox sysctl -w /sys/devices/system/cpu'
i=$write/cpufreq/pegasusq
j=$write/cpu0/cpufreq
$j/scaling_governor=pegasusq
$j/scaling_min_freq=25000
$j/scaling_max_freq=1400000
$i/pegasusq/up_threshold=80
$i/pegasusq/up_threshold_at_min_freq=65
$i/pegasusq/sampling_down_factor=5
$i/pegasusq/down_differential=5
$i/pegasusq/freq_step=60
$i/freq_for_responsiveness=500000
$i/pegasusq/cpu_up_rate=10
$i/pegasusq/cpu_down_rate=20
$i/pegasusq/hotplug_freq_1_1=500000
$i/pegasusq/hotplug_freq_2_0=200000
$i/pegasusq/hotplug_rq_1_1=300
$i/pegasusq/hotplug_rq_2_0=350
$i/pegasusq/ignore_nice_load=0
$i/pegasusq/io_is_busy=1
$i/pegasusq/max_cpu_lock=0
$i/pegasusq/hotplug_lock=0
|
|
simple shell for speed and memory management
Code:
\( You can virtually write any setting \)\
ext4=`busybox sysctl -w /sys/fs/ext4/mmcblk0`
lmk=`busybox sysctl -w /sys/module/lowmemorykiller/parameters`
$ext4\p10/inode_readahead_blks=128
$ext4\p9/inode_readahead_blks=128
$ext4\p7/inode_readahead_blks=256
$ext4\p12/inode_readahead_blks=64
$ext4\p10/inode_goal=16
$ext4\p9/inode_goal=16
$ext4\p7/inode_goal=16
$ext4\p12/inode_goal=16
busybox sysctl -w /proc/1/oom_adj=-17
$lmk/adj=0,2,-4,8,12,15
$lmk/minfree=1024,3072,5120,12288,17408,24566
Screen state script that turns on and off both cpus
For now, this Post will be home to I/O tweaks
Queue settings unknown to most that
Code:
for i in /sys/block/*/*/force*
do
echo "0" > $i
echo 0 > /sys/block/mmcblk0/mmcblk0p1/ro
echo 0 > /sys/block/mmcblk0/mmcblk0p10/ro
echo 0 > /sys/block/mmcblk0/mmcblk0p11/ro
echo 0 > /sys/block/mmcblk0/mmcblk0p12/ro
echo 0 > /sys/block/mmcblk0/mmcblk0p2/ro
echo 0 > /sys/block/mmcblk0/mmcblk0p3/ro
echo 0 > /sys/block/mmcblk0/mmcblk0p4/ro
echo 0 > /sys/block/mmcblk0/mmcblk0p5/ro
echo 0 > /sys/block/mmcblk0/mmcblk0p6/ro
echo 0 > /sys/block/mmcblk0/mmcblk0p7/ro
echo 0 > /sys/block/mmcblk0/mmcblk0p8/ro
echo 0 > /sys/block/mmcblk0/mmcblk0p9/ro
Now you`re ready to adjust stuff...
Code:
for i in /sys/devices/virtual/block/*/queue
do
echo "sio" > $i/scheduler
echo "4096" > $i/minimum_io_size
echo "1" > $i/add_random
echo "4096" > $i/discard_granularity
echo "1" > /discard_zeroes_data
echo "1" > $i/discard_max_bytes
echo "1024" > $i/optimal_io_size
done
|or
for i in /sys/devices/virtual/block/*/queue
do
echo "deadline" > $i/scheduler
echo "2048" > $i/minimum_io_size
echo "1" > $i/add_random
echo "0" > $i/discard_max_bytes
echo "0" > $i/discard_granularity
echo "1" > /discard_zeroes_data
echo "128" > $i/optimal_io_size
done
I have so many variations and these ftmp dont have parameters so Ill let you get creative on those.
Sys Call
Valid keys for /etc/sysctl.conf
I meant for this list to be the OP.. but alas.. i was 11000 or so character to heavy.. lol
A gift ( not all sysctl calls are adjustable and this list is raw. there will be one or two no goes ..)
( wow, I hadn't realized there was near 800 settings in here.... )
ICS SYSCALL MASTER KEY
Alright, I know that most of you will already know how to use a sysctl.conf, but there are probably a couple
things that you didn't know about sysctl, so I may as well start with the obvious...
Code:
\\the following is the easiest way to use sysctl.conf, it is ideally done at init but is equally as easy to use from termemu\\
#/system/bin/sh \\ for init.d \\
sysctl -p \\ from terminal emulator you would have first signed it as usr \\
Now for one you may not now
I'm sure you've seen it used on each command.. (something like 'busybox sysctl -e -w vm.ridin_dirty=example)
*note in sysctl, -(e) is to skip displaying key (e)rrors and keep reading; -n is umber errors i believe; -w is (w)rite; the -p above is (p)rint sysclt.conf
Code:
\\ this is a nice little trick, there are over around 30 kb of keys,,what to do?? \\
su \\ or #/system/bin/sh if in a script \\
sysctl -p /etc/where/ever/your/2nd/sysctl/is
sysctl -p /or/your/5th
sysctl -p $0 <\\ or call your working script itself.\\>
<\\next is the command to create master list from your own device\\>
[B]sysctl -A > /data/log/MasterSysctl.txt[/B]
<\\and this next one,,, well this next is just priceless.. how's this for difficult syntax\\>
sysctl -w /proc/1/oom_adj=-17 <\\yes,, I mean..it...\\>
sysctl -w /sys/devices/virtual/block/loop1/queue/scheduler=easiest_way_to_apply_any_setting_you_arent_sure_of
Some working examples coming soon.
CpuFreq slash Governor settings
Similar but more refined and for a PEGASUS SETUP
Customize it all...
This is an advanced example made simple.. This one will set (between 6) governor and its settings, max and min freq, readahead kb in all of BDI, and inode readahead blks in each mmcblk.
And its 2.2* kb. And you only need to edit the subs if you wamt...
{no mem management or screenstate, but I just had a 4.5 hour screen on cycle at 1.4 max and scoring 4600+ on quadrants...}
Code:
#!/system/bin/sh
chmod 0644 /sys/block/*/queue/*
mount -o remount,rw / /
mount -o remount.rw /system /system
governor=pegasusq
max_freq=1400000
min_freq=50000
inode_readahead=128
read_ahead_kb=3840
cpu=/sys/devices/system/cpu/cpu0/cpufreq
echo "$min_freq" > $cpu/scaling_min_freq
echo "$max_freq" > $cpu/scaling_max_freq
for i in /sys/block/*/*/force_ro
do
echo "0" > $i
done
for i in /sys/class/bdi/*/read*
do
echo "$read_ahead_kb" > $i
done
for i in /sys/fs/ext4/*/inode_*
do
echo "$inode_readahead" > $i
done
for i in $cpu/scaling_governor
do
echo "$governor" > $i
done
for i in /sys/devices/system/cpu/cpufreq
do
active=`cat $cpu/scaling_governor`
Begin_ondemand
echo "40000" > $i/ondemand/sampling_rate
echo "70" > $i/ondemand/up_threshold
echo "15" > $i/ondemand/powersave_bias
echo "70" > $i/ondemand/freq_step
echo "3" > $i/ondemand/sampling_down_factor
Begin_smartassv2
echo "800000" > $i/smartass/awake_ideal_freq
echo "200000" > $i/smartass/sleep_ideal_freq
echo "800000" > $i/smartass/sleep_wakeup_freq
echo "75" > $i/smartass/max_cpu_load
echo "45" > $i/smartass/min_cpu_load
echo "0" > $i/smartass/ramp_up_step
echo "0" > $i/smartass/ramp_down_step
echo "24000" > $i/smartass/up_rate_us
echo "99000" > $i/smartass/down_rate_us
Begin_interactive
echo "80" > $i/interactive/go_hispeed_load
echo "40000" > $i/interactive/min_sample_time
echo "20000" > $i/interactive/timer_rate
#Begin_pegasusq
echo "80" > $i/pegasusq/up_threshold
echo "65" > $i/pegasusq/up_threshold_at_min_freq
echo "5" > $i/pegasusq/sampling_down_factor
echo "5" > $i/pegasusq/down_differential
echo "60" > $i/pegasusq/freq_step
echo "400000" > $i/freq_for_responsiveness
echo "10" > $i/pegasusq/cpu_up_rate
echo "20" > $i/pegasusq/cpu_down_rate
echo "400000" > $i/pegasusq/hotplug_freq_1_1
echo "300000" > $i/pegasusq/hotplug_freq_2_0
echo "300" > $i/pegasusq/hotplug_rq_1_1
echo "350" > $i/pegasusq/hotplug_rq_2_0
echo "0" > $i/pegasusq/ignore_nice_load
echo "1" > $i/pegasusq/io_is_busy
echo "0" > $i/pegasusq/max_cpu_lock
echo "0" > $i/pegasusq/hotplug_lock
#Begin_lulzactive
echo "60" > $i/lulzactive/inc_cpu_load
echo "4" > $i/lulzactive/pump_up_step
echo "1" > $i/lulzactive/pump_down_step
echo "10000" > $i/lulzactive/up_sample_time
echo "70000" > $i/lulzactive/down_sample_time
echo "5" > $i/lulzactive/screen_off_min_step
#Begin_conservative
echo "55" > $i/conservative/up_threshold
echo "25000" > $i/conservative/sampling_rate
echo "3" > $i/conservative/sampling_down_factor
echo "40" > $i/conservative/down_threshold
echo "5" > $i/conservative/freq_step
done
exit 0
Odex all data apps
http://forum.xda-developers.com/showthread.php?p=32305612
Here's a link to a post with a Flashable busybox (with extra-goodies)
PhAkEer said:
a place where one can come to copy/plaste sections
Click to expand...
Click to collapse
I know how to copy, but what is this plaste you speak of?
anyways, this looks promising for adding some more scripts in one spot for all.
Sent from my SPH-D710 using Tapatalk
Click here for custom mods for your E4GT
Prove it
PhAkEer said:
Prove it
Click to expand...
Click to collapse
Edited in a quote before you edited :screwy: haha
Sent from my SPH-D710 using Tapatalk
Click here for custom mods for your E4GT
What is a script? And what do all those fancy thingy things you posted do? Oh, and I spilled grape juice all over my phone. Its still dripping out of it. Why do you think it won't turn on? Also, can you come help me pick my nose?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
How did this thread sneak in on me bro? A little sly-of-hand action there huh.... hook 'em in placebo and create another thread... then mention nonchalantly in placebo thread to check your other thread for the latest.Lol
Looking forward to seeing where this one leads.. nice work man!
Sent from my SPH-D710 using Xparent Blue Tapatalk 2
blackcanopy said:
How did this thread sneak in on me bro? A little sly-of-hand action there huh.... hook 'em in placebo and create another thread... then mention nonchalantly in placebo thread to check your other thread for the latest.Lol
Looking forward to seeing where this one leads.. nice work man!
Sent from my SPH-D710 using Xparent Blue Tapatalk 2
Click to expand...
Click to collapse
Come one now, brah. You know exactly where this goes....
(this leads to me being in your backpack after a while.. and...
to my ultimate goal.... I sleep.. for at least 6 hours at once...)
Anybody want a script to odex data/apps??
Wrote it this morning.
Just need dexopt-wrapper and then execute this.. no reboot, apps keep their classes.dex for the future as well...
Code:
#!/system/bin/sh
J=/system/framework
A=/data/app
W=/system/xbin/dexopt-wrapper
mount -o remount,rw /system /system
mount -o remount,rw /data /data
rm -f $A/*.odex
for i in $A/*
do
name=`basename $i .apk`
$W $A/$name.apk $A/$name.odex $J/core.jar:$J/core-junit.jar:$J/bouncycastle.jar:$J/ext.jar:$J/framework.jar:$J/framework2.jar:$J/android.policy.jar:$J/services.jar:$J/apache-xml.jar
chmod 0644 $A/$name.odex
done
echo $i
sleep 2
exit 0
( and telling me if this stuff does or does not work is NOT off topic ftr )
Haven't even had time to look at this to see what it does...
Found it in an unnamed folder in a backup..
If anybodies knows who's work this is please say so..
I'm only posting it to get it off of my work pc.. I'll look into it later.
Code:
#!/system/bin/sh
#
#
readdebug() {
DUAL_CORE_DEBUG=`cat /system/etc/dual_core/debug`
DUAL_CORE_DEBUG=${DUAL_CORE_DEBUG:=0}
}
log() {
if [ "$DUAL_CORE_DEBUG" = "1" ] ; then
echo "$(date): [email protected]" >> /devlog/dual_core
fi
}
logcpu() {
if [ "$DUAL_CORE_DEBUG" = "1" ] ; then
local NOW_FREQ=`cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq`
local NOW=`cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq`
log "CPU[0]: scaling_max_freq=$NOW"
local NOW_ONLINE=`cat /sys/devices/system/cpu/cpu1/online`
log "CPU[1]: online=$NOW_ONLINE"
if [ -f /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq ] ; then
local NOW=`cat /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq`
log "CPU[1]: scaling_max_freq=$NOW"
fi
fi
}
init_dc_fs() {
sysrw
touch /devlog/dual_core ; chmod 777 /devlog/dual_core
touch /system/etc/dual_core/debug ; chmod 777 /system/etc/dual_core/debug
touch /system/etc/dual_core/sleep_frequency ; chmod 777 /system/etc/dual_core/sleep_frequency
touch /system/etc/dual_core/disable_sleep_freq ; chmod 777 /system/etc/dual_core/disable_sleep_freq
sysro
}
waitforwakeup() {
log "waitforwakeup{" ; logcpu
AWAKE=`cat /sys/power/wait_for_fb_wake`
if [ "$AWAKE" = "awake" ] ; then
CPU0_FREQ_AWAKE=${CPU0_FREQ_AWAKE:="$CPU0_FREQ_BOOT"}
log "Awake triggered... old awake is: $CPU0_FREQ_AWAKE"
log "CPU[1] try set online"
chmod 644 /sys/devices/system/cpu/cpu1/online
echo "1" > /sys/devices/system/cpu/cpu1/online
chmod 444 /sys/devices/system/cpu/cpu1/online
log "CPU[1] online"
if [ "$DISABLE_SLEEP" = "1" ] || [ "$OC_DAEMON" = "1" ] ; then
log "sleep cpu0 frequency mod disabled"
else
log "waking up from earlier sleep.. set to old awake frequency = $CPU0_FREQ_AWAKE"
echo "$CPU0_FREQ_AWAKE" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
fi
sleep 1
echo "$CPU0_FREQ_AWAKE" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq
chmod 644 /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
echo "ondemand" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
chmod 444 /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
log "}wakeup" ; logcpu
fi
}
waitforsleep() {
log "waitforsleep{" ; logcpu
SLEEPING=`cat /sys/power/wait_for_fb_sleep`
if [ "$SLEEPING" = "sleeping" ] ; then
log "Sleep triggered..."
sleep_cpu0
log "CPU[1]: try set offline"
chmod 644 /sys/devices/system/cpu/cpu1/online
echo "0" > /sys/devices/system/cpu/cpu1/online
chmod 444 /sys/devices/system/cpu/cpu1/online
log "CPU[1]: offline"
fi
log "}waitforsleep" ; logcpu
}
sleep_cpu0() {
CPU0_FREQ_AWAKE=`cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq`
log "Sleeping, remember awake frequency: $CPU0_FREQ_AWAKE"
DISABLE_SLEEP=`cat /system/etc/dual_core/disable_sleep_freq`
if [ "$DISABLE_SLEEP" = "1" ] || [ "$OC_DAEMON" = "1" ] ; then
log "DISABLE_SLEEP=1 or OCD detected"
else
if [ -e /system/etc/dual_core/sleep_frequency ] ; then
SLEEP_FREQUENCY=`cat /system/etc/dual_core/sleep_frequency`
log "sleep_frequency setting found, using $SLEEP_FREQUENCY instead of $CPU0_FREQ_AWAKE"
fi
SLEEP_FREQUENCY=${SLEEP_FREQUENCY:=DEFAULT_SLEEP_FREQUENCY}
echo "$SLEEP_FREQUENCY" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
log "Set cpu0 frequency to $SLEEP_FREQUENCY"
fi
}
DEFAULT_SLEEP_FREQUENCY=192000
init_dc_fs
DUAL_CORE_DEBUG="1"
log "Starting..."; logcpu
if [ -f /system/etc/virtuous_oc/wake_max_freq ] ; then
OC_DAEMON=1
log "OC Daemon found."
fi
DISABLE_SLEEP=`cat /system/etc/dual_core/disable_sleep_freq`
CPU0_FREQ_BOOT=`cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq`
STATE=`cat /sys/power/state_onchg`
if [ "$STATE" = "chgoff" ] ; then
log "device is asleep, scaling down"
sleep_cpu0
fi
DUAL_CORE_DEBUG="0"
(while : ; do
waitforwakeup
readdebug
waitforsleep
readdebug
done &)
at a glance it looks like an extremely over complicated screenstate script....
PhAkEer said:
Haven't even had time to look at this to see what it does...
Found it in an unnamed folder in a backup..
If anybodies knows who's work this is please say so..
I'm only posting it to get it off of my work pc.. I'll look into it later.
Code:
#!/system/bin/sh
#
#
readdebug() {
DUAL_CORE_DEBUG=`cat /system/etc/dual_core/debug`
DUAL_CORE_DEBUG=${DUAL_CORE_DEBUG:=0}
}
log() {
if [ "$DUAL_CORE_DEBUG" = "1" ] ; then
echo "$(date): [email protected]" >> /devlog/dual_core
fi
}
logcpu() {
if [ "$DUAL_CORE_DEBUG" = "1" ] ; then
local NOW_FREQ=`cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq`
local NOW=`cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq`
log "CPU[0]: scaling_max_freq=$NOW"
local NOW_ONLINE=`cat /sys/devices/system/cpu/cpu1/online`
log "CPU[1]: online=$NOW_ONLINE"
if [ -f /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq ] ; then
local NOW=`cat /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq`
log "CPU[1]: scaling_max_freq=$NOW"
fi
fi
}
init_dc_fs() {
sysrw
touch /devlog/dual_core ; chmod 777 /devlog/dual_core
touch /system/etc/dual_core/debug ; chmod 777 /system/etc/dual_core/debug
touch /system/etc/dual_core/sleep_frequency ; chmod 777 /system/etc/dual_core/sleep_frequency
touch /system/etc/dual_core/disable_sleep_freq ; chmod 777 /system/etc/dual_core/disable_sleep_freq
sysro
}
waitforwakeup() {
log "waitforwakeup{" ; logcpu
AWAKE=`cat /sys/power/wait_for_fb_wake`
if [ "$AWAKE" = "awake" ] ; then
CPU0_FREQ_AWAKE=${CPU0_FREQ_AWAKE:="$CPU0_FREQ_BOOT"}
log "Awake triggered... old awake is: $CPU0_FREQ_AWAKE"
log "CPU[1] try set online"
chmod 644 /sys/devices/system/cpu/cpu1/online
echo "1" > /sys/devices/system/cpu/cpu1/online
chmod 444 /sys/devices/system/cpu/cpu1/online
log "CPU[1] online"
if [ "$DISABLE_SLEEP" = "1" ] || [ "$OC_DAEMON" = "1" ] ; then
log "sleep cpu0 frequency mod disabled"
else
log "waking up from earlier sleep.. set to old awake frequency = $CPU0_FREQ_AWAKE"
echo "$CPU0_FREQ_AWAKE" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
fi
sleep 1
echo "$CPU0_FREQ_AWAKE" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq
chmod 644 /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
echo "ondemand" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
chmod 444 /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
log "}wakeup" ; logcpu
fi
}
waitforsleep() {
log "waitforsleep{" ; logcpu
SLEEPING=`cat /sys/power/wait_for_fb_sleep`
if [ "$SLEEPING" = "sleeping" ] ; then
log "Sleep triggered..."
sleep_cpu0
log "CPU[1]: try set offline"
chmod 644 /sys/devices/system/cpu/cpu1/online
echo "0" > /sys/devices/system/cpu/cpu1/online
chmod 444 /sys/devices/system/cpu/cpu1/online
log "CPU[1]: offline"
fi
log "}waitforsleep" ; logcpu
}
sleep_cpu0() {
CPU0_FREQ_AWAKE=`cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq`
log "Sleeping, remember awake frequency: $CPU0_FREQ_AWAKE"
DISABLE_SLEEP=`cat /system/etc/dual_core/disable_sleep_freq`
if [ "$DISABLE_SLEEP" = "1" ] || [ "$OC_DAEMON" = "1" ] ; then
log "DISABLE_SLEEP=1 or OCD detected"
else
if [ -e /system/etc/dual_core/sleep_frequency ] ; then
SLEEP_FREQUENCY=`cat /system/etc/dual_core/sleep_frequency`
log "sleep_frequency setting found, using $SLEEP_FREQUENCY instead of $CPU0_FREQ_AWAKE"
fi
SLEEP_FREQUENCY=${SLEEP_FREQUENCY:=DEFAULT_SLEEP_FREQUENCY}
echo "$SLEEP_FREQUENCY" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
log "Set cpu0 frequency to $SLEEP_FREQUENCY"
fi
}
DEFAULT_SLEEP_FREQUENCY=192000
init_dc_fs
DUAL_CORE_DEBUG="1"
log "Starting..."; logcpu
if [ -f /system/etc/virtuous_oc/wake_max_freq ] ; then
OC_DAEMON=1
log "OC Daemon found."
fi
DISABLE_SLEEP=`cat /system/etc/dual_core/disable_sleep_freq`
CPU0_FREQ_BOOT=`cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq`
STATE=`cat /sys/power/state_onchg`
if [ "$STATE" = "chgoff" ] ; then
log "device is asleep, scaling down"
sleep_cpu0
fi
DUAL_CORE_DEBUG="0"
(while : ; do
waitforwakeup
readdebug
waitforsleep
readdebug
done &)
at a glance it looks like an extremely over complicated screenstate script....
Click to expand...
Click to collapse
You might be right! It kinda looks like the script from the CPU sleep thread from here http://forum.xda-developers.com/showthread.php?t=1739457
Sent from my SPH-D710 using Tapatalk 2
Customizable Pegasus.
As is I'm getting something I'd recognize as a score in quad on jb... I thought the day would never come....
Code:
#!/system/bin/sh
# SETUP FOR PEGASUS
# I/O Settings
scheduler=deadline
read_ahead=3072
inode_blks=64
inode_goal=8
# CPU Freq Settings
min_freq=200
max_freq=1200
up_thresh=80
sampling=40000
sampling_factor=3
down_diff=5
freq_step=60
response_freq=500000
up_rate=20
down_rate=30
freq_1_1=400000
freq_2_0=300000
rq_1_1=400
rq_2_0=350
ignore_nice=0
io_is_busy=0
cpu_lock=0
lockR=0
# Stream settings
max_mb_scan=0
min_mb_scan=0
mb_stream_req=0
max_writeback_bump=32
req_order2=0
prealloc_mb=768
# Here we go again...lol
set -x
exec > /data/log/Pegasus.log 2>&1
/system/bin/sh
for j in $(/system/xbin/busybox mount | /system/xbin/busybox grep ext4 | /system/xbin/busybox cut -d " " -f3)
do
sync
/system/xbin/busybox mount -o remount,noatime,barrier=0,commit=5 $j
done
mount -o remount,noatime,nobh,nodiratime,nodelalloc,noauto_da_alloc,barrier=0 /system /system
mount -o remount,noatime,nobh,nodiratime,nodelalloc,noauto_da_alloc,barrier=0,commit=0 /cache /cache
mount -o remount,noatime,nodiratime,delalloc,noauto_da_alloc,barrier=0,commit=0 /data /data
for i in /sys/fs/ext4/*
do
echo "$max_mb_scan" > $i/mb_max_to_scan
echo "$min_mb_scan" > $i/mb_min_to_scan
echo "$inode_blks" > $i/inode_readahead_blks
echo "$inode_goal" > $i/inode_goal
echo "$mb_stream_req" > $i/mb_stream_req
echo "$max_writeback_bump" > $i/max_writeback_mb_bump
echo "$preaoc_mb" > $i/mb_group_prealloc
echo "$req_order2" > $i/mb_order2_req
done
echo "pegasusq" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
for i in /sys/devices/system/cpu/cpufreq/pegasusq
do
echo "$up_thresh" > $i/up_threshold
echo "$sampling" > $i/sampling_rate
echo "$sampling_factor" > $i/sampling_down_factor
echo "$down_diff" > $i/down_differential
echo "$freq_step" > $i/freq_step
echo "$up_rate" > $i/cpu_up_rate
echo "$down_rate" > $i/cpu_down_rate
echo "$freq_1_1" > $i/hotplug_freq_1_1
echo "$freq_2_0" > $i/hotplug_freq_2_0
echo "$rq_1_1" > $i/hotplug_rq_1_1
echo "$rq_2_0" > $i/hotplug_rq_2_0
echo "$ignore_nice" > $i/ignore_nice_load
echo "$io_is_busy" > $i/io_is_busy
echo "$cpu_lock" > $i/max_cpu_lock
done
for i in /sys/devices/virtual/bdi/*/read_ahead_kb
do
echo "$read_ahead" > $i
done
for i in /sys/class/block/*/queue
do
echo "$scheduler" > $i/scheduler
echo "$read_ahead" > $i/read_ahead_kb
done
case "$min_freq" in
*)
i=/sys/devices/system/cpu/cpu0/cpufreq
;;
25)
echo "25000" > $i/scaling_min_freq
;;
50)
echo "50000" > $i/scaling_min_freq
;;
100)
echo "100000" > $i/scaling_min_freq
;;
200)
echo "200000" > $i/scaling_min_freq
;;
300)
echo "300000" > $i/scaling_min_freq
;;
400)
echo "400000" > $i/scaling_min_freq
;;
500)
echo "500000" > $i/scaling_min_freq
;;
esac;
case "$max_freq" in
800)
echo "800000" > $cpu/scaling_max_freq
;;
900)
echo "900000" > $cpu/scaling_max_freq
;;
1000)
echo "1000000" > $cpu/scaling_max_freq
;;
1100)
echo "1100000" > $cpu/scaling_max_freq
;;
1200)
echo "1200000" > $cpu/scaling_max_freq
;;
1300)
echo "1300000" > $cpu/scaling_max_freq
;;
1400)
echo "1400000" > $cpu/scaling_max_freq
;;
1600)
echo "1600000" > $cpu/scaling_max_freq
;;
esac;
Nice to see this in the development section :thumbup:
-TeaM VeNuM Like A Boss
MiguelHogue said:
Nice to see this in the development section :thumbup:
-TeaM VeNuM Like A Boss
Click to expand...
Click to collapse
It isn't so such much for something to develop, I mainly just wanted the resources available the Tw themers and the like.
The parameters for the section said dev/mod/hack so I'm sure it fits in there somewhere.. I need to start getting some material in here though. . ... watch this...
EEECCCCCCHOOOO
khoeoeoeoe
ohohohohhh
See...
This one is a WIP so pay attention
Dual cpu screenstate script.. simple stuff
the way I have this setup it setup it will call powersave when screen is off. This is only practical if it calls another governor when the screen comes back on, so change it from "sh /data/local/pegasus" to "sh wherever you have a gov script" or to
"echo govofchoice > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor"
Code:
#!/system/bin/sh
#
#
sleep 1m
while [[ "awake" = $AWAKE ]]
do
AWAKE=`cat /sys/power/wait_for_fb_wake`
if [ "awake" = $AWAKE ]
then
echo "1" > /sys/devices/system/cpu/cpu1/online
echo "1" > /sys/devices/system/cpu/cpu0/online
sh /data/local/Pegasus
fi
sleep 2
ASLEEP=`cat /sys/power/wait_for_fb_sleep`
if [ "sleeping" = $ASLEEP ]
then
echo "0" > /sys/devices/system/cpu/cpu1/online
echo "0" > /sys/devices/system/cpu/cpu0/online
echo "powersave" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
fi
sleep 2
done
exit 0
PhAkEer said:
Anybody want a script to odex data/apps??
Wrote it this morning.
Just need dexopt-wrapper and then execute this.. no reboot, apps keep their classes.dex for the future as well...
Code:
#!/system/bin/sh
J=/system/framework
A=/data/app
W=/system/xbin/dexopt-wrapper
mount -o remount,rw /system /system
mount -o remount,rw /data /data
rm -f $A/*.odex
for i in $A/*
do
name=`basename $i .apk`
$W $A/$name.apk $A/$name.odex $J/core.jar:$J/core-junit.jar:$J/bouncycastle.jar:$J/ext.jar:$J/framework.jar:$J/framework2.jar:$J/android.policy.jar:$J/services.jar:$J/apache-xml.jar
chmod 0644 $A/$name.odex
done
echo $i
sleep 2
exit 0
( and telling me if this stuff does or does not work is NOT off topic ftr )
Click to expand...
Click to collapse
Where do we get a copy of dexopt-wrapper? I downloaded the odex station that has it in the zip you had somewhere, but I get status7 error when flashing it.
Sent from my SPH-D710 using Xparent Blue Tapatalk 2
Just extract the wrapper to xbin and youre gtg
Warning: hideous sig acomin..
Need a change of pace?
Odexing Data with a simple script
or
Change your boot splash-screen in two steps

KFinally found the answer to bad battery life on our beloved htc 10's/works with Oreo

Save much reading and go to page 61. Answers to bad battery on the HTC 10 are worked out there. It's simplifies everything. Many posts here are works in progress kind of back and forth.
Guides I used for amplify are at the bottom of page 13.
(Remember to thank me in the op if anything here helped.)
After numerous hours of research and testing . Just wanted to reveal what I found. This is made for the OP-3 which is also a snapdragon 820 chipset device.
Ive been using on my Verizon HTC 10 with zero issues so far/ Lee-droid oreo rom/Elemental X -3.02 kernel. Much copy and pasting going on, just wanted to share my find.I take no credit for any of this : other than being willing to test on my device. After flashing the final version of (AKT.V1.6/FinalZIP )through twrp/ located on next page I ticked for the Op3 OR SNAPDRAGON 820 DEVICE from a terminul emilator, then I choose "Project Zhana battery" . I used rom toolbox pro's terminal emulator. Choose whatever profile you desire but the one I picked works fine/zero lag. Our other options (as of now) are soilwork scripts made for the HTC 10 or the helix engine now that pnpmgr has been disabled.
. First link is a huge thread on profiles from AKT. Go find which ever works best for your situation.
( I'm not telling you to flash anything. I'm showing you possible routes that have been tested by me. If you do not like results simply Ruu back to stock or dirty flash rom being used to get rid of it all.)
I'm about to tell you how to get buttery smooth, lag-free performance with insanely good battery life, using an old school governor featured in practically every kernel... This tweak is applicable to every phone with any ROM or kernel--stock or custom--that provides the Interactive Governor.
Yeah, yeah... everyone promises good battery with great performance, but who actually delivers? Maybe it isn't as smooth as you want, or maybe it requires something your kernel or ROM don't support. Or maybe the battery life promises just aren't what you expected. There's always some awful compromise. Not here!
This isn't a guide to get 36 hour battery life... provided you never use your phone. That's deep sleep optimization, which is lovely and all, but what good is the phone if you can never use it?! And with the new Marshmallow Doze feature, this strategy is becoming a thing of the past. What I'm talking about is 7-14 hour screen on, actual hands-on usage times! Without compromising anything, you can get 7-8 hour screen on usage with regular, no-compromise usage habits: daytime visible screen brightness, both radios on, sync on, network location on, all the regular usage features, the whole kit and kaboodle... all smooth as a baby's butt and snappy as a Slim Jim! (Up to 14+ hours if you can stand minimum brightness and WiFi-only with a custom ROM and other stuff turned off! And this is with stock voltages and full frequency range--you'll likely get even more if you choose to optimize those as well!)
However, it should be noted that this does not apply to gaming, heavy camera use, etc. Anything that is an automatic battery killer in and of itself. There's nothing that can be done about anything that forces the phone to utilize its maximum resources all the time. But you should know that by now. Further, this guide is about optimizing the CPU as much as possible. It does not cover things like eliminating wakelocks so your phone sleeps well, removing unnecessary and battery draining stock apps, keeping your screen brightness down*, and all that stuff that's been covered in other posts ad infinitum. Those optimizations are up to you.
If you really want to know the principles of this tweaks, please go to this thread since there everything is really well explained and I know you guys just want to apply the tweak and forget about everything behind it, so just keep scrolling!
Voltages and Frequencies:
So recently I have been investigating about the Voltages of our device (since that is a really useful information to know) before that we only have the Nominal frequencies (If you don't know what I am talking about go ahead and read @soniCron thread because I won't explain it) we could develop some tweaks with that, but we were pretty much making blind shots, guessing and hoping that all will be right. Well, now that we have all this information we can optimize our tweaks even more so expect new updates and rework for the current tweaks and of course new ones.
What About Touchboost?
Since I've noticed that a lot of people was asking about Touchboost, I decided to add this little explanation from @soniCron
" Touchboost is a nifty feature in a lot of kernels (including stock on Nexus 5X) that jumps up the frequency so that you experience minimal lag. However, with all the above settings, touchboost is usually detrimental to the efficiency of the device!
We generally want to keep the CPU on the lowest possible frequency as much as possible, and touchboost interferes with that. Further, because we've set up the maximal and minimal efficient clock rates, as well as burst processing from the 2nd CPU core, we don't need touchboost!
If your kernel allows you to shut it off, try to do so and see if the responsiveness of your device is acceptable. On the OP3 (and pretty much all the devices), touchboost adds no perceptual performance gain and only hurts efficiency and battery life. If your kernel doesn't allow you to turn off touchboost, try another one.
Your battery life will thank you! "
With all that been said, you shouldn't confuse Touchboost with CPU Boost and more specifically Input boost. Both are used to boost the clock speed of our device whenever we touch the touchscreen, so we don't suffer any lags.
The difference is that Input boost can be configured and Touchboost cannot, making it a really inefficient.
MY DEVICE LAGS!!! WHY?!?!
First of all, it's a "normal" thing, as I have stated before, all these tweaks have been done for fit my usage or certain usage which is most likely not the same as yours. Because this, when the are put on a certain scenario the might stutter or lag just a bit (If you are experimenting huge lags, you have done something wrong)
And yes, this can be fixed. We have a couple of ways of fixing it:
First of all, Check If the tweaks have been applied correctly
Our first one is modifying the Input boost (not touchboost) most of our tweaks have an already established Input boost clock speeds and time, you can incise does too a bit. For example, we have 960(Mhz) for all the CPU at 40ms you could bump it up to ~1036(Mhz) and 42ms, don't modify too much this values since it will potentially increase your battery drain.
Our second tool for fixing lags is min_sample_time , my recommendation is to increase the value by 5000 each time till you no longer suffer any stutter or lag.
Try another tweak, for example;
If you are using Project X.A.N.A Battery, try using Balanced option...
Still having lag?
Get rid of unnecessary (background-)apps
Try a different IO-Scheduler
Try another profile
My phone still uses too much battery
First of all, Check If the tweaks have been applied correctly
Make sure that you have disabled touchboost.
Set brightness to a lower level.
Use a dark / black theme
Don't play games all day
Try other tweak, for example;
If you are using Project Zhana Balanced, try using Battery option...
How to install:
A flashable zip to be flashed via recovery, which installs scripts of the latest iterations of most profiles (some legacy profiles had to be eliminated for more convenience) and a master script that takes control of all the installed scripts and applies your desired profile at will as soon as you recall it via Terminal Emulator app and get guided by the on-screen instructions.
So to wrap it up:
1- Download the latest AKT_Profile_vX.x.zip file
2- Reboot into TWRP recovery and flash the .zip file
3- After you boot up the phone, leave it to settle for a minute
4- Open up your favorite Terminal Emulator app
5- Grant it superuser permissions by typing in "su" without the quotes
6- After superuser permissions are granted, type in "AKT" without the quotes (yes capitalized)
Download link for AKT
https://forum.xda-developers.com/showpost.php?p=70352820&postcount=2146
Xposed with magic information and downloads.
This is where the rubber meets the road. Amplify and greenify for Oreo!!!
https://forum.xda-developers.com/xposed/unofficial-systemless-xposed-t3388268
(Save yourself some time and jump to page 61 Finally found the answers there. Long live the HTC 10. My device is finally a beast.)
Sounds interesting - might give it a try
It's running like a totally different phone. I'm amazed almost 2 hours of screen on time and still at 70% battery. And I'm casting to my living room TV as well. Still zero lag. So phone is running tasks as well. And I'm back and forth on here. Works nicely.
mattie_49 said:
It's running like a totally different phone. I'm amazed almost 2 hours of screen on time and still at 70% battery. And I'm casting to my living room TV as well. Still zero lag. So phone is running tasks as well. And I'm back and forth on here. Works nicely.
Click to expand...
Click to collapse
Are you using stock elemental x settings or other ?
Code:
#!/system/bin/sh
#Author: Asiier
#Settings By: Asiier
#Device: One Plus 3
#Codename: Project Zhana (BT)
#Build Status: Stable
#Version: 4.2
#Last Updated: 22/01/2017
#Notes: Please give credit when using this in your work!
#TWEAKS_BEGIN
echo ""
echo --------------------------------------------------------
echo Applying 'Project Zhana (Battery variant)' v4.3
echo Advanced Kernel Settings
echo --------------------------------------------------------
sleep 0.5
echo Author: Asiier
echo Settings By: Asiier
echo "Device: One Plus 3 & SD820 Devices"
echo Codename: 'Project Zhana (BT)'
echo Build Status: Stable
echo Last Updated: 19/09/2017
echo For more information go to the XDA theard
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sleep 0.3
echo Checking Android version...
if grep -q 'ro.build.version.sdk=25' /system/build.prop; then
echo Android Nougat 7.1.X detected!
sleep 0.3
echo N detected... Applying proper settings
fi
if grep -q 'ro.build.version.sdk=24' /system/build.prop; then
echo Android Nougat 7.0.X detected!
sleep 0.3
echo N detected... Applying proper settings
fi
if grep -q 'ro.build.version.sdk=23' /system/build.prop; then
echo Android Marshmallow 6.0.1 detected!
sleep 0.3
echo MM detected... Applying proper settings
fi
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sleep 0.3
#Apply settings to LITTLE cluster
echo Applying settings to LITTLE Cluster...
sleep 0.5
#Temporarily change permissions to governor files for the LITTLE cluster to enable Interactive governor
chmod 644 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo interactive > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
chmod 444 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
#Grab Maximum Achievable Frequency for the LITTLE Cluster
maxfreq=$(cat "/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq")
if test "$maxfreq" -eq 1593600; then
#Temporarily change permissions to governor files for the Big cluster to set the maximum frequency to 1593MHz
echo No LITTLE Cluster Overclocking detected.
echo Applying appropriate values.
chmod 644 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
echo 1593600 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq #Core 0 Maximum Frequency = 1593MHz
chmod 444 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
chmod 644 /sys/devices/system/cpu/cpu0/cpufreq/interactive/target_loads
echo 70 480000:65 556800:75 729600:82 960000:86 1036800:2 1228800:99 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/target_loads
chmod 444 /sys/devices/system/cpu/cpu0/cpufreq/interactive/target_loads
fi
if test "$maxfreq" -eq 1728000; then
#Temporarily change permissions to governor files for the Little cluster to set the maximum frequency to 1728MHz
echo LITTLE Cluster Overclocking detected.
echo Applying appropriate values.
chmod 644 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
echo 1728000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq #Core 0 Maximum Frequency = 1728MHz
chmod 444 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
chmod 644 /sys/devices/system/cpu/cpu0/cpufreq/interactive/target_loads
echo 70 480000:65 556800:75 729600:82 960000:86 1036800:2 1228800:99 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/target_loads
chmod 444 /sys/devices/system/cpu/cpu0/cpufreq/interactive/target_loads
maxfreq=$(cat "/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq")
fi
if test "$maxfreq" -lt 1593600; then
#Temporarily change permissions to governor files for the Big cluster to set the maximum frequency to 1593MHz
echo LITTLE Cluster Underclocking detected!!
sleep 1
echo We recommend not to UnderClock the CPU as the tweaks already will take care of that If needed
echo The tweaks will continue getting applied but we recommend setting the CPU to Max frequency!
sleep 4
#chmod 644 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
#echo 1593600 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq #Core 0 Maximum Frequency = 1593MHz
#chmod 444 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
chmod 644 /sys/devices/system/cpu/cpu0/cpufreq/interactive/target_loads
echo 70 480000:65 556800:75 729600:82 960000:86 1036800:2 1228800:99 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/target_loads
chmod 444 /sys/devices/system/cpu/cpu0/cpufreq/interactive/target_loads
elif test $maxfreq -gt 1728000; then
#Temporarily change permissions to governor files for the Little cluster to set the maximum frequency to 1728MHz
echo LITTLE Cluster Overclocking detected.
sleep 1
echo This OverClock is higher than normal and only possible on Xceed Kernel
echo The tweak will continue getting applyed
echo " Althought it might no reach the maximum frequency you have setted as it haven't been made to work with frecuencies higher than 1728 Mhz "
#chmod 644 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
#echo 1728000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq #Core 0 Maximum Frequency = 1728MHz
#chmod 444 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
chmod 644 /sys/devices/system/cpu/cpu0/cpufreq/interactive/target_loads
echo 70 480000:65 556800:75 729600:82 960000:86 1036800:2 1228800:99 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/target_loads
chmod 444 /sys/devices/system/cpu/cpu0/cpufreq/interactive/target_loads
fi
chmod 644 /sys/devices/system/cpu/cpu0/cpufreq/interactive/*
echo 220000 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/timer_slack
echo 307200 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/hispeed_freq
echo 100000 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/timer_rate
echo 0 729600:76000 960000:99000 1228800:150000 1478400:170000 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/above_hispeed_delay
echo 155 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/go_hispeed_load
echo 22000 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/min_sample_time
echo 0 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/max_freq_hysteresis
echo 0 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/ignore_hispeed_on_notif
echo 0 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/boost
echo 0 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/fast_ramp_down
echo 0 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/align_windows
echo 1 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/use_migration_notif
echo 0 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/use_sched_load
echo 0 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/boostpulse_duration
echo 0 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/io_is_busy
if [ -e "/sys/devices/system/cpu/cpu0/cpufreq/interactive/enable_prediction" ]; then
chmod 644 /sys/devices/system/cpu/cpu0/cpufreq/interactive/enable_prediction
echo 0 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/enable_prediction
fi
sleep 0.5
#Apply settings to Big cluster
echo Applying settings to BIG Cluster
sleep 0.2
#Temporarily change permissions to governor files for the LITTLE cluster to enable Interactive governor
chmod 644 /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor
echo interactive > /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor
chmod 444 /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor
#Grab Maximum Achievable Frequency for the Big Cluster
maxfreq=$(cat "/sys/devices/system/cpu/cpu2/cpufreq/cpuinfo_max_freq")
if test $maxfreq -eq 2150400; then
#Temporarily change permissions to governor files for the Big cluster to set the maximum frequency to 2150MHz
echo No BIG Cluster Overclocking detected.
echo Applying appropriate values.
chmod 644 /sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq
echo 2150400 > /sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq #Core 2 Maximum Frequency = 2150MHz
chmod 444 /sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq
chmod 644 /sys/devices/system/cpu/cpu2/cpufreq/interactive/target_loads
echo 65 940800:80 1036800:2 1401600:95 1824000:98 > /sys/devices/system/cpu/cpu2/cpufreq/interactive/target_loads
chmod 444 /sys/devices/system/cpu/cpu2/cpufreq/interactive/target_loads
#Set overclock max frequency compatible target_loads
elif test $maxfreq -eq 2265600; then
#Temporarily change permissions to governor files for the Big cluster to set the maximum frequency to 2265MHz
echo BIG Cluster Overclocking detected.
echo Applying appropriate values.
chmod 644 /sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq
echo 2265600 > /sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq #Core 2 Maximum Frequency = 2265MHz
chmod 444 /sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq
chmod 644 /sys/devices/system/cpu/cpu2/cpufreq/interactive/target_loads
echo 65 940800:80 1036800:2 1401600:95 1824000:98 > /sys/devices/system/cpu/cpu2/cpufreq/interactive/target_loads
chmod 444 /sys/devices/system/cpu/cpu2/cpufreq/interactive/target_loads
fi
if test $maxfreq -lt 2150400; then
#Temporarily change permissions to governor files for the Big cluster to set the maximum frequency to 1593MHz
echo BIG Cluster Underclocking detected!!
sleep 1
echo We recommend not to UnderClock the CPU as the tweaks already will take care of that If needed
echo The tweaks will continue getting applied but we recommend setting the CPU to Max frequency!
sleep 4
#chmod 644 /sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq
#echo 1593600 > /sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq #Core 0 Maximum Frequency = 1593MHz
#chmod 444 /sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq
chmod 644 /sys/devices/system/cpu/cpu2/cpufreq/interactive/target_loads
echo 65 940800:80 1036800:2 1401600:95 1824000:98 > /sys/devices/system/cpu/cpu2/cpufreq/interactive/target_loads
chmod 444 /sys/devices/system/cpu/cpu2/cpufreq/interactive/target_loads
elif test $maxfreq -gt 2265600; then
#Temporarily change permissions to governor files for the Little cluster to set the maximum frequency to 1728MHz
echo BIG Cluster Overclocking detected.
sleep 1
echo This OverClock is higher than normal and only possible on Xceed Kernel
echo The tweak will continue getting applyed
echo " Althought it might no reach the maximum frequency you have setted as it haven't been made to work with frecuencies higher than 2265600 Mhz "
sleep 4
#chmod 644 /sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq
#echo 1728000 > /sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq #Core 0 Maximum Frequency = 1728MHz
#chmod 444 /sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq
chmod 644 /sys/devices/system/cpu/cpu2/cpufreq/interactive/target_loads
echo 65 940800:80 1036800:99 1401600:95 1824000:98 > /sys/devices/system/cpu/cpu2/cpufreq/interactive/target_loads
chmod 444 /sys/devices/system/cpu/cpu2/cpufreq/interactive/target_loads
fi
sleep 0.5
#Tweak Interactive Governor
chmod 644 /sys/devices/system/cpu/cpu2/cpufreq/*
echo 140000 > /sys/devices/system/cpu/cpu2/cpufreq/interactive/timer_slack
echo 1401600 > /sys/devices/system/cpu/cpu2/cpufreq/interactive/hispeed_freq
echo 65000 > /sys/devices/system/cpu/cpu2/cpufreq/interactive/timer_rate
echo 32000 940800:85000 1248000:96000 1401600:88000 1632000:80000 > /sys/devices/system/cpu/cpu2/cpufreq/interactive/above_hispeed_delay
echo 99 > /sys/devices/system/cpu/cpu2/cpufreq/interactive/go_hispeed_load
echo 11000 > /sys/devices/system/cpu/cpu2/cpufreq/interactive/min_sample_time
echo 0 > /sys/devices/system/cpu/cpu2/cpufreq/interactive/max_freq_hysteresis
echo 1 > /sys/devices/system/cpu/cpu2/cpufreq/interactive/ignore_hispeed_on_notif
echo 0 > /sys/devices/system/cpu/cpu2/cpufreq/interactive/boost
echo 1 > /sys/devices/system/cpu/cpu2/cpufreq/interactive/fast_ramp_down
echo 0 > /sys/devices/system/cpu/cpu2/cpufreq/interactive/align_windows
echo 1 > /sys/devices/system/cpu/cpu2/cpufreq/interactive/use_migration_notif
echo 0 > /sys/devices/system/cpu/cpu2/cpufreq/interactive/use_sched_load
echo 0 > /sys/devices/system/cpu/cpu2/cpufreq/interactive/boostpulse_duration
echo 0 > /sys/devices/system/cpu/cpu2/cpufreq/interactive/io_is_busy
if [ -e "/sys/devices/system/cpu/cpu2/cpufreq/interactive/enable_prediction" ]; then
chmod 644 /sys/devices/system/cpu/cpu2/cpufreq/interactive/enable_prediction
echo 0 > /sys/devices/system/cpu/cpu2/cpufreq/interactive/enable_prediction
fi
echo "=========================================="
echo Checking whether you are using a Sultanxda based ROM or not
echo "=========================================="
#Checking whether you are using a Sultanxda based ROM or not
echo Checking ROM...
sleep 0.2
echo Applying appropriate values.
if [ -e "/sys/kernel/cpu_input_boost/enabled" ]; then
echo Enabling Input Boost for the LITTLE cluster @556 MHz and for the BIG Cluster @0Mhz and Custom thermal driver of Sultanxda
chmod 644 /sys/kernel/cpu_input_boost/*
echo 1 > /sys/kernel/cpu_input_boost/enabled
echo 66 > /sys/kernel/cpu_input_boost/ib_duration_ms
echo 556800 0 > /sys/kernel/cpu_input_boost/ib_freqs
chmod 444 /sys/kernel/cpu_input_boost/*
chmod 644 /sys/kernel/msm_thermal/enabled
echo 0 > /sys/kernel/msm_thermal/enabled
chmod 444 /sys/kernel/msm_thermal/enabled
else
#Checking whether you are using a Lineage based ROM or not
echo Checking ROM...
sleep 0.2
if grep -q 'ro.build.flavor=lineage_oneplus3-userdebug' /system/build.prop; then
#Enable Input Boost for LITTLE cluster @556MHz and for BIG cluster @729MHz for 66ms
echo Lineage Based ROM detected
echo Applying appropriate values.
echo Enabling Input Boost at 556 MHz for the LITTLE cluster and at 0 MHz for the BIG Cluster
if [ -e "/sys/module/cpu_boost/parameters/input_boost_freq" ]; then
chmod 644 /sys/module/cpu_boost/parameters/input_boost_freq
echo 0:556800 1:0 2:0 3:0 > /sys/module/cpu_boost/parameters/input_boost_freq
chmod 644 /sys/module/cpu_boost/parameters/input_boost_ms
echo 55 > /sys/module/cpu_boost/parameters/input_boost_ms
else
echo "*Input Boost is not avalible for your Kernel*"
fi
if [ -e "/sys/module/cpu_boost/parameters/boost_ms" ]; then
chmod 644 /sys/module/cpu_boost/parameters/boost_ms
echo 0 > /sys/module/cpu_boost/parameters/boost_ms
else
echo "*Cpu_Boost is not avalible for your Kernel*"
fi
else
#Enable Input Boost for LITTLE cluster @729MHz and for BIG cluster @729Hz for 100ms
echo Non-Lineage ROM detected
echo Applying appropriate values.
echo Enabling Input Boost at 729 MHz for the LITTLE cluster and at 0 MHz for the BIG Cluster
if [ -e "/sys/module/cpu_boost/parameters/input_boost_freq" ]; then
chmod 644 /sys/module/cpu_boost/parameters/input_boost_freq
echo 0:729600 1:0 2:0 3:0 > /sys/module/cpu_boost/parameters/input_boost_freq
chmod 644 /sys/module/cpu_boost/parameters/input_boost_ms
echo 77 > /sys/module/cpu_boost/parameters/input_boost_ms
else
echo "*Input Boost is not avalible for your Kernel*"
fi
if [ -e "/sys/module/cpu_boost/parameters/boost_ms" ]; then
chmod 644 /sys/module/cpu_boost/parameters/boost_ms
echo 0 > /sys/module/cpu_boost/parameters/boost_ms
else
echo "*Cpu_Boost is not avalible for your Kernel*"
fi
fi
fi
sleep 0.3
echo "=========================================="
#Disable TouchBoost
echo Disabling TouchBoost
if [ -e "/sys/module/msm_performance/parameters/touchboost" ]; then
chmod 644 /sys/module/msm_performance/parameters/touchboost
echo 0 > /sys/module/msm_performance/parameters/touchboost
else
echo "*Not supported for your current Kernel*"
fi
#Disable BCL
echo Disabling BCL and Removing Perfd
if [ -e "/sys/devices/soc/soc:qcom,bcl/mode" ]; then
echo -n disable > /sys/devices/soc/soc:qcom,bcl/mode
fi
#Enable Core Control and Disable MSM Thermal Throttling allowing for longer sustained performance
echo Disabling Aggressive CPU Thermal Throttling
if [ -e "/sys/module/msm_thermal/core_control/enabled" ]; then
echo 1 > /sys/module/msm_thermal/core_control/enabled
fi
if [ -e "/sys/module/msm_thermal/parameters/enabled" ]; then
echo N > /sys/module/msm_thermal/parameters/enabled
fi
#Tweak HMP Scheduler to feed the Big cluster more tasks
sleep 0.3
#echo Tweaking HMP Scheduler for correcting BIG Cluster utilization
echo 2 > /proc/sys/kernel/sched_window_stats_policy
echo 85 > /proc/sys/kernel/sched_upmigrate
echo 62 > /proc/sys/kernel/sched_downmigrate
echo 5 > /proc/sys/kernel/sched_spill_nr_run
echo 100 > /proc/sys/kernel/sched_spill_load
echo 30 > /proc/sys/kernel/sched_init_task_load
if [ -e "/proc/sys/kernel/sched_heavy_task" ]; then
echo 65 > /proc/sys/kernel/sched_heavy_task
fi
if [ -e "/proc/sys/kernel/sched_enable_power_aware" ]; then
echo 1 > /proc/sys/kernel/sched_enable_power_aware
fi
echo 10 > /proc/sys/kernel/sched_upmigrate_min_nice
echo 4 > /proc/sys/kernel/sched_ravg_hist_size
if [ -e "/proc/sys/kernel/sched_small_wakee_task_load" ]; then
echo 7 > /proc/sys/kernel/sched_small_wakee_task_load
fi
if [ -e "/proc/sys/kernel/sched_wakeup_load_threshold" ]; then
echo 110 > /proc/sys/kernel/sched_wakeup_load_threshold
fi
if [ -e "/proc/sys/kernel/sched_small_task" ]; then
echo 7 > /proc/sys/kernel/sched_small_task
fi
if [ -e "/proc/sys/kernel/sched_big_waker_task_load" ]; then
echo 35 > /proc/sys/kernel/sched_big_waker_task_load
fi
echo 950000 > /proc/sys/kernel/sched_rt_runtime_us
echo 1000000 > /proc/sys/kernel/sched_rt_period_us
if [ -e "/proc/sys/kernel/sched_migration_fixup" ]; then
echo 1 > /proc/sys/kernel/sched_migration_fixup
fi
if [ -e "/proc/sys/kernel/sched_freq_dec_notify" ]; then
echo 410000 > /proc/sys/kernel/sched_freq_dec_notify
fi
if [ -e "/proc/sys/kernel/sched_freq_inc_notify" ]; then
echo 600000 > /proc/sys/kernel/sched_freq_inc_notify
fi
if [ -e "/proc/sys/kernel/sched_boost" ]; then
echo 0 > /proc/sys/kernel/sched_boost
fi
#Tweaks for other various Settings
sleep 0.5
echo "=========================================="
echo Tweaking other various Settings
echo ·I/O Values
if [ -d /sys/block/dm-0 ] || [ -d /sys/devices/virtual/block/dm-0 ]; then
if [ -e /sys/devices/virtual/block/dm-0/queue/scheduler ]; then
DM_PATH=/sys/devices/virtual/block/dm-0/queue
fi
if [ -e /sys/block/dm-0/queue/scheduler ]; then
DM_PATH=/sys/block/dm-0/queue
fi
string=/sys/devices/virtual/block/dm-0/queue/scheduler;
Zen_Available=false;
if $BB grep 'zen' $string; then
Zen_Available=true;
fi
if [ "$Zen_Available" == "true" ]; then
if [ -e $DM_PATH/scheduler_hard ]; then
echo zen > $DM_PATH/scheduler_hard
fi
echo zen > $DM_PATH/scheduler
sleep 2
echo 300 > $DM_PATH/iosched/sync_expire
echo 2800 > $DM_PATH/iosched/async_expire
echo 14 > $DM_PATH/iosched/fifo_batch
chmod 644 $DM_PATH/iosched/sync_expire
echo 300 > $DM_PATH/iosched/sync_expire
fi
if [ "$Zen_Available" = "false" ]; then
if grep -q 'ro.build.flavor=lineage_oneplus3-userdebug' /system/build.prop; then
echo ZEN not avalible, setting 'Noop' instead...
if [ -e $DM_PATH/scheduler_hard ]; then
echo noop > $DM_PATH/scheduler_hard
fi
echo noop > $DM_PATH/scheduler
else
echo ZEN not avalible, setting 'CFQ' instead...
if [ -e $DM_PATH/scheduler_hard ]; then
echo cfq > $DM_PATH/scheduler_hard
fi
echo cfq > $DM_PATH/scheduler
fi
fi
fi
for i in /sys/block/../devices/soc/624000.ufshc/host0/target0:0:0/0:0:0:[0-4]/block/*/queue; do
string4=$($BB readlink -f $i/scheduler | cut -d 'q' -f1 | cut -d 'k' -f2 | cut -d '/' -f2 | tr a-z A-Z)
string5=$($BB cat $i/scheduler | cut -d ']' -f1 | cut -d '[' -f2 | $BB tr a-z A-Z)
if [ "$string5" == "NOOP" ]; then
echo "Leaving $string4 block at default $string5"
echo ""
sleep 0.1
fi
if [ "$string5" != "NOOP" ]; then
echo "Changing $string4 block I/O scheduler"
if [ -e $i/scheduler_hard ]; then
echo zen > $i/scheduler_hard
fi
echo zen > $i/scheduler
echo ""
sleep 2
# Initialize string 6 to avoid reference conflicts
string6=$($BB cat $i/scheduler | cut -d ']' -f1 | cut -d '[' -f2)
if [ "$string6" == "zen" ]; then
echo 300 > $i/iosched/sync_expire
echo 2800 > $i/iosched/async_expire
echo 14 > $i/iosched/fifo_batch
chmod 644 $i/iosched/sync_expire
echo 300 > $i/iosched/sync_expire
fi
fi
done
if [ -e "$DM_PATH/iostats" ]; then
echo 0 > $DM_PATH/iostats
fi
if [ -e "$DM_PATH/rq_affinity" ]; then
echo 1 > $DM_PATH/rq_affinity
fi
if [ -e "/sys/block/dm-0/bdi/read_ahead_kb" ]; then
echo 512 > /sys/devices/virtual/block/dm-0/bdi/read_ahead_kb
fi
if [ -e "/sys/block/sda/bdi/read_ahead_kb" ]; then
echo 512 > /sys/block/sda/bdi/read_ahead_kb
fi
echo ·Memory Values
echo 0 > /proc/sys/vm/swappiness
echo 100 > /proc/sys/vm/vfs_cache_pressure
echo 80 > /proc/sys/vm/dirty_ratio
echo 20 > /proc/sys/vm/dirty_background_ratio
echo 4096 > /proc/sys/vm/min_free_kbytes
echo 100 > /proc/sys/vm/dirty_expire_centisecs
echo 250 > /proc/sys/vm/dirty_writeback_centisecs
echo 0 > /proc/sys/vm/oom_kill_allocating_task
echo 3 > /proc/sys/vm/page-cluster
if [ -e "/sys/module/lowmemorykiller/parameters/enable_adaptive_lmk" ]; then
chmod 666 /sys/module/lowmemorykiller/parameters/enable_adaptive_lmk
chown root /sys/module/lowmemorykiller/parameters/enable_adaptive_lmk
echo 0 > /sys/module/lowmemorykiller/parameters/enable_adaptive_lmk
fi
if [ -e "/sys/module/lowmemorykiller/parameters/enable_adaptive_lmk" ]; then
echo 0 > /sys/module/lowmemorykiller/parameters/enable_adaptive_lmk
else
echo ' *Adaptive LMK is not present on your Kernel* '
fi
if [ -e "/sys/module/lowmemorykiller/parameters/minfree" ]; then
echo 23939,44091,58788,73485,88182,102879 > /sys/module/lowmemorykiller/parameters/minfree
else
echo ' *LMK cannot currently be modified on your Kernel* '
fi
echo ·TCP Values
string2=/proc/sys/net/ipv4/tcp_available_congestion_control
if grep 'westwood' $string2; then
echo westwood > /proc/sys/net/ipv4/tcp_congestion_control
else
echo Westwood not avilable, using Cubic
echo cubic > /proc/sys/net/ipv4/tcp_congestion_control
fi
#Tweaking GPU
sleep 0.4
echo GPU Tweaking
echo msm-adreno-tz > /sys/devices/soc/b00000.qcom,kgsl-3d0/devfreq/b00000.qcom,kgsl-3d0/governor
if grep -q 'ro.build.version.sdk=25' /system/build.prop; then
if grep -q 'ro.build.flavor=lineage_oneplus3-userdebug' /system/build.prop; then
echo 510000000 > /sys/class/kgsl/kgsl-3d0/max_gpuclk
else
echo 560000000 > /sys/class/kgsl/kgsl-3d0/max_gpuclk
fi
fi
if grep -q 'ro.build.version.sdk=24' /system/build.prop; then
if grep -q 'ro.build.flavor=lineage_oneplus3-userdebug' /system/build.prop; then
echo 510000000 > /sys/class/kgsl/kgsl-3d0/max_gpuclk
else
echo 560000000 > /sys/class/kgsl/kgsl-3d0/max_gpuclk
fi
fi
if grep -q 'ro.build.version.sdk=23' /system/build.prop; then
if grep -q 'ro.build.flavor=lineage_oneplus3-userdebug' /system/build.prop; then
echo 560000000 > /sys/devices/soc/b00000.qcom,kgsl-3d0/devfreq/b00000.qcom,kgsl-3d0/max_freq
else
echo 560000000 > /sys/devices/soc/b00000.qcom,kgsl-3d0/devfreq/b00000.qcom,kgsl-3d0/max_freq
fi
else
if grep -q 'ro.build.flavor=lineage_oneplus3-userdebug' /system/build.prop; then
echo 510000000 > /sys/devices/soc/b00000.qcom,kgsl-3d0/devfreq/b00000.qcom,kgsl-3d0/max_freq
else
echo 560000000 > /sys/devices/soc/b00000.qcom,kgsl-3d0/devfreq/b00000.qcom,kgsl-3d0/max_freq
fi
fi
sleep 1
echo ------------------------------------------------------------
echo 'Project Zhana v4.3' Successfully Applied!
echo "Project Zhana Battery" > /data/system/current_profile
echo You may now tweak them further
echo using EXKM or Kernel Adiutor
echo ------------------------------------------------------------
echo ""
echo " Done, this will be automatically closed..."
sleep 4
#################################################
#Modded by Asiier
#Please say thanks and give proper credits if you're using this profile.
#Credits
#*soniCron *Alcolawl *RogerF81 *Patalao *Mostafa Wael *Senthil360 and all of those that have share their profiles on Nexus 5X/6P Advanced Interactive Tweaks respective threads.
Important are:
Small Cores Tweaks.
echo 70 480000:65 556800:75 729600:82 960000:86 1036800:2 1228800:99 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/target_loads
echo 220000 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/timer_slack
echo 307200 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/hispeed_freq
echo 100000 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/timer_rate
echo 0 729600:76000 960000:99000 1228800:150000 1478400:170000 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/above_hispeed_delay
echo 155 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/go_hispeed_load
echo 22000 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/min_sample_time
echo 0 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/max_freq_hysteresis
echo 0 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/ignore_hispeed_on_notif
echo 0 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/boost
echo 0 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/fast_ramp_down
echo 0 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/align_windows
echo 1 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/use_migration_notif
echo 0 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/use_sched_load
echo 0 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/boostpulse_duration
echo 0 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/io_is_busy
if [ -e "/sys/devices/system/cpu/cpu0/cpufreq/interactive/enable_prediction" ]; then
chmod 644 /sys/devices/system/cpu/cpu0/cpufreq/interactive/enable_prediction
echo 0 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/enable_prediction
fi
Big Cores Tweaks:
echo 65 940800:80 1036800:2 1401600:95 1824000:98 > /sys/devices/system/cpu/cpu2/cpufreq/interactive/target_loads
echo 140000 > /sys/devices/system/cpu/cpu2/cpufreq/interactive/timer_slack
echo 1401600 > /sys/devices/system/cpu/cpu2/cpufreq/interactive/hispeed_freq
echo 65000 > /sys/devices/system/cpu/cpu2/cpufreq/interactive/timer_rate
echo 32000 940800:85000 1248000:96000 1401600:88000 1632000:80000 > /sys/devices/system/cpu/cpu2/cpufreq/interactive/above_hispeed_delay
echo 99 > /sys/devices/system/cpu/cpu2/cpufreq/interactive/go_hispeed_load
echo 11000 > /sys/devices/system/cpu/cpu2/cpufreq/interactive/min_sample_time
echo 0 > /sys/devices/system/cpu/cpu2/cpufreq/interactive/max_freq_hysteresis
echo 1 > /sys/devices/system/cpu/cpu2/cpufreq/interactive/ignore_hispeed_on_notif
echo 0 > /sys/devices/system/cpu/cpu2/cpufreq/interactive/boost
echo 1 > /sys/devices/system/cpu/cpu2/cpufreq/interactive/fast_ramp_down
echo 0 > /sys/devices/system/cpu/cpu2/cpufreq/interactive/align_windows
echo 1 > /sys/devices/system/cpu/cpu2/cpufreq/interactive/use_migration_notif
echo 0 > /sys/devices/system/cpu/cpu2/cpufreq/interactive/use_sched_load
echo 0 > /sys/devices/system/cpu/cpu2/cpufreq/interactive/boostpulse_duration
echo 0 > /sys/devices/system/cpu/cpu2/cpufreq/interactive/io_is_busy
if [ -e "/sys/devices/system/cpu/cpu2/cpufreq/interactive/enable_prediction" ]; then
chmod 644 /sys/devices/system/cpu/cpu2/cpufreq/interactive/enable_prediction
echo 0 > /sys/devices/system/cpu/cpu2/cpufreq/interactive/enable_prediction
fi
#Enable Input Boost for LITTLE cluster @729MHz and for BIG cluster @729Hz for 100ms
echo Non-Lineage ROM detected
echo Applying appropriate values.
echo Enabling Input Boost at 729 MHz for the LITTLE cluster and at 0 MHz for the BIG Cluster
if [ -e "/sys/module/cpu_boost/parameters/input_boost_freq" ]; then
chmod 644 /sys/module/cpu_boost/parameters/input_boost_freq
echo 0:729600 1:0 2:0 3:0 > /sys/module/cpu_boost/parameters/input_boost_freq
chmod 644 /sys/module/cpu_boost/parameters/input_boost_ms
echo 77 > /sys/module/cpu_boost/parameters/input_boost_ms
else
echo "*Input Boost is not avalible for your Kernel*"
fi
#echo Tweaking HMP Scheduler for correcting BIG Cluster utilization
echo 2 > /proc/sys/kernel/sched_window_stats_policy
echo 85 > /proc/sys/kernel/sched_upmigrate
echo 62 > /proc/sys/kernel/sched_downmigrate
echo 5 > /proc/sys/kernel/sched_spill_nr_run
echo 100 > /proc/sys/kernel/sched_spill_load
echo 30 > /proc/sys/kernel/sched_init_task_load
it prefers Zen, if not available goes to noop or CFQ
Some Memory tweaks..
cho ·Memory Values
echo 0 > /proc/sys/vm/swappiness
echo 100 > /proc/sys/vm/vfs_cache_pressure
echo 80 > /proc/sys/vm/dirty_ratio
echo 20 > /proc/sys/vm/dirty_background_ratio
echo 4096 > /proc/sys/vm/min_free_kbytes
echo 100 > /proc/sys/vm/dirty_expire_centisecs
echo 250 > /proc/sys/vm/dirty_writeback_centisecs
echo 0 > /proc/sys/vm/oom_kill_allocating_task
echo 3 > /proc/sys/vm/page-cluster
tries to set TCP to westwood if not cubic.
echo msm-adreno-tz > /sys/devices/soc/b00000.qcom,kgsl-3d0/devfreq/b00000.qcom,kgsl-3d0/governor
Oh... and the whole zip is made for SDK25 or lower so not really O compatible.
So yeah... you'd better set the values you'd want manually instead of relying on a outdated all in one wonder script.
timbohobbs said:
Are you using stock elemental x settings or other ?
Click to expand...
Click to collapse
Stock
Haldi4803 said:
Important are:
Small Cores Tweaks.
echo 70 480000:65 556800:75 729600:82 960000:86 1036800:2 1228800:99 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/target_loads
echo 220000 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/timer_slack
echo 307200 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/hispeed_freq
echo 100000 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/timer_rate
echo 0 729600:76000 960000:99000 1228800:150000 1478400:170000 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/above_hispeed_delay
echo 155 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/go_hispeed_load
echo 22000 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/min_sample_time
echo 0 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/max_freq_hysteresis
echo 0 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/ignore_hispeed_on_notif
echo 0 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/boost
echo 0 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/fast_ramp_down
echo 0 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/align_windows
echo 1 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/use_migration_notif
echo 0 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/use_sched_load
echo 0 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/boostpulse_duration
echo 0 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/io_is_busy
if [ -e "/sys/devices/system/cpu/cpu0/cpufreq/interactive/enable_prediction" ]; then
chmod 644 /sys/devices/system/cpu/cpu0/cpufreq/interactive/enable_prediction
echo 0 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/enable_prediction
fi
Big Cores Tweaks:
echo 65 940800:80 1036800:2 1401600:95 1824000:98 > /sys/devices/system/cpu/cpu2/cpufreq/interactive/target_loads
echo 140000 > /sys/devices/system/cpu/cpu2/cpufreq/interactive/timer_slack
echo 1401600 > /sys/devices/system/cpu/cpu2/cpufreq/interactive/hispeed_freq
echo 65000 > /sys/devices/system/cpu/cpu2/cpufreq/interactive/timer_rate
echo 32000 940800:85000 1248000:96000 1401600:88000 1632000:80000 > /sys/devices/system/cpu/cpu2/cpufreq/interactive/above_hispeed_delay
echo 99 > /sys/devices/system/cpu/cpu2/cpufreq/interactive/go_hispeed_load
echo 11000 > /sys/devices/system/cpu/cpu2/cpufreq/interactive/min_sample_time
echo 0 > /sys/devices/system/cpu/cpu2/cpufreq/interactive/max_freq_hysteresis
echo 1 > /sys/devices/system/cpu/cpu2/cpufreq/interactive/ignore_hispeed_on_notif
echo 0 > /sys/devices/system/cpu/cpu2/cpufreq/interactive/boost
echo 1 > /sys/devices/system/cpu/cpu2/cpufreq/interactive/fast_ramp_down
echo 0 > /sys/devices/system/cpu/cpu2/cpufreq/interactive/align_windows
echo 1 > /sys/devices/system/cpu/cpu2/cpufreq/interactive/use_migration_notif
echo 0 > /sys/devices/system/cpu/cpu2/cpufreq/interactive/use_sched_load
echo 0 > /sys/devices/system/cpu/cpu2/cpufreq/interactive/boostpulse_duration
echo 0 > /sys/devices/system/cpu/cpu2/cpufreq/interactive/io_is_busy
if [ -e "/sys/devices/system/cpu/cpu2/cpufreq/interactive/enable_prediction" ]; then
chmod 644 /sys/devices/system/cpu/cpu2/cpufreq/interactive/enable_prediction
echo 0 > /sys/devices/system/cpu/cpu2/cpufreq/interactive/enable_prediction
fi
#Enable Input Boost for LITTLE cluster @729MHz and for BIG cluster @729Hz for 100ms
echo Non-Lineage ROM detected
echo Applying appropriate values.
echo Enabling Input Boost at 729 MHz for the LITTLE cluster and at 0 MHz for the BIG Cluster
if [ -e "/sys/module/cpu_boost/parameters/input_boost_freq" ]; then
chmod 644 /sys/module/cpu_boost/parameters/input_boost_freq
echo 0:729600 1:0 2:0 3:0 > /sys/module/cpu_boost/parameters/input_boost_freq
chmod 644 /sys/module/cpu_boost/parameters/input_boost_ms
echo 77 > /sys/module/cpu_boost/parameters/input_boost_ms
else
echo "*Input Boost is not avalible for your Kernel*"
fi
#echo Tweaking HMP Scheduler for correcting BIG Cluster utilization
echo 2 > /proc/sys/kernel/sched_window_stats_policy
echo 85 > /proc/sys/kernel/sched_upmigrate
echo 62 > /proc/sys/kernel/sched_downmigrate
echo 5 > /proc/sys/kernel/sched_spill_nr_run
echo 100 > /proc/sys/kernel/sched_spill_load
echo 30 > /proc/sys/kernel/sched_init_task_load
it prefers Zen, if not available goes to noop or CFQ
Some Memory tweaks..
cho ·Memory Values
echo 0 > /proc/sys/vm/swappiness
echo 100 > /proc/sys/vm/vfs_cache_pressure
echo 80 > /proc/sys/vm/dirty_ratio
echo 20 > /proc/sys/vm/dirty_background_ratio
echo 4096 > /proc/sys/vm/min_free_kbytes
echo 100 > /proc/sys/vm/dirty_expire_centisecs
echo 250 > /proc/sys/vm/dirty_writeback_centisecs
echo 0 > /proc/sys/vm/oom_kill_allocating_task
echo 3 > /proc/sys/vm/page-cluster
tries to set TCP to westwood if not cubic.
echo msm-adreno-tz > /sys/devices/soc/b00000.qcom,kgsl-3d0/devfreq/b00000.qcom,kgsl-3d0/governor
Oh... and the whole zip is made for SDK25 or lower so not really O compatible.
So yeah... you'd better set the values you'd want manually instead of relying on a outdated all in one wonder script.
Click to expand...
Click to collapse
That would work if I knew how to set all those values. For me though I do not.
So i was checking this out and in the FAQ thread here: https://forum.xda-developers.com/showpost.php?p=69037152&postcount=3
Near the top it mentions the HTC10 with a link that explains why it doesn't work or doesn't work as well on an HTC device, linked here: https://forum.xda-developers.com/showpost.php?p=70815496&postcount=2864
The long and short of it is I guess HTC uses there own proprietary pnp manager. But it does go on to say that someone else took the work being done with AKT and made a unified kernel tweak, linked here: https://forum.xda-developers.com/htc-10/development/advanced-interactive-governor-tweaks-t3543589 Which i guess works for anything including HTC's stock kernel.
whew........ So i guess my question first of all is are you using AKT, or are you using Soilwork: Unified kernel-tweaks?
I guess the next question is those of us using modded kernel (cleanslate and Elemental X) Do those kernels have HTC's proprietary pnp manager turned on and they are just tweaking it, or do they shut it off completely and go there own route.
If they shut it off completely then it sounds like AKT is the way to go, but if they don't are are just tweaking HTC's pnp manager, it sounds like the Soilwork tweak is the way to go.
BTW i also use Leedoird, but i'm rocking the CleanSlate kernel atm.
Void4ever
void4ever said:
So i was checking this out and in the FAQ thread here: https://forum.xda-developers.com/showpost.php?p=69037152&postcount=3
Near the top it mentions the HTC10 with a link that explains why it doesn't work or doesn't work as well on an HTC device, linked here: https://forum.xda-developers.com/showpost.php?p=70815496&postcount=2864
The long and short of it is I guess HTC uses there own proprietary pnp manager. But it does go on to say that someone else took the work being done with AKT and made a unified kernel tweak, linked here: https://forum.xda-developers.com/htc-10/development/advanced-interactive-governor-tweaks-t3543589 Which i guess works for anything including HTC's stock kernel.
whew........ So i guess my question first of all is are you using AKT, or are you using Soilwork: Unified kernel-tweaks?
I guess the next question is those of us using modded kernel (cleanslate and Elemental X) Do those kernels have HTC's proprietary pnp manager turned on and they are just tweaking it, or do they shut it off completely and go there own route.
If they shut it off completely then it sounds like AKT is the way to go, but if they don't are are just tweaking HTC's pnp manager, it sounds like the Soilwork tweak is the way to go.
BTW i also use Leedoird, but i'm rocking the CleanSlate kernel atm.
Void4ever
Click to expand...
Click to collapse
Using AKT. And enabled through terminal.And no I didn't disable pnp mgr, I'm guessing it overrides it. And soilwork won't flash. Akt is working fine for me no reboots or massive drains or wakelocks.No excessive heat either running cool as a cucumber,so until pnp is updated I chose to use this route. I'm getting better averages than I was on Nougat. 4.5 hrs on screen currently 27% battery remaining and 16 hours off charger. Try it and see what you think.
mattie_49 said:
Using AKT. And enabled through terminal.And no I didn't disable pnp mgr, I'm guessing it overrides it. And soilwork won't flash. Akt is working fine for me no reboots or massive drains or wakelocks.No excessive heat either running cool as a cucumber,so until pnp is updated I chose to use this route. I'm getting better averages than I was on Nougat. 4.5 hrs on screen currently 27% battery remaining and 16 hours off charger. Try it and see what you think.
Click to expand...
Click to collapse
Hi, do you think this would work on Nougat? I have random reboots at 40% battery left.
NickDVS said:
Hi, do you think this would work on Nougat? I have random reboots at 40% battery left.
Click to expand...
Click to collapse
I'm sure. Try and see
I've done all of this before & it only helps slightly. The drain is related to HTC's framework & it's dialer, and the only way to truly stop the drain is to use airplane mode...which kind of defeats the purpose of it being a phone.
This battery issue is non-existent with LineageOS 15.1 & AOSiP 8.1, running on Oreo firmware. Both of those ROMs work fine, but still have bugs: bottom speaker barely works & Bluetooth issues.
mattie_49 said:
Using AKT. And enabled through terminal.And no I didn't disable pnp mgr, I'm guessing it overrides it. And soilwork won't flash. Akt is working fine for me no reboots or massive drains or wakelocks.No excessive heat either running cool as a cucumber,so until pnp is updated I chose to use this route. I'm getting better averages than I was on Nougat. 4.5 hrs on screen currently 27% battery remaining and 16 hours off charger. Try it and see what you think.
Click to expand...
Click to collapse
I am o. Leedroid 5.2 with stock kernel tweaked by leedroid, can I install a stock stock kernel and what rom do you have?
Is this AKT still work after reboot? Or we must re-enable it after reboot?
fresh777 said:
Is this AKT still work after reboot? Or we must re-enable it after reboot?
Click to expand...
Click to collapse
Must use a terminal emulator. Type su enter
Then type AKT then it's self explainable, choose your profile.
mattie_49 said:
Must use a terminal emulator. Type su enter
Then type AKT then it's self explainable, choose your profile.
Click to expand...
Click to collapse
Thanks for the reply. I mean after run AKT from terminal and done. For the next reboot, i must repeat the step or not?
fresh777 said:
Thanks for the reply. I mean after run AKT from terminal and done. For the next reboot, i must repeat the step or not?
Click to expand...
Click to collapse
No. All done till you wanna change profiles if at all. Terminal will tell you what profile is active after AKT enter
mattie_49 said:
No. All done till you wanna change profiles if at all. Terminal will tell you what profile is active after AKT enter
Click to expand...
Click to collapse
Thank you. I just use this in aosip 8.1 rom. Don't see any improvement for battery life. But for hot issue, i didn't got this issue when use AKT.
Ninja X said:
I am o. Leedroid 5.2 with stock kernel tweaked by leedroid, can I install a stock stock kernel and what rom do you have?
Click to expand...
Click to collapse
the stock kernel in leedroid is not tweaked, you either have the actual stock kernel or the cleanslate kernel.
Oooh.

MIUI Debloat + Optmizations

Hey Guys, i've made a script to debloat MIUI and to install some Kernel optimizations at the INIT.D folder plus anti Google Play Services Wakelock Script (at INIT.D as well).
Usually i use it on mi-globe and MIUI-MIX but it should work for Xiaomi.eu, Global and Chinese ROMs too (both beta and stable).
Thanks to @kevp75 for the line:
Code:
ifelse(
(is_mounted("/system")), (
assert(run_program("/sbin/mount", "-o", "remount,rw", "/system"));
), (
assert(run_program("/sbin/mount", "-o", "rw", "/dev/block/bootdevice/by-name/system", "/system_root"));
)
);
ATTENTION!! I ONLY RECOMMEND USING THE OFFICIAL TWRP, ORANGEFOX AND MAURONO UNOFFICIAL DOES NOT WORK!!
https://twrp.me/xiaomi/xiaomimi9t.html
Instalation:
1 - Reboot in to TWRP after first boot and setup.
2 - Make a nanodroid full system Backup for safety.
3 - Go to Mount and make sure SYSTEM is mounted!
4 - Run the script.
5 - Reboot in to system.
6 - Profit.
If you wipe the system partition, you will need to reboot in to the OS and back to TWRP before flash the debloat script.
Download:
https://androidfilehost.com/?fid=4349826312261796697
What will it debloat:
Code:
delete_recursive("/system/app/AiAsstVision");
delete_recursive("/system/app/AnalyticsCore");
delete_recursive("/system/app/BTProductionLineTool");
delete_recursive("/system/app/BasicDreams");
delete_recursive("/system/app/BookmarkProvider");
delete_recursive("/system/app/BuiltInPrintService");
delete_recursive("/system/app/CatchLog");
delete_recursive("/system/app/Cit");
delete_recursive("/system/app/CloudPrint2");
delete_recursive("/system/app/Email");
delete_recursive("/system/app/FM");
delete_recursive("/system/app/GooglePrintRecommendationService");
delete_recursive("/system/app/GoogleTTS");
delete_recursive("/system/app/GuardProvider");
delete_recursive("/system/app/Health");
delete_recursive("/system/app/Joyose");
delete_recursive("/system/app/KSICibaEngine");
delete_recursive("/system/app/Lens");
delete_recursive("/system/app/MarkupGoogle");
delete_recursive("/system/app/MiLinkService");
delete_recursive("/system/app/MiPlayClient");
delete_recursive("/system/app/MiRadio");
delete_recursive("/system/app/MiuiBugReport");
delete_recursive("/system/app/MiuiCompass");
delete_recursive("/system/app/MiuiContentCatcher");
delete_recursive("/system/app/MiuiDaemon");
delete_recursive("/system/app/MiuiAccessibility");
delete_recursive("/system/app/MiuiSuperMarket");
delete_recursive("/system/app/MiuiVideoGlobal");
delete_recursive("/system/app/NextPay");
delete_recursive("/system/app/PartnerBookmarksProvider");
delete_recursive("/system/app/PaymentService");
delete_recursive("/system/app/PrintRecommendationService");
delete_recursive("/system/app/PrintSpooler");
delete_recursive("/system/app/SoundPickerPrebuilt");
delete_recursive("/system/app/Stk");
delete_recursive("/system/app/WPS_lite");
delete_recursive("/system/app/XMCloudEngine");
delete_recursive("/system/app/YellowPage");
delete_recursive("/system/app/YouDaoEngine");
delete_recursive("/system/app/greenguard");
delete_recursive("/system/app/lens");
delete_recursive("/system/app/mi_connect_service");
delete_recursive("/system/app/wps_lite");
delete_recursive("/system/app/Zman");
delete_recursive("/system/data-app/");
delete_recursive("/system/data-app/BaiduIME");
delete_recursive("/system/data-app/Email");
delete_recursive("/system/data-app/MiFinance");
delete_recursive("/system/data-app/MiMobileNoti");
delete_recursive("/system/data-app/MiShop");
delete_recursive("/system/data-app/XiaomiSpeechEngine");
delete_recursive("/system/data-app/cn.wps.moffice_eng");
delete_recursive("/system/data-app/com.eg.android.AlipayGphone");
delete_recursive("/system/data-app/com.taobao.taobao");
delete_recursive("/system/data-app/com.xunmeng.pinduoduo");
delete_recursive("/system/priv-app/BATestApp");
delete_recursive("/system/priv-app/CleanMaster");
delete_recursive("/system/priv-app/DynamicSystemInstallationService");
delete_recursive("/system/priv-app/GoogleFeedback");
delete_recursive("/system/priv-app/GooglePartnerSetup");
delete_recursive("/system/priv-app/HotwordEnrollmentOKGoogleWCD9340");
delete_recursive("/system/priv-app/HotwordEnrollmentXGoogleWCD9340");
delete_recursive("/system/priv-app/MiMoverGlobal");
delete_recursive("/system/priv-app/MiRecycle");
delete_recursive("/system/priv-app/MiService");
delete_recursive("/system/priv-app/MiShare");
delete_recursive("/system/priv-app/PersonalAssistant");
delete_recursive("/system/priv-app/QuickSearchBox");
delete_recursive("/system/priv-app/Updater");
delete_recursive("/system/priv-app/Velvet");
delete_recursive("/system/priv-app/VpnDialogs");
delete_recursive("/system/priv-app/WellbeingPrebuilt");
delete_recursive("/system/priv-app/YellowPage");
delete_recursive("/system/product/app/GoogleLocationHistory");
delete_recursive("/system/product/app/GoogleTTS");
delete_recursive("/system/product/app/SoundPickerPrebuilt");
delete_recursive("/system/product/app/uceShimService");
delete_recursive("/system/product/app/xdivert");
delete_recursive("/system/product/priv-app/CarrierServices");
delete_recursive("/system/product/priv-app/GoogleAssistant");
delete_recursive("/system/product/priv-app/GoogleFeedback");
delete_recursive("/system/product/priv-app/HotwordEnrollmentOKGoogleHEXAGON");
delete_recursive("/system/product/priv-app/HotwordEnrollmentXGoogleHEXAGON");
delete_recursive("/system/product/priv-app/Launcher3QuickStep");
delete_recursive("/system/product/priv-app/Velvet");
delete_recursive("/system/vendor/app/CneApp");
delete_recursive("/system/vendor/app/aiasst_service");
delete_recursive("/system/vendor/data-app/");
delete_recursive("/system/vendor/data-app/SmartHome");
delete_recursive("/system/vendor/data-app/aiasst_service");
delete_recursive("/system/vendor/data-app/wps-lite");
Kernel Optimization Script:
Code:
#!/system/bin/sh
setenforce 0
set enforce 0
echo 'Y' > /sys/module/sync/parameters/fsync_enabled
sysctl -w net.ipv4.tcp_congestion_control=cubic
#echo '254 255 256' > /sys/devices/platform/kcal_ctrl.0/kcal
#echo '1' > /sys/devices/platform/kcal_ctrl.0/kcal_enable
#echo '290' > /sys/devices/platform/kcal_ctrl.0/kcal_sat
#echo '261' > /sys/devices/platform/kcal_ctrl.0/kcal_val
#echo '264' > /sys/devices/platform/kcal_ctrl.0/kcal_cont
#echo '35' > /sys/devices/platform/kcal_ctrl.0/kcal_min
#echo '0' > /sys/devices/platform/kcal_ctrl.0/kcal_hue
echo 'Y' > /sys/module/wakeup/parameters/enable_timerfd_ws
echo 'Y' > /sys/module/wakeup/parameters/enable_qcom_rx_wakelock_ws
echo 'Y' > /sys/module/wakeup/parameters/enable_netlink_ws
echo 'Y' > /sys/module/wakeup/parameters/enable_ipa_ws
echo 'Y' > /sys/module/wakeup/parameters/enable_wlan_wake_ws
echo 'Y' > /sys/module/wakeup/parameters/enable_wlan_ctrl_wake_ws
echo 'Y' > /sys/module/wakeup/parameters/enable_wlan_rx_wake_ws
echo 'Y' > /sys/module/wakeup/parameters/enable_msm_hsic_ws
echo 'Y' > /sys/module/wakeup/parameters/enable_si_ws
echo 'Y' > /sys/module/wakeup/parameters/enable_smb135x_wake_ws
#echo '0' > /sys/module/lowmemorykiller/parameters/enable_adaptive_lmk
#chmod 666 /sys/module/lowmemorykiller/parameters/minfree
#chown root /sys/module/lowmemorykiller/parameters/minfree
echo '16384,20736,24576,32256,85296,120640' > /sys/module/lowmemorykiller/parameters/minfree
echo '75' > /proc/sys/vm/swappiness
echo '17' > /proc/sys/vm/dirty_ratio
#echo '0' > /sys/kernel/sched/gentle_fair_sleepers
#echo '2830' > /sys/class/timed_output/vibrator/vtg_level
echo '3' > /sys/kernel/power_suspend/power_suspend_mode
echo '1' > /sys/kernel/fast_charge/force_fast_charge
Google Play Services Anti-Wakelock Script:
Code:
#!/system/bin/sh
setenforce 0
powerService.goToSleep(SystemClock.uptimeMillis() + 1);
echo disable_pm_suspend > /sys/power/wake_unlock
android.permission.WAKE_UNLOCK
/sys/power/wake_unlock
killall -9 android.process.media
killall -9 mediaserver
for apk in $(pm list packages -3 | sed 's/package://g' | sort); do
# Analytics
pm disable $apk/com.google.android.gms.analytics.AnalyticsService
pm disable $apk/com.google.android.gms.analytics.AnalyticsJobService
pm disable $apk/com.google.android.gms.analytics.CampaignTrackingService
pm disable $apk/com.google.android.gms.measurement.AppMeasurementService
pm disable $apk/com.google.android.gms.measurement.AppMeasurementJobService
pm disable $apk/com.google.android.gms.analytics.AnalyticsReceiver
pm disable $apk/com.google.android.gms.analytics.CampaignTrackingReceiver
pm disable $apk/com.google.android.gms.measurement.AppMeasurementInstallReferrerReceiver
pm disable $apk/com.google.android.gms.measurement.AppMeasurementReceiver
pm disable $apk/com.google.android.gms.measurement.AppMeasurementContentProvider
pm disable $apk/com.crashlytics.android.CrashlyticsInitProvider
# Ads
pm disable $apk/com.google.android.gms.ads.AdActivity
# Firebase
pm disable $apk/com.google.firebase.iid.FirebaseInstanceIdService
done
exit 0
"I don't want to debloat an app that it does"
To fix that, you will need to update the script your self, but it's quite easy.
1 - Download the script on a Windows based PC that has 7zip and notepad++ installed.
2 - Open the script with zip and navigate to: "META-INF\com\google\android"
3 - Extract the file "updater-script"
4 - Edit it with notepad++ and look at the app you wish it would not debloat (for example, Clean Master)
5 - The delete the line that says "delete_recursive" and the app path (ex: delete_recursive("/system/priv-app/CleanMaster"); )
6 - Save the script and push it back to the zip file
Some apps such as maps, Google Assistant and Android Auto may be debloated on the script, but if you install it via the playstore after, the script will not debloat it, as it wont be a system app anymore.
Current version: v10 (05/03/2020)
Seems to work but phone gets a bit laggy sometimes...
mejgs said:
Seems to work but phone gets a bit laggy sometimes...
Click to expand...
Click to collapse
It may be the VM and OOM, i'll take off those "optimizations" on the next release tomorrow.
What TWRP did you use, if you don't mind me asking.
New Build Up!
Lag should stop now that i disable the VM and OOM custom parameters, plus i added CatchLog to uninstall.
Pupet_Master said:
It may be the VM and OOM, i'll take off those "optimizations" on the next release tomorrow.
What TWRP did you use, if you don't mind me asking.
Click to expand...
Click to collapse
I used 4pda's
Pupet_Master said:
Hey Guys, i've made a script to debloat MIUI and to install some Kernel optimizations at the INIT.D folder plus anti Google Play Services Wakelock Script (at INIT.D as well) and full hosts for adblock without any external app.
Now, i may add more things to debloat since this script was optimized for Redmi Note 5 Pro Whyred and even though it work on that device, on the Redmi 4X Santoni and even on a Moto G LTE Peregrine.. on 4PA TWRP it didn't work. I'm still troubleshooting why. Once i figure out another TWRP that allow me to flash it or what i'm doing wrong (since it isn't a script issue, it's a recovery problem) i'll test other system apps to debloat specific from our Mi9t DaVinci.
That being said, i would like you guys to test it, see if it work for you guys and give me a feedback to what TWRP do you guys use/ what version of MIUI you guys debloated.
Usually i use it on mi-globe but it should work for Xiaomi.eu, Global and Chinese ROMs too (both beta and stable).
Instalation:
1 - Reboot in to TWRP after first boot and setup.
2 - Make a nanodroid full system Backup for safety.
3 - Run the script.
4 - Reboot in to system.
5 - Profit.
Download:
https://androidfilehost.com/?fid=1899786940962594365
What will it debloat:
Code:
"/system/app/AnalyticsCore"
"/system/app/BasicDreams"
"/system/app/BuiltInPrintService"
"/system/app/CatchLog"
"/system/app/CloudPrint2"
"/system/app/Email"
"/system/app/GooglePrintRecommendationService"
"/system/app/greenguard"
"/system/app/KSICibaEngine"
"/system/app/Lens"
"/system/app/MarkupGoogle"
"/system/app/MiDrive"
"/system/app/MiuiBugReport"
"/system/app/MiuiDaemon"
"/system/app/MiuiSuperMarket"
"/system/app/PrintRecommendationService"
"/system/app/PrintSpooler"
"/system/app/SoundPickerPrebuilt"
"/system/app/Stk"
"/system/app/YellowPage"
"/system/app/YouDaoEngine"
"/system/data-app/"
"/system/data-app/BaiduIME"
"/system/data-app/cn.wps.moffice_eng"
"/system/data-app/com.eg.android.AlipayGphone"
"/system/data-app/com.taobao.taobao"
"/system/data-app/com.xunmeng.pinduoduo"
"/system/data-app/Email"
"/system/data-app/MiFinance"
"/system/data-app/MiMobileNoti"
"/system/data-app/MiShop"
"/system/data-app/XiaomiSpeechEngine"
"/system/priv-app/BATestApp"
"/system/priv-app/Browser"
"/system/priv-app/GoogleBackupTransport"
"/system/priv-app/GoogleFeedback"
"/system/priv-app/MiRecycle"
"/system/priv-app/MusicFX"
"/system/priv-app/HotwordEnrollmentOKGoogleWCD9340"
"/system/priv-app/HotwordEnrollmentXGoogleWCD9340"
"/system/priv-app/Velvet"
"/system/priv-app/WellbeingPrebuilt"
"/system/priv-app/YellowPage"
"/system/vendor/data-app/"
"/system/vendor/data-app/SmartHome"
"/system/vendor/data-app/wps-lite"
"/system/vendor/data-app/aiasst_service"
"/system/vendor/app/aiasst_service"
"/system/app/lens"
"/vendor/data-app/SmartHome"
"/vendor/data-app/wps-lite"
"/data/app/SmartHome"
"/data/app/wps-lite"
"/data/app/aiasst_service"
Full Hosts by Masik ROM (thank Masik Devs)
Kernel Optimization Script:
Code:
#!/system/bin/sh
setenforce 0
set enforce 0
echo 'Y' > /sys/module/sync/parameters/fsync_enabled
sysctl -w net.ipv4.tcp_congestion_control=westwood
#echo '254 255 256' > /sys/devices/platform/kcal_ctrl.0/kcal
#echo '1' > /sys/devices/platform/kcal_ctrl.0/kcal_enable
#echo '290' > /sys/devices/platform/kcal_ctrl.0/kcal_sat
#echo '261' > /sys/devices/platform/kcal_ctrl.0/kcal_val
#echo '264' > /sys/devices/platform/kcal_ctrl.0/kcal_cont
#echo '35' > /sys/devices/platform/kcal_ctrl.0/kcal_min
#echo '0' > /sys/devices/platform/kcal_ctrl.0/kcal_hue
echo 'Y' > /sys/module/wakeup/parameters/enable_timerfd_ws
echo 'Y' > /sys/module/wakeup/parameters/enable_qcom_rx_wakelock_ws
echo 'Y' > /sys/module/wakeup/parameters/enable_netlink_ws
echo 'Y' > /sys/module/wakeup/parameters/enable_ipa_ws
echo 'Y' > /sys/module/wakeup/parameters/enable_wlan_wake_ws
echo 'Y' > /sys/module/wakeup/parameters/enable_wlan_ctrl_wake_ws
echo 'Y' > /sys/module/wakeup/parameters/enable_wlan_rx_wake_ws
echo 'Y' > /sys/module/wakeup/parameters/enable_msm_hsic_ws
echo 'Y' > /sys/module/wakeup/parameters/enable_si_ws
echo 'Y' > /sys/module/wakeup/parameters/enable_smb135x_wake_ws
#echo '0' > /sys/module/lowmemorykiller/parameters/enable_adaptive_lmk
#chmod 666 /sys/module/lowmemorykiller/parameters/minfree
#chown root /sys/module/lowmemorykiller/parameters/minfree
#echo '19712,22272,36864,58368,65792,108494' > /sys/module/lowmemorykiller/parameters/minfree
#echo '0' > /sys/kernel/sched/gentle_fair_sleepers
#echo '2830' > /sys/class/timed_output/vibrator/vtg_level
echo '3' > /sys/kernel/power_suspend/power_suspend_mode
echo '1' > /sys/kernel/fast_charge/force_fast_charge
Google Play Services Anti-Wakelock Script:
Code:
#!/system/bin/sh
setenforce 0
powerService.goToSleep(SystemClock.uptimeMillis() + 1);
echo disable_pm_suspend > /sys/power/wake_unlock
android.permission.WAKE_UNLOCK
/sys/power/wake_unlock
killall -9 android.process.media
killall -9 mediaserver
for apk in $(pm list packages -3 | sed 's/package://g' | sort); do
# Analytics
pm disable $apk/com.google.android.gms.analytics.AnalyticsService
pm disable $apk/com.google.android.gms.analytics.AnalyticsJobService
pm disable $apk/com.google.android.gms.analytics.CampaignTrackingService
pm disable $apk/com.google.android.gms.measurement.AppMeasurementService
pm disable $apk/com.google.android.gms.measurement.AppMeasurementJobService
pm disable $apk/com.google.android.gms.analytics.AnalyticsReceiver
pm disable $apk/com.google.android.gms.analytics.CampaignTrackingReceiver
pm disable $apk/com.google.android.gms.measurement.AppMeasurementInstallReferrerReceiver
pm disable $apk/com.google.android.gms.measurement.AppMeasurementReceiver
pm disable $apk/com.google.android.gms.measurement.AppMeasurementContentProvider
pm disable $apk/com.crashlytics.android.CrashlyticsInitProvider
# Ads
pm disable $apk/com.google.android.gms.ads.AdActivity
# Firebase
pm disable $apk/com.google.firebase.iid.FirebaseInstanceIdService
done
exit 0
Click to expand...
Click to collapse
Seems very nice I will test it. I think it's like L-Speed, NFS, FDE.AI or LKT kernel improvements but for MIUI while You are debloating stuff.
Is it working on MIUI 11?
Ky0sHiR0 said:
Seems very nice I will test it. I think it's like L-Speed, NFS, FDE.AI or LKT kernel improvements but for MIUI while You are debloating stuff.
Is it working on MIUI 11?
Click to expand...
Click to collapse
First, thanks for the feedback guys
Yes, you got it right but it go beyond lkt once se get kcal on our device as i tune the colors too (currently disabled though).
And yes it work on miui11
New Build Up!!
Added these apps on the list to be debloated:
/system/app/XMCloudEngine
/system/app/MiLinkService
Re Enabled the OOM setting for memory Management (report if phone get sluggish or not please, as it should not).
echo '19712,22272,36864,58368,65792,108494' > /sys/module/lowmemorykiller/parameters/minfree
The transitions is getting slower. (EU ROM 10.3.15)
someone tested the script with the latest weekly miui 11, EU 9.9.26 ?
stefano alegnini said:
someone tested the script with the latest weekly miui 11, EU 9.9.26 ?
Click to expand...
Click to collapse
Should work fine as it don't mod the rom, just debloat and add scripts
I'm testing new parameters for ram management and virtual memory. Next new build should be smoother
New Build Up!
Changes on Kernel tuneup:
sysctl -w net.ipv4.tcp_congestion_control=cubic
echo '16384,20736,24576,32256,85296,120640' > /sys/module/lowmemorykiller/parameters/minfree
echo '75' > /proc/sys/vm/swappiness
echo '17' > /proc/sys/vm/dirty_ratio
Successfully installed on EU 9.9.26 everything is ok, let's show the battery statistics in a couple of days, thanks for your work
Pupet_Master said:
Hey Guys, i've made a script to debloat MIUI and to install some Kernel optimizations at the INIT.D folder plus anti Google Play Services Wakelock Script (at INIT.D as well) and full hosts for adblock without any external app.
Now, i may add more things to debloat since this script was optimized for Redmi Note 5 Pro Whyred and even though it work on that device, on the Redmi 4X Santoni and even on a Moto G LTE Peregrine.. on 4PA TWRP it didn't work. I'm still troubleshooting why. Once i figure out another TWRP that allow me to flash it or what i'm doing wrong (since it isn't a script issue, it's a recovery problem) i'll test other system apps to debloat specific from our Mi9t DaVinci.
That being said, i would like you guys to test it, see if it work for you guys and give me a feedback to what TWRP do you guys use/ what version of MIUI you guys debloated.
Usually i use it on mi-globe but it should work for Xiaomi.eu, Global and Chinese ROMs too (both beta and stable).
Instalation:
1 - Reboot in to TWRP after first boot and setup.
2 - Make a nanodroid full system Backup for safety.
3 - Run the script.
4 - Reboot in to system.
5 - Profit.
Download:
https://androidfilehost.com/?fid=1899786940962596493
Click to expand...
Click to collapse
Could you kindly drop a version without the hosts file?
ah.kh.ali1 said:
Could you kindly drop a version without the hosts file?
Click to expand...
Click to collapse
Sure I'll so it.in a couple of hours and I'll quote.you
ah.kh.ali1 said:
Could you kindly drop a version without the hosts file?
Click to expand...
Click to collapse
No hosts build up
https://androidfilehost.com/?fid=1899786940962597127
Pupet_Master said:
No hosts build up
https://androidfilehost.com/?fid=1899786940962597127
Click to expand...
Click to collapse
Thanks Alot.
Just flashed V4. I don't know what you did, but it's much smoother now
What does the no host means? Edit... No need I got it now

Categories

Resources