yashsingh1/xdaforums huggingface dataset:
[Galaxy Ace II Android Development] :
If you want performance, use gappsless; but if you want to use Play Store for installing apps, install gapps. It just cost you some system and RAM usages, but after hard tweaking it will use less. You can uninstall some system apps, but do with caution. User apps is your choice. You should use deep sleep battery saver or not use any battery saver tool.
[Galaxy Ace II Android Development] fonzacus:
id prefer not to use gapps, but i do need the chuck norris mode. if a2n can offer a gappsless version then i wont use gapps.

IIRC you also had battery issues. did you find the cause?
[Galaxy Ace II Android Development] ace2nutzer:
Yes.

An Android Phone without working play store is IMHO not very useful Phone.

Also it's required for the A2N Kernel Control APP.

Any reason ?

Only if u know what u're doing.

Of course u can :)

Yes :)
[Galaxy Ace II Android Development] stefanoscheda:
Here's a logcat for the Wordpress app failing to sound notifications.

TIA
[Galaxy Ace II Android Development] AkosPaha:
Hello [MENTION=5840412]ace2nutzer[/MENTION]!

Why does wifi direct not work? Somehow can work with Wifi direct (I need it).:)
[Galaxy Ace II Android Development] ace2nutzer:
No idea :)

@ stefano

Will check it when i've the time. (Grazie).
[Galaxy Ace II Android Development] :
[MENTION=5840412]ace2nutzer[/MENTION] Why in your kernel control app show 4 profiles, but in Settings -> Performance show only 3 profiles?

I advise you some more tweaking:

- Add Ace2Nutzer Kernel Control to Settings app (Rebuild Settings.apk or else...)

- Or just add more settings from your kernel control app to Performance setting.

And I want to translate your additional settings you added to Settings app from English to Vietnamese :) Because I am Vietnamese people ;) , I want this ROM to be popular to people who still use this phone in Vietnam :cowboy:
[Galaxy Ace II Android Development] ace2nutzer:
The Control App has nothing to do with the Settings APK from the ROM.

Honestly i don't plan to support any other language than english.

From time to time i add maybe an new Switch, then before i upload the App i would need to ask some users for translations ... so that's quite complicated and too much time consuming.

If i offer only english, then it's faster, adding new switch and directly upload. Faster updates and lesser time for managing this App. ;)

English is world language. - If someone don't understand some words or even not at all, simply can use Google translate. I know Google translate isn't the very best, but better than nothing. Also it can't hurt to learn english.

It's easy and nice language :)
[Galaxy Ace II Android Development] :
Ok it's just my advise...

More problem:

- Powersave profile has 500MHz speed, but other CPU app shows it is 800MHz (Reason: No 500MHz speed)

- Now tested undervolting: Just -25mV in 1200MHz speed is enough to make the screen show horizonal lines (randomly, even with XDA forum app), and sometimes cause hard reboot in big apps

- NOT COMPATIBLE with DEEPSLEEP BATTERY SAVER: using data connection tweak off/on during deep sleep too much times will make the modem cannot connect to data connection until 15~20 minutes. Anyone still using this tweak must uninstall it to not making damage to modem and so on...

- Volume control even set expanded but after a restart it become not expandable (setting icon disappear)
[Galaxy Ace II Android Development] leonardalps:
thanks, got it to work.
[Galaxy Ace II Android Development] ace2nutzer:
Read Powersave description of A2N Kernel Control App ;)

Did u tested first if 1200Mhz is stable at all for your CPU?

Anyway, it has nothing to do with LCD issues, try disable the "tuned freq" switch ... or even enable "chuck norris mode" but don't use both switches at the same time!

Also it seems that WS2401 LCD Driver is a bit buggy and it's (hopefully) fixed in coming update!

Yeah, as i already many times said: don't use such 3rd-party Apps for managing ROM or kernel configuration !

