yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Nexus] Dudeyourdead:
What i did to help with the ram [MENTION=7099520]konnarides[/MENTION] was install Greenify and Kernel tuner off of play store and hibernated all apps with Greenify, and used the tuner on the ram profile tab set it to very light, and used the cpu tuner and upped the base value one notch, help stopped lockups but as a con it does eat up a nudge of battery. hope that helps!
[Samsung Galaxy Nexus] konnarides:
Runs well don't get me wrong,, I have 3-4 apps always running. That causes ram to max out. Otherwise great job.
[Samsung Galaxy Nexus] momojuro:
[MENTION=7099520]konnarides[/MENTION] Can you verify for me if the ROM's kernel has the KSM feature ? If so, I will make a script to enable it and you will tell me if it helped for your RAM issue. :)

In Terminal or via ADB, put this line and tell after that the result :

cat /sys/kernel/mm/ksm/pages_to_scan
[Samsung Galaxy Nexus] konnarides:
I would love to help out but late last night I had to flash back to 5.1.1 as I couldn't stay without a phone. What I can tell you is that in running services it shows bar of ram usage and the system is eating all the ram, apps are left with nothing to work with ,, that's with basic gapps installed.

I flashed my gnex 4-5 times in the last couple of days and don't want to brick it.
[Samsung Galaxy Nexus] momojuro:
No problem at all ! I'm understanding that perfectly, I didn't know that your Gnex is your main device. ^^'

I'm trying to help you as much as I can without having the phone, but I'm 100% sure that KSM and ZRAM will really fix the RAM problem. :)
[Samsung Galaxy Nexus] konnarides:
Thanks, I appreciate it. Custom 5.1.1 is running ok. At boot there is over 340mb/ram and through the day there is 250 and the least 150mb of ram remaining with 4-5 apps running.

I'm sure something can be done.
[Samsung Galaxy Nexus] momojuro:
That's what I got at boot on my CM 12.1 tablet with KSM enabled :

ZRAM is also enabled but I configured it to be used when my device will need it for multitasking. :)
[Samsung Galaxy Nexus] konnarides:
Blackgunz,,, do you know how to make an app or game ?
[Samsung Galaxy Nexus] momojuro:
No sorry, I don't have knowledge about Android apps development. :)
[Samsung Galaxy Nexus] phaleg:
Anybody else that could write a review in the thread review tab?
[Samsung Galaxy Nexus] Dudeyourdead:
[MENTION=5670369]BlackGunZ[/MENTION] I'll test for Ksm tomorrow for yah I've just got back in town
[Samsung Galaxy Nexus] konnarides:
If you don't use apps that run in the background,ie: email, widgets, Facebook,,, then it's ok. Otherwise ram is an issue.
[Samsung Galaxy Nexus] phaleg:
What about writing a small review in that tab? In this way, each user would like to check for reviews can go there and read them, instead of looking for all the thread long
[Samsung Galaxy Nexus] siealex:
Slightly offtopic, but do these flags work on a 5.1.1 ROM?
[Samsung Galaxy Nexus] smartAgent47:
Hello Everyone !

An important announcement.

Unfortunately, my galaxy nexus is not working properly. The power button is gone and not responding at all. Infact i was gonna break my thumb. I cannot boot the phone to recovery or to the OS. To continue the development, i need a compiler, who can compile Raxfian for Galaxy Nexus and release the builds here.

