yashsingh1/xdaforums huggingface dataset:
[Galaxy Ace II Android Development] ace2nutzer:
New Builds are Up !!!

Changelog:

20160730:

Ability to install new recovery over recovery or FileManager - thanks [MENTION=5695278]ChronoMonochrome[/MENTION]

Adjustable CM Performance Profiles :D

Real sdcard acts now as real internal sdcard !

No need for "swap storages" in NT-APP

Play Store: Fixed the issue that some Apps fails to install due of swapped storages - Maybe :D

Faster reboot and shutdown !

Clean ups: don't mount /cache + /preload on system

LCD.FIX Version on "misc" folder (FTP)

Read Post #3 for more informations ! (or here quoted .... )

NovaThor Settings v1.7.5

Removed dirty reboot method for swap storages

Compiled with latest Android Support Lib

NOTE: wipe dalvik-cache before u install this Version !

Also Uploaded new stock_reparted.zip + reparted_v1.1.zip + recovery package ---> cwm.6.0.5.0.zip (usual cwm)

Installation NOTES:

NOTE: For now only cwm package is available for recovery ... don't flash other packages for now !
[Galaxy Ace II Android Development] stefanoscheda:
Dirty or clean?

I'm currently running on AOSP 4.4.4 J-TEAM KTU84P FINAL.

Moving to this ROM requires a clean installation or a dirty one is enough?

Thanks :)
[Galaxy Ace II Android Development] Dr360r:
Is it mandatory to repartition in order to install new kernel? I flashed the new kernel without repartitioning and 1)sdcard0 became sdcard1 2)sdcard1 became empty. I solved by flashing 160719, but i wonder if i can install 160730 without repartitioning anything.
[Galaxy Ace II Android Development] ace2nutzer:
As for clean or dirty u can try first dirty if all is working good, it is as well. Anyway, best performance is on clean method.

[MENTION=6902149]Dr360r[/MENTION] if u've a sdcard there is almost no reason to not kill sdcard0, it's completely useless to keep sdcard0 with 1mb there. It's only causing problems with apps if it' swapped over nt app.

With the new kernel + repartition, sdcards are swapped natively ... And sdcard0 is removed and not mounted at all.

While in cwm it's still sdcard1.
[Galaxy Ace II Android Development] Dr360r:
The thing is that if for any reason i'd want to go back i would need to install 3 part ROM... I use link2sd so that if the external sd suddenly becomes read only due to a fault not everything is hampered...
[Galaxy Ace II Android Development] ace2nutzer:
Have u moved apps from /data to real sdcard0 with link2sd ?

If so, just move them back to /data ... Or if there is no space left, then move them to sdcard1.

Later they are on sdcard0 .. Then u can move to /data .. There is then 3gb on /data .. and if even /data is full with the 3 gb .. Then u call still move apps to real sdcard... All no Problem.

If u've sometimes inconsistences with the filesystem on sdcards, just move all files to pc, and format the sdcard over cwm as vfat. (Not on pc) then copy back all the files and all is fine :)

Edit: u don't need to flash 3-parted rom.

Just flash cwm_stock_reparted_v1.1.zip
[Galaxy Ace II Android Development] Dr360r:
I think i'll do a clean install, repartition and sort everything out ;)
[Galaxy Ace II Android Development] ace2nutzer:
Yes is best, but without clean install works too like i said.
[Galaxy Ace II Android Development] ramunas71:
Im using latest yours kernel, CM, NovaThor they are excelent :)

But there is a bug in dialing pad, when i open dialing pad it cannot show any numbers then back and open again it works.
[Galaxy Ace II Android Development] PolishVodka:
This bug is present when animations speed are 0x in developer options.
[Galaxy Ace II Android Development] DevisG79:
Is it neccessary to swap storages back to normal over NT App before repartioning?
[Galaxy Ace II Android Development] littledude072:
ey, its been a while since i flashed a rom (mid april or may), and currently im having a 'double text' issue on your 718 build. i did a proper clean install via factory reset, wiping /system, both caches, no googleplay. it happens when i set the screen brightness below ~1/3. i dont mess around with developers/novathor options. i do enable expanded desktop and small text font. i also uninstall a bunch of default system apps but theyve all been uninstalled before without any issues.

