yashsingh1/xdaforums huggingface dataset:
[Galaxy Ace II Android Development] ace2nutzer:
hmm thanks for the info .. i'll try what will happen without this commit :)

Yes, i guess so .. because i've really re-applied AV PAtches like 4 times every time completely from scratch due of conflicts .. later i solved first all problems, and then patches applied fine without conflicts ... that's why i'm still wondering that it's still not working properly...

btw Today also tested Camera from a few older builds ... up to the latest build from Rox .. and there is always the same issue :) So it was never working properly ;)

.

Yes i believe this, but this is not Toolchain fault, it just warns u that the currently (custom) used set of optimizations is just not compatible. - So using other Toolchain that apparently doesn't cause ICE for the same set of optimizations, will probably simply build an completely screwed up build. (magaic word: relax restrictions etc .. ;) )

Yes, it's best after AOSP ones, if u don't want to use such (unfortunately) old GCC Versions from AOSP.

U don't need to waste your time, i've already read approx 4 hours about toolchains.

In short:

Beginning completely from scratch:

(following suggestions are for clean code + fail-safe + max. stable Code .... but not for maximum performance)

Best GCC: GNU GCC (latest)

Best arm-eabi: AOSP GCC, ---> based on GNU GCC*

Best android-eabi: AOSP ----> based on GNU GCC*

* = they also contains some patches for better performance from LINARO. (only fail-safe ones)

Linaro itself: completely tuned for max. performance, but also higher chance for more broken Code.

SaberMod: It's even faster than Linaro ... but how it's possible ?? - So magic Tricks ? - Nope, there is just Graphite optimizations enabled by default ... yes!

UEBERTC: Basically a Mix of everything: AOSP, Linaro and Sabermod ... So at the end here u'll have the max. screwed up Code ;) Do't use it.

This also explains why ROM compiled with Sabermod (instead even with ArchiDroid optimizations) results to be more buggy, simply because ROM (kitkat) doesn't like to have Graphite optimizations at all :D

Also compiling an Toolchain is not really easy .. because every Sort of Toolchain need to have PROPERLY Versions of: MPFR, GMP, MPC, ISL and needed patches as well ! (the used Version of GLIBC is also important ... )

As u can see it's like a puzzle, using here for everything simply the latest version of the needed dependencies, really doesn't Fix thing or makes things better,, we'll only run into problems.. nothing good to expect ;)

Yes, i'll upload it .... just check from time to time to "Reparted" folder on FTP Server.

Hmm okay i'll revert some very small changes.

Use always latest Builds from the File "latest" .. if there are some latest builds completely broken.. then i'll delete it from the FTP ... so ... ;-.)
[Galaxy Ace II Android Development] Dr360r:
What have you changed, out of curiosity?

By the way try to add it in additional build properties, right under the gprs class flag and starting with the agps mode tag. I did it that way with 160313.
[Galaxy Ace II Android Development] ace2nutzer:
u can find all changes from me here:

https://github.com/ace2nutzer?tab=repositories

Nope, i'll simply remove those 2 build-properties flags, as AGPS is already enabled by default on /etc/gps.conf ;)
[Galaxy Ace II Android Development] Dr360r:
I kept the DEFAULT_AGPS_ENABLE=TRUE flag in the gps.conf all the time, but in the last build even if the tags were added to build.prop, the device still didn't download and use the lto file (basically if it gets downloaded and used, you see satellites coming up in GPS Status app fast even when you're inside a room behind a wall).
[Galaxy Ace II Android Development] ace2nutzer:
yes, u're right .. it also doesn't work for me on latest build ... let's hope it'll work again on next build ;)
[Galaxy Ace II Android Development] ChronoMonochrome:
So it didn't even work properly on TC builds! Really, mystery, since we have never had so much problems with camera in lollipop (except of broken camcorder). Now I can understand why since some time Rox stopped releases, because the used patches became messed up...

Depending :) In some cases, you are right - this is because some set of optimizations just is incompatible each with other, but in some cases it's an internal toolchain errors.

Thanks for the info! It's much cleaner now what those toolchains are.
[Galaxy Ace II Android Development] Yønn:
Did anybody try the new version of Waze (4.0.2) with old a2n 20150714 ROM, and latest a2n kernel?

The only time I tested, it was crashing like hell at every startup. Did it also happen to you?

I reverted to version 3.9.9.
[Galaxy Ace II Android Development] Sylvinette:
Is it safe to directly flash that cwm_stock_reparted.zip? How many gb that we got on storage memory for apps with that zip?
[Galaxy Ace II Android Development] shaqman89:
It's just like using any other repartition. Should be safe, though it would certainly be like a full wipe/factory reset.

