yashsingh1/xdaforums huggingface dataset:
[Galaxy Ace II Android Development] ace2nutzer:
U've to use init.d script if u want to apply those tweaks on boot.

Then after reboot check every tweak if it really applied, if not then probably A2N App overwrited some settings,

in this case just add a delay before u apply your own settings like that:

# 30 sec pause
sleep 30

# tweaks
echo 0 > /sys/kernel/some_interface

edit:

if it's still not enough, then use 45 or 60 seconds.
[Galaxy Ace II Android Development] Sidebandit:
Mixed results. Using code init.d -

echo value in bytes > /sys/module/mali/mali_mem kept the value BUT echo value in bytes > /sys/module/mali/parameters/mali/pre_allocated_memory_size_max stayed at 0. I guess because """ memory_size_max was unchanged it nullified my mali_mem value?
[Galaxy Ace II Android Development] Sidebandit:
Finally! I'm sure i could do away with sleep 1, just wanted to make value was applied after permission change. See pic, couldn't upload .txt file copy of init.d?
[Galaxy Ace II Android Development] ace2nutzer:
Not all rw interfaces are writable ... soemtimes they just have wrong permissions.

mali_l2_max_reads is not writable .. so u can't force to write on it by simply changing permissions. It'll not apply.

It turned out that it doesn't improve anything changing this l2 stuff.. so it's read-only. (because probably only makes things worse)

mali_mem is theoretically meant to change GPU RAM on the fly .. but on our device this doesn't work.

As i said before it's hardcoded and dynamically managed by the kernel.

The only thing u can try (if it improves gaming speed) to change is the "pre_allocated_memory_size_max" Value.

Note: the higher this values is, the more earlier the OOM-Killer will kill background apps to make free space for the GPU, even if it's actually not needed at all ! (So it'll make multitasking worse, when actually not playing games)

16 MB is the Stock Value by SAMSUNG.

Open with root explorer this init.d script in:

/system/etc/init.d/99_user

and edit to this:

#!/system/bin/sh

# User init.d script

#sleep 30

# tweaks
echo 16777216 > /sys/module/mali/parameters/pre_allocated_memory_size_max

sleep command is hashed because it's not needed for this tweak, A2N App doesn't have this tweak, so it can't override.

Save, and reboot ... done.

Note: when flashing a kernel update this script "99_user" will be overrided with an empty one, this is to make sure to remove any bad tweaks from user. Anyway if u know what u are doing, then just make a copy and save it to "/data" so after kernel update u can replace the empty script with yours. At this Way no need to mess it up with the permissions from the script. Just keep everything as it is .. only rename ... but keep the *.sh .. don't use *.txt. And for the last tip: don't buckup the script to your sdcard .. because non linux filesystem will loose the correct permissions. save it only on EXT2/3/4 filesystems.... /data is EXT4.
[Galaxy Ace II Android Development] Sidebandit:
Excellent! IThanks for your help interesting stuff. I've stored it useful to know I don't plan to use it often but if the need arises..... Tested on Gameloft N.OV.A legacy which is quite intensive for a old device. No problems found it played good.

Question: cm settings\performance enable per-app profiles? Switched by app loading?

Update low_ram flag. When enabled no obvious difference in apps being killed or lags but after disabling you notice the difference, more fluidity of you UI - performance gain.

Other related settings for those interested.

Samsung J1 mini prime 1GB Marshmallow

ro.config.ksm.support= true or false any device with ksm?

#zram

ro.config.zram.support= true or false(if supported) any device with zram?

ro.board_ram_size= high or low device specific, stock?

------

ro.config.low_ram= true or false 4.4+

Thanks
[Galaxy Ace II Android Development] ace2nutzer:
:good: :highfive:

I'm not aware how it works, how it decides what profile to use. IMHO that's useless feature.

Yeah, that's probably the reason why we decided to not use it. :cowboy:

OFFTOPIC

That's not important ... anyways if ksm support is there in kernel, then set "true", otherwise "false"

same like ksm .. if supported then "true"

Anyway u shouldn't use zram and ksm at the same time, so set it to "false".

false.
[Galaxy Ace II Android Development] Sidebandit:
[MENTION=5840412]ace2nutzer[/MENTION] Thanks for info on "enable per app profiles". Low ram flag I thought that was only for 4.4 +? How about Gingerbread?

Slightly off topic to the thread. Those additional buildprop values are for my Samsung J1 mini prime marshmallow. There are 2 variants EU which is 768mb ram and a 1gb version. I have the 1gb version and rooted. I run a light stock on it (debloated). I don't use zram on it, it's disabled in buildprop and swapiness turned set to zero Those settings (previous post seem more suited enabled in 768mb variant - bloated Samsung rom. TBH I'm not bothered about using the J1 mini. The only thing that interests me in the J1 is the Mali 400mp2 and it's configuration whether anything can be gained/learned from it for my existing ace 2 - Galaxy S3 mini. I have heard there Mali 400 open source drivers.

Back to Ace 2. Pre allocated ram various values had no effect on N.O.V.A legacy. GLTools similar to chainfire 3d did.
[Galaxy Ace II Android Development] ace2nutzer:
U can also check Post #3 .. there are some tips.

I don't think GB has it, it's too old as low_ram config was introduced with KitKat.

It doesn't matter, 768 MB - 1GB is nearly the same.

Mali Drivers are open source in kernel .. but the ones from high level (ROM) are not.

No, every device needs his own tweaks and settings.

Yeah, i also couldn't notice any benefits when i was testing different values with Real Racing 3, so it's set to Zero in order to reduce memory pressure.
[Galaxy Ace II Android Development] Sidebandit:
J1 mini - 768mb/1gb effects this setting > ro.board_ram_size= which effects the % of zram used 30% or 50% used. As for zram the setting to kill it that stuck is code swapoff/dev/block/zram0. This returns a 0mb used in term emulator.

Ace 2 low ram flag works but it would be handy to a toggle, could this be added to a2n app or cm performance/settings? Also switched out nova launcher for zeam (400kb) its a long abandoned GB launcher which works well on small screens.
[Galaxy Ace II Android Development] ace2nutzer:
No sorry, A2N App is for kernel, and that flag is ROM related.

Just use build.prop editor or simply the CM FileManager in root mode. (built-in)
[Galaxy Ace II Android Development] Vexylle:
[MENTION=5840412]ace2nutzer[/MENTION]

2015,01,06 works great for me, smoth and stuff, but on the latest build the whole phone got laggy and unresponsible.
[Galaxy Ace II Android Development] ace2nutzer:
Well, the laggs are coming from Ram Management.. and zRam ... but Blackscreen should an CPU Voltage problem..

I'll try to fix it.
[Galaxy Ace II Android Development] Matteo90:
I had blackscreen on 1220 too, but after pressing power button twice, it worked again.
[Galaxy Ace II Android Development] Yønn:
Hello [MENTION=5840412]ace2nutzer[/MENTION],

First thanks a lot for all your work.

I want to apply your instructions on Post #3 : Repartitioning your NAND-flash

But I have a (maybe stupid) question: how to backup/restore sdcard0?

1. I am not sure if after rebooting to recovery (CWM) and doing a backup to /storage/sdcard1 will do a backup of both my /data and sdcard0. Can you tell me?

2. I checked that advanced restore from /storage/sdcard1 suggests to restore sd-ext but I am not sure if this correspond to sdcard0. Can you also tell me?

Thanks by advance for your help.
[Galaxy Ace II Android Development] ace2nutzer:
U need to copy all files from sdcard0 @ sdcard1 with FileManager .. under running android ... not on cwm ... i tought it was clearly .. lol ;)

after all operations .. then at the end (in android with FileManager again) copy the sdcard0 files from sdcard1 back to sdcard0 ... that's it !
[Galaxy Ace II Android Development] Yønn:
Thanks you very much!

I could do all the process and it worked. Now I have more space for apps, it helps a lot.
[Galaxy Ace II Android Development] supachris:
Fix for ram issue would be very nice. After trying 20150115 build, I'm also back on 20141220. Phone lags after some hours and "free" RAM is down to 50 MB.

Galaxy Ace 2 GT-I8160P, ace2nutzer kernel (20141220) and Rom 20141118), f2fs
[Galaxy Ace II Android Development] supachris:
I found another issue today: Is there a possibility to increase the charge current when connected only to the power pins of USB? I have a brodit car mount and there are the D+/D- signals not available in the cable. In the mount the phone charges only if screen is off. With navigation and/or screen on the battery is going low very fast although this is an active mount. With the TC stock kernel the phone charges with USB charging current.

Galaxy Ace 2 GT-I8160P, ace2nutzer kernel (20141220) and Rom 20141118), f2fs
[Galaxy Ace II Android Development] ace2nutzer:
Can u Guys with all these Problems pls test if the following unofficial builds are better than latest build here: 20150115 ??

Because it's based on 0115 but with some changes in ram-management, CPU Table and updated 01optimization File...

Pls compare this test1 builds with 0115 and 1220 :o

Pssst: Check also the stability on OC over 1Ghz ;)

codina ext4

http://xda.mister-freeze.eu/XDA-fil...ernel_cm11_20150115_ext4_ace2nutzer_test1.zip

codina f2fs

http://xda.mister-freeze.eu/XDA-fil...ernel_cm11_20150115_f2fs_ace2nutzer_test1.zip

codinap ext4

http://xda.mister-freeze.eu/XDA-fil...ernel_cm11_20150115_ext4_ace2nutzer_test1.zip

codinap f2fs

http://xda.mister-freeze.eu/XDA-fil...ernel_cm11_20150115_f2fs_ace2nutzer_test1.zip

This is not an issue and u can't set an higher current for USB (PC) than 500mA ... it's just USB 2.0 spec. or u're using an 3.rd-party usb charger... check this:

That means u need maybe to hack this.. ... check this out: ;)

http://www.androidauthority.com/how-to-fast-charge-samsung-galaxy-phone-using-any-usb-charger-66256/
[Galaxy Ace II Android Development] junnickbefore14:
Well perhaps it is caused by mmcqd/0 eating high cpu because of i/o problem..

I had this issue but now since my /data partition have much free space, it never happen again

Try to see what process is struggling that causing lag by show cpu usage in dev-option

If the blue bar is longer than the gren and red one, and there is a process called mmcqd/0 at the top, maybe you have the same problem with me
[Galaxy Ace II Android Development] strangebro:
Using 20150115 test 1. Running smooth and get more free ram.

(From around 50MB to 190 MB). 1.2 GHz without random reboot. Battry report in couple days maybe.
[Galaxy Ace II Android Development] supachris:
I know the USB spec and the currents. But I mean another case, maybe this is the case "3rd party charger". I measured this morning again:

USB Charge on PC: OK, 485mA

Charge at Samsung/Asus charger OK: 590mA or the values from NT settings.

But Charge on only connected VBUS and Ground (I guess this is "3rd party charger" without modification): only 180mA.

Even if I short the D+/D- the phone only draws 180mA. This is a different to stock TC kernel, which charges with 500mA even if there is no real USB connection.

Hacking the Brodit car mount is very complex....but I can try if there is no possibility to change the current in kernel.
[Galaxy Ace II Android Development] Janosik449:
Thanks for your work.

I have problem with battery it is normally goes in to deep sleep, but when i use 3g in opera mini the battery in draining very fast.

I use stock values, no oc. I have now 2015.01.15 version
[Galaxy Ace II Android Development] Peedy2495:
I'm trying to understand, where the space of sdcard0 comes from ...

well, vold catches /storage/sdcard0 (522.2M) from /mnt/media_rw/sdcard0, but from where is the physical space ???

Info: the disk-cleanout for f2fs is allready done.

Backround: PlayStore told me, that mem is full although most apps have been moved to sdcard1

I'm wondering, because the free space of the internal was >1.5G and sdcard0 had ~150M free.

It's impossible now to add different languages in Google-Translate because of lack of memory space (the language-packs are combined with App-Extentions and Data) .

Maybe a limitation in storage_list.xml: android:maxFileSize for example "4096"?

Reference: https://source.android.com/devices/storage/config-example.html

Is it possible to increase the size of the virtual sdcard0-Disk? (Mechanism?)

Pse help me to understand the mount mechanisms related to sdcard0

Bye ... Peedy
[Galaxy Ace II Android Development] S.AMU:
The physical space comes from the emmc chip in our phone :D

Is this really your question or did I miss understood you? :/

Edit: google translate stores its files in sdcard0, so with only 50mb free, I think is a little bit short
[Galaxy Ace II Android Development] ace2nutzer:
Maybe [MENTION=4947931]Rox[/MENTION] ? If u've Time.. Because i'm still not able to build cm sources (old laptop).. That would be very nice.. Just only for codina ext4 ... All the other Versions i can make itself :)
[Galaxy Ace II Android Development] Moonly:
No need to spam to every thread, especially when it's not a ROM thread...
[Galaxy Ace II Android Development] Peedy2495:
Hey S.AMU, the question was, from whitch physically mounted partition the virtual sdcard0 fuse mount comes from ...

where is the container or folder of this space and it's mount-config, too?

bye .. Peedy

Sent from my A700 using Forum Fiend v1.3.
[Galaxy Ace II Android Development] Sidebandit:
Excellent ? Thanks for the latest updates. I only updated the kernel + BP, working good I'll i have a better look tomorrow.
[Galaxy Ace II Android Development] ace2nutzer:
Forgot to mention: If u replace the build.prop, then reboot to recovery and wipe dalvik-cache. (for full speed)
[Galaxy Ace II Android Development] Sidebandit:
I extracted BP from latest rom and swapped it with current then booted straight into recovery to flash kernel. Easier to extract than copy and paste on a small screen. Still on default profile with low ram flag settings will check it out fully later. No problems. :good:

Will Stock kernel be updated?
[Galaxy Ace II Android Development] ace2nutzer:
The important thing is to wipe dalvik-cache after changing the dalvik heaps.

A2N Kernel for 4.1.2 is updated as well... check the date in Thread. (it shows current kernel version)
[Galaxy Ace II Android Development] Sidebandit:
Ah found updated kernel but no announcement in thread. What about buildprop?
[Galaxy Ace II Android Development] :
Hmm, can I ask you one help:

Can you give the tunables of interactive governor here? Cause my ace 2 is dead
[Galaxy Ace II Android Development] Sidebandit:
Thats stock gov. This kernel is conservative. Tunables are,

dynamic_ down_factor 46

static_up_threshold 70
[Galaxy Ace II Android Development] Sidebandit:
Thats stock gov. This kernel is conservative. Tunables are,

dynamic_ down_factor 46

static_up_threshold 70

Update. Taken from my S3 mini, NovaThor/Mali MP400 SoC. Nearly all my phones run custom as you know many Devs "Tweak" their tunables so i doubt these are default values.

Interactive ((S3 mini Omni LP)

above_hispeed_delay 30000

boast 0

boost_factor 0

go.hispeed_load 85

go.maxspeed_load 85

hispeed_freq 1134000 (S3 mini)

input_boast 0

io_is_busy 1

max_boost 0

min_sample_time 90000

sustain_load 0

timer_rate 30000
[Galaxy Ace II Android Development] Sidebandit:
So essentially if you used 4 steps 1300×4% = 52mhz some of the frequencies wouldn't be available. The thing is the figure of 1300? So this maximum scalable frequency is theoretical but in reality not usable? Can Under volting effect the mhz without changing down a step? For example 200,400,800mhz steps 1,2,3, if you drop the voltage say on 800mhz would it effect the mhz and still be on step 3. Can the frequency be controlled to some extent this way?
[Galaxy Ace II Android Development] ace2nutzer:
it can happen that they are skipped yes.

It's usable, but it's very unlikely that your Phone will handle it stable ... some years ago when this Phone Forum was more frequently used, there was 1 or 2 users where they reported that 1300 MHz worked stable, they say not 100% stable, but it was possible to use the phone with such high freq. Usually if your phone can handle 1200 or even 1250 MHz, then u're already very lucky about this quality of chips.

I've 2 ace 2, one only can handle 1150 MHz stable, while the other one can handle 1200 MHz stable. (maybe even 1250 MHz, didn't test so far)

Sorry, i didn't understand u.

If i got u, nope, the cpu voltage has nothing to to with the MHz = Performance.

Every step has his own predefined voltage.

But when u adjust CPU Voltage in the APP, then it'll increase or decrease voltages linear for all steps at once.*

This is to make it more simple, otherwise it should be adjustable for every step, that's too complicated and not very practicable for a normal user.

* It'll add or remove the adjusted Voltage to the steps ... thats how it works.

For the better understanding u can check the sysfs interfaces while adjusting CPU UV in the APP in:

cd /sys/kernel/liveopp
cat arm_step00
cat arm_step01
cat arm_step02

etc ... 00 is 200 and 01 is 400 MHz.

CPU Voltage is Varm.
[Galaxy Ace II Android Development] peterpp_bg:
Keeping SMS/Text messages + Viber photos when updating to ROM 20190202

Hi all,

Apologies for the silly question, but if I update from earlier ROM (20181023) to the latest one (currently 20190202 RELOADED), will I lose my SMS/Text messages history + photos/attachments in Viber messages.

Currently the backup which Viber can make, does not store the photos/attachments. It only backs up the text.

Similarly, when I was using the stock Samsung 4.2 ROM and I backed up and then restored SMS/Text messages, some of the messages were trimmed (I think the ones that were too long and were sent as 2 or 3 messages combined).

If installing the new CM11 ROM 20190202 RELOADED deletes the current phone contents, which utility would you suggest to backup and restore the phone contents.

Please only recommend utilities that you have used yourselves and they worked for the SMS/Texts and Viber.

Many thanks.
[Galaxy Ace II Android Development] Sidebandit:
Maybe several ways to do this but without doing it myself and not being able to guarantee 100%... Do you need to upgrade as this sounds like your main phone? Check with [MENTION=5840412]ace2nutzer[/MENTION] (dev) about wether a nandroid backup and just reinstalling data after kernel/rom update OR simply just upgrading the kernel to latest with the relevant build prop changes listed a couple of posts back. Good luck.
[Galaxy Ace II Android Development] ace2nutzer:
double post caused by browser or forum bug.
[Galaxy Ace II Android Development] ace2nutzer:
[MENTION=9688906]peterpp_bg[/MENTION]

U can safely upgrade to the latest ROM without to loose your Apps/data or settings.

For just in case u can do an cwm (recovery) backup .. u need a sdcard for this ... if something goes wrong u can "then" restore /data (which contains all your apps and setting) or even /system (which will restore the previous ROM) Anything else like Media Files are in your sdcard or the internal sdcard ..

but u can backup yourself by moving files from sdcard0 (internal) to the sdcard1 (external) with the built-in FileManager.
[Galaxy Ace II Android Development] Sidebandit:
Query:

Flashed gapps to bare bones ART compatible versions. Checked package out and made a backup before flashing, no probs. It optimized 30 odd apps on reboot which i thought a little strange? Then i went to dev settings to change to art the phone reboots and thats it. I recheck in dev settings and its still set on use dav???? Any ideas? Is there a terminal command to check runtime?

Thanks.
[Galaxy Ace II Android Development] ace2nutzer:
If it reverts back to dalvik-cache then there's still an issue with some apps .. or there's not sufficient free space on /data ... (internal storage, not usb storage)

Another cause could be too low art heap sizes .. so u may want to update

dalvik.vm.dex2oat-Xmx=128m

to

dalvik.vm.dex2oat-Xmx=256m

if it didn't solve the issue, then set it back.

Tip: When the Phone reboots du to changed runtime, then try to immediately reboot to reovery while it's rebooting .. then simply wipe dalvik-cache.. and let it reboot .. maybe helps. Good luck.
[Galaxy Ace II Android Development] Sidebandit:
Haha fixed! My mistake. I don't know why i didn't catch on sooner "xposed framework". I don't there is a 4.4 Art compatible version ???? Anyway uninstalled xposed and all is well.

Thanks for the tips ?
[Galaxy Ace II Android Development] peterpp_bg:
Keeping SMS/Text messages + Viber photos when updating to ROM 20190202

Yes, confirmed!

I installed the new ROM 20190202 (with the new kernel included) and all SMS/Text messages + Viber photos remained unaffected. Also all apps are as they were before the upgrade.

I did CWM backup for peace of mind, but I didn't need to use it.

Many thanks to ace2nutzer for the advise.
[Galaxy Ace II Android Development] bla.tiga:
How to set minimum cpu , with command line, i use settings in menu setting , but the setting change by itself

I want to set minimum 1000mhz for example
[Galaxy Ace II Android Development] Sidebandit:
KSM, on this rom/kernel i turn this off. Ram saved as viewed in a2n app never exceeds 15mb (check shared ram). I use it set to 200 pages. Maybe its my config of this rom and not many apps installed? I notice in other roms there's a sleep (ms) setting along with pages.

---

Now on a2n kernel - stock rom (other thread) there is a noticeable difference in check shared ram 130+ Perhaps its more effective and efficient on bloaty stock Samsung roms?
[Galaxy Ace II Android Development] ace2nutzer:
It's actually not possible .. because on returning from suspend it'll set min_freq to hardcoded Value.

Wait for coming Update, then it'll be possible to set min_freq regardless of the used min_freq for suspend.

Of course it depends on the amount of used apps ... more apps = more ram to be saved/shared.

Tip: keep it always enabled and use 300 pages. The cost of cpu/battery draining is very low.

15MB saved ram is still better than 0 MB :highfive:
[Galaxy Ace II Android Development] Sidebandit:
[MENTION=5840412]ace2nutzer[/MENTION] thanks for reply. I don't think I'll enable it on cm11 but I'll certainly try 300 pages setting on a2n kernel/stock. On stock it makes a more notable difference.
[Galaxy Ace II Android Development] ace2nutzer:
Kernel && App Update !!

Changelog:

Kernel 20190817:

Reverted back overclocked wifi module from 100 to 50 MHz - Caused system to freeze

CPU/GPU/SXA: updated governors to be more clean and smooth

Sweep2Wake: updated driver, added the ability to use it now even without extra wakelock

CPU: re-added the ability to set min_freq for screen ON regardless the used min_freq for Suspend (which is by default 200 MHz)

MCDE: added LCD workaround tunable to workaround wakeup issue on some broken LCD's. (it's useful if u've to press power button 3 times to wakeup the phone from suspend or deep sleep)

Source code cleanup - Fixed all leftover compiler warnings :)

A2N Kernel Control V6.7

Power --> Charger Control AC/USB: allowed up to 1500 mA input Current

Screen --> Added ability to use Sweep2Wake even without extra wakelock

CPU: added ability to set min_freq up to 200 MHz for Screen ON

CPU/GPU: added ability to tune the governor for more performance or more powersaving (very easy to use)

-------------------------------------------------------------------------------------------------------------------------------------------

Version Info:

Like always all the new added tunables are adjustable with or without root permission directly in /sys/*

Or more convenient and user-friendly over the Full Version of the Kernel Control App.

One Exception on this Update: the Tunable for the LCD Workaround is only in the Demo version available and will be installed automatically while installing this Kernel.