[APP][5.0] Moto G Minfree Fixer - Moto G 4G Android Development

With this commit which is merged since the 07/Feb/2015 Nightly the app became redundant. Thanks for your feedback!
Hi everyone,
I wrote a small app for all those having RAM/reloading issues on 5.0/CM12 based ROMs. The source is here and a direct link to the pre-compiled app can be found attached to this post.
But what does this app do?
In short, the cause of frequent app redraws seems to be wrongly set permissions of two files which avoid the Low Memory Killer to work as intended. Apart from that the default values in those files are set too high. A long explanation can be found here.
This app fixes both problems and automates basically everything after the device has booted up: It applies right permissions to /sys/module/lowmemorykiller/parameters/minfree (660) and writes reasonable LMK values into it. It is meant as a convenient way to fix the problem without having to hassle around with shell scripts.
I wrote it modular, so auto apply and LMK value writing can be switched off, of course
Screenshot:
{
"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"
}
I really appreciate your feedback!
Changelog:
v1.2.1
-> hotfix for RAM size detection (Thanks to Benoe!)
v1.2
-> reworked code base
-> optimized code so only 1 SU process is needed
v1.1
-> fixed memory leak due to not destroy()ing SU processes
_beta
-> initial release
PS: I recommend to compile it yourself so you don't have to trust some random forum guy.

Great Job guy!
Which values does the app set to default?
Can we see the source code to improve the app (eg: icon, custom minfree values...)?

scattoit said:
Great Job guy!
Which values does the app set to default?
Can we see the source code to improve the app (eg: icon, custom minfree values...)?
Click to expand...
Click to collapse
Hi and thanks for your feedback!
As I mentioned in the OP, the source code is on GitHub.
These values are applied:
Code:
if(totalRAM<1000000000) {
// we have a device with less than 1GB RAM (Moto G, Razr HD, ...)
try {
Process process = Runtime.getRuntime().exec("su");
DataOutputStream testingStream = new DataOutputStream(process.getOutputStream());
testingStream.writeBytes("echo '2048,3072,4096,28342,31041,33740' > /sys/module/lowmemorykiller/parameters/minfree\n");
testingStream.flush();
} catch (IOException e) {
e.printStackTrace();
}
}
else {
// we have a device with less than 2GB RAM (Moto X)
try {
Process process = Runtime.getRuntime().exec("su");
DataOutputStream testingStream = new DataOutputStream(process.getOutputStream());
testingStream.writeBytes("echo '2048,3072,4096,69100,77738,86375' > /sys/module/lowmemorykiller/parameters/minfree\n");
testingStream.flush();
}
catch (IOException e) {
e.printStackTrace();
}
}
Cheers!

BlueFlame4 said:
BTW: I just pushed an updated version because the initial one ironically had a memory leak. :>
Click to expand...
Click to collapse
Haha
I did not realize it though, process stats is still on normal/moderate after 24 hours of usage and everything is working smooth
You did a great job and thanks again for the updated app. :good:

@BlueFlame4 :
the 0220 permissions to the OOM driver files are appied by the /init.rc :
Code:
# Memory management. Basic kernel parameters, and allow the high
# level system server to be able to adjust the kernel OOM driver
# parameters to match how it is managing things.
write /proc/sys/vm/overcommit_memory 1
write /proc/sys/vm/min_free_order_shift 4
chown root system /sys/module/lowmemorykiller/parameters/adj
chmod 0220 /sys/module/lowmemorykiller/parameters/adj
chown root system /sys/module/lowmemorykiller/parameters/minfree
chmod 0220 /sys/module/lowmemorykiller/parameters/minfree
So, either there must be a specific reason to set these to write only, or the one that set these permissions had drunk something that wasn't water :silly:

Hi @matmutant,
I also thought about that and read that is was set to 220 on purpose once but I still can't imagine any advantage, especially considered that it breaks the LMK. I thought about security reasons but that doesn't make sense to me either...
So do we miss something?

BlueFlame4 said:
So do we miss something?
Click to expand...
Click to collapse
We must be blind, or dumb... but sometimes the dumbest question can make things go in the right direction, i'll ask the "Ones that know"

matmutant said:
We must be blind, or dumb... but sometimes the dumbest question can make things go in the right direction, i'll ask the "Ones that know"
Click to expand...
Click to collapse
Good idea, I'll eagerly wait for your reply Thanks, mate!
Unfortunately I'm limited to 8 "Thanks" per day :>

BlueFlame4 said:
Good idea, I'll eagerly wait for your reply Thanks, mate!
Unfortunately I'm limited to 8 "Thanks" per day :>
Click to expand...
Click to collapse
The following is strange though:
Not Only CM12 uses that 0220 permission
https://github.com/android/platform_system_core/blob/master/rootdir/init.rc
But, my old robyn running MiniCM10 has them set to 0664

Nice work here buddy.
How did you pick these values? I have been using 1536,2048,4096,8192,16384,24575 and wondering if your values may work better.

matmutant said:
But, my old robyn running MiniCM10 has them set to 0664
Click to expand...
Click to collapse
SlimLP (build 20150111-1043) uses this values too and it works very nice.