Especially tools for Kernel don't work at all because this is a CUSTOM and DEVICE SPECIFIC Kernel !

U can't find on Play Store any similar Apps that will work as well like A2N Kernel Control APP, or the own Settings u can set in the ROM itself !

Just configure your Phone properly and u're lucky to have over 4 Years old Phone, and still work good.

Tested right now and it works fine :confused:
[Galaxy Ace II Android Development] ace2nutzer:
Checked the Log and so far i'm not sure if it's ROM issue or App issue.

But i do more believe that's App itself issue.

In around 1 Hour i'll release new ROM ... try first with that, if it'll work or not, if it's still the same,

try to report this Bug on the Development thread from that App using the same logcat ... it looks good :good:
[Galaxy Ace II Android Development] ace2nutzer:
Update !!

Changelog:

Kernel 20170522:

Higher binary code optimization

Re-enabled zRam by default - but only low usage - swappiness=50

LCD: [WS2401] stock delays - should fix wakeup issues

Memory allocator: back to SLUB

Ramdisk: optimized scripts, ram management and clean up

Faster I/O Speed

Inkl. latest A2N Kernel Control [GT-I8160] V2.1

A2N Kernel Control [GT-I8160] V2.1

LCD: Chuck Norris mode: fixed description

A2N Kernel Control [GT-I8160] V2.0

Swappiness=50 by default

LCD: [WS2401] added Chuck Norris support - also for powersaving

A2N Kernel Control [GT-I8160] V1.9

Updated swap config

Fixed performance profile

Added "high performance" profile

ROM 20170522:

Re-synced cm sources

Higher binary code optimization

Dalvik: Optimized for Multiprocessor

High Performance ROM

incl. A2N Kernel 20170522 - normal version

Inkl. A2N Kernel Control [GT-I8160] V2.1

AUTO wipes, except factory reset

Version Information:

Update also gapps package for the best performance (check Post #1)

Enjoy this High Performance ROM & Kernel :)
[Galaxy Ace II Android Development] :
I will test this new kernel and report to you [MENTION=7796864]ACE2n[/MENTION]uter !

Installing... ;)

Edit: Installed successfully! (With wiping dalvik cache). Now testing your kernel :)

---------- Post added at 02:40 AM ---------- Previous post was at 02:16 AM ----------

I installed this new kernel and it destroyed my new ultimate performance mod :(
[Galaxy Ace II Android Development] vaterfa:
installed new kernel update and rom upate with dirty flash but i still got gray lines problem. can clean install solve this problem, shoud i try clean ?
[Galaxy Ace II Android Development] :
Errors found:

- Without factory reset recovery does not install ROM.

- User who is still using 2 factor authentication on SIM will not be able to login Google account. The only way is ignore.

- Logging in Google Account inside settings app only accept Wifi not for mobile data.
[Galaxy Ace II Android Development] ChuckMichael:
Google made some changes in KitKat, so drivers released before are incompatible. In Jelly Been Wi-Fi used same interface with Wi-Fi Direct, in KitKat they use different, I guess. To get Wi-Fi Direct support we need newer Wi-Fi driver.
[Galaxy Ace II Android Development] :
Does ART work in this new update? I want it because it make my app run smoother and not want a bootloop.
[Galaxy Ace II Android Development] ace2nutzer:
@ up

ART is on Android 4.4.4 Experimental Feature. - Anyway u can do a cwm backup, then enable ART in developer settings.

In a case of Bootloop or some apps don't work anymore, then simply wipe data in recovery and restore the cwm backup.

Be aware that it's normal that it can take up to 1 Hour to boot up with ART for the first time!

Yes give it a try, i've reverted LCD delays to stock values.

If it'll change nothing, then i suggest to replace the LCD or replace the whole Phone. (depends what's more convenient)
[Galaxy Ace II Android Development] andon0v:
latest rom + latest sdcard only kernel + latest gapps = VERY good performance :good:
[Galaxy Ace II Android Development] Dr360r:
Newest ROM+kernel combo installed through clean install. No problem encountered with Spirit FM (both Free and Unlocked) at all.
[Galaxy Ace II Android Development] :
Then if it take 2 or 3 hours then it cause bootloop?

