yashsingh1/xdaforums huggingface dataset:
[Galaxy Ace II Android Development] ace2nutzer:
Nope, debugging is almost completely disabled.

There are still some basic kernel logs active that are really needed if something goes wrong like file system errors and or a random reboot. without some logging it's almost impossible to catch the bug.

So your App actually does nothing .. (fake)

It's already possible to use bln without wakelock, but it would only blink when some wakelock is active like when it's on charger. But maybe it works without blink ... need to test it.

But what i still remember is that it works without wakelock when we use the flash led instead the soft key backlights.

But unfortunately it only works without to blink and the power consumption is just too high even on lowest brightness.

Btw, some time ago i've even removed wakelock for the torch flash led, since it works as well without wakelock.

Edit:

It doesn't work without wakelock.

Anyway, the power consumption is very low when using wakelock for bln or sweep2wake.

I can't say how much mhz the CPU will run, but it's something lower than 50mhz.

Cpu idle driver has states from 0 - 5.

U can check in

d/cpuidle/stats

State 3 - 5 is for screen off.

Any wakelock uses if possible the highest idle state which is actually C4.

C5 is lowest power consumption but unfortunately it gives random reboots.

While real deep sleep (no wakelock) is even lower consumption than C5 !
[Galaxy Ace II Android Development] :
Anyone having this problem after use -100mV undervolt in A2N Kernel Control App?
[Galaxy Ace II Android Development] ace2nutzer:
Thanks for your Report!

App bug, i'll try to fix that. :)
[Galaxy Ace II Android Development] :
Have you changed "Simple Configuration" in OP? :D

It must be deadline/Dynamic, not CFQ/Dynamic!
[Galaxy Ace II Android Development] ace2nutzer:
@ up

Edited. :good:

Btw i've sent u a PM.. can u pls check it ;)
[Galaxy Ace II Android Development] :
Ok, I will check it
[Galaxy Ace II Android Development] hiimkol:
My phone just stuck at logo screen and my home button just broken too

what should I do now to get in download mode to use Odin

