[Galaxy Ace S5830 General] K.A.:
Quick Guides+Info [More to come soon]

[SIZE=+3]

Quick Guides/Info[/SIZE]

ROM zip structure.

META-INF : For simplicity and best understanding, let's just say this is the instructions manual for the recovery on how to deal with the provided zip file.

i) Update-binary : Not to be messed with, wrong update-binary can hard brick your phone.

ii) Update-script : The actual instructions list.

- ui_print : Prints the given text on the screen.

- set_perm : Sets the required permissions for the installed apps to function properly.

- set_perm_recursive : Sets the required permissions of a directory or set of directories and all files and folders within them.

- package_extract_file : Extracts a single file.

- package_extract_dir : Extracts a folder to the specified location.

- symlink :

- assert :

System folder : Contains all the files required for the Android OS.

**adding details soon**

Boot.img : The boot.img is a small(ish) file that contains 2 main parts, the kernel (the brain of the Android system) and the ramdisk (a core set of instructions and binaries that begins the boot process and controls base aspects of the system, such as mountpoints, memory management and startup services.​

​

Decompiling/Recompiling Apks

***This guide assumes you already have Apktool 1.5.x set up and working, If not please set up Apktool first.***

i) Setting up :

- Copy the apk you want to modify and twframework-res.apk/framework-res.apk from the ROM's framework folder to your preferred folder.

- In the same folder, Hold "shift" key, right click and select the "open command window here" option.

ii) Installing framework

A) If the ROM has TouchWiz(stock ROM and it's derivatives) :

apktool if twframework-res.apk

B) If the ROM doesn't contain TouchWiz(CM, AOKP, PAC and it's derivatives) :

apktool if framework-res.apk

iii) Decompile :

apktool d [apkname].apk [foldername]

- apk name is the name of the apk you want to modify.

- On decompile, a new folder will be created. You can keep any name you want for the folder.

iv) Recompile :

apktool b [foldername] [newapkname].apk

- You can change the newly compiled apk to whatever you want, or if you keep it the same as the original apk, the new apk will replace your original apk.

​

ROM flash method (For ALL ROMs)

***This method works for all ROMs, if you follow this procedure, you will NEVER have improper/incorrect ROM flashes.***

I) Reboot to recovery.

II) Select "Wipe data/factory reset"

III) Go to "mounts and storage"

IV) Select "wipe system" and "wipe data" and "wipe sd-ext" (NOT sd-card)

V) Go back to the main menu.

VI) Select "install zip from sd card"

VII) Navigate to folder where ROM zip is. Select it and let it flash.

VIII) Reboot.

Custom ROMs

CyanogenMod : CM is a custom built aftermarket firmware for Android. It is one of the most popular Custom ROMs series for almost every modern device. It is based on pure Android, but with many useful performance boosting tweaks and enhanced usage additions. The latest version of CM is CyanogenMod10.1 based off the latest Android 4.2.2.

AOKP : Android Open Kang Project : The second of the 2 most popular Custom ROMs series. While CM aims to optimize and tweak yet keep it as close to AOSP as possible, for the people who want to customize almost everything they see on the screen, there is AOKP. From the lockscreen to the status bar, AOKP offers a plethora of customization options while also maintaining great performance. The latest version of AOKP is AOKP JB mr1 based off the latest Android 4.2.2.

ParanoidAndroid : Another emerging and very popular custom ROMs series known for its unique customization options. PA lets you set custom status bar and navigation bar colors for individual apps while also allowing to change the size of every app installed. Feel the Note 2 is too huge to use it in phone UI? Switch to Phablet UI and make full use of the huge screen size. How about a blue status bar for facebook, while a green one for WhatsApp? PA lets you do that too. Though usually the performance is not affected, it does tend to slow down sometimes. The latest version of ParanoidAndroid is 3+ based off the latest Android 4.2.2.

P.A.C. : So you want CM, but love AOKP's customization options and PA's color splashing fun? Till recently, such a thing was only a dream. But then, PAC ROMs emerged. Combining the awesomeness of all 3 ROMs in 1 package, PAC could possibly be called the ultimate ROM. PAC satisfies all your customization needs in one single package, no need to switch between ROMs. The latest version is 20.1.0/21.0.0. based off CM10.1, AOKP JB mr1 and PA3+​

.