I only wait about 30 minutes in my brother's phone.
[Galaxy Ace II Android Development] :
I choosed ART but it restarts and it didn't recomplie or do anything...:(
[Galaxy Ace II Android Development] brewzip:
Does xposed framework work on the latest (20170522) build?
[Galaxy Ace II Android Development] AkosPaha:
Yes ,i use also it with latest build
[Galaxy Ace II Android Development] brewzip:
I have some problem during the installation. I started from a previous a2n ROM from 2016, with a recent kernel. :(

Using CWM, I installed the kernel sd_only and cwm_cm11_partitions_layout_sdcard_only, then formatted system and /sdcard0 as "vfat", wiped data. The phone doesn't boot anymore! I reflashed the stock rom I8160XXNA1_I8160ITVNA1_ITV (already done in the past) with ODIN, but recovery says that is unable to mount system and the os still never boots. Probably the partition table was messed up, so i wiped again and reflashed the stock rom, this time enabling repartition on ODIN using the file GT-I8160_EUR_XX_4G.pit. This time worked, and I booted correctly the stock rom, shutting down at pin selection. I restarted again the rom to see if it was really working. All went ok, system says it's on 4.12 with a 3.03 kernel version.

I continued the procedure from step2, starting the Temp_CWM and installing the sd_only kernel. Rebooting breaks again the recovery and rom access.

What am I doing wrong?
[Galaxy Ace II Android Development] ace2nutzer:
yes, but u also need to repartitioning the internal flash memory .. so that u'll have more free space on /data ...

Because if your /data partition is 80% full or more ... then u can forget abot ART with the default partitions size.

Because ART needs more space than Dalvik ...

So u was running probably out-of-space.

(read post #1 + #3 for the how-to)

here u need to power off the phone and boot fresh to the recovery again before u can proceed with formatting steps! (read the how-to exactly!)

What should the phone boot ???

U've deleted the system ... so u've to restore the cwm backup or simply flash latest ROM :)

This was useless step, (see above).

But Yeah thats right that u can't simply flash Stock rom on custom partitions table ...

So u need to flash 3-parted stock ROM.

Nope, u've to start from Zero.
[Galaxy Ace II Android Development] brewzip:
I don't remember, probably I skipped this shutdown. Bad luck occured, the USB with my previous backup is now dead! So I cannot restore anything and I have to rely on stock rom :crying:

My continuation point was: wipe-data, stock flashed (+ .pit repartition) [step0], files put on sd [step1]

So I've started from step0 with all file in my sd. Booted up recovery, runned TEMP_CWM, installed sd_only kernel. Rebooting doesn't access recovery.

My procedure should be correct but it isn't, and I still haven't reached the first point were I had done wrong.

PS:

Solved

! Nothing wrong in my steps, it's my old battery that is not working properly, making the screen of the recovery black after a2n kernel flash and power off. However the command still works, because double tapping the power button successfully runs the reboot+confirm. I know, at least 70% battery... but is always fake on my phone! I should buy a new battery! Are there some better alternatives to the original one?

My easy solution was obviously plugging the cable before entering recovery.

Installed ROM with xposed, all working perfectly! :)
[Galaxy Ace II Android Development] ace2nutzer:
Yeah, that's probably the reason. I know this Step sounds useless, but it's technical needed. (re-initializing the partition-table)

Oh that sounds painfully.

Did u also tried an second time to reboot to recovery ?

IT's possible that for the first time u'll see black screen ... but for second boot it should work.

don't know why, but this also happened to me one time, and then never again.

Search for "polarcell 1700mAh GT-I8160" this should provide more power than an new org. battery!