please help :(
[Galaxy Ace II Android Development] ace2nutzer:
If home button is broken then u can boot into download mode with a cheap usb-jig.

Usage:

- power off the phone

- plug the usb-jig in the usb port from the phone, wait a few seconds ... Download-mode will appear.

- remove the jig and plug usb cable and flash an stock rom or just an odin kernel (check my ftp server)
[Galaxy Ace II Android Development] dixee:
I want to install this ROM for my Ace 2 of my friend, this phone started from GB 2.3.6 and I'm upgraded to JB 4.1.2.

I own this phone too and now using CM11 with A2N kernel, but I forgot step by step how to install/upgrade to CM11 with permanen CWM recovery from stock JB 4.1.2 :crying:

I have tried install Temporary CWM 6.0.2.8 and flash latest CM11, it can installed succesfully and reboot normal.

But when I want to enter recovery, it just blank screen :crying:

Can anyone help me how to step by step installing CM11 and A2N kernel?
[Galaxy Ace II Android Development] ace2nutzer:
@ up

Check post #1

If it still doesn't show recovery, then try again when the device is cold or warm.

The lcd on ace 2 is very sensitive ... Sometimes u also need several attempts till u'll see cwm.

In such case u've to report the lcd type (in control app on debug menu). It's related to the lcd, but with some luck sometimes i'm able to work around this in kernel. (Lcd driver)
[Galaxy Ace II Android Development] :
Before reinstalling, try this: Boot to your phone, go to "Terminal Emulator" app, type this (enter after one line):

su
(Give the app superuser permission, don't type this line :)) Then type:
cat /sys/kernel/mcde/lcd_clk

Read the "LCD type" line and post the LCD type here. It shoulf be S6D..... or WS2401 :)
[Galaxy Ace II Android Development] dixee:
terminal say

LCD Type : WS2401

Current LCDCLK freq : 66560000

---------- Post added at 08:34 PM ---------- Previous post was at 08:29 PM ----------

LCD type is WS2401
[Galaxy Ace II Android Development] :
WS2401 shouldn't be the problem... The problem is the ROM's kernel installation.

Because your recovery is black, so only way you can do is reinstalling your ROM.

You can go to OP (First post) then scroll to Step 0. Go to ace2nutzer's download place, then download the Odin kernel. Then do this:

Open Odin on the computer, connect your phone.

Tick in AP option, choose that Odin kernel.

Make sure "Auto reboot" and "F.Reset time" are enabled, anything else leave disabled.

Tick Start then wait for kernel flashing.

If it fails, flash it again.

From this, you should do step by step from Step 1 in OP then it should be fine.

Always install newest ROM + Kernel! (Gapps is in the link in OP)
[Galaxy Ace II Android Development] hiimkol:
thanks alot, Now I can get in download mode using usb jig

but when i flash your stock rom ONE-I8160XXNF2-20140930142454 using Odin v3.07 I got this error:

imgur.com/a/owZ11

here is Odin log:

<ID:0/003> Added!!

<OSM> Enter CS for MD5..

<OSM> Check MD5.. Do not unplug the cable..

<OSM> Please wait..

<OSM> I8160XXNF2_I8160ONENG1_HOME.tar.md5 is valid.

<OSM> Checking MD5 finished Sucessfully..

<OSM> Leave CS..

<ID:0/003> Odin v.3 engine (ID:3)..

<ID:0/003> File analysis..

<ID:0/003> SetupConnection..

<ID:0/003> Initialzation..

<ID:0/003> Get PIT for mapping..

<ID:0/003> Firmware update start..

<ID:0/003> kernel.bin.md5

<ID:0/003> NAND Write Start!!

<ID:0/003> modem.bin.md5

<ID:0/003> system.img.md5

<ID:0/003> power_management.bin.md5

<ID:0/003> cache.img.md5

<ID:0/003> hidden.img.md5

<ID:0/003> normal.bin.md5

<ID:0/003> mem_init.bin.md5

<ID:0/003> ipl.bin.md5

<ID:0/003> RQT_CLOSE !!

<ID:0/003> RES OK !!

<ID:0/003> Removed!!

<ID:0/003> Remain Port .... 0

<OSM> All threads completed. (succeed 1 / failed 0)

Please help :(
[Galaxy Ace II Android Development] :
Have you choose the PIT file? It is required to repart your phone to stock. Without it you will fry your filesystem as in your picture.

Can you capture the screenshot about your ODIN window for me?
[Galaxy Ace II Android Development] hiimkol:
//oh tui cũng quê ở Bình Định nè :D, tui ghi tiếng Việt cho dễ nhé :D

đây là hình trước lúc start ODIN

imgur.com/a/xn263

giúp tui với, tui không rành lắm, mà hồi giờ up lại rom bằng ODIN chỉ chọn rom ở mục PDA rồi nhấn start thôi chứ không có chọn mục PIT gì cả
[Galaxy Ace II Android Development] dixee:
There is sdcard only version for odin flashable kernel

http://www.xda.mister-freeze.eu/XDA-files/ace2nutzer/GT-I8160/General/

I using normal version and I can't find odin version.

Can you give me the link?

or [MENTION=5840412]ace2nutzer[/MENTION] how to flash kernel with odin? there is only zip file instead of tar odin file in your download page
[Galaxy Ace II Android Development] ace2nutzer:
U can safely flash odin kernel sdcard_only.

Recovery is normal .. So not sdcard_only.

I should rename it.

Flash it as pda.

Just untick everything.

Once it's flashed, remove cable and boot directly to recovery.

Then flash a rom or kernel.

Otherwise wifi will not work and only micro sd is accessible.
[Galaxy Ace II Android Development] :
deleted

XDA Labs problem :(
[Galaxy Ace II Android Development] :
No problem :) Then you can flash this ROM now :good:
[Galaxy Ace II Android Development] :
Anyone have battery charging and using recommandations? As I have just bought a new battery for my phone:victory::victory::victory:
[Galaxy Ace II Android Development] dixee:
just use it as usual and pull the cable when its full :D

---------- Post added at 11:36 PM ---------- Previous post was at 11:16 PM ----------

I'm succesfully installing odin kernel from your ftp "a2n_kernel_gt-i8160_4.4.4_sdcard_only_ODIN.tar" with Odin 3.07,

power off then boot into recovery, flash latest normal kernel, and reboot.

I can normally boot into recovery mode, but also sometime only showing a black screen.

But i can boot into CM11 properly and working fine.

I think this is first time I'm facing this issue, never had this when using my own Ace2 which is the same WS2401 LCD.

Tomorrow I should returned Ace2 to my friend, because I just upgrading OS from GB to KK :D
[Galaxy Ace II Android Development] ace2nutzer:
@ up

i'll check the driver .. maybe i can tune it a bit ...

i do suggest to unplug the cable once it's 100% .. (u can use full-battery indicator in my app, that will turn on the BLN).

Don't let it for several hours on cable after it's 100% ...

Keeping it for many hours @ 100% will hurt battery capacity like hell.
[Galaxy Ace II Android Development] :
Ok, and what about using recommandations? Now my 5-years old battery should be rest in peace...:laugh:
[Galaxy Ace II Android Development] ace2nutzer:
For max SOT ?
[Galaxy Ace II Android Development] :
Yeah.
[Galaxy Ace II Android Development] Brisimo:
Problem with the app Wefferent

Hi,

I install the app Wefferent (is a app of a bank) but when I run it, I get an error message. (the application has stopped).

I have the last rom and kernel.

May have a solution?.

Thanks for the great work you do.
[Galaxy Ace II Android Development] Muhammed Suhail:
It's because you are on a custom ROM

Check safetynet
[Galaxy Ace II Android Development] Brisimo:
Effectively Muhammed Suhail I have the custom rom of Ace2nutzer.

You mean that I do a test of Safetynet?. --- the rest is wrong

You think of some solution?.

Thank you very much.
[Galaxy Ace II Android Development] ace2nutzer:
Tips for max SOT (screen on time)

Use "Balanced" Profile by default

Switch to "Powersave" Profile for watching YT Videos or Reading PDF Files

Make sure 2/3G Signal is good (if it's bad toogle 2/3G)

Try to use more 2G than 3G

Use always the lowest possible LCD Brightness

Disable zRam if your Apps works as well without it (or else enable zRam only for Apps where it's really needed)

Try some undervolting in A2N Kernel Control App

Disable all features you don't need

Uninstall Apps you don't need at all

Eventually replace the Battery with a new one or replace it with higher capacity

Also added in Post #3 since it's usefull tip for everyone !

If someone have more tips, just tell me, and i'll add it to the list!
[Galaxy Ace II Android Development] mopide:
Hi,

I need a little bit of help, 'cause I'm a newby on XDA :)

I've just followed the step:

and my question is How can I go back to stock? :D

the device is reparted :D

and when I flash firmware with Odin the process ends with "PASS!" but the device reboots after it to stock recovery with tons of errors ;)

I could flash temp recovery but I couldn't flash anything with this recovery, even a2n kernel ;) flashing fails always with error 7 :) I tried a few different kernels stored on my SD card. No kernel pass through.

Finally, I succesfully flashed .tar kernel with old 2.8.0.0 TWRP recovery with Odin and then (after some wipes and formating internal sd with xfat as it was ext4) I could pass your instruction again without any problems :) I mean: TWRP 2.8.0.0 -> a2n kernel (sd card only) :) and then I was able to flash what I want with CWM :)