my best guess is that im missing the display driver. i know my ace2 (non p/l) is the s2d version, but i cant find it using search, or i forgot where the location is. could that be the reason why? sometimes when windows doesnt load the display driver correctly, it loads a standard factory 1024x768. it also happens here, a reboot might 'cure' it. i havent had this issue with a linux OS but im just putting it out there.

how should i fix the issue? flashing the kernel and lcd.fix? id like to do a full install again, and possibly avoid using odin and repartitioning ATM.

factory reset

wipe /system and caches

718 rom

731 kernel

731 kernel lcd.fix

is this right?

also a few things caught my eyes and id like some info please.

whatre the recovery and stock rom folders? is that the same cwm version that comes bundled with your standard kernels? are the roms the 'silver bullet' for any ace2 issue? id like to keep a backup on my PC in case the worse happens. if i read correctly, repartition reallocates all but a few MB from the /storage/sdcard0 and transfers them to data, while also forcing sdcard1 as sdcard0?
[Galaxy Ace II Android Development] lab34:
Hi,

I did exactly what you said (every steps), and I'm happy to say it works nice !

42 Mo free on /system, and 3031 Mo on /data

Fantastic !

good job, thank you !
[Galaxy Ace II Android Development] DevisG79:
Did you have the error message: "Can`t mount storage sdcard0/android secure" by wiping data after repartitioning?
[Galaxy Ace II Android Development] lab34:
Yes, I had this message.
[Galaxy Ace II Android Development] DevisG79:
Okay. So, no need to worry? Or did something go wrong?
[Galaxy Ace II Android Development] lab34:
I think this folder is related to the app moved on the ext sdcard.

My apps seems to work well.
[Galaxy Ace II Android Development] DevisG79:
Also after restoring backup in cwm android lay on the ground with the same error message. Did you have this too?

But then i flashed newest kernel from ace2nutzer, wiped cache and dalvik, rebooted and all seems to work well.
[Galaxy Ace II Android Development] lab34:
I don't remember, I think yes...

I did exactly the steps as they were written by ace2nutzer. (including disable "swap storages" and reboot)

I notice some error message when doing a backup now. But my new backup seems to be the same size of the previous....

The phone is working well, I will continue to watch this thread for other experience ;)
[Galaxy Ace II Android Development] ace2nutzer:
it doesn't matter, u can do before or after .... better is before, otherwise real sdcard1 is not accessible on first boot ;)

u can'T use latest kernel without to repartition at all ... and nope, u don't need ODIN .. just download needed recovery packages i listed and flash them over recovery ... but read exactly the manual i've written for this latest release !

If u still don't want to repartition your phone (not recommended) then use previous kernel release.

then it should look like this:

wipe dalvik cache

install 18/07 ROM