(Charge this Battery @ 800 or max 900mA ... but u'll need proper USB Charger with around 1A output current ... don't buy cheapest one ... all fake ! they only can provide max. 500 - 600mA... original charger from the Ace 2 provides without problem the 700mA(already max.) ... which is kernel default for the org. Battery)

Usually the org. Battery is good enough ... (when it's original and new) But unfortunately if u'll only buy the cheapest one .. they are also all fake batteries ! They are just old refurbished 3,7V Batteries instead of the orignal one ---> 3,8V ! )

Yeah thats a good trick !

But keep in mind, u can charge the battery in cwm but NOT in Download Mode !

So the thing is if your battery is one day completely empty and you don't have any kernel installed at all ... then charging battery isn't possible. in other Words: Charging battery is only possible when a kernel is running ... which is the case for recovery and LPM (offline-charging) and of course on the running Android System hehe.

:good:
[Galaxy Ace II Android Development] fonzacus:
yeah, installing the rom requires complete blind faith in a2n. just follow all of them, itll succeed, no matter how scary it is ;P

ah you released a new rom and kernel. hopefully upgrading only requires format /data, /system and cache right?

thanks for the replies a2n, the huge battery drain was my side. i usually do a cleaning of some stuff but the newer rom does require an app i usually uninstall (dont know which). currently havent deleted a system app, but will do after backing up.

i also found a bug. setting-lock screen-screen security-power button instantly locks OFF sometimes doesnt lock the screen after 5 seconds. it sometimes just stays on indefinitely.

is dirty installing just installing 522 over 323? is it recommended or should i clean install again?
[Galaxy Ace II Android Development] brewzip:
I've tested four times in a row, always black screen.

Thanks for the info! :)
[Galaxy Ace II Android Development] giginski:
in my phone since i yesterday intalled ROM kernel and gapps in bbs my phone dosent go to deepsleep and dont know why, in previouse was great, deepsleep sleep right away. what can i do to check what IT is.thx
[Galaxy Ace II Android Development] Sharkykounet:
Hi,

Just installed the new ROM + Kernel (dirty way).

After reboot, my sdcard were switch. So i looked for the file persist.sys.vold.switchexternal to change its value. But the file was not present on the phone....:confused:

I manually created it in 'data/property' and reboot. every seems right now.

Any idea what happened ????
[Galaxy Ace II Android Development] ace2nutzer:
@up

This File isn't needed anymore.

By default nothing is switched.

At least with the Stock Kernel from the ROM package.

If u flash "sdcard_only" kernel, then it's switched and u've only one sdcard. (the real one).

So u don't need to mess it up with that file.

it's usually very easy to see that with BBS.

If u don't see this, post BBS logs.
[Galaxy Ace II Android Development] Sharkykounet:
Ok; My bad. I did not notice the kernel included in the ROM package was the normal version, not sdcard_only. Downloaded and installed.

Thanxs
[Galaxy Ace II Android Development] ace2nutzer:
Yeah, don't forget to delete that file u created and reboot the system.
[Galaxy Ace II Android Development] giginski:
[MENTION=5840412]ace2nutzer[/MENTION] here are my logs attached, i hope u solve that, but as i said previouse kernel and rom not even one problem, all was perfect. In this just when i installed no deep sleep
[Galaxy Ace II Android Development] ace2nutzer:
i don't need a logcat, but i need betterbatterystats logs
[Galaxy Ace II Android Development] giginski:
[MENTION=5840412]ace2nutzer[/MENTION] i hope this time is correct files
[Galaxy Ace II Android Development] ace2nutzer:
did u update gapps pico at all ??!! (very important!)