The strange thing it was in TWRP that I saw Internal memory partition and Internat SD partition - both 3GB ;) how could that be? :D

I'm back with your ROM but.. How can I back to stock?

? any .zip that revert reparting process?

? mayby I should flash 3 file firmware with repartition marked in Odin :) but I think I've never seen 3 file stock for i8160 ;)

? maybe downgrade to GB with 3 file -> GB with 1 file -> update KIES will solve the problem?

I always like having possibility to turn back changes I made :D

This is only mobile phone and I think I can make a step like that with your help :)​
[Galaxy Ace II Android Development] Muhammed Suhail:
You have to select pit file too while flashing stock in Odin
[Galaxy Ace II Android Development] mopide:
Ok Mohammed.. But i have only one file ROM.. There is not 3 file Jelly Bean for i8160. Or I cannot find it.
[Galaxy Ace II Android Development] ace2nutzer:
Don't flash wrong firmwares and don't flash mixed rom(mixing files from 2 different rom packages) to your Phone as there's a higher chance to brick it! (Means u can't flash it anymore)

Check here:

https://xdaforums.com/showpost.php?p=53921158&postcount=8

After that flash latest stock rom from my FTP in order to have the latest Baseband.
[Galaxy Ace II Android Development] :
Is this one works: Reduce charge currency?