install 19/07 LCD-FIX kernel (since u've issues with the LCD)

install latest NT-APP

install GAPPS from FTP, (optional if play store is needed)

reboot system.

yes, for now it's same cwm recovery. But latest kernel build need to have a separately installed recovery ... otherwise recovery isn't there at all ! while previous build has cwm on same kernel image. (latest kernel uses a recovery on another free partition on the phone .... )

to be precise:

Kernel = p15 ----> Kernel for /boot.

Kernel2 = p17 ----> /recovery only

UMS = p8 ----> /ramdisk for CM Performance Profiles ---- and was the old partition for the real sdcard0 ! :D

Yes, maybe i'll try if it works as well using only real sdcard1 and without to swap, so still without sdcard0 at all.

But if Camera + apps installation fails, then actually config is still the best. But don't worry, in case that next update i've changed again sdcards, then it's not needed to move apps or repartitioning again ;)

yes, is normal, just ignore it ...

@ all

if u did it all right, then u should see on CM FileManager in root-mode the following folders with files inside:

/ramdisk

/recovery

btw: once u did a copy of perf.profiles.rc .. then that config file is also accessible via /perf.profiles.rc for edit ... (it's a symlink ;))
[Galaxy Ace II Android Development] Dr360r:
Ok, i've just joined the "repartitioned" club.
[Galaxy Ace II Android Development] lace_hvc:
su

tune2fs -m 0 /dev/block/mmcblk0p3 -> doesnt work. getting error about this block.

tune2fs -m 0 /dev/block/mmcblk0p5 -> works but no difference in space noticed.

Im still on cm-11-20160718 (including kernel_20160719). Havent reparted or anything, but somehow I lost 100MB free space in Data. I can see the increase in size too when Im comparing backups. Haven't installed/downloaded anything and same apps are installed/frozen as before. Before 440MB free, now 330MB. Data file in backup was 750MB, now 850MB.
[Galaxy Ace II Android Development] Culateralligator:
I think I've made everything as described (reparted+kernel+NovaThor) but I haven't any file @ /ramdisk.
[Galaxy Ace II Android Development] ace2nutzer:
Check with "df" if ramdisk is mounted.

[MENTION=6710464]lace_hvc[/MENTION] It's coming from apps updates.
[Galaxy Ace II Android Development] andon0v:
i want to ask if there is any way to make different profile to start on boot? for example performance? btw the kernel + repartition is very good combination
[Galaxy Ace II Android Development] Culateralligator:
It doesn't appear.
[Galaxy Ace II Android Development] ace2nutzer:
Nope, but u can use different freq's for "balanced" .. Or use classic oc method over settings -> performance -> cpu. Set on Boot.

So it wasn't formatted.

Un can format with commad:

mkfs.ext2 -b 4096 -m 0 /dev/block/mmcblk0p8

Then flash latest kernel (only kernel, recovery is already installed)

So all others with latest kernel don't have any files on /ramdisk ? A few users can confirm pls ?
[Galaxy Ace II Android Development] andon0v:
What need to have?

Here a screenshot
[Galaxy Ace II Android Development] ace2nutzer:
Yes that's right, if u open that file u can modify cm performance profiles.

btw have u formatted with command above or it was already working ?
[Galaxy Ace II Android Development] andon0v:
no, i didnt. i followed the instructions from 3rd post
[Galaxy Ace II Android Development] lab34:
Hello,

under /ramdisk, I have perf.profile.rc.bak with a size of 617 o
[Galaxy Ace II Android Development] Culateralligator:
I followed ace2nutzer's instructions and now these files appear. :good:
[Galaxy Ace II Android Development] darktrixx:
i have files in ramdisk. thanks sir [MENTION=5840412]ace2nutzer[/MENTION] for awesome build.
[Galaxy Ace II Android Development] DevisG79:
I have the folders ramdisk and recovery and files in it. So i think everything went well. Data shows me 2,96GB.

Cwm_stock_reparted_v1.1 and reparted_v1.1 are not recoveries? These zips are only for repartitioning? Am I right?
[Galaxy Ace II Android Development] Dr360r:
Yes. Only for repartitioning. The recovery is CWM 6.0.5.0.zip.
[Galaxy Ace II Android Development] DevisG79:
What about this screenshot? Is there everything ok?
[Galaxy Ace II Android Development] ace2nutzer:
All right !
[Galaxy Ace II Android Development] DevisG79:
[MENTION=5840412]ace2nutzer[/MENTION] Really great job. Thank you so much and not only for repartitioning. Also thank`s to Dr360r and all who help finding bugs.

Really great thread here.
[Galaxy Ace II Android Development] lace_hvc:
Stupid question: after doing the repartitioning, do i always need to leave my external sd card in the phone? or is everything still on the internal card? i would like to get the 3GB size for /data, but i never swapped storages since i use my external sd card in other devices sometimes.

And what happens to the apps that i moved to ' internal sd card storage' (aka usb storage app)?
[Galaxy Ace II Android Development] andon0v:
i dont know if this is a problem, but when i plug the phone in the computer some folders with files like screenshots, camera photos, clockworkmod with nand backups cannot be accessed from the pc (it shows they are empty, but for example in clokworkmod folder i have 5gb full of backups). there isnt problem accessing them from the phone, only from pc, and this is very annoying, because cant transfer any photos, screenshots and so on the pc.
[Galaxy Ace II Android Development] ace2nutzer:
yes u've to, sdcard0 will be completely removed. maybe next build it's possible to remove sdcard on running system .. of course when first sdcard is unmounted over settings ---> storages.

Move them back to /data, or if there is no space left, then move to sdcard (external) ... later u can move back to /data.

If u don't do this, all apps in sdcard0 will be lost for ever. ;)

use usb mass storage mode instead of MTP.
[Galaxy Ace II Android Development] darktrixx:
just in case, does it safe to removed sdcard after repartitioning? thanks. no bugs found atm in latest build. thanks
[Galaxy Ace II Android Development] ace2nutzer:
Not needed, otherwise i would write this step ;)
[Galaxy Ace II Android Development] Tree4ever:
@ ace2nutzer,

how can I make a clean install from last rom+last kernel?I have cwm 6.0.5.0 on the device and storage can stay as it is(2,9 gb).I did wipe and format and tried some times but storage can not be added in settings/storage.Flashing of rom and kernel went O.K.
[Galaxy Ace II Android Development] lace_hvc:
Im not in need of space, so I prefer to keep using the internal sd card 0.

Did you notice anything about the rising kernel wakelock 'deleted_wake_locks'?
[Galaxy Ace II Android Development] Dr360r:
The repartitioning and the new kernel finally solved the download folder problem. It's a really nice idea to use the entire internal memory only to store the apps and the system. I guess it also wears the internal memory slower.
[Galaxy Ace II Android Development] ace2nutzer:
did u followed tips from post #3 ?

it's a must to repartitioning the phone if u want to continue to use latest kernels.

otherwise stay with older build.

Then just wipe data, format sdcard1 as vfat in cwm and format /system. after that u can install rom, kernel, gapps and nt-app.

Then u've to stay with previous kernel and use only cwm_stock_reparted_v1.1.zip + cwm_reparted_v1.0.zip !

(use first stock_reparted and then cwm_reparted.)

I don't habe deleted_wake_locks at all for now ... but it's possible and normal that it's coming from Apps like Apollo, or OG-YouTube. when listening the music with screen OFF. Or it's from Notifications ... --> BLN and so on.

I've 8 minutes cc_wake_lock from total 18 hours, Uptime 2 hours and deep sleep 16 hours.

i think it's normal wakelock from the system. I'm also using BLN with wakelock for notifications ... so i guess everything OK here.

The Phone just sometimes wakes up for checking emails, messages and so on. If it's all the time in deep sleep, then nothing will work :)
[Galaxy Ace II Android Development] lace_hvc:
I haven't installed the latest kernel and ROM. Can you tell me what I need the stock_reparted and cwm_reparted for if i want to keep the sd card0 in use? what will it do? I dont really understand this whole reparting thing.

I know that deleted_wake_locks comes from the wlan wakelocks. once u turn off ur wifi, the wlan wakelocks get deleted and turned into deleted_wake_locks. i read somewhere that it cant be associated to wlan wakelocks anymore. And its true when i compare wlan wakelock time and then turn off wifi, the wlan wakelock time is added to the deleted_wake_locks time. Im just wondering why its 30-60minutes now. Seems quite high.

Maybe you are right and it has to do with the services/alarms running sometimes from deep sleep when wifi is on. and after turning wifi off, its turned into deleted_wake_locks.

cc_wake_lock is only a few minutes for me, too.
[Galaxy Ace II Android Development] beardedpanda:
Okay guys so I've decided to create a individual threads with my work for this ROM to keep this thread clean and ROM only. Maybe about two weeks from now all will be set up and in place with a little surprise. For now just check my forum signature for any news.

Cheers guys and keep the great work going! :)
[Galaxy Ace II Android Development] HostisSupremus:
BusyBox

[MENTION=5840412]ace2nutzer[/MENTION], I've noticed that BusyBox version is 1.22.1

Is it safe to flash BusyBox-v1.24.2-Stericson.zip from this post: http://xdaforums.com/showthread.php?t=1929852 ?
[Galaxy Ace II Android Development] Dr360r:
Maybe he can directly implement it into the ROM build.
[Galaxy Ace II Android Development] shaqman89:
I haven't tried that but I have used this https://play.google.com/store/apps/details?id=stericson.busybox with no issue.
[Galaxy Ace II Android Development] ace2nutzer:
yes it's safe, i've tested, but over play store ... i guess it's the same.

So far everything works, but i've weird messages over term. emulator .. so for now i'll not add to next ROM build.

btw: is there any reason at all for using that latest version ? - Is something not working with version from ROM ?
[Galaxy Ace II Android Development] shaqman89:
Yes. In my case mixplorer was having issues with busy box built in from ROM. So I upgraded to latest using busy box from store
[Galaxy Ace II Android Development] littledude072:
thanks for replying in full and the fix. been trying to pick a fight with the display, dev and kernel options. no more double text.

whats the stock rom folder? are both 412s thatll fix all problems? id like to try repartitioning as the preload is 300 MB, but IIRC it only takes ~100, and for some reason my preload is empty.
[Galaxy Ace II Android Development] ace2nutzer:
Stock ROM Folder contains latest stock ROM from SAMSUNG official releases ... one is for GT-I8160 and the other one is for GT-I8160P. U need them before installing CM11 for the best functionality.

Also Repartition to the latest Version is recommended, with the only one side-effect that the internal sdcard0 will be completely removed ... (space will go to /data for apps) so u can use the phone only with inserted SD CARD !!

No issues with Camera or Apps installation as they will always install to /data and some Files to real micro-sdcard !

And it's normal that /preload is empty, it's not needed at all for CM11 :)
[Galaxy Ace II Android Development] HostisSupremus:
In my case, no - just a freak on the leash of flashing the latest version ;)
[Galaxy Ace II Android Development] lace_hvc:
In your guide for kernels builds up to 20160718 you mention only the file 'install reparted_V1.0.zip'. So i replace this one with cwm_stock_reparted_v1.1.zip first and then cwm_reparted_v1.0.zip?

No repartition yet and my phone looks like in the screenshot. So how will it look like if i do repartition for kernel builds up to 20160718? Will external sd card be needed?

I just saw im on kernel 20160719 -_-
[Galaxy Ace II Android Development] ace2nutzer:
Yes, right ... but latest kernel if u want to keep sdcard0 is 20160719 Build ... (better than 18/07)

It was a typo on post #3.

If u do repartition v1.0 sdcard0 is then only 1MB .. so u'll need external sdcard to. and u need to swap storages n NT-APP.

If u use latest kernel + reaprted v1.1 then sdcard0 isn't there at all, and u need ext-sd too, otherwise the phone will not work properly. ext-sd card will be internal sdcard0 .. and works like real sdcard0 ... = no issues at all ... and u even don't need to swap storages in NT-APP !

But if u want to stay with sdcard0 with 512MB or smthg like that, just search for proper cwm_reparted script ... u can find a lot of different Memory layouts here:

http://xdaforums.com/galaxy-ace/ace-2-develop/guide-cwm-reparted-t2895673

sdcard0 = UMS ..

example: 100.000 UMS = 100MB for sdcard0

u also can edit the script and create your own partition layout ;)

Actually and latest repartition from me, gives this layout:

shell@codina:/ $ df
Filesystem Size Used Free Blksize
/ramdisk 968.0K 24.0K 944.0K 4096
/recovery 15.5M 5.4M 10.1M 4096
/dev 314.9M 136.0K 314.8M 4096
/sys/fs/cgroup 314.9M 12.0K 314.9M 4096
/mnt/asec 314.9M 0.0K 314.9M 4096
/mnt/obb 314.9M 0.0K 314.9M 4096
/mnt/fuse 314.9M 0.0K 314.9M 4096
/dev/shm 314.9M 0.0K 314.9M 4096
/system 576.7M 534.6M 42.2M 4096
/modemfs 15.7M 4.4M 11.4M 4096
/efs 9.8M 4.6M 5.3M 4096
/data 3.0G 1.5G 1.5G 4096
/mnt/.lfs: Function not implemented
/mnt/media_rw/sdcard0: Permission denied
/storage/sdcard0 29.7G 14.7G 15.0G 4096
1|shell@codina:/ $

the sdcard0 here, is my micro-sd card with 32GB :)
[Galaxy Ace II Android Development] jcourtei:
Is repartitioning mandatory with last kernel?
[Galaxy Ace II Android Development] Dr360r:
Yes, it is. Not only mandatory, but also highly useful.
[Galaxy Ace II Android Development] lace_hvc:
Thanks for the detailed reply!

I thought there would be a way to give me 3GB data on sd card0 with system, data,... still installed on it, by removing some on those empty 301 to 314.9 MB blocks.

Since I like this phone cause of the easy way to unplug the external sd card, I will stick with the kernel from 19.07 and keep the default partitioning.
[Galaxy Ace II Android Development] ace2nutzer:
Deleted double post.
[Galaxy Ace II Android Development] ace2nutzer:
One day u'll need it, so i thought it's ready for the future :D

Ace 2 never die.
[Galaxy Ace II Android Development] ace2nutzer:
New Builds are Up !!

Changelog:

20160806:

CPU: Dynamic: Reduced suspend_max_freq from 800 to 600Mhz

Reduced input_boost_freq from 800 to 600Mhz

GPU: Reworked MaliAutoBoost

Added 750, 250, 200, 150Mhz Steps for GPU

Added 1150, 1250, 1300Mhz Steps for CPU

Use custom cmdline for maximum RAM (624MB Variant), by using

CMDLINE_FORCE - thanks to [Chronomonochrome] [cocafe]

(it uses 624MB ram partition layout from stock 624MB bootloader,

It should result in usual 629MB even if u install CM11 over the 442 or 550MB RAM layout,

so no need to use risky RAM Hack Repartition or flashing around 2 Stock ROM's to get

the 624MB RAM from Stock bootloader! )

More efficient CPU/GPU Config (more powersaving)

Reduced Min GPU Freq from 300 to 200Mhz

Reworked CM Performance Profiles:

Min GPU Freq is 200Mhz now, but on Powersave Profile it's even only 150Mhz

For more details, check config file in /ramdisk

Reduced Boottime

Fixed low APE/DDR_OPP Performance at boot and

after boot for the first few Minutes - LiveOPP Bug

(Fixed by an Workaround in Ramdisk)

Better Battery Lifetime & Performance

Reduced RAM Usage (smaller ROM binaries due of -Os)

NovaThor Settings v1.7.6

GPU: Reworked MaliAutoBoost

Added 750, 250, 200, 150Mhz Steps for GPU

Fixed minor Bug on CPU UV

20160802 ROM:

CM Sources Update

Target THUMB compiled as -Os

Incl. ace2nutzer kernel 20160806

Incl. NovaThorSettings.apk V1.7.6

AUTO wipe cache + dalvik-cache + format /system

Also reuploaded cwm recovery package...

Updated CodinaP Support to V1.2

ROM is actually uploading ....

all other packages are up !!!

For installation method check Post #1 + #3.
[Galaxy Ace II Android Development] Dr360r:
How to force a dirty ROM install (since i don't want to lose time installing and setting up everything again)?

Sorry, i forgot for a moment that only /system gets formatted, and not /data.
[Galaxy Ace II Android Development] andon0v:
So for dirty installation if have already repartition 1.1, we need only to flash rom and gapps since the installation automatically does wipe cache, dalvik-cache and format system?
[Galaxy Ace II Android Development] Dr360r:
Yes, , but it could be useful to learn how to do everything by yourself.