BlueFlame4 said:
Good idea, I'll eagerly wait for your reply Thanks, mate!
Unfortunately I'm limited to 8 "Thanks" per day :>
Click to expand...
Click to collapse
Here is the explanation of Ethan Chen:
matmutant said:
why are the adj and minfree permissions set to 0220 in cm12 and were 0664 on my robyn running miniCM10 ?
Click to expand...
Click to collapse
Ethan Chen said:
that's because google changed it in lollipop
Click to expand...
Click to collapse
matmutant said:
Though I can't figure how a file set to write only could be read by system ^^
Click to expand...
Click to collapse
Ethan Chen said:
The system doesn't need to read it.
System only needs to be able to write,
that's why changing the permission makes no difference.
There's a lowmemkiller service in the framework that is capable of writing values into that node. lowmemkiller service tracks it's own state, so it doesn't ever need to read from the node
The thing reading that node is the kernel driver
The linux kernel lowmemkiller driver changes behavior based on what you write into the file.
Changing the file permission does nothing
Changing the content does real stuff
Click to expand...
Click to collapse

You made an app? Woah.

matmutant said:
Here is the explanation of Ethan Chen:
Ethan Chen said:
The system doesn't need to read it.
System only needs to be able to write,
that's why changing the permission makes no difference.
There's a lowmemkiller service in the framework that is capable of writing values into that node. lowmemkiller service tracks it's own state, so it doesn't ever need to read from the node
The thing reading that node is the kernel driver
The linux kernel lowmemkiller driver changes behavior based on what you write into the file.
Changing the file permission does nothing
Changing the content does real stuff
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Thanks so much! That makes sense and I thought that the 220 permission MUST be intended behaviour but still: There obviously is a change for the better when altering the values so I guess CM broke the mentioned LMK? This is definitely more than placebo. I stumbled upon this and this and will build some test builds to figure out reasonable values for our device.
Somcom3X said:
You made an app? Woah.
Click to expand...
Click to collapse
Yea, I couldn't resist I have the tendency to forget myself and go through the roof as soon as I have an idea which I want to implement