And for this: Use Chuck Norris mode (as A2N Kernel Control App said, powersave for WS2401)?

Anyways, thanks for this great information!

I have this very hard question: Which type of Internet use more battery?

1. Wi-Fi

2. Mobile 3G

3. Mobile 2G

4. Bluetooth tethering (I am using it now)

Do you have only one newest baseband file for flashing in CWM? As now my phone have XXMC8 baseband, and my computer is being fixed (try with ransomware in virtual machine and accidently infected the real OS :()

I think using latest baseband helps me to save some battery and get better signal.
[Galaxy Ace II Android Development] mopide:
OK I'll check it in a free time and I'll let You know.

---------- Post added at 05:42 PM ---------- Previous post was at 04:58 PM ----------

1) Hi, You do mean I should flash this GB 2.3.6 firmware? (this is the only for not P/L version):

2) Maybe I should download this with SamFirm and check if it is 3 file ROM:

Version: I8160XXNB1/I8160OXXNB4/I8160XXNB1/I8160XXNB1

OS: Jelly Bean(Android 4.1.2)

Filename: GT-I8160_SEB_1_20140228152330_k1l5qk2fqn.zip.enc2

Size: 576500736 bytes

If it is 3 file rom i flash it and then -> 1 file XEO ROM I used before.

3) or maybe I should try this (3 file ROM with PIT file):

http://www.androidlegend.com/offici...2-jelly-bean-firmware-for-galaxy-ace-2-i8160/

and after it -> my 1 file XEO ROM I used before.

===

I wonder if it is possible to avoid downgrading to GB.

But I need Your advice just not to brick my device :)

p.s. I'll use a2n kernel of course and CM 11 from Your FTP but I just want to know how to back to stock.. just in case :)

Thanks
[Galaxy Ace II Android Development] ace2nutzer:
Nope.

Yeah.

btw: i've edited the first tip from performance to balanced as it wasn't better in terms of powersaving.

Sorted from low - to highest power consumption:

- BT Tethering

- Wi-Fi

- 2G

- 3G

Baseband isn't maintained from us devs, but it's directly from Samsung it's own stock rom.

What u see in FTP Server.. that's already the latest one. Samsung stopped the support for the ace 2 very long time ago.

Don't know if it makes those things better, but it'll add support for newer sim-cards and maybe some autoconfig about APN's. And maybe some improvements like the stability of the modem.

Yes, but depends what u want to achieve.

If u want to revert all changes and having your phone like new, then flash it ... after that flash latest stock rom from my FTP. This will fix ALL Problems.

Probably not.

Why u want XEO? The CSC isn't important when using custom roms.

Just flash the latest one.

If it's 3-parted ROM , then it should work as well.

But as i said u only need to flash a 3-parted ROM if u need to revert custom repartition u flashed over cwm or if u want to fix all issues.

If u find a full 3-parted stock rom ... then yes. But i suggest to check if they are same .. check the content of the package. Here on GT-I8160P it's needed to flash first 3-parted GB ROM ... and then 3-parted JB ROM .. just because the GB ROM have some important partitions that are missing in JB ROM.

On I8160P they are: CSPSA // EFS // MODEMFS.

Inside CSPSA is the IMEI :)