*sync*/com.google.android.gms.games/com.google/9e0fe48d17004f8d2bcc2847571d1b7b@gmail.com (UsÅ‚ugi Google): 58 m 9 s Count:3 19,2%
*sync*/com.google.android.gms.drive.sync/com.google/9e0fe48d17004f8d2bcc2847571d1b7b@gmail.com (UsÅ‚ugi Google): 58 m 9 s Count:4 19,2%
*sync*/com.android.contacts.metadata/com.google/9e0fe48d17004f8d2bcc2847571d1b7b@gmail.com (UsÅ‚ugi Google): 58 m 9 s Count:2 19,2%
*sync*/com.google.android.gms.games.background/com.google/9e0fe48d17004f8d2bcc2847571d1b7b@gmail.com (UsÅ‚ugi Google): 58 m 5 s Count:1 19,2%

This is the reason for the 4 hours of Wakelock with screen OFF.

Make sure wifi is enabled and sync is allowed for your apps.

So make sure u didn't blocked some network connections with an firewall, or changes in other system settings ..

Anyway let the system do his job, then the System will go automatically into deep sleep.

In General: ROM + Kernel don't have Wakelock problems (in latest version), so it's usually user app problem or user config.

Anyway, the only one wakelock issue(not permanent) is coming from google play services .. which i'm trying to disable for now ...

i'll let u know guys when i'm done.
[Galaxy Ace II Android Development] AkosPaha:
Hi guys!

I used the latest ROM+kernel(20170522).

I have a small problem for me. If you are installing a great app or game on your phone, you always write that your application is not installed. There are enough places on the phone. Somehow can I fix it so I can install big applications?:(

Sorry , my bad English.
[Galaxy Ace II Android Development] ace2nutzer:
Tap on "Cached data" ... this will make some free space. - Then try to install the App again.

Anyway u've only 4GB sdcard ... i'm using in my phone 32GB sdcard :)

If the tip above will not help, you'll need to buy a bigger sdcard.
[Galaxy Ace II Android Development] giginski:
my first problem after intalled ROM kernel then gapps pico arm 4.4 fot message that my phone is not rooted, but after i installed again kernel all goes Wella, but had issue with deep, then i tried different kernel and your rom but all with lastest gapps. Then i changed gapps for older and now is all fine. Some day i try with new gapps, right now thank You for all Ur help
[Galaxy Ace II Android Development] ace2nutzer:
I'm using latest rom with latest gapps and no Problem with deep sleep.
[Galaxy Ace II Android Development] :
Please fix my problem [MENTION=5840412]ace2nutzer[/MENTION] !!! I choosed ART in developer settings and restart but it didn't change, still Dalvik so no recompiling or anything :(
[Galaxy Ace II Android Development] galac44:
I installed latest ROM+kernel. After only 17 hours the battery was empty (doing nothing with it) insted of 3-4 days usually. I did a wipe cache and now everything seems to be ok. It was a dirty install so the gapps should be in last version with auto update. I didn't reinstall them.
[Galaxy Ace II Android Development] ace2nutzer:
Post the output of "df" from terminal emulator app.

make sure to flash latest pico gapps and then wipe dalvik cache.

No need to wipe cache, it's not used at all !

Other than that, i've updated Post #3 ... check at the bottom of the Post for:

"GAPPS - FIX BATTERY DRAIN"

Also attached 2 Screenshots.
[Galaxy Ace II Android Development] Dr360r:
Could switching off "Keep Awake" also help some more?
[Galaxy Ace II Android Development] ace2nutzer:
Yes, a little bit.
[Galaxy Ace II Android Development] Dr360r:
Won't it mess up things such as notifications?
[Galaxy Ace II Android Development] ace2nutzer:
Maybe yes for gmail ... or problems with updating apps with screen off.

So maybe better to keep the default there. - Not worth it, it's really minimal.

The biggest part was the one with allowing to change suspend. (from the screenshot on post #3.)
[Galaxy Ace II Android Development] andon0v:
ace2nutzer - thanks for all your work for this great device. I managed to get iPhone 6, so i leave the old codina in the cabinet, but will never forget all the work it had done for me and a big part of this is thanks to your work on this rom, because its a really stable for our device. Of course the difference between the new device and the old codina is really big, but again BIG thanks to you.
[Galaxy Ace II Android Development] ace2nutzer:
No Problem ... - Thanks to u too for testing my Software and reporting bugs!

Anyway have fun with your new Device!
[Galaxy Ace II Android Development] Dr360r:
I think my eMMC died and became read only. I had my phone reboot several times. I tried to fix it by formatting /system and data but if i start it up again i still have the system. Tried to repart and format both /system and data to no avail. Guess my phone died after about 4 happy years of service and it's time to get another one. :crying:
[Galaxy Ace II Android Development] ace2nutzer:
Flash 3-parted rom with odin.

Of corse with re-partition.
[Galaxy Ace II Android Development] Dr360r:
Flashed 3 part XXMF1. PIT file chosen and made sure Re-partition was checked. It didn't work, Cyanogenmod is still there. System stays on for about half minute then reboots. eMMC most definitely kaput and gone read only. Time for a new phone.
[Galaxy Ace II Android Development] ace2nutzer:
Hmm .. was the blue line on the Phone (downloading bar) showing and increasing at all ??
[Galaxy Ace II Android Development] Dr360r:
Yes, it was. No error messages at all.
[Galaxy Ace II Android Development] ace2nutzer:
OK, then it's probably broken (rotto).

Anyway u can google this .. i had read this scenario for the ace 2 even a few years ago when this Phone wasn't so old at all.

I believe it's an internal error --> Software or Hardware. - Maybe there is a trick to get it to work again.

Something gets "locked" - as u said "read-only".

2 Years ago i also had a strange issue with my ace 2 .. i wasn't even able to flash an odin kernel ... then i repeated this several times ... then at the end i tried an strange trick and it worked again till today no more issues! ..

The trick was:

power off

remove battery

plug power cable (powered of course)

insert battery ....

wait 10 seconds ....

the system starts to boot by itself.

Then i was able to flash again with ODIN.

Yes, Yes, i know, the Ace 2 is a really strange Device :)

Edit:

Anyway, if u want to by a new Phone and u wish to use A2N Kernel also on the Future, then i suggest to buy any Samsung Galaxy Phone ... but not older than the Ace 2.

i.e. next A2N Kernel is for the Samsung Galaxy Advance.
[Galaxy Ace II Android Development] Dr360r:
Any electronic device equipped with flash memory likes to become read only (so no more firmware and data updates if they're required) when you least expect it. You take the risk. I also experienced it with a microsd memory card.
[Galaxy Ace II Android Development] ace2nutzer:
@ up

i had edited my previous post ... dunno if u saw this.

Anyway, R.I.P. for your Ace 2 :)
[Galaxy Ace II Android Development] Dr360r:
Done that. Formatted again. New 3-part flash. Cyanogen still here.
[Galaxy Ace II Android Development] msq2:
flash stock 2.3 with .pit file

https://docs.google.com/uc?id=0B6cGANeZmhiMVFVJQk5vcFNfalk&export=download

use odin 3.04
[Galaxy Ace II Android Development] Dr360r:
@up Done that too. The eMMC has fallen into a read-only state, man. This means you can no longer write anything to the internal memory. No more flashing stuff through Odin. The only ways of fixing this are JTAGging, a new SOC or a new main board. All of these cost more than a new phone, which surely comes with newer hardware (for ex. a quad core processor, 1GB of RAM and a better GPU).
[Galaxy Ace II Android Development] lace_hvc:
I dont know if this is ROM-related, but on latest ROM including latest kernel the pictures in the gallery app aren't sorted by date, but seem to be in random order (especially annoying for DCIM folder). This happened after dirty installation of latest full ROM and removing & putting microsd card back into the phone. The photos are still named like before and the file properties show the right dates.

Deleting cache & data of gallery app, cache in settings/storage, deleting thumbnail files in DCIM folder, rebooting, remounting of sd card all didnt help.