Search This Blog

Sunday, September 9, 2012

[Tutorial ] How to create a [CWM] flashable.zip Samsung Galaxy Y And Other Android Device [Phone][ Tablet]


=======================================================================
Setelah mempelajari Tutorial dari om ibnu...nih ada sedikit tutor jg buat flash .apk yg udh nt-nt mod td berikut cuplikannya.... :P
=======================================================================
[Tutorial ] How to create a [CWM] flashable.zip Samsung Galaxy Y And Other Android Device [Phone][ Tablet]



There are several ways to install / Flashing / Push files that will be installed into the device we are either using ADB, Or manually using Rootex though all of it is legitimate as long as it does not happen desirable things such as cramps and others (bootlop) :)
One way that is safe and efficient to install a file that will be installed is to create "Flashable.zip" in this case serves as a Package Installer He can in Install Using the Clock Work Mode (CWM). why I say efficient ... because we can use them anytime flashable.zip if necessary, and also we can share flashable.zip we make to friends in need :)



For those who need CWM Samsung Galaxy Y was here

To create a flashable.zip, there are few tools that we need are:
- 7.zip / Winrar
- Notepad + +
- Logic you :)

Immediately,,
First of all, I've got a template flashable.zip here
extract. using 7.zip/Winrar zip, and then locate the folder META-INF \ com \ google \ android (In it there is a file "updater-script" file is exactly what we will edit :)






The following functions and commands in the updater-script:

1. ui_print ("");
Function: Displays text when flashing in CWM ex: ui_print ("Installation Success ..");

2. show_progress (0, 0);
Function: Displays installation progress. mempilkan to 50% of installation progress can be made as ex: show_progress (0, 50);

3. package_extract_dir ("system", "/ system");
Function: extract the files in the folder / system in package.zip the system folder on your device

4. package_extract_dir ("data", "/ data");
Function: extract the files in the folder / data package.zip folder / data on your device

5. mount ("yaffs2", "MTD", "system", "/ system");
Function: mount system without mounting none of the files copied to the system (it will not run on the file system RFS)

6. run_program ("/ sbin / busybox", "mount", "/ dev/block/mmcblk0p2", "/ data");
Function: mount system without mounting none of the files copied to the directory / data on device

7. package_extract_file ("backuptool.sh", "/ tmp / backuptool.sh");
Function: extract scripts or other files to the temp folder.

8. delete_recursive ("folder name");
Function: delete all folders on the device. ex: delete_recursive ("/ system / media"), will remove the media folder in / system

9. delete ('files with complete patch ");
Function: delete the file. ex: delete ("/ system / app / app.apk"); apk that exist within the system / app will be deleted

10. set_perm (0, 0, 06755, "/ system / xbin / su");
Function: Setting Permission to SU so that files can work well

11. set_perm_recursive (1000, 1000, 0771, 0644, "data / app");
Function: Set Folder Permission to SU in order to work properly

ENJOYYYY :)




====================================
INA VER.


[Tutorial ] Cara Membuat [CWM] flashable.zip Samsung Galaxy Y And Other Android Device [Phone][ Tablet]



Ada beberapa cara untuk menginstall/Flashing/Push file-file yg akan kita install ke dalam device kita entah itu dengan menggunakan ADB, Ataupun manual menggunakan Rootex sekalipun semua itu Sah-sah saja asalkan tidak terjadi hal-hal yang diinginkan seperti Kejang-kejang dan lain-lain (bootlop) :)
Salah satu cara yang aman dan efisien untuk menginstal file yang akan kita install adalah dengan membuat "Flashable.zip" dalam hal ini Dia berfungsi sebagai Package Installer yang dapat di Instal Menggunakan Clock Work Mode (CWM). mengapa saya katakan efisien... karena kita dapat menggunakan flashable.zip tersebut sewaktu-waktu apabila perlu, dan juga kita dapat men-share flashable.zip yang kita buat pada teman-teman yang membutuhkan :)


Bagi yang memerlukan CWM Samsung Galaxy Y ada Disini

Untuk membuat sebuah flashable.zip, ada beberapa tools yang kita perlukan diantaranya :
- 7.zip /Winrar 

- Notepad ++
- Logika anda :)

Langsung saja,,
pertama-tama, saya sudah siapkan sebuah template flashable.zip disini

extract .zip tersebut menggunakan 7.zip/Winrar, kemudian cari folder META-INF\com\google\android ( Didalamnya terdapat file "updater-script" File tersebutlah yang akan kita edit :)



Berikut fungsi dan perintah dalam updater-script : 

1. ui_print(""); 
Fungsi : Menampilkan text ketika flashing di CWM ex : ui_print("Installation Success.."); 

2. show_progress(0, 0);
Fungsi : Menampilkan progress instalasi. untuk mempilkan 50% dari progress instalasi dapat dibuat seperti ex : show_progress(0, 50);

3. package_extract_dir("system", "/system");
Fungsi : mengekstrak file yang ada dalam folder /system dalam package.zip ke folder system di device anda

4. package_extract_dir("data", "/data");

Fungsi : mengekstrak file yang ada dalam folder /data dalam package.zip ke folder /data di device anda


5. mount("yaffs2", "MTD", "system", "/system");
Fungsi : mount sistem tanpa mounting tidak satupun file yang disalin ke sistem (tidak akan berjalan pada sistem file RFS) 

6. run_program("/sbin/busybox", "mount", "/dev/block/mmcblk0p2", "/data");
Fungsi : mount sistem tanpa mounting tidak satupun file yang disalin ke directory /data pada device

7. package_extract_file("backuptool.sh", "/tmp/backuptool.sh");
Fungsi : mengekstrak script atau file lainnya ke folder temp.

8. delete_recursive("folder name");
Fungsi : menghapus semua folder pada device. ex : delete_recursive("/system/media"); akan menghapus folder media dalam /system

9. delete("file with complete patch");
Fungsi : menghapus satu file . ex : delete("/system/app/app.apk"); apk yang ada didalam system/app akan terhapus 

10. set_perm(0, 0, 06755, "/system/xbin/su");
Fungsi : Mengeset Permission ke SU agar file dapat bekerja dengan baik 

11. set_perm_recursive (1000, 1000, 0771, 0644, "data/app");
Fungsi :  Mengeset Permission ke SU agar Folder dapat bekerja dengan baik


ENJOYYYY








2 comments: