yashsingh1/xdaforums huggingface dataset:
[Galaxy Ace II Android Development] ace2nutzer:
New Kernel + NT-APP are Up !!

Changelog:

20160813:

MaliAutoBoost: min_freq 200@250Mhz

added 800Mhz Step

Updated /ramdisk/perf.profiles.rc.bak file

Previous RAM: 629,7MB

Disabled unneeded Crypto options -- RAM --> 630MB

vmalloc=264M @ 256M

Use hwmem=78M instead of stock =84M .. -- RAM ---> 636MB

Added missing 1MB of RAM in ram-repartition .. .. we've 768MB, not 767MB -- RAM --> 637MB :D

First ace2 kernel with fully allocated RAM of 768MB :D

Overall better Performance

Better Battery Lifetime

NovaThor Settings v1.7.7

Changed MaliAutoBoost Low Freq to 250Mhz

Added 800Mhz Step for GPU

Notes:

Make sure to wipe data of the NT-APP first.

Enjoy !! ;)
[Galaxy Ace II Android Development] andon0v:
is it possible to use this version on the 1.1 repartition?
[Galaxy Ace II Android Development] stefanoscheda:
Repart blues

I tried reparting and... bricked my phone (recovered it by flashing back to the russian 3 parts stock GB, then stock JB and CMW restore from temporary recovery).

My steps were:

flash cwm_stock_reparted_v1.1 (this is the right one, not reparted_v1.1, isn't it?)

flash reparted_v1.2

power off

then boot to recovery didn't work

What could have been the error?

TIA
[Galaxy Ace II Android Development] ace2nutzer:
If there is sdcard0, yes.. Need to check reparted.sh script... Or u can check by yourself if u see UMS on rebuild part on the bottom of the script.
[Galaxy Ace II Android Development] ace2nutzer:
This is not full Installation method.

U've to flash recovery before u repart...

Especially if u had installed kernel without recovery. (Kernel with smaller size, is without recovery)
[Galaxy Ace II Android Development] andon0v:
if i change the values for DATAFS and UMS from 2gb and 1 gb to 2.9gb and 100mb will it work? or i need to change and other values?
[Galaxy Ace II Android Development] anggitya:
i flashed the lastest ROM and kernel, it work just fine but i cant reboot to recovery and now my phone wont turn on just stuck on logo, how to fix this ?
[Galaxy Ace II Android Development] stefanoscheda:
I did flash cwm.6.0.5.0 well before installing ROM and kernel, but now I see that there's a difference between the pdf manual (that I followed) and the instructions in post #1: manual directs you to flash ROM, Kernel, NT, ..., while post#1 adds recovery between ROM and kernel.

Is this the error? May I repeat the sequence as in a dirty installation?
[Galaxy Ace II Android Development] Tree4ever:
With 20160802 Rom I had wlan-problems.Went back with 3part XXMF1 from #5618 because 1part didn't work.Next is check out what is the reason.
[Galaxy Ace II Android Development] ace2nutzer:
@up

wifi wasn't working at all ???

I'm using here latest ROM + kernel with wifi enabled the whole day ... and there is all ok.

on reparted v1.2 u've this:

# rebuild SYSTEM 600MB
parted $MMC unit kb mkpart primary 105906 720306
# rebuild CACHEFS 8MB
parted $MMC unit kb mkpart primary 720306 728498
# rebuild DATAFS 2GB
parted $MMC unit kb mkpart primary 728498 2958382
# rebuild UMS 1GB
parted $MMC unit kb mkpart primary 2958382 3958382
# rebuild HIDDEN 1MB used as /ramdisk
parted $MMC unit kb mkpart primary 3958382 3959406

for 2,9GB on /data and 100MB for UMS (sdcard0) use this:

# rebuild SYSTEM 600MB
parted $MMC unit kb mkpart primary 105906 720306
# rebuild CACHEFS 8MB
parted $MMC unit kb mkpart primary 720306 728498
# rebuild DATAFS 2,9GB
parted $MMC unit kb mkpart primary 728498 3855982
# rebuild UMS 100MB
parted $MMC unit kb mkpart primary 3855982 3958382
# rebuild HIDDEN 1MB used as /ramdisk
parted $MMC unit kb mkpart primary 3958382 3959406

So replace it, save it, and install it.

Then swap storages n NT-APP.

But honestly this will only cause more problems ... a better way is to move apps to real sd card .. if /data is already full. Having sdcard0 with less than around 800MB is almost useless and u'll run into problems.

I had an better idea of using again 3GB for /data .. but using sdcard0+1 on real sdcard by simply making another partition to microsdcard .. So i.e. 32GB card ---> splitted = 16GB for sdcard0 and the other 16GB for sdcard1 ... but so far due of lack of time i'm not working on it ... it needs some tricks in ramdisk to work properly... (one day i'll do it)

Flash ODIN Kernel with ODIN or Heimdall:

http://d-h.st/users/ace2nutzer/?fld_id=0#files

there u can find also ODIN for windows. u only need to install samsung mobile usb drivers.

Flash as PDA and don't touch other settings.

Yeah, the PDF Manual is not needed at all ... u need only Post #3 + #1.

I'll edit Post #1. as it causes too much confusion. Now i understand why some of u don't have working recovery.
[Galaxy Ace II Android Development] Cursed Chico:
I have 15.07.2016 rom and 6.5 cwm.. and i think 1.1 repartition(i have normally 32 gb sd after repartition,only 1 gb sdcard1, others are internal)

Now how can i move to august rom 13082106 latest without keeping apps? becase changelog says

No need to swap storages

first dirty installation then repart1.2? but if i do dirty, i have ld repart there?
[Galaxy Ace II Android Development] ace2nutzer:
and ? it doesn't matter .. it's your choice if u want to swap storages or not. ;)

btw just for info:

reparted_v1.0 removes Kernel2 Partition , but latest kernel expects recovery on Kernel2 Partition .. so this reparted version, doesn't fit anymore.

reparted_v1.1 removes sdcard0 completey .. and it'll format it as ext2 for /ramdisk .... but latest kernel expects sdcard0 on mmcblk0p8., so it doesn't fit at all.

reparted_v1.2: That's the right Version for latest Kernel.

Anyway, follow always proper steps from Post #3 and then Post #1 !

If u're on recovery built-in kernel (fail-safe)... then

try this:

boot to recovery

make cwm backup (or if u've already, then skip this step)

flash stock reparted v1.1

flash reparted v1.2

power off

boot to recovery

format /system

mount /system (shows then unmont /system)

format /sdcard0 as vfat

wipe data

flash recovery

backup and restore

advanced restore from sdcard1

restore data

flash latest ROM

flash Recovery (!)

flash latest Kernel (if newer Version is available confronted to the kernel version from ROM-changelog)

NovaThorSettings.APK (if newer Version is available, check Changelogs)

GAPPS (if u want to use "Play Store")

I8160P_Support_V.xx.zip (if NFC Variant)

and

Reboot system
[Galaxy Ace II Android Development] darktrixx:
does anyone tried pokemon using this rom? thanks
[Galaxy Ace II Android Development] gepel:
[MENTION=5840412]ace2nutzer[/MENTION] I'm using latest rom with 3007 kernel plus repartv1.1(3gb data + ext sd as sd0). First of all i want to inform you that this config seems to work perfectly and even real racing 3 (your favorite game) store its data on sd0 (the real sd, the external). The problem is that the whole procedure for repart v1.2 doesnt seem to work because i cant see the sd0 on recovery under mounts and storage. I almost tried everything without any success..
[Galaxy Ace II Android Development] shaqman89:
I have. It works, but lags a lot.
[Galaxy Ace II Android Development] RyxeL:
anyone feel the LMK is too aggressive on latest ROM+kernel
[Galaxy Ace II Android Development] darktrixx:
thanks. i thought im the only one encounter those lags. aside from the game. overall performance. the rom was stable and awesome.
[Galaxy Ace II Android Development] ace2nutzer:
Re-download cwm and install it.

Or check md5 sum from ftp ..and your md5 sum file from your pc.. If it match.

Or just re-download. Some previous upload of cwm was without sd0 mount point.
[Galaxy Ace II Android Development] andon0v:
first u need to flash latest recovery, power off, reboot to recovery, than go to repart steps
[Galaxy Ace II Android Development] btb55:
Thank you. Support for our phone from you just gets better. Updated both my phones to the new 20160813 kernel and NT app. No issues, instructions perfect.
[Galaxy Ace II Android Development] Vlang:
Well, I was on reparted 1.1 and wanted to move to the newest kernel. I did these:

boot to recovery

make cwm backup

flash stock reparted v1.1

flash reparted v1.2

power off

boot to recovery

format /system

mount /system (shows then unmont /system)

format /sdcard0 as vfat

wipe data

and now I should flash recovery, but there is no sdcard1 to choose recovery zip from. What should I do? (in "install zip" menu there is only sdcard0 with LOST.DIR)
[Galaxy Ace II Android Development] andon0v:
^up as I told earlier u need first to flash the newest recovery, power off, boot to recovery and then follow the steps
[Galaxy Ace II Android Development] Vlang:
U mean I have to do it with Odin, don't I? Then power off and do the rest? I haven't used Odin yet btw.

Edit. And do you mean I need to do repartitioning again? But I've already done those steps and I don't think doing this again is safe.

Edit2. OK, just to clear out, for the moment I have no idea on how to flash recovery zip, because as I said I can't access microSD card (where I have all the zip's) through recovery.
[Galaxy Ace II Android Development] DevisG79:
[MENTION=5840412]ace2nutzer[/MENTION]

I updated with clean install to latest kernel, NT App and reparted v1.2. All went well. Everything works.

Nice job man. Cheers!
[Galaxy Ace II Android Development] andon0v:
if u have done the guide with old recovery version (which is with 1.1 repartition) to the step u need to flash recovery u formated your real sd card, because on the old version of the recovery there isnt internal storage, because it was removed, so u had before doing 1.2 repart, flash the newest recovery which have in it options to flash from internal and external (sd card) storages. Now u have done the 1.2 repart on 1.1 recovery and flashing from sdcard0 means u flash from internal storage which was removed, hope u made some backup on other stograde such as pc or cloud...
[Galaxy Ace II Android Development] Vlang:
No, I haven't, so there happened what I was frightened of. What do you recommend me to do?
[Galaxy Ace II Android Development] andon0v:
i would suggest first to wait for response from ace2nutzer, what can i say u need to flash 3-parted rom, the nf2, then rom, kernel, repart and so...
[Galaxy Ace II Android Development] Vlang:
By the way then, shouldn't be installing recovery placed before reparting in instructions?
[Galaxy Ace II Android Development] joe820730:
I have an 32GB microSD card.

In older version(maybe older than 20160718), It works fine, but after 20160809, I can't mount my sdcard.

Is there any suggestion or solution?
[Galaxy Ace II Android Development] ace2nutzer:
@up

try swap storages on NT-APP ... but are u on latest kernel + cwm + reparted_v1.2 ?!

if u was running stock_cwm.1.1 + reparted_v1.2 .. then it's ok ..

now u only need to flash latest kernel + recovery in a row.

(re-download cwm!)

as for micro-sd card ... insert it to your PC and check if there are any files at all.

If u see in cwm only sdcard0 .. then u've not the latest cwm package with proper mounting points for both sdcards ! Also only sdcard0 in cwm = only micro-sd ! But if u have format sdcard0 in cwm with only sdcard0 on mounts + storages, then u've most probably deleted all files of micro-sd.

I was suspect that it'll happen on some of u ... but that only happened because u didn't understand why there is only sdcard0 .. in ROM and cwm ... also u didn't noticed that on the system sdcard0 was your real micro-sd ? - Also u Guys should know, that without sdcard0 the system can't work properly ... Camera will FC and Apps installation almost not work. That's why we need to swap storages if sdcard0 is only 1MB ... or if it was removed completely.

Maybe with more time i'll be able to find more elegant and more convenient Solution as i mentioned before :)
[Galaxy Ace II Android Development] shaqman89:
[MENTION=5840412]ace2nutzer[/MENTION]

Just an idea, could we have a default recovery included in kernel (like how Philz was default in CK)?

So, whenever we flash another recovery, it would replace the default included one. And whenever we update the kernel, it would not overwrite the recovery if we already have a custom one installed.

I think that could simplify installation a bit.
[Galaxy Ace II Android Development] ace2nutzer:
hmm yes, it's a good idea, on the other hand, once one recovery is installed it'll stay for ever... on next kernel update it's not needed to install recovery again, also if u install another recovery like TWRP, it'll also stay on place.

So i think it's ok, u only need to know that at least one recovery is installed on mmcblk0p17 which is even accessible over File Manager ... u can even change recovery on running system .. it accept: recovery.cpio or recovery.cpio.gz.

Also on that partition is enough free space... there u can save up to 3 different recoveries.

btw: somebody tried if TWRP works ? - If someone want to try, just extract the recovery.cpio.gz package and put it to /recovery partition with File Manager ... don't flash it over recovery for now. Also make sure that there is always only one recovery active ... so at first rename the existing file in: recovery.cpio.bak.
[Galaxy Ace II Android Development] shaqman89:
Yeah, I just noticed that it's accessible from /recovery. I'll check out whether twrp works.

Anyway, do you think this is a good idea to make backups in cwm script?

dd if=/dev/block/mmcblk0p3 of=/storage/sdcard1/system.dat
dd if=/dev/block/mmcblk0p5 of=/storage/sdcard1/data.dat

I intended to make a more generic repartition script that would automatically restore users data as long as they have storage in external. So far it is working in both my phone, but then I just realized that I don't know whether dd would be enough to do the job.

Update:

I tried using twrp.cpio from here: http://www.xda.mister-freeze.eu/XDA-files/ChronoMonochrome/recovery/TWRP/twrp_2.8.7.0_280815.zip

Unfortunately, it didn't work. Got stuck on twrp logo and had to revert to odin kernel.
[Galaxy Ace II Android Development] ace2nutzer:
did u tried this ?:

u've unpacked twrp package .. there is twrp.cpio.gz .,... u've to unpack it ...

like this:

gzip -d twrp.cpio.gz

then u've twrp.cpio

now rename it:

mv twrp.cpio recovery.cpio

then u need to replace symlink with real file:

fstab.samsungcodina

in recovery package (twrp) .. use that file from recovery.cpio.bak and put it in the twrp package.

that should work.

Another way is to keep the symlink in the recovery package ... then just take fstab.samsungcodina from cwm recovery ... rename it to fstab and copy this file to /ramdisk.

that should maybe work.

Maybe i'm missing more steps, need to check installer script more deeply.

EDIT: as for reparted V2. don't know if it's good idea to use dd .. it'll just use the whole space of the partition ... no matter how full it's. not optimal.

Also i don't know if it works to directly formatting without to reboot recovery ....

If u already tried this and it seems to work .. this only worked probably because u had already latest partition layout ... but try to change it ... then it'll mess it up ... u need to reboot.

Also if u want to make backup of system + data .. why not also backup kernel + sdcard0 ? Then it's complete ... but for me it's a painfully method using dd.
[Galaxy Ace II Android Development] shaqman89:
Yeah, I did unpack it and got the twrp.cpio.gz

I thought that was enough, so I just renamed it to recovery.cpio.gz lol

Well, it did boot up to twrp logo, but didn't went on after that.

I'll try with to see the symlink part.

Anyway, while I am on to it, is there a good log I could get in case of errors like the one I describe just now?

Update:

I peeked into cwm installer script and didn't found any symlinking. So, I'm not sure what you mean about symlinking fstab. Not sure how to proceed on that.

Anyway, wouldn't it be better to do a rm rather than mkfs for recovery partition?

I mean, if we switch recoveries a lot, I think that would tear down the internal mmc faster.
[Galaxy Ace II Android Development] ace2nutzer:
edited previous post .... (comment for reparted V2)

yeah that works too, with recovery.cpio.gz ... but in my case i was not able to add or open files to gzipped package here in my lubuntu ... so i need to unpack first with gzip .. :)

But if u want to use method with /ramdisk .. then u can let it to gzip format .. which saves some space on /recovery :)

EDIT: just take the file fstab.samsungcodina form working CWM recovery.cpio ... and then simply rename to fstab and put this file to /ramdisk :)

then TWRP should boot up instead to stick on TWRP logo ... try.
[Galaxy Ace II Android Development] shaqman89:
I did thought that dd would have a catch. Seems like it's better just to tar the whole partition. That should preserve permission and might be more efficient.

Also, I thought backup system & data was enough since those are the parts that mainly have differences when partitioning. (I noticed only 5 partitions that are touched, and since I don't use UMS (sdcard0), I left it out in testing.)

Yeah, I did found that at times it messed up files the files and partition would get locked, so I think there is still something missing to finalize the partitioning without a reboot.

I haven't found out what that is though.

Unfortunately, it still didn't work.

So, what I did is this:

1. From inside recovery.cpio, I copied fstab.samsungcodina

2. Paste fstab.samsungcodina in /ramdisk and renamed it to fstab

3. Extract twrp.cpio.gz from twrp zip

4. Pasted twrp.cpio.gz in /recovery

5. mv recovery.cpio recovery.cpio.bak

6. mv twrp.cpio.gz recovery.cpio.gz

Using the steps above it's still stuck at twrp logo.
[Galaxy Ace II Android Development] Vlang:
I've put the microSD in another phone (I think i can't plug it into my PC in any way) and it looks like really formatted. There is only clockworkmod file, LOST.DIR and I think "Music" file (nwm)? So I don't have that backup. I understand that now I need Odin from there: http://d-h.st/Jze, latest recovery, latest kernel (so ROM is still somewhere there?). Also I need to install those USB drivers beforehand: http://samsungusbdriver.com/download/samsung-driver-v1-5-60-0 (a link seen a couple of pages ago). And now I'm not sure how to flash something with Odin. Do I:

1. plug in my powered off phone

2. open odin on pc

3. enter download mode on phone (home button and volume down)

4. probably sth will happen in odin, then choose kernel as PDA, press start, choose recovery as PDA, press start, and that's all? Can I use my phone?

Since it looks like I formatted microSD as vfat, do I need to do that again with internal storage?
[Galaxy Ace II Android Development] shaqman89:
Not sure what you did to arrive at that state but you're on the right track.

When you enter download mode and connect phone to pc, Odin will detect it's port. Just select the kernel Odin (this is not the same as latest kernel) in pda and press start.

After that you should be able to go into recovery mode to flash a working rom and latest kernel+recovery.
[Galaxy Ace II Android Development] Vlang:
Oh, you mean that kernel: http://d-h.st/C0yG? But, well, I can get into recovery. ace2nutzer said I need to flash latest kernel + latest recovery but I don't have both on the phone. Maybe I have to use that "install from sideload" option? But how?
[Galaxy Ace II Android Development] shaqman89:
If you could access recovery, then you don't need to flash via Odin.

What exactly are you trying to achieve?
[Galaxy Ace II Android Development] Vlang:
OK, so I was moving from i think 06.08 kernel and 1.1 repartition to 13.08 kernel and 1.2 repartition. I did these steps:

boot to recovery

make cwm backup

flash stock reparted v1.1

flash reparted v1.2

power off

boot to recovery

format /system

mount /system (shows then unmont /system)

format /sdcard0 as vfat

wipe data

and then I should flash recovery but having earlier recovery it looks like I have formatted my real microSD card and I don't have any zip's on my phone. Ace2nutzer said that now I have to flash kernel + recovery, which as I mentioned I don't have on my phone. And I'm not sure if now I have access to internal storage or microSD card through recovery. I think there is no way to simply move those zips to a phone where I can't open system - I have access only to the recovery. AND now I've came to an idea that if that storage that I can access is microSD card, maybe I could just put the card in another phone, there place the zips on sd card, put it back in Ace 2 and hope they will be there.
[Galaxy Ace II Android Development] shaqman89:
You're making this way too complicated. You could do like what you just thought. Or if you have access to a pc, you could push the files or do a sideload.
[Galaxy Ace II Android Development] HostisSupremus:
Versions later than `cm-11-20160616-UNOFFICIAL-FULL-codina.zip`

[MENTION=5840412]ace2nutzer[/MENTION] - strange thing - I've done everything exactly as you have written, but in my case all versions later than `cm-11-20160616-UNOFFICIAL-FULL-codina.zip` do not work. `cm-11-20160616-UNOFFICIAL-FULL-codina.zip` works great, but as I flash any later version I get either bootloop (not right after flashing, but once I reboot) or WiFi does not work (as I see, there is no correct IP or MAC in Settings - WiFi - Advanced). As no one reported it, I guess that I do sth. wrong. My model is GT-I8160, "codina" - no P etc. Before flashing I reformat SD card using Linux: fat32 (about 10 GB) and ext-4 (about 5 GB), after that I put stuff to flash on the fat-32 partition. Maybe it is about link2sd http://bit.ly/2bho1BH?

Every time I do it like this:

* Reset phone from previous version of your ROM

* Recovery: wipe data, cache, dalvik, format system, I get root question, reply: no.

* Flash stock rom from samsung (not the one from your FTP) to be sure it's all default

* Root phone, reboot, tmp CWM: wipe data, cache, dalvik, format system and mount it.

* Flash in order you have given.

Any educated guess? I have no idea why it is not working in my case :/
[Galaxy Ace II Android Development] shaqman89:
Those steps are way too complicated.

Even if you start from stock Jb, all you need to do is flash Odin kernel, boot into recovery and follow the steps in post 1 for clean installation.

I have similar setup as yours, and also using link2sd so it's not that causing it.
[Galaxy Ace II Android Development] Vlang:
ALRIGHT GOT IT GUYS! I put sdcard in another phone, plug it into PC, moved kernel and recovery, put card back to Ace 2, installed, CM didn't boot. So I moved also ROM package, made hole clean installation from post #1 and it booted. Sorry, I just panic a bit and don't fully understand what is going on with my phone when installing ongoing updates. Eventually I'm going to start studying IT at University of Technology in Gdańsk (Danzig?) in October so such a training will probably pay off. :D I'm really sorry if spammed the topic too much, but that's how panicing works, you just do whatever you can to solve the problem, so take it under concideration when the next user will f*ck up his device.

P.S. the only thing I miss is a charming photo of Town Hall in Gdańsk (http://fotopolska.eu/foto/8/8774.jpg) I made yesterday ;(

P.S.2 if you want to play Pokemon GO you can make it run smoother by tweaking it with GLTools (http://xdaforums.com/android/apps-games/app-gltools-1-29-t2828630/page37 post #367); also it is already possible to play Hearthstone on our devices (noticed in on the previous kernel)! The only disadvantage is that loading a game or a match takes really long, but it runs quite smooth when eventually load up.
[Galaxy Ace II Android Development] pablo.see:
Installation procedure for kernel 0813 (2GB system, internal sdcard0 1GB) is stated wrong. Before repartition, kernel and recovery should be installed first and then repartition. Now after failed attempt of upgrade 0809 to 0813, recovery can't mount sdcard1 (external). What should I do to fix this? I can't access files from scdard1.