Please respond to this post who can help me regarding this problem. I am very very sorry for this. :(

Thank You

smartAgent47
[Samsung Galaxy Nexus] zieruchan:
my galaxy nexus power button already broken long time ago,

to poweron from offmode, I plug usb from pc and wait until offline charging indicator appear, and running adb shell > reboot on pc.

I dont know about marshmallow, but on lolipop I can use graviitybox to unlock screen from volume button
[Samsung Galaxy Nexus] smartAgent47:
The volume button wake is already included in the feature

That works when phone is on. My phone is not recognized by pc also.. The usb is broke n. Charging works. I am trying my best to get it on !
[Samsung Galaxy Nexus] konnarides:
I really hope someone steps forward and helps with the development of smartAgent's Raxfian Rom.

It's the best there is, only Ram is maxing out with gapps installed.

Other bugs are very minor.

Come on guys !!!
[Samsung Galaxy Nexus] zieruchan:
No!

I can confirm using zmod 5.1 + luckyk.

when I remove battery and insert again.

then plug usb to my pc. and wait a second until charging indication appear. my galaxy nexus detected as adb devices,

sometimes I need to

kill adb and startagain to make it detected

"adb kill-server"

6 month my gnex live without powerbutton!!

edit : before offline charging works on lolipop (or maybe because nwer ddk). all lolipop rom will boot into recovery automaticly without pressing any button. this is great feature for died powerbutton :p

i can upload video into youtube to proof this !
[Samsung Galaxy Nexus] smartAgent47:
I am talking about my fone's condition .. I dont want to know what happened to your phone !!!!!!!!

My phone's usb doesnt work and adb is not RECOGNIZED !!!

Only CHARGING works !!!

Also have you flashed the rom ? The volume wake feature is ALREADY IMPLEMENTED IN THE ROM !

Anyone here who can continue d development ? [MENTION=7123460]Dudeyourdead[/MENTION] was ready to build but did not respond to my message .. Please see this post [MENTION=7123460]Dudeyourdead[/MENTION]
[Samsung Galaxy Nexus] momojuro:
Yes, they work as I'm using them on my Lollipop tablet. :)

[MENTION=5039976]smartAgent47[/MENTION] I'm sorry for your device, it's too bad that I don't have one and that I can't compile with my old computer.
[Samsung Galaxy Nexus] smartAgent47:
I will give the fone to a local repairer to get that power button fixed. Till that time i will post blind builds :(
[Samsung Galaxy Nexus] siealex:
How much RAM does your tablet have?
[Samsung Galaxy Nexus] momojuro:
1GB, it uses the same Gnex OMAP4 processor. :)
[Samsung Galaxy Nexus] siealex:
After applying these keys in build.prop I lost transparent system bars. What key is responsible for this?
[Samsung Galaxy Nexus] momojuro:
Read well my previous post. By the way, they are still transparent for me. :)
[Samsung Galaxy Nexus] siealex:
I have both these flags true but still black bars.
[Samsung Galaxy Nexus] momojuro:
That's weird because they are transparent on my tablet with the added flags. If you really need this, you will need to remove them.
[Samsung Galaxy Nexus] siealex:
Is this correct, isn't this key boolean?

---------- Post added at 10:57 PM ---------- Previous post was at 10:29 PM ----------

Isn't it only for Dalvik?
[Samsung Galaxy Nexus] momojuro:
1. It's correct : Prefer 16bpp surface formats (persist.sys.prefer_16bpp). - Source : Galaxy Young's CM11 build.prop file

2. It works also with ART, no doubt about that. - Source : Amazon OMAP4 Kindle Fire's defintions file
[Samsung Galaxy Nexus] AceNJ:
can anyone confirm if this works for toro (Verizon Galaxy Nexus variant)
[Samsung Galaxy Nexus] traco1:
Dude this is on page 1. savy
[Samsung Galaxy Nexus] teknoraver:
Seems to work, but it does "optimizing apps" at every boot fortunately it has only to optimize Google Play Services and Google Sheets, but it still takes half an hour
[Samsung Galaxy Nexus] Nautilus74:
This is not a problem of the rom...
[Samsung Galaxy Nexus] ajis cullens:
hello.. i've got a problem..after finish boot..it goes wrong

wizard setup force close..any solution?

btw thanks
[Samsung Galaxy Nexus] teknoraver:
do you know how to fix it?
[Samsung Galaxy Nexus] Nautilus74:
I had not found your problem.

I've used these gapps:

http://xdaforums.com/android/software/app-minimal-gapps-gapps-lp-20150107-1-t2997368
[Samsung Galaxy Nexus] AceNJ:
coming from a previous 5.1.1 ROM... when i try to flash any gapps it says i don't have enough space (but I have plenty). i'm sure i'm missing a simple step but not sure what it is.