By any chance, have you noticed a major lag once turning on the device after it sleeps (let's say in hangouts/tapatalk)?

Somcom3X said:
By any chance, have you noticed a major lag once turning on the device after it sleeps (let's say in hangouts/tapatalk)?
Click to expand...
Click to collapse
Not yet, I'll install those apps now since I use neither of them. I'll report back soon!

Nice work dude! ☺

BlueFlame4 said:
Not yet, I'll install those apps now since I use neither of them. I'll report back soon!
Click to expand...
Click to collapse
For the first time ever, I've multi tasked hangouts, Tapatalk and WhatsApp.

Somcom3X said:
For the first time ever, I've multi tasked hangouts, Tapatalk and WhatsApp.
Click to expand...
Click to collapse
Could you - if you got spare time - upload a test build with this patch included? https://github.com/visi0nary/androi...mmit/93de32bb4943f20a60b563ddcde6dcd7de80b2f6
I'm currently having trouble with my build server and I'd like to test those values. I'm pretty sure those are not far from a permanent fix, since I already tested a build with
Code:
<integer name="config_lowMemoryKillerMinFreeKbytesAbsolute">131000</integer>
before my machine broke down and multitasking then got a lot better.
Cheers!

BlueFlame4 said:
Could you - if you got spare time - upload a test build with this patch included? https://github.com/visi0nary/androi...mmit/93de32bb4943f20a60b563ddcde6dcd7de80b2f6
I'm currently having trouble with my build server and I'd like to test those values. I'm pretty sure those are not far from a permanent fix, since I already tested a build with
Code:
<integer name="config_lowMemoryKillerMinFreeKbytesAbsolute">131000</integer>
before my machine broke down and multitasking then got a lot better.
Cheers!
Click to expand...
Click to collapse
I'll pm it to you after I build it later. Might want to note storage space decreases for some reason. If you give me your gerrit Id I can add you to my draft.

Related

[TUTORIAL][SCRIPT] V6 Supercharger Memory Fixes

I did not make this script, i only stumbled across it and wanted to share
-Thanks to zeppelinrox for making this script
Original Thread by zeppelinrox
Requirements
Rooted
Busybox 1.8.2 or lower
Rom that supports init.d
Benefits
UI is much more responsive (less lag)
More free RAM
Recommended
Install Script Manager (easier to work with than terminal IMO)
Step 1: Run the script from Script Manager with "Run as Root" option selected
{
"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"
}
Step 2: Pick the scrolling speed
Step 3: Pick 11 or 12, performs the OOM Grouping Fixes (zeppelinrox recommends Hard To Kill)
-REBOOT-
The following step is setting up the minfree settings. You can select 1-9 for the preset values, or choose 10 and set your own.
Read the OP from zeppelinrox's thread for more info on what these do and tweak them to your liking.
I personally use 6,10,35,50,65,80
Step 4: Pick 1-9 preset values, or pick 10 and enter the minfree setting for each slot
-Done
sounds good, will try later
thanks!
Anyone try the script?
Sent from my GT-I9000 using Tapatalk
im waiting for a review to try this out!
supaphreek said:
im waiting for a review to try this out!
Click to expand...
Click to collapse
Ive tried it out and it works great (thats why i shared it)
If you dont like it you can always undo the script by selecting 14 in the menu
Sent from my GT-I9000 using Tapatalk
applied it to my phone, so far so good. getting no issues. will report back if i have any issues.
[EDIT] heres a quick overlook at what the minfree #1-6 will adjust as far as free memory goes.
FOREGROUND_APP: Current app that you are looking at.
VISIBLE_APP: A visible activity to the user.
SECONDARY_SERVER: This is a process holding a secondary server
HIDDEN_APP: This is a process only hosting activities that are not visible
CONTENT_PROVIDER: This is a process with a content provider that does not have any clients attached to it.
EMPTY_APP: This is a process without anything currently running in it.
james.arroyo said:
applied it to my phone, so far so good. getting no issues. will report back if i have any issues.
[EDIT] heres a quick overlook at what the minfree #1-6 will adjust as far as free memory goes.
FOREGROUND_APP: Current app that you are looking at.
VISIBLE_APP: A visible activity to the user.
SECONDARY_SERVER: This is a process holding a secondary server
HIDDEN_APP: This is a process only hosting activities that are not visible
CONTENT_PROVIDER: This is a process with a content provider that does not have any clients attached to it.
EMPTY_APP: This is a process without anything currently running in it.
Click to expand...
Click to collapse
What minfree settings works best for you?
Sent from my GT-I9000 using Tapatalk
chrisz5z said:
What minfree settings works best for you?
Sent from my GT-I9000 using Tapatalk
Click to expand...
Click to collapse
had to remove it for now, put my phone in a boot loop. did a quick nandroid recover to get it working right again. will have to play with it again at home.
I tried this script but it forced closed everytime I ran it in the script manager.
I tried the update8 of the script, ran good, after reboot checked status, nothing changed, maybe i was doing smth wrong?
james.arroyo said:
had to remove it for now, put my phone in a boot loop. did a quick nandroid recover to get it working right again. will have to play with it again at home.
Click to expand...
Click to collapse
What ROM/kernel do you have?
mattern1974 said:
I tried this script but it forced closed everytime I ran it in the script manager.
Click to expand...
Click to collapse
Sure you have Busybox 1.8.2 or lower installed?
jerkysh said:
I tried the update8 of the script, ran good, after reboot checked status, nothing changed, maybe i was doing smth wrong?
Click to expand...
Click to collapse
Does your rom/kernel support init.d?
chrisz5z said:
What ROM/kernel do you have?
Click to expand...
Click to collapse
Currently running Serendipity VII with Talon 0.4.3
james.arroyo said:
Currently running Serendipity VII with Talon 0.4.3
Click to expand...
Click to collapse
removed Talon and put Serendipity Kernel 4.1 and huzzah! (just kept the default minfree for now)
might want to add this step in the OP. not sure how important it is.
•After installing, run the app, press the MENU button and go to MORE and then in ADVANCED OPTIONS and now in CONFIG and leave the options marked exactly as shown in the screen below:
Browse as root is not default, have to check it.
james.arroyo said:
removed Talon and put Serendipity Kernel 4.1 and huzzah! (just kept the default minfree for now)
Click to expand...
Click to collapse
Seems the kernel optimizations in the script don't play well with Talon. The minfree settings shouldn't be a conflict though
james.arroyo said:
might want to add this step in the OP. not sure how important it is.
•After installing, run the app, press the MENU button and go to MORE and then in ADVANCED OPTIONS and now in CONFIG and leave the options marked exactly as shown in the screen below:
Browse as root is not default, have to check it.
Click to expand...
Click to collapse
I think thats only needed if you have the script stored in a location where you would need root to access it...(ex. /system)
Been playing with this on miui. The min field does not appear to have much effect but the 3g super charger linked in ip of original thread appears to have a nice d effect.
Top score and bottom three with
Second score without
Sent from my I897 using XDA Premium App
You need to correct the OP. There is no Busybox 1.8.2 it is 1.18.2
I also tried the 3G TurboCharger (works from HSUPA too) and my DL speed went from about 4.1 kbps to about 4.8 kbps on JJJV5 modem. Not a huge, HUGE increase but if some people are having issues with slow download speeds you might want to give it a shot. Remember to always make a backup before you try anything on your phone, no matter how "safe" or "unsafe" it claims to be.
**I did not apply or try the Kick Ass Kernel Tweak Installers
If on CM7 I'd recommend getting hard to kill plus megaRAM 2 imho, been running it along with turbocharger and kernel tweaks, on Glitch's kernel and they are sticking when I boot up even after the past couple nightly's. Also with supercharger some custom roms-as it states in the help file.
"There might be something in the init.d that interferes with priorities and minfrees, if you can't find the problem, a quick fix is to have script manager run /system/etc/init.d/99SuperCharger, "at boot" and, "as root."
Nice tutorial.
Note that you don't need to run option 11 or 12 first.
Running options 2 - 10 will always apply HTK launcher by default.
If you want bulletproof, run option 2 - 10, then run option 12, then reboot.
chrisz5z, I think it would look cool to show a screen cap of your menu after running the Cust-OOMizer... since Option 10 will then look different
Edit: I made a change to 3g TurboCharger that needs testing...
Edits to build.prop...
Code:
ro.ril.hsxpa=3
ro.ril.gprsclass=34
ro.ril.hep=1
ro.ril.enable.dtm=1
ro.ril.hsdpa.category=28
ro.ril.enable.a53=1
ro.ril.enable.a52=0
ro.ril.enable.3g.prefix=1
ro.ril.htcmaskw1.bitmask=4294967295
ro.ril.htcmaskw1=268449905
ro.ril.hsupa.category=9
ro.ril.def.agps.mode=2
ro.ril.def.agps.feature=1
ro.ril.enable.sdr=1
ro.ril.enable.gea3=1
ro.ril.enable.fd.plmn.prefix=23402,23410,23411
ro.ril.disable.power.collapse=0
Difference between this and update 2:
ro.ril.gprsclass=34 (instead of 12)
ro.ril.htcmaskw1=268449905 (instead of 14449)
I've actually seen gprsclass=32 in the past but 12 is the most common setting so I had used 12.
After researching today, seems that 32 would indeed be better than 12 BUT there is a new gprs class 34 so this would be a first for testing it at 34! (as far as I know) lol
So, I'd be interested in seeing if this is better than the 3G TurboCharger update 2 tweak!

[FIX/MOD] Huexxx's Nova v8 Stuff ...

Hi all again!
I've created this thread in order to add fixes and add-ons for Nova v8 ROM.
* Wrong OC Fix:
- This fix restores default freq/volt config in order to restore a blocked system from a exagerated OC/UV.
- Download it form title, flash it at CWM and that's all.
* Huexxx's Nova v8 Mod v1.4:
- This mod modifies nova script in order to:
· Make the navigation inside the script a little bit faster
· Directly view the currently active preset from presets submenu
· Simplifies the custom preset submenu. Now you only have to set the 4 frequencies
· Simplifies too the preset and simple overclock. Now voltages are auto established. (v1.1)
· Adds the possibility to enable/disable AUV (AutoUnderVolt) script on boot
· Adds the possibility to set the Auto UV Depth to control the voltage drop on boot (v1.3)
· Now you can view auvlog instead to run UV once (v1.4)
· Directly view the currently active freq/volt config from overclock submenu. It shows freq(vsel/calib) for each state. (v1.3)
· Directly view the currently active governor from governor set submenu
· Directly view the currently active I/O scheduler from scheduler set submenu
· Optimize a little bit the general aspect​- Adds AUV script:
· Avoid to undervolt the max frequency if it's greater than 1GHz (v1.1)
· Take the lower voltage values from calibrating-recalibrating process to ensure the best UV (v1.2)
· AUV script uses the specified auto UV depth. Setting it to 0 the script ensures that the calibrated voltages are the minimum recommended by smartreflex system without do any undervolting on it (v1.3)
· Optimized timmings to ensure the calibration values are correctly stablished (v1.4)​- Modifies /system/etc/init.d/11nov script to support AUV feature
- If you are using AUV you can see the log at /data/nova/auto/auvlog or within nova script's overclock submenu (v1.4)
- Adds /sdcard/nova/ocfix.zip to flash it if OC goes wrong and get a bootstuck
- Automatically disables SBT on installation (v1.1)
- I recommend to keep disabled SBT (Standby battery tweak) if you're going to use UV or AUV features.
- Feel free to use this mod altough you are not planning to use UV or AUV.
- Download it form title, flash it at CWM and that's all.
* Stock Nova v8 Restorer:
- This package restores default nova scripts and deletes all the extra stuff added by my mod.
- Updated to ensure all is restored with mod v1.3 or later version.
- Download it form title, flash it at CWM and that's all.
* Superuser downgrader:
- This package downgrades Superuser to latest stable 2.3.6.3 version.
- Download it form title, flash it at CWM and that's all.
* Nova v8 Kernel Source Code:
- Nothing to comment, it speaks by itself.
- Thanks to knzo.
Regards!
UV Testing:
* 6 serial Quadrant Standard with Power Tutor Monitoring
I've tested the battery consumption with and without UV in order to see the differences.
The test consists in a 6 serial Quadrant run and 3 times repeated for each configuration.
The common parameters are: 900, 700, 500, 300, InteractiveX, sio, wifi enabled, data connection enabled, wcdma only. In all cases I've rebooted and waited until governor had been settled.
{
"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"
}
Looking at the results, the power consumption with AUV activated is lower than the stock situation. LCD and WiFi consumptions are linked to parameters that aren't related to the MPU voltaje; then the interesting results are the power drained by the CPU. Also, the absolute mean quadrant scores shows that there isn't a descent on performance, or better said, the descent on performance is negligible taking into account the fluctuation in quadrant scores.
* Battery lasting with light use
Parameters are: auto UV on boot enabled, 900, 700, 500, 300, InteractiveX, sio, wifi disabled, data connection disabled, gsm 2g only. The use consists on: two or three vioce calls per day, some sms, some photos, some visits to the gallery, the alarm every morning, radio allways on.
Regards.
Thanks, I will download it later
Sent from my LG-P970 using Tapatalk
Hi!
I've added some new stuff to first post!
knzo, feel free to grabs whatever you deem appropriate for your releases.
To say that I'm using UV on boot from two days ago and everything run fine.
Regards!
Hi there I just want to know what do I get basically if I use this mod? haha please answer me as simple as you can bud not that good with this stuff . TIA bud
awesome work!!
Huexxx said:
knzo, feel free to grabs whatever you deem appropriate for your releases.
Click to expand...
Click to collapse
Thanks but no need.
I will completely redo the script for next version.
knzo said:
Thanks but no need.
I will completely redo the script for next version.
Click to expand...
Click to collapse
I hoped this answer!
denclaud said:
Hi there I just want to know what do I get basically if I use this mod? haha please answer me as simple as you can bud not that good with this stuff . TIA bud
Click to expand...
Click to collapse
Basically you get:
- A little bit modified nova script. Little bit faster, with certain things simplified, but fully operational.
- The possibility to try my UV and AUV scripts (If you want...)
- The possibility to restore default OC if things go wrong flashing /sdcard/nova/ocfix.zip
Thats all at the moment.
how make this?
can u explain for me how i put fix mod
jamespvz said:
can u explain for me how i put fix mod
Click to expand...
Click to collapse
Do you have Nova v8 installed?
If positive answer... install this stuff the same way you installed Nova v8... from recovery... install zip from sdcard... select the zip and flash it!
Regards!
Question,
Huexxx, do you have kernel source of Quasar v8?
redy2006 said:
Question,
Huexxx, do you have kernel source of Quasar v8?
Click to expand...
Click to collapse
I just saw your PM while I was about to reply to you here.
Yes, I'll upload it. Give me 30m.
knzo said:
I just saw your PM while I was about to reply to you here.
Yes, I'll upload it. Give me 30m.
Click to expand...
Click to collapse
Thanks. Few days ago when I asked it, I was forgot to PM you... because lots of reading post on XDA forum
Thanks again
http://www.multiupload.com/Z40ZNZAUVI
This FIX/MOD solves the problem with the SU? Today, probably, the 25-th time returned with Nova-8 on Nova-4.5, because on a level place hung Dolphin browser. Just once in a run SU-application.
PaulBort said:
This FIX/MOD solves the problem with the SU? Today, probably, the 25-th time returned with Nova-8 on Nova-4.5, because on a level place hung Dolphin browser. Just once in a run SU-application.
Click to expand...
Click to collapse
No........
PaulBort said:
This FIX/MOD solves the problem with the SU? Today, probably, the 25-th time returned with Nova-8 on Nova-4.5, because on a level place hung Dolphin browser. Just once in a run SU-application.
Click to expand...
Click to collapse
If still having problem with SU, then it's better to downgrade SU, because Nova v8 including SU beta version, so perhaps you can use the stable version. Can you apply that, PaulBort?
PaulBort said:
This FIX/MOD solves the problem with the SU? Today, probably, the 25-th time returned with Nova-8 on Nova-4.5, because on a level place hung Dolphin browser. Just once in a run SU-application.
Click to expand...
Click to collapse
Look at first post.
I've repacked the latest stable version of Superuser.
Try it and comment.
Huexxx said:
Look at first post.
I've repacked the latest stable version of Superuser.
Try it and comment.
Click to expand...
Click to collapse
It's not help.
Sometimes bugs present.
For me nova 4.5 last stability version.

[ROM] CM7.1-final, Deodexed, 2.6.35 kernel

Putting this up for those who've been inquiring...I simply integrated bits & pieces for the legend to improve what is already an awesome rom. I take no credit for this. Doesn't hurt to hit the thanks button though if this helps .
{
"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's this different from CM7?
2.6.35 kernel (boots by default to 768/256-interactive; max=806, min=120)
smartass & smartass2 governors
compache/swap
deodexed & zip-aligned
tweaks for deodexed rom and sd read-ahead (3072 by default)
removed rom manager & some default themes/wallpapers
moved file manager to /data/app
modified lock screen icons
flying-in menu animations
TGF's notification bar (notbar) patch integrated
What doesn't work/untested?
wifi tethering - activating them produces an error & breaks wife, in which case, a reboot is required
gps
Is this faster than CM?
can't claim that as i don't see a big jump in quad/linpack scores, though there are improvements & it does feel snappier (I may be biased though). you decide...
full rom here: DOWNLOAD
flash attached:
drowningkernel-8-9-1_mod1.zip
kernel w/ the last three items above included for flashing unto cm7
drowningkernel-8-9-1_mod.zip
just the kernel
CAUTION
do backup before doing anything
see alex' comments, post #9
if you encounter reboots/freeze (not getting this myself though) & wanna revert to your original/stock kernel, simply advance restore boot only
usual liability disclaimer applies
feedback is/are most welcome! if you have questions on TGF's notbar patch, please post on that thread instead.
CREDITS
cyanogen/cm team
alex
drowningchild (kernel)
tosha15 (compatible modules)
TGF
Serris (animations)
ZduneX25 (lockscreen icons)
Thx maxq1, I'll download but will test it only after I get my Legend repaired
Rapier said:
Thx maxq1, I'll download but will test it only after I get my Legend repaired
Click to expand...
Click to collapse
I think this time you took the big hammer and hit it hard
good work man, going to check this out........
smartsreenath said:
I think this time you took the big hammer and hit it hard ..
Click to expand...
Click to collapse
Yeah digitizer is defective...it seems like it happens this after a while (1 year or so). I saw alot of people complaining about this also movies on YouTube showing the issue. I'l send it in service next week I hope
The drowningkernel-8-9-1_mod.zip works fine with CM7.1.0 for me. THX a lot!
I like your lockscreen-icons and the statusbar-patch, but not the flying-in-animation, so I flashed the non-modified one.
What governors do you prefer? I'm using interactive, but never had a smartass/smartass2 kernel on my phone. Does one of these two give me advantages over interactive?
Or can you give me some details about smartass/smartass2 Min-Max-values for the legend?
I have constant cpu usage of 50-75% with this rom :-(
What governors do you prefer? I'm using interactive, but never had a smartass/smartass2 kernel on my phone. Does one of these two give me advantages over interactive?
Or can you give me some details about smartass/smartass2 Min-Max-values for the legend?
Click to expand...
Click to collapse
you could learn more about it here. i'm using 806/122-smartass2. if you try to underclock below stock 245, it seems only the smartass governors give a quick response from sleep.
Suppe123 said:
I have constant cpu usage of 50-75% with this rom :-(
Click to expand...
Click to collapse
which governor are you using?
Just a small comment regarding kernel 2.6.35:
In my tests 2.6.35 was not significantly (or at all) faster than .32, neither could I observe improved battery life.
What actually held us back implementing .35 were the crappy WLAN and missing access point drivers. The sources HTC released are significantly broken - even for their original target "Espresso", and this is still a clear violation of the GPL (the sources they used to compile tiwlan_drv for Espresso/Legend are not at all equivalent to what they released).
That being said, if you don't care about WLAN at all you can use 2.6.35. I seriously wouldn't recommend that kernel though and would request you to add a warning to your post to make sure people don't start to complain about random reboots in CyanogenMod.
Thanks man,looks great will test it soon.
Sent from my HTC Legend using XDA App
File does not exist!
Sent from my HTC Legend using XDA App
if you deodex rom ... take data space after install ... cm 7 179mb free data ... your rom ... ... less
Bad bad bad...
^ i couldn't quite get what you're saying, man. did it drop down to <100mb?!? i'm no expert or dev but is that an effect of deodexing? if any, i just moved file mananger (a couple of kb, i guess). in any case, most of you will be using some sort of apps/data..2..sd/ext anyway. kindly enlighten...
File does not exist!
Click to expand...
Click to collapse
hmm..link works just fine from where i'm at..try again, bro
Sesme said:
if you deodex rom ... take data space after install ... cm 7 179mb free data ... your rom ... ... less
Bad bad bad...
Click to expand...
Click to collapse
Hey E.T, you drunk bro' ?
Okay,now it's working I think Megaupload was just down....Okay I test it now
Sent from my HTC Legend using XDA App
So bad that Wifi is crashing all the time
stevenstrike said:
So bad that Wifi is crashing all the time
Click to expand...
Click to collapse
update your radio!!!
maxq1 said:
^ i couldn't quite get what you're saying, man. did it drop down to <100mb?!? i'm no expert or dev but is that an effect of deodexing? if any, i just moved file mananger (a couple of kb, i guess). in any case, most of you will be using some sort of apps/data..2..sd/ext anyway. kindly enlighten...
Click to expand...
Click to collapse
What he wants to say is that, if you deodex rom, there is more space used in system since instead of having apk+odex as separate files you put the odex inside the apk thus ocuppying more space. So for a deodexed ROM you have less space remaining.
Of course since most of us are using some sort of data2ext this is no big deal, I just wanted to "translate"
Sesme said:
update your radio!!!
Click to expand...
Click to collapse
Huh ? This is a known issue caused by crappy Wifi drivers given by htc for Kernel .35 :
Just a small comment regarding kernel 2.6.35:
In my tests 2.6.35 was not significantly (or at all) faster than .32, neither could I observe improved battery life.
What actually held us back implementing .35 were the crappy WLAN and missing access point drivers. The sources HTC released are significantly broken - even for their original target "Espresso", and this is still a clear violation of the GPL (the sources they used to compile tiwlan_drv for Espresso/Legend are not at all equivalent to what they released).
That being said, if you don't care about WLAN at all you can use 2.6.35. I seriously wouldn't recommend that kernel though and would request you to add a warning to your post to make sure people don't start to complain about random reboots in CyanogenMod.
Click to expand...
Click to collapse
BTW Radio has nothing to do with wifi.
Edit : Plus my radio is up to date !
Edit Plus : I tried this rom (K.35) and official 7.1 Rom (K.32) and i found that the both kernels have the same issue, being on K32 or K35 is the same thing for me, i got the same random crashes, which was not the same thing on the old RC1 (which just sometimes crashes when you just power on wifi with sync enabled).
Too bad, Cyanogen 7.1 passed "stable" with this bug.
^ have you tried this, bro?

[ROM](PORT) MIUI v4.1-(2.9.21) FINAL! [9/28/12]

{
"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"
}
MIUI V4.1 (2.9.21) :highfive:
I honestly take no credit for this Rom at all although I would like to give a big shout out & Thanks to everyone at XDA, Cyangenmod, and MIUI Dev team.
I, nor ANYONE else is responsible for what MAY happen to you and your phone, or anyone else and their phone.
So by moving forward to downloading you understand the risks of flashing a new ROM, and understand it's NOT anyone
else's fault except yours. . . No one put a gun to your head and said hey download and flash this now!
Code:
Installation Instructions. . .
Reboot into Recovery
Do a Nandroid Backup (optional)
[U][SIZE="3"]-[B]Wipe data/factory reset[/B]
-[B]Wipe cache partition/dalvik cashed[/B]
-[B]Go into Mounts & Storage and Format /system[/B][/SIZE][/U]
-Install the ROM
-reboot (as always first boot takes a bit longer)
-let sit for a few minutes
-reboot
-set up as you like
-reboot and enjoy
The Rom comes with Devil3_1.2.1_JellyBean kernel, but of course flash what ever JellyBean kernel your heart desire.
Code:
Issues::
1. GPS May be shot, let me know and I'll attempt to fix
2. Low memory space in /Data? Use an app to put your apps in the /system/app folder or use to app2sd
3. BLN doesn't work properly. [FIX? Disable Screen on in sms settings]
4. EFS (IMEI ERROR EVERY BOOT) [FIX? Unknown at this time]
5. Play Store Error: (app name) could not be downloaded due to an error; error retrieving information from server [RPC:AEC:0]
5a. Fix? Remove Google account and re-login .
Download Link in 2nd post.
Click on the :good:Thanks button if you like.
MiUi 2.9.21 Vibrant Port
Code:
New Features
Dial tone when dialing numbers is now a Piano
Misuse protector (Proximity Sensor)
Few tweaks for better battery life, data speed/signal
New DPI set to 200
and Many more. . .
READ 'ISSUES/BUGS' LOCATED IN THE FIRST POST BEFORE POSTING.
:::::::::::::
:: Click Here to download Rom
:: Click here to download KA7 modem (KB5 Modem comes stock with Rom)
:::::::::::::
::Addons
FFC Mod: I don't recall implanting it, so when i release download link if anyone willing to try this mod from this link HERE, let me know if it works and also does it make the camera app un-theme-able .
~~~~~~~~~~~~~~~~~```2.9.4```~~~~~~~~~~~~~~~~~~~~
9/25/12 : Build update
:::::::::::
:: Added FFC Mod (Untested)
:: Added GPS lib/files (Untested)
:: Changed DPI to 192
:: & other minor updates
:::::::::::
:::::::::::
:: Download Link
:: Click Here to download Build #2
:::::::::::
Build #1 info:
Uploaded On: 2012-09-22 22:57:55
Downloaded: 62 times
Click to expand...
Click to collapse
Thanks
jrongi1, brad heffernan (Miui.us)
link is not working
khan_frd2002 said:
link is not working
Click to expand...
Click to collapse
Uploading Mirror now, for some reason Dev-host is down .
That's just awesome, that someone else is now working on MIUI for vibrant! But, how about normal DPI?
TNK2005 said:
That's just awesome, that someone else is now working on MIUI for vibrant! But, how about normal DPI?
Click to expand...
Click to collapse
Yeah, see what had happen was when i first started porting it it was just for personal use so i did everything more of to my liking but I'd be happy to change things up and add/remove things. It's two things you can do as of now dealing with the DPI.
One: Download Build.prop editor from Google play, and change the DPI to 240 yourself. build.prop Editor by Nathan Campos
Two: Wait for the next update which will come with more options
Thank you for this!
Since J is dropping the miui port, this will be surely just as good!
I'd be more than happy to test out your experimental builds as I have done for J.
Also link does not work but mirror does.
Sent from my SGH-T959 using Tapatalk 2
Is there any way to get TV output working with this
Sent from my SAMSUNG-SGH-T989 using xda app-developers app
xriderx66 said:
Thank you for this!
Since J is dropping the miui port, this will be surely just as good!
I'd be more than happy to test out your experimental builds as I have done for J.
Also link does not work but mirror does.
Sent from my SGH-T959 using Tapatalk 2
Click to expand...
Click to collapse
Yeah, I actually have the newest build for you to test now.
And Yes, I am aware of that, Dev-Host 'WAS' down but is back up now.
chriswallen79 said:
Is there any way to get TV output working with this
Sent from my SAMSUNG-SGH-T989 using xda app-developers app
Click to expand...
Click to collapse
I am not positive if it'll work, It does have the options but I have no way for sure to test it.
so happy this came out about to flash in a little bit after i charge!
thanks alot
What dpi does this run at? It's a bit too big for me, I prefer default or 210 (gonna change it)
Also,
On that pic, what is that on the second pic?
xriderx66 said:
What dpi does this run at? It's a bit too big for me, I prefer default or 210 (gonna change it)
Also,
On that pic, what is that on the second pic?
Click to expand...
Click to collapse
My comfort level of DPI is "182" as you can see in the 2nd post screenshots.
that picture in the first post is from en.miui.com it self.
GeEazy said:
My comfort level of DPI is "182" as you can see in the 2nd post screenshots.
that picture in the first post is from en.miui.com it self.
Click to expand...
Click to collapse
Alright, I've officially moved onto this ROM, restoring my apps right now.
PM me with any test builds.
xriderx66 said:
Alright, I've officially moved onto this ROM, restoring my apps right now.
PM me with any test builds.
Click to expand...
Click to collapse
Alright, I'm currently trying to update to 2.9.21 once successful I plan on releasing on the 28th or before. I have a working port, but I'm having the very amusing CM9+ IMEI problem.
GeEazy said:
Alright, I'm currently trying to update to 2.9.21 once successful I plan on releasing on the 28th or before. I have a working port, but I'm having the very amusing CM9+ IMEI problem.
Click to expand...
Click to collapse
Not sure if you or Jrongi use different sources, but restoring my desktop layout gets me a FC every single time, and we all know how much of a pain it is to setup the homescreen.
Also, stuff like the "hidden proximity" feature seem to not be present (when your proximity is hidden, like if its in your pocket, it won't let you do anything until its unhidden)
xriderx66 said:
Not sure if you or Jrongi use different sources, but restoring my desktop layout gets me a FC every single time, and we all know how much of a pain it is to setup the homescreen.
Also, stuff like the "hidden proximity" feature seem to not be present (when your proximity is hidden, like if its in your pocket, it won't let you do anything until its unhidden)
Click to expand...
Click to collapse
Yeah, J did his own thing, & his was ICS. and I'm not to sure on the restoring desktop layout problem, I'll look into that as well as the "Hidden Proximity", I do know it works during calls tho.
GeEazy said:
Yeah, J did his own thing, & his was ICS. and I'm not to sure on the restoring desktop layout problem, I'll look into that as well as the "Hidden Proximity", I do know it works during calls tho.
Click to expand...
Click to collapse
Not the ICS one.
He has a JB one as well, but is most likely going to drop support for it.
http://forum.xda-developers.com/showthread.php?t=1552241
I'm guessing its because he uses miuiandroid, while you use miui.us
and I guess there are differences.
xriderx66 said:
Not the ICS one.
He has a JB one as well, but is most likely going to drop support for it.
http://forum.xda-developers.com/showthread.php?t=1552241
I'm guessing its because he uses miuiandroid, while you use miui.us
and I guess there are differences.
Click to expand...
Click to collapse
noooo, we used the same source on this current build, my next one is going to be miui.us unless i can get miuiandroid to work without bootloop, so you shouldn't be having a problem with 2.9.4 .
hows the battery on this?

[MODULE][TWEAKER] Yakt - Tweaks your kernel parameters

{
"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"
}
Download | Mirror​
Features:
- Reduces Jitter and Latency
- Optimizes Ram Management
- Uses Google's schedutil rate-limits from Pixel 3
- Tweaks kprofiles to balanced mode
- Disables scheduler logs/stats
- Enable ECN negotiation by default
- Disables SPI CRC
- Tweaks mglru a bit
- Allows sched boosting on top-app tasks (Thx to tytydraco)
- Cgroup Boost (Credits to darkhz for uclamp tweak)
How to Flash:
- Just flash in magisk and reboot
- And that's it
Notes:
- This is not a perfomance/gaming module
- Check documents folder for logs yakt.log
Github
Looks interesting iam using ktweak (balanced) by tytydraco is this a fork of the already existing ktweak script? I was wondering since the name tytydraco pops up in the op.
If compared to Ktweak what are the major differences?
just get block by avast
lemon567 said:
Looks interesting iam using ktweak (balanced) by tytydraco is this a fork of the already existing ktweak script? I was wondering since the name tytydraco pops up in the op.
If compared to Ktweak what are the major differences?
Click to expand...
Click to collapse
Yakt is diff from ktweak, ktweak focus on having less latency yakt focus on UX
ashcze said:
just get block by avastView attachment 5752967
Click to expand...
Click to collapse
Can u provide more info?
Zeetaa said:
Yakt is diff from ktweak, ktweak focus on having less latency yakt focus on UX
Click to expand...
Click to collapse
quote from tytydraco github:
"KTweak sacrifices throughput for latency, since latency correlates to UI / UX smoothness"
So eesentially both "tweaks" have the same goal in mind but their approaches are different
anyway thanks for the module I will give it a try
Be sure to look out for my own tweaks module coming soon called PlaceboMod
You'll know when its installed because all it will do during module install is say the following:
"Its 2022, no ROM developer is leaving any performance on the table.
Make better choices"
73sydney said:
Be sure to look out for my own tweaks module coming soon called PlaceboMod
You'll know when its installed because all it will do during module install is say the following:
"Its 2022, no ROM developer is leaving any performance on the table.
Make better choices"
Click to expand...
Click to collapse
No, thx
lemon567 said:
quote from tytydraco github:
"KTweak sacrifices throughput for latency, since latency correlates to UI / UX smoothness"
So eesentially both "tweaks" have the same goal in mind but their approaches are different
anyway thanks for the module I will give it a try
Click to expand...
Click to collapse
Yes, basically
Will this work well on the Pixel 7 Pro with the November update?
Gordietm said:
Will this work well on the Pixel 7 Pro with the November update?
Click to expand...
Click to collapse
Yes, it will work to make sure u can check logs on Documents/yakt/yakt.log
Gordietm said:
Will this work well on the Pixel 7 Pro with the November update?
Click to expand...
Click to collapse
Do u have the log? Just to know if works on 5.x kernels
Zeetaa said:
Do u have the log? Just to know if works on 5.x kernels
Click to expand...
Click to collapse
Yes, it worked. You need to look in your documents folder.
I'm currently not using it right though, I'm using a custom kernel.
Gordietm said:
Yes, it worked. You need to look in your documents folder.
I'm currently not using it right though, I'm using a custom kernel.
Click to expand...
Click to collapse
Ok thank you
Zeetaa said:
Do u have the log? Just to know if works on 5.x kernels
Click to expand...
Click to collapse
Hi, I am using it on Oneplus 9Pro running OOS13 stock 5.4.147 and it seems to be working fine. I can feel a difference in the UI operations. Thanks.
sshriss said:
Hi, I am using it on Oneplus 9Pro running OOS13 stock 5.4.147 and it seems to be working fine. I can feel a difference in the UI operations. Thanks.
Click to expand...
Click to collapse
Amazing! Thank you for your review.
New YAKT v7 release!​
Changelog:
- Reverted userdata tweak from oriole (This makes storage speeds lower).
- Removed some scheduler tweaks (This might fix callbench scores).
- Removed normal cgroup tweaker.
- Force zpool compressor to zsmalloc.
- Removed kprofiles tweak (Doesn't make any sense tweaking it).
- Enable sched auto group (In order to reduce latency).
- Tweaked sched_latency_ns.
Download: https://www.pling.com/p/1913001/
Mirror: https://www.opendesktop.org/p/1913001/
Hey dev, I see you very active with YAKT and Nexus (for which I don't understand all diff. repos).
Can you please explain something I cannot figure out: is it possible in kernel for newer Androids (I have 11 on lavender) to enable Mass Storage Gadget ,so that SD card from phone can be seen as USB drive in computer? (I used UMS Enabler app for that ,but needs MSG).
Must it be compiled or could it be Magisk module tweaker ,like this one ?
Hi! Something weird is happening to my phone, whenever I reboot and unlock it instantly, the YAKT.log is created, but when I unlock it after some minutes the log isn't. I don't understand why and I don't know if yakt is working when the log isn't created.
This can be used on any kernels including stock's?

Categories

Resources