Probably u never want this :D But if u need to go to stock u need to flash a 3-parted ROM with ODIN ... but only if u flashed any cwm reparted! - Otherwise format system, sdcards and wipe data, then flash latest stock ROM with ODIN.
[Galaxy Ace II Android Development] mopide:
[MENTION=5840412]ace2nutzer[/MENTION]

so if I would go back to stock I will use method You mentioned: back to 3 file RU GB -> 1 file EU GB -> update with KIES to JB or newest JB from your FTP.

I'm not an expert but reading your answers the way seems the safest and I need only +20 minetes more to make it with GB first than trying to flash 3 file JB that no one on XDA tried and confirmed it works.

I have no major issues for now working on Your ROM and kernel. One bug is that I cannot download large files (about 50-60 mb and above with mobile data). But I think it is not your kenel issue. the same thing happens on other kernels and ROMs. I cannot find solution for now. Maybe I should find some time to start everything once again from the beginning => back to stock -> newest baseband -> back to custom :)

---------- Post added at 10:02 AM ---------- Previous post was at 09:23 AM ----------

:D and thanks for your AOSP dictionary and swype fix from your FTP :)

AOSP is more "lite" then for example GBoard or Xperia Keyboard
[Galaxy Ace II Android Development] :
ace2nutzer, is this SOT OK??

Happy Lunar New Year!!
[Galaxy Ace II Android Development] mopide:
[MENTION=5840412]ace2nutzer[/MENTION] the issue with being unable to download big files solved. I have restored one of the older cm 11 backups I made once I installed CM 11 for a first time. Now I can download whatever I want :)
[Galaxy Ace II Android Development] ace2nutzer:
:good: Can u pls post the ROM + Kernel Version?

Also u can try to find out what's the issue of this, but your old rom with latest kernel.. or using the old kernel with latest rom. Maybe we'll be able to find the culprit change so that u can enjoy latest ROM & Kernel, having full set of optimizations (speed & battery) and Security.

btw: Kies isn't needed at all ... just use ODIN (the offline-flasher) it's even more safe.

[MENTION=6973536]bien2004[/MENTION]

are u serious? :D u did recharge it again... so that's invalid.

Charge to 100% then discharge to 1% and don't charge in this time.

Anyway, u should reach approx 5 Hours SOT with a new battery and good Network signal, low Brightness and not using something higher than the "balanced" profile. If the battery is really good and original, even 6 - 7 hours are possible! (there's also a 1700mAh Version that fits without modifications ... but not from Samsung).
[Galaxy Ace II Android Development] mopide:
Both before and after restore I had latest a2n kernel and latest a2n ROM.

I think the reason I could not download big files was that device lost its IMEI after unsuccessful try to put on cm 11 reparted device..

The older backup was made early February, so before flashing firmware in incorrect way.

.. I think it is only reason.

Now I'm on stock GB :D and I think of trying this ROM for a while. It is the first GB I've ever had on my device. To this day my oldest device was 2013 and had Android 4.0+
[Galaxy Ace II Android Development] ace2nutzer:
Ah OK .. For that reason there's 3-parted ROM that fix such issues with broken IMEI.

Anyway, i've uploaded now 3-parted Stok ROMs for GT-I8160 and GT-I8160L for fast Download speed.

Edit: Stock GB ROM is quite fast ... but just too old .. and many Apps + Websites will not work on that old OS.
[Galaxy Ace II Android Development] :
Oops, I forgot about that. Because I was charging my phone for last night use. Let's try it again in the next time :)

If I use powersave profile with 0x18 varm, and with balanced profile with 0x18 varm, does the balanced profile have the same battery comsumption as powersave?
[Galaxy Ace II Android Development] ace2nutzer:
Nope. - Check /perf.profiles.rc and compare both profiles.

Power consumption is as following: (low/high)

- low/high voltage

- low/high Freq

- low/high Load
[Galaxy Ace II Android Development] :
I have this question: Can I set custom frequency by setting ArmPLL and varm? If I wrong then how can I do it? As I want to test my CPU :)
[Galaxy Ace II Android Development] ace2nutzer:
Yes u can.

Example:

If u chance step3, then switch to any other step and then go back to step3 in order to make effect. But keep in mind that freq show will still show the old freq ... Which is then unreal. But it's a good practice to find out lowest stable varm (for every single step) and to find out the max stable freq. So something like fine tuning. But u'll need a hell of time and probably it'll cause some grey hairs to u.

I already did it for my phone some years ago, and i ended up to not undervolt and overclock too much (don't run it at its very stable limits) because u'll face from time to time weird behaviors ... That's why i created a Standard fail-safe freq and undervolting that fits for every phone. And that's why u even can't do such fine tuning in my control app.

(Because i think nobody want this horror).

Anyway feel free to give a try and doing some experiences.
[Galaxy Ace II Android Development] mopide:
Thanks for uploads :)

As we say about GB.. No OLX.pl for GB :D this is the reason the GB ROM is not for daily use. I can't use one of my sources of buying some cheap gadgets and phones :D
[Galaxy Ace II Android Development] pivou:
I'm unable to add a google account in the android setting..just imap and microsoft. I was also unable to install any of the playstore apks. Is this rom no longer working?
[Galaxy Ace II Android Development] shaqman89:
It seems like a gapps issue. Which version of gapps are you using?

Have you tried the version that is in ace2nutzer's ftp?
[Galaxy Ace II Android Development] mopide:
.. It works very well :D I think this is the best rom for Ace 2 ('ve just tried several) and is developed to now. Last version is 28.01.2018
[Galaxy Ace II Android Development] pivou:
I've forgotten to install it at all :o

Now it is working fine. Awesome rom, butter smooth and way faster than the original.
[Galaxy Ace II Android Development] ace2nutzer:
Kernel Update 20180222

Changelog:

Kernel 20180222:

Abb-charger: tiny update

MCDE: Reverted previous update

Swap: re-added "backport zram code from LK 3.10.103" (zsmalloc - lz4)

Memory Management: re-added extra_free_kbytes tunable for more free RAM

HID: re-added UHID Support from LK 3.4.67

Disabled SIA & SVA Wakelock - Battery drain Fix!

Small Kernel updates and stability fixes

Flash and have Fun! :good:
[Galaxy Ace II Android Development] :
Thanks for this great update!

I bought a new phone two weeks ago. It's a Gionee P4 phone that is 2x faster than this phone... And now my Ace 2 is using for wifi tethering... And now I am updating it to this version.

Thanks for your support. But I will not forgot this phone. I will go to thread for updates :)

Where is your works for S8 in XDA ace2nutzer?
[Galaxy Ace II Android Development] :
Anyway to zipalign in this ROM?
[Galaxy Ace II Android Development] ace2nutzer:
It's in development ;)

No idea actually, i'll check when i've some free time.
[Galaxy Ace II Android Development] jupiez:
hy admin, why if i install / uninstal app need more time for processing but unsucces? Nb: i use rom oktober 2017 & the latest kernel
[Galaxy Ace II Android Development] :
You are using the old ROM which is having app installing/uninstalling problem. Please upgrade your ROM to the latest version.
[Galaxy Ace II Android Development] jupiez:
just flash / wipe data? i use kernel "sdcard_only"
[Galaxy Ace II Android Development] :
You can ignore wipe data.
[Galaxy Ace II Android Development] ace2nutzer:
Flash first the rom and then latest kernel.

(Rom installer automatically do the cleaning Jobs.... wipe data is usually not needed if u're already on cm11)
[Galaxy Ace II Android Development] jupiez:
done of all the latest version rom + kernel (sdcard_only) but still the same problem with installing/updating app from G-Play need more time ~30 minutes

Nb: free memory internal 1,7Gb
[Galaxy Ace II Android Development] ace2nutzer:
i didn't get you. Please provide more informations or references.
[Galaxy Ace II Android Development] Kunii:
hi ace2nutzer, i installed the rom but i have an issue, the screen sometimes blurry or flicker-like state

how to repair this? thanks :)
[Galaxy Ace II Android Development] ace2nutzer:
LCD Type ? (check debug menu in my app)

When and where it's happening ? (lockscreen? - after wake up? - LPM? - Recovery?)