---------- Post added at 09:48 AM ---------- Previous post was at 08:59 AM ----------

never mind i figured it out. it really is a space issue based on how this ROM is setup. kind of a bummer because the whole reason I wanted to try 6.0 was for the on tap and okay google anywhere features which are not available on the zero/micro GAPPS. will try another ROM instead but hope to see this updated soon with more space for gapps.
[Samsung Galaxy Nexus] SuperGoober:
Can't you download it from the play store ? Try that , should work . Micro gapps just get you up and running with the small system partition but then you can download playstore apps .
[Samsung Galaxy Nexus] AceNJ:
i'm not sure but i don't think so. source: http://xdaforums.com/slimroms/general/gapps-official-slim-gapps-trds-slimkat-t2792842

i need the "mini" but only the "zero" can fit. they are system apps/services, not user apps that can be downloaded / installed from the play store.
[Samsung Galaxy Nexus] konnarides:
My friend,,, download Google Now Launcher from play store and you will have "on tap" ok google voice search.
[Samsung Galaxy Nexus] siealex:
Does WiFi hotspot work in this ROM?
[Samsung Galaxy Nexus] momojuro:
It's the time to return here ! I found great tunings (which I tested and shared on my OMAP4 tablet subforum) and I wanted to share them with guys. For the RAM problem tho, I'm totally sure that the use of the KSM and ZRAM features is the solution (with some good settings that I can share in future). Don't hesitate to give your feedbacks and/or a little thankie if you want to. :)

- Firstly, you need to mount RW your phone. For so, type both of these lines one by one via ADB or via Terminal :

su
mount -o remount, rw /

- Secondly, we will begin first with the build.prop flags changes. Your phone needs the right Dalvik VM values which follow its physical memory resources. Also, those settings were also tuned to avoid memory pressure with multiple cached app processes while switching between applications.

Now, you will need to put my following lines instead of the ones present in the build.prop (/system/build.prop) file using a file manager with root access (sentences written with a bold text is to help you for so, don't add them. If the lines that I mentioned don't exist, just add them !) :

dalvik.vm.heapstartsize=8m [b]- This line already exists, simply change its value with mine.[/b]
dalvik.vm.heapgrowthlimit=100m [b]- This line already exists, simply change its value with mine.[/b]
dalvik.vm.heapsize=174m [b]- This line already exists, simply change its value with mine.[/b]
dalvik.vm.heapminfree=512k [b]- This line already exists, simply change its value with mine.[/b]
dalvik.vm.heapmaxfree=8m [b]- This line already exists, simply change its value with mine.[/b]
dalvik.vm.dex2oat-flags=--no-watch-dog [b]- Add this one.[/b]
dalvik.vm.image-dex2oat-Xmx=174m [b]- This line already exists, simply change its value with mine.[/b]

- Finally, there are still two things to do :

a) I'm sharing my performance script which I used for my tablet with modifications that I done for the Galaxy Nexus. That's what it does :

- It adds better mount options for the phone partitions, as they give a better performance.

- Disable useless debugging (for the users of course)

- Better LMK (LowMemoryKiller) and VM (Virtual Memory) settings according to the RAM of the Galaxy Nexus.

- It also gives a better I/O performances with some tweaks that I put in.

From your side, you will need to put my joined script in the /system/etc/init.d directory and to give the right file permissions using this command via ADB or Terminal :

chmod 755 /system/etc/init.d/99Performance

b) And to finish, it remains only to wipe the dalvik-cache and to reboot the phone !

Sources :

01.org - Android Memory Tuning for Android 5.0/5.1.

Franco's Dev Team - Various tunables and tweaks.

The Android Source Code - Configuring ART.

The Android Source Code - Low RAM Configuration.

By the way [MENTION=1097461]siealex[/MENTION], I found too how to re-add the transparent status bar while keeping the flags : You should simply go to Developer Options and to check the Highend graphics enabling.
[Samsung Galaxy Nexus] siealex:
Do these scripts work on 5.1.1? I want to try them on Lollipop.
[Samsung Galaxy Nexus] momojuro:
Yes ! It's universal. :)

It's unfortunate to see that my script has been download 30 times but without any feedback.
[Samsung Galaxy Nexus] Nautilus74:
on my init.d directory, I've found 99SuperSUDaemon script .

Do I have to rename your script in '98'?

or i must rename my 99SuperSUDaemon in '98' ?
[Samsung Galaxy Nexus] momojuro:
You can directly put it in the init.d directory, but I suggest you to rename 99SuperSUDaemon to "98" to let it the priority of launching before my script. :)
[Samsung Galaxy Nexus] bamtan2:
I am not a developer, so I do not know the merit of your work... but I can still thank you for doing the work :) :) :)

I can also mention [MENTION=2633638]Ziyan[/MENTION] [MENTION=3390093]MWisBest[/MENTION] [MENTION=4608636]bsmitty83[/MENTION] because they know the kernel well and may be interested in collaboration!
[Samsung Galaxy Nexus] momojuro:
[MENTION=4545566]bamtan2[/MENTION] Thank you, it's very nice to read posts like yours !

When I spoke about feedbacks, I meant about reports : If my script's user can note improvements, if he has suggestions ect.. It will be a pleasure to help them ! By the way, I'm not a developer too. :)

Best regards.
[Samsung Galaxy Nexus] Nautilus74:
I've inserted your script in Chroma 5.1.1....

ROM works good

How can I tell "with mathematical certainty" if your script is working?
[Samsung Galaxy Nexus] momojuro:
You can follow my steps using ADB or Terminal :

1. To check that the mount options are correctly applied, type mount and a list of partitions will appear. If the /system, /data, and /cache partitions show that they are mounted with the following ones : nodev,noatime,nodiratime,barrier=0,noauto_da_alloc then you are okay.

2. To check that the debugging disable part worked, type this line : cat /sys/module/*/parameters/debug_mask and you will have some "0" which will appear.

3. To check that the LMK and the VM settings are correctly applied (FS and Entropy tweaks are counted in), type those lines :

VM

cat /proc/sys/vm/dirty_background_ratio => The result will be 5.

cat /proc/sys/vm/dirty_ratio => The result will be 20.

cat /proc/sys/vm/min_free_kbytes => 2884.

LMK

cat /sys/module/lowmemorykiller/parameters/minfree => The result will be 6144,8192,12288,16384,24576,40960.

cat /sys/module/lowmemorykiller/parameters/debug_level => The result will be 0.

FS tweaks

cat /proc/sys/fs/lease-break-time => The result will be 10.

Entropy tweaks

cat /proc/sys/kernel/random/read_wakeup_threshold => The result will be 256.

cat /proc/sys/kernel/random/write_wakeup_threshold => The result will be 512.

4. Finally, to check that the I/O scheduler tunables are correctly applied, type these ones :

cat /sys/block/mmcblk0/queue/nr_requests => The result will be 512.

cat /sys/block/mmcblk0/queue/add_random => The result will be 0.

cat /sys/block/mmcblk0/queue/rotational => The result will be 0.

cat /sys/block/mmcblk0/queue/iostats => The result will be 0.

cat /sys/block/mmcblk0/queue/rq_affinity => The result will be 1.

cat /sys/block/mmcblk0/queue/nomerges => The result will be 1.

Best regards.
[Samsung Galaxy Nexus] Nautilus74:
my results:

cat /sys/module/*/parameters/debug_mask ---> 3,1,7,1,1,3,0

cat /proc/sys/vm/dirty_background_ratio ---> 5

cat /proc/sys/vm/dirty_ratio ----> 20

cat /sys/module/lowmemorykiller/parameters/minfree ----> "permission denied"

cat /proc/sys/fs/lease-break-time => The result will be 10 ----> 45

cat /proc/sys/kernel/random/read_wakeup_threshold -----> 64

cat /sys/block/mmcblk0/queue/nr_requests -----> 128

.....I was not able to insert your script on my gnex... :(
[Samsung Galaxy Nexus] momojuro:
Are the partitions mounted with the mount options that I gave before ? I think that there's a problem with the symlinking between busybox and the applets if it's the case. Try with this one and tell me the results !

I added "buysbox" before every applet and I changed the permissions of /sys/module/lowmemorykiller/parameters/minfree to let the script to change its values. Otherwise, update your busybox and retry again with the same attached script ! Also if any, verify the permissions of the script itself (it should be 755 - rwxrwxrwx).

Best regards.
[Samsung Galaxy Nexus] siealex:
Why there is no discard option here?
[Samsung Galaxy Nexus] momojuro:
Because I can't put something that I'm not sure of, as it didn't work well on my tablet. Even if it worked with for majority of users, I need to ensure that what I give works for everyone. Also, the script only adds the mount options which you quoted above, it doesn't erase or "remove" the stock ones. :)

Best regards.
[Samsung Galaxy Nexus] Nautilus74:
ooooh! I finally managed to run your script! :)

but I am only successful in using this:

https://play.google.com/store/apps/details?id=os.tools.scriptmanager&hl=it

very comfortable!
[Samsung Galaxy Nexus] momojuro:
Finally ! Script Manager is a very good alternative, and I'm glad that it works for you now. If you have a question, a suggestion and/or a feedback about my script, don't hesitate to tell me. :)

Best regards.
[Samsung Galaxy Nexus] Nautilus74:
I definitely inform you about script, after understanding the actual best on my utilized rom.

But we are ruining a little smartAgent47' thread....

So I apologize to him and I'll be curious to try your script on Raxfian
[Samsung Galaxy Nexus] Nautilus74:
@ BlackGunZ

the situation with your script, used on Lollipop rom, improves slightly, but ram problems in certain situations (frequently) there are still....

Perhaps the difference will be greater on Marshmallow....
[Samsung Galaxy Nexus] momojuro:
Well, what I'm suggesting (especially for ROM porters/builders) to reduce that those RAM problems happen frequently is :

- To enable KSM (Kernel Samepage Merging with pages_to_scan set to 100 and sleep_millisecs set to 500);

- And to enable ZRAM (with 256MB of disksize, vm.page-cluster set to 0 and vm.swappiness set to 100) !

That's what we're using actually on our OMAP4 tablet's CM 12.1 ROM, and your one's kernel needs to support the features which I mentioned. :)

Best regards.
[Samsung Galaxy Nexus] WoolTomb:
Hi, can i use this Rom for all days or it has a lot of bugs?
[Samsung Galaxy Nexus] WoolTomb:
Work on maguro?
[Samsung Galaxy Nexus] Nautilus74:
yes, it works
[Samsung Galaxy Nexus] Paro-89:
Hi, i am trying this rom now because it could like me. It will be future release?

Special thanks!!
[Samsung Galaxy Nexus] momojuro:
Unfortunately you will have to wait, the ROM builder's phone is still damaged. :/ Read his quote below :

Best regards.
[Samsung Galaxy Nexus] Paro-89:
Its normal that when i power on my phone its all black?
[Samsung Galaxy Nexus] :
I'm actually wondering how much RAM can be reclaimed this way, and how big impact it has on CPU and battery life. I'm not knowledgeable about Linux but from what I understand KSM brings a lot of benefits when multiple VMs / same programs are used together. In case of Android you usually just run single instances of individual apps so the benefits of KSM seem to be rather minimal.

Isn't it harmful for battery life and overall CPU performance to do all the scanning if the final result is just a few MBs of RAM?
[Samsung Galaxy Nexus] momojuro:
The aggressiveness of KSM memory scanning is determined by both of the pages_to_scan and sleep_millisecs parameters.

pages_to_scan : How many present pages are needed to scan before KSMD (kernel Samepage Merging Daemon) service goes to sleep.

sleep_millisecs : How many milliseconds ksm should sleep between the scans.

These two parameters combine to determine how often KSM wakes up to scan memory and for how long. Unfortunately you're right, this feature is harmful for battery life and overall CPU performance as the CPU load will be higher than "normal". Its use depends on the user's choice, and on the degree of his caring about the RAM saving !

Best regards.
[Samsung Galaxy Nexus] Nautilus74:
I'm using ZZ 6 zzpianoman's rom, and KSM is set to 256/1500 on default (+zram enabled with Skynet script)..... working fine!
[Samsung Galaxy Nexus] :
In my system the CPU load of KSM set to 100/500 is around 3%. Changing to 100/1000 decreases it to 1.5% and 100/1500 to less than 1%. Intel recommends 100/500 for 1 GB devices but I think we may need to adjust this value for GNex with its older / slower CPU (same as in case of their zRAM recommendation to use half of the available memory which is too much for GNex).

I am going to test it more thoroughly but at the moment the results are approximately 1700 pages shared (=6.6 MB) and 12000 pages sharing (=46.9 MB) which should mean that KSM has saved about 40 MBs (which is more than I expected).

For the time being I have set it to 150/1500 and will leave it like this for a few days.

This website has some useful information on KSM and how to easily calculate the shared memory: http://serverascode.com/2012/11/11/ksm-kvm.html.
[Samsung Galaxy Nexus] AceNJ:
so i suppose this is no longer in development?
[Samsung Galaxy Nexus] AMKhatri:
Is this stable enough for use as a daily driver?

EDIT: Just did a clean flash. For those interested to know: From a quick look:

Hotpost doesn't work.

I'm unable to get mobile data to work.

Cellular network resets after every phone call.
[Samsung Galaxy Nexus] Samuel Prouse:
Compatibility

Please forgive the question - but what model of the Galaxy Nexus is this for? (E.g., maguro, toro, toroplus)
[Samsung Galaxy Nexus] bamtan2:
At some point the ROMs were made universal so they would work on all 3. This ROM is old, but it might be new enough for that, I don't know. I would instead recommend a newer ROM. Right now I am testing the lineage 14 build found here and it works well: http://zeelogkang.blogspot.com/2017/05/lineageos-141-unofficial-712-gnex-tuna.html
[Samsung Galaxy Nexus] guest4711:
See post#4:
[Samsung Galaxy Nexus] Samuel Prouse:
Thank you for answering the question. And, I've had some unpleasant experience with LineageOS, so I'll be looking elsewhere for my desired ROM until I learn to build one myself.
[Samsung Galaxy Nexus] bamtan2:
The starting place for you then is Unlegacy, which was started by the Galaxy Nexus lead developers, and is where all the newest code comes from :) https://xdaforums.com/galaxy-nexus/development/rom-omap4-aosp-project-t3334574
[Samsung Galaxy Nexus] Samuel Prouse:
Actually, that's what I'm currently running — unlegacy Marshmallow. Most of the features appeal to me, but it drains my battery worse than lineage. I'm going to try Dirty Unicorns next.

Edit: Though, I was considering trying CyanogenMod 13. I know it's a discontinued project, but being probably the most popular custom ROM of it's time, I'd like to try it. Opinions?
[Samsung Galaxy Nexus] bamtan2:
CM13 became LOS13, so they're very similar. All of these ROMs are based off the same work by the same handful of people who mostly target Unlegacy as their baseline AOSP ROM. Different people then take that work and build their custom ROMs with various tweaks.

If you had battery problems with Unlegacy, feel free to post a report in that thread, because there is probably no known battery problem.

Voidz's builds can be found here https://plus.google.com/+HatayamaYuuji and here https://androidfilehost.com/?a=show&w=files&flid=18435 -- he built Dirty Unicorn for this device.
[Samsung Galaxy Nexus] runekock:
Or maybe you need a new battery?
[Samsung Galaxy Nexus] Samuel Prouse:
I've already bought a brand-new battery.
[XOLO A500S] sriram prakhya:
XDA:DevDB Information

developers for xolo a500s lite , ROM for the XOLO A500S

Contributors

sriram prakhya

ROM OS Version: 4.1.x Jelly Bean

Version Information

Status: Testing

Created 2015-11-22

Last Updated 2015-11-22

plz visit mu blog and help me to create more roms www.xoloa500slite.blogspot.in
[XOLO A500S] rajanj1996:
Is a500s and a500s lite are same?