Anyway, the layout should be like (found here: http://xdaforums.com/showpost.php?p=60156550&postcount=77)

SY640_CA320_DA1308_SD1194_HID335_FO52_STOCK

CMIIW
[Galaxy Ace II Android Development] Aleksandr2468:
Why can not I download from FTP?
[Galaxy Ace II Android Development] Dr360r:
Strange. At least here, it's working.
[Galaxy Ace II Android Development] gepel:
I gave a try on latest rom(stable)+kernel (of course i made a full wipe) but every time it threw me in recovery.. hmm ..
[Galaxy Ace II Android Development] L0u156:
I was trying to install this rom. I started from clean installing 2.3.6, after 4.1.2, then temporary CWM, and nothing. Even bootloop. The installation persists about 2 seconds, it's strange in my opinion. I don't know what to do. Any suggestions??
[Galaxy Ace II Android Development] Dr360r:
Did you unmount /system and /cache before formatting /system and mount them when flashing the ROM zip and kernel?
[Galaxy Ace II Android Development] L0u156:
No, they were mounted (I think) by default.
[Galaxy Ace II Android Development] IAmLucky:
the problem seems that before flashing you didnt mount cache and system (by default, system is unmounted as far as i know when flashing) so you need to click mount system and cache
[Galaxy Ace II Android Development] Dr360r:
GPS still won't download and use the AGPS data in latest build even by adding the two tags to build.prop and rebooting. Different sources?
[Galaxy Ace II Android Development] ace2nutzer:
u probably really don't need to add those 2 tags to build-prop as i said it's already enabled by default.

I didn't change much .. (at least nothing for GPS things) and just did a cm sources sync .. nothing more.

we've to wait till it'll work again for some reason ...
[Galaxy Ace II Android Development] Dr360r:
Until then, i guess i'll miss the optimizations. By the way i'm cleanly installing both 160313 and 160328 and doing more tests.

[MENTION=5840412]ace2nutzer[/MENTION] Tests done. Actually 160313 downloads the lto sat data by itself, exactly like 150714 did, without the need to add stuff to build.prop. 160328 doesn't download anything just like 160326. In every case, the /root/data/GPS path where lto files are saved is correctly specified inside /system/etc/GPS.xml, but something keeps it from working.
[Galaxy Ace II Android Development] ace2nutzer:
this is very interesting ! Actually it's compiling 29/03 ... pls test it later for GPS lto-data.

I think we'll find the problem.

Actually latest build is compiled for full ARM-Mode instead THUMB-Mode ... (better performance)

And strangely this time didn't break anything ! Usually Audio or Bluetooth was broken ... this time not ;)

And now it's compiling with full optimizations even for target THUMB .. that means -Os @ -O2 + 3 flags ....
[Galaxy Ace II Android Development] Dr360r:
With 160329, Bluetooth is crashing and AGPS data isn't showing in /root/data/gps.
[Galaxy Ace II Android Development] ace2nutzer:
ok, deleted 29/03 .. now it's re-compiling with the hope to fix everything lol.

Removed the 3 additionally Flags for binary code optimizations = should Fix Bluetooth crash.

Reverted one AV Patch commit, should Fix Camera FC.

Reverted one GPS Patch, should Fix non-receiving GPS Data Fix to /data/gps.
[Galaxy Ace II Android Development] Dr360r:
What was the GPS patch meant to fix?
[Galaxy Ace II Android Development] ace2nutzer:
This is the Fix, now reverted local for now .. to see if it'll repair GPS:

https://github.com/ace2nutzer/andro...mmit/a8cc19268da0579e13716fddce25068489efc64e

I don't remember exactly .. but it should fix an crash (i believe even soft reboot) if the Location service is on or off (dunno :D ) and u turn off the screen of simply reboot the phone ... Fix was from [Meticulus] and is AFAIK applied to every ROM for ace2 here.

btw: right now checked all patches... and this was the only one patch for GPS ... so i really hope this is our fix !
[Galaxy Ace II Android Development] Dr360r:
I never experienced the location crashes you described. By the way i think it's better to have a faster but slightly unreliable GPS than a fail safe but slower one. A fast GPS can save your life.

[MENTION=5840412]ace2nutzer[/MENTION] On latest build Bluetooth is still crashing. But GPS now saves the satellite data in /data/gps (lto2.dat and ltoStatus.txt). At least apparently, it was the patch. Camera isn't crashing on me, only Bluetooth. And swipe seems to be no longer crashing, but i can't seem to write with it. I can only see the white falling-star like trail.
[Galaxy Ace II Android Development] ace2nutzer:
Yes, tested too here ... not so bad !! Well, then it looks like we should build Bluetooth with -Os if we don't want to build almost the whole ROM (90%) with -Os :)

As for swipe: i'll take a look into it ....

So Compiling once again.
[Galaxy Ace II Android Development] 1nc0rr3ct:
Sup'? Uhm, I'm getting problems with my battery life... And no, I think its still not my battery's fault. I'm getting some, I don't know, fast drains? I think its there's something wrong with the Mobile Network as it acts like its turned on even though it isnt.

I don't experience this fast battery drain before I installed the latest kernel. Before, I can leave my phone overnight and it only takes away 1-5% of the battery but now it takes 10-20% overnight. I deleted these 2 apps but I still see no effect. (Facebook and Messenger and switched to Facebook Lite).

P.S. Still not sure what the problem is. Just trying to point out what I see :P
[Galaxy Ace II Android Development] franta8512:
Help

I would like to ask you for a favor. I want to install your rom cm11-20160313-unofficial-Codina, but the phone restarts after installing all the time. How do i have to proceed? My current rom is: cm-11-20140706-unofficial-codinap. Thank you for helping franta8512 (translated by Google translator)
[Galaxy Ace II Android Development] IAmLucky:
codinap? so your phone has NFC?

---------- Post added at 07:38 AM ---------- Previous post was at 07:37 AM ----------

Can you tell us how much SoT you get in these battery stats? it seems in one battery status that phone does not go i deep sleep and is always awake for some reason.
[Galaxy Ace II Android Development] franta8512:
Ace2Nutzer Kernel 20160325

Yes, it has NFC. It's the Samsung GT-I8160P
[Galaxy Ace II Android Development] 1nc0rr3ct:
What does SoT stands for? :/
[Galaxy Ace II Android Development] shaqman89:
Screen on time.

Try using BetterBatteryStat to get that information and more

---------- Post added at 02:51 PM ---------- Previous post was at 02:50 PM ----------

Did you do a clean install?
[Galaxy Ace II Android Development] Dr360r:
No, [MENTION=5840412]ace2nutzer[/MENTION]. Bluetooth is still crashing and swipe now simply crashes.
[Galaxy Ace II Android Development] ace2nutzer:
wipe cache

wipe dalvik cache

format /system

mount system

flash kernel

power off

boot into cwm

flash ROM

flash GT-I8160P support.zip

flash NovaThor App

flash Kernel

flash gapps

reboot system

say yes if u want root.

All Files on FTP-Server.
[Galaxy Ace II Android Development] Dr360r:
Nope. Build 160330 still has the Bluetooth issue.
[Galaxy Ace II Android Development] Dr360r:
Bluetooth still not working on latest 21:21 release.
[Galaxy Ace II Android Development] 1nc0rr3ct:
Here are my battery stats. 90% starting frpm 7:00 - 3:00
[Galaxy Ace II Android Development] Dr360r:
[MENTION=5840412]ace2nutzer[/MENTION] Now Bluetooth no longer crashes. Build 160331. No crashing camera, no Google FC. The only thing that needs a fix is Swipe now, then i guess we can go final.
[Galaxy Ace II Android Development] Tree4ever:
Had the 20160326 more problems than the slowly GPS-Fix?It has been removed from 'stable',that's why I'm asking.Under real terms my navigon needs 1-2 minutes,that`s O.K. for me.If there are important other reasons,O.K,than back to 20160313 is required.Or maybe 20160331.
[Galaxy Ace II Android Development] Dr360r:
No, aside from the defective swipe. But 20160331 is more optimized. I'm waiting for a final version to migrate all apps and data.
[Galaxy Ace II Android Development] IAmLucky:
installed 2016/03/31 version. And I'm not sure, maybe this version needs data factory reset? I was doing same wipe cache and dalvik cache, format, mount system. ROM installed normally. I clicked reboot system and it didn't ask me if I want to root phone (but root still works). So one thing was weird phone booted normally like in 40 secs. Booted in lock screen, so I unlocked screen and setup wizard popped up. As far as I know setup wizard pops up only when data factory is done. But it popped up without data factory reset. Never seen anything like that. Btw no crashes so far. Just sometimes xda premium app force closes after few secs of using it, then it works again (probably app issue, though, I ve been having this problem in early versions of ROM too)

---------- Post added at 01:05 AM ---------- Previous post was at 12:30 AM ----------

Also does anyone have noticed video playback issues in browser? tried all, and all does same issues. Audio and video is out of sync. Audio goes first then video. Also it has audio interruptions with video fps drops. Tried to close all apps, make performance profile but it still does that. Maybe anyone noticed this?
[Galaxy Ace II Android Development] ace2nutzer:
looks like deep sleep issue.

ROM? - Kernel ?

Try to use BetterBatteryStats :)

There u can check Kernel Wakelock and partial wakelocks.

Nope... it's stable too ... but less optimized and has no quick gps fix.

For now, 31/03 is best.

Yes, now it's fully optimized and fully working so far .. except of swipe keyboard ... but it believe there is just one needed lib missing ... (probably gapps-package fault) right now checking ...

can u please test with 13/03 and 31/03 if there is any differences with that Video + Audio things ???
[Galaxy Ace II Android Development] IAmLucky:
Tested. No difference. Seems like its a problem of html5 player, or buffers. As I downloaded dolphin browser with custom html5 player, and it plays with no issues. Sure at the start it need few seconds to buff, but then it works with no problems. Not sure why stock player is doing that. ROM seems to be fast now. Had some slow downs/lag at the start after setup wizard, but now it works fast and smooth!
[Galaxy Ace II Android Development] ace2nutzer:
okay ... thanks for testing ! Then it's not my fault.

this is normal .. as i many times said: after first installation in can take 10 - 15 minutes on dalvik ... or up to 30 - 60 minutes on ART till it's really done with optimizations !

btw: right now tried to fix swipe keyboard .. at it looks like it's just gapps version issue ... there is some messed up with the lib(s) in /system/lib

libjni_latinime.so

and

libjni_latinimegoogle.so

tried with only libjni_latinime.so (u've only this lib if u test with clean install and u'll NOT install gapps ... ) and then i was able to swipe without having FC .. but it's still somehow buggy .. because it doesn't generate the word ....

so if somebody want to try it out ... ;)

u can also check how it goes on my old working CM11 ....

I suggest to use ADB over cwm ! --- once u copy libs over ADB in cwm .. u'll need to set proper permission like this:

chmod 644 libjni_latinime.so
[Galaxy Ace II Android Development] Dr360r:
[MENTION=5840412]ace2nutzer[/MENTION], i restored the old 150714 nandroid backup and installed 160329 pico Gapps on it. Swipe is working perfectly and it forms the word. Here, libjni_latinime.so has lrwxrwxrwx permissions and the libjni_latinimegoogle.so has -rw-r--r-- permissions. It works even if you delete libjni_latinimegoogle.so. You can't act on the former, however. Sorry, but i don't know how to use ADB and i prefer acting on libs through file explorer.
[Galaxy Ace II Android Development] heml0ck:
can someone help me.. how do i install the 0331 cm11? im currently in the stock 4.1.2.. having problems to install it..:crying:
[Galaxy Ace II Android Development] Dr360r:
@up

Take some time and carefully read the latest posts, and, if you can, study the thread. You should fully understand what each step implies. Remember it's a custom ROM, and it's currently in a testing phase also. You also need to know if you're on the i8160 or i8160P model. Then you either need to run a temporary cwm zip from the stock recovery or flash a custom kernel with cwm. Only from there you can take the required the steps to install the ROM. It's an easy process by the way if you know how to do it. Try reading guides and understand what every step implies (for example, if you don't factory clean, clean data, clean cache, clean dalvik, new ROM may bootloop...).

[MENTION=5840412]ace2nutzer[/MENTION] I unpacked the libjni_latinime.so from 150714 and from 160313 and i found the dimensions are slightly different. The one from 150714 is slightly bigger. Try compiling a new ROM with it. If it does nothing, i think the reason lies elsewhere.
[Galaxy Ace II Android Development] heml0ck:
I go to recover mode.. then i flash the temporary cwm.. wipe data factory reset.. wipe cache.. wipe dalvik cache.. format system.. the i install the current cm11 but it was stock.. ive done this many times..
[Galaxy Ace II Android Development] Dr360r:
Did you unmount /system and /cache before formatting /system, and after that, mount /system and /cache before flashing the CM11, the kernel and the nt app? Remember it's a test build (stable, but still test build) so no mount scripts are included and it's good policy to mount and unmount by yourself even if they're included.
[Galaxy Ace II Android Development] heml0ck:
I think I have problems in mounting system and cache.. going back to stock 4.1.2 again..:crying:
[Galaxy Ace II Android Development] IAmLucky:
@up that's probably 99,99% chance that he didn't Mount system :D. BTW, at least on my device, cache is always mounted.
[Galaxy Ace II Android Development] ace2nutzer:
Thanks for testing !

Can u pls try if it works if u use the libjnilatinime.so on the 31/03 ?

So the old lib over the New Rom.
[Galaxy Ace II Android Development] heml0ck:
is it ok not to format system?
[Galaxy Ace II Android Development] Dr360r:
No. You *need* to format system.

[MENTION=5840412]ace2nutzer[/MENTION]: i tested the old file in the 160313. I simply replaced it through File Explorer and gave the 3x3 to the right square permissions and changed sd to root. Trail shows, no crash, but the word doesn't form. Removed the google file, trail shows also with the latest file, but no word forming. Reinstalled pico gapps, swipe crashes.
[Galaxy Ace II Android Development] heml0ck:
when i go to mounts and storage the system is unmount and cache also.. when i click format system it change to mount same as cache.. then i install the cm11 and stock again.. i think i will go back to vanir..
[Galaxy Ace II Android Development] IAmLucky:
well, you probably don't understand installation properly. You need wipe cache/dalvik cache, data factory reset (as you are in jelly bean), then format /system then go and click 'mount' /system and 'mount' /cache and it must be showing 'unmount /system' and 'unmount /cache' and if this looks like this then flash cm11 ROM, NT app, ace2nutzer kernel, boot to system, say yes for root, wait till it finishes booting, reboot back to recovery, flash GAPPs, reboot system - thats all.
[Galaxy Ace II Android Development] heml0ck:
then its my fault i flash hen it is mount.. anyway thank you i understand now.. i try again.. go to recharge now.. lowbat already..:good:
[Galaxy Ace II Android Development] ace2nutzer:
Yes, but on latest 31/03 .. there is native root already included .. so it won't ask for fixing root.

Also there is no more problem if u install gapps in a row ... Setup Wizard is fixed too.

The only annoying Bug is now not working swipe aosp keyboard.. :)

thanks for more tests, i think it's CM Sources Bug or there is one lib missing.

Are u maybe able to compare the old working ROM with the new one ?

Then u can list all missing files for new rom here.

There are some tools for such comparing files ....

But u can also compare by hand, but it's a bit painfully method :D

At least /system/app and /system/priv-app + /system/lib/ + /system/lib/hw is important.

But it's better to compare the whole package.

I can do it too, but later ... actually i don't have much time.
[Galaxy Ace II Android Development] Dr360r:
I have the 150714 and 160331 zips at hand. You mean i should just open the directories you listed and inspect for files missing in one zip or different in date or size? I'm quick of eye.
[Galaxy Ace II Android Development] 1nc0rr3ct:
You should really consider putting instructions on how to install the STABLE ROM in the first page/post for people who don't know where to find the steps on installing because of the recent posts.

Anyways, I got BetterBatteryStats, what info's do you need exactly? All I know right now is my phone won't go to sleep.
[Galaxy Ace II Android Development] ace2nutzer:
only missing files is enough .... i think u don't need to check for file permissions. ...

And the File Size is irrelevant .. because it's always different .. depending also how much it's optimized ... (Binary Code Optimizations)

If u can, better to compare every folder for missing files.
[Galaxy Ace II Android Development] IAmLucky:
I am still wondering why some apps force closes, in example, using xda premium app, after few secs, app gets freezes, and then it says "xda app is not responding" "xda app force closed" as well has happened with Facebook application (heavy one). But it might improve later i believe.

Also current 2016/03/31 has worse battery life. About 1 hour less sot. I don't get these spiky battery drops. (what is going on with my mobile signal? it stopped before charging. I will try to test more battery life tomorrow.)
[Galaxy Ace II Android Development] Dr360r:
[MENTION=5840412]ace2nutzer[/MENTION] I've checked the zips. On 160331:

Lib folder: libcurve25519.so is missing, libjackpal-androidterm4.so is replaced by libjackpal-androidterm5.so and libjackpal-termexec2.so.

Bin folder: uncrypt is missing

App folder: galaxy4 is missing, something else is missing but it didn't catch my eye, everything has an Odex and Apk version, including LatinIME (which has different size, but you told me it's normal).

Nothing out of the norm for other folders.
[Galaxy Ace II Android Development] ace2nutzer:
[MENTION=5818374]IAmLucky[/MENTION]

i don't see there smthg wrong .. everything looks normal ..

how old is the battery ? - Original ?

Also such screenshots are almost useless .. because they shows nothing.

Providing BetterBatteryStats (for free for xda members) logs (after a day of usage) is much more useful.

PS: don't forget to install the app as system app (the app will do it for you ...) and then reboot the phone ...

charge it to 100% ... and use it till 5%

EDIT try to wipe data of those Apps they FC

Can u pls try to use that lib on 31/03 ? all the other things sounds normal.

Set root:root 644 ... (rw-r-r) and then reboot the phone and test swipe.