[Asus Padfone X and S] Sirius-3R:
TUTORIAL How to extract firmware from stock rom

Prerequisites:

7-Zip

Text Editor

Read this tutorial completely bevor you begin

Content:

1. Download your rom

2. Make a copy

3. Modifiy its content

4. Repack your rom

5. Profit

1. Download your Rom

Download your Stock Rom from Vendor, for example mine is

UL-ASUS_T00N-WW-12.2.2.37-user.zip​

2. Make a copy

Make a copy of your downloaded rom, if something goes wrong and you have to start over again

3. Modifiy its content

OPEN with 7-zip (DO NOT UNZIP it)

UL-ASUS_T00N-WW-12.2.2.37-user.zip​

DELETE

system.transfer.list

system.new.dat

system.patch.dat​

DOUBLE CLICK on folder

META-INF

com

google

android​

and UNZIP the file

updater-script​

or drag and drop the file on your desktop

OPEN

updater-script​

with a Text Editor, it's content will look like this

getprop("ro.product.device") == "ASUS_T00N" || abort("This package is for \"ASUS_T00N\" devices; this is a \"" + getprop("ro.product.device") + "\".");
show_progress(0.750000, 0);
block_image_update("/dev/block/platform/msm_sdcc.1/by-name/system", package_extract_file("system.transfer.list"), "system.new.dat", "system.patch.dat");
show_progress(0.050000, 5);
package_extract_file("boot.img", "/dev/block/platform/msm_sdcc.1/by-name/boot");
show_progress(0.200000, 10);

# ---- radio update tasks ----

ui_print("Patching firmware images...");
ifelse(msm.boot_update("main"), (
ui_print("installing rpm");
package_extract_s_file("firmware-update/rpm.mbn", "/dev/block/platform/msm_sdcc.1/by-name/rpm");
ui_print("installing sbl1");
package_extract_s_file("firmware-update/sbl1.mbn", "/dev/block/platform/msm_sdcc.1/by-name/sbl1");
ui_print("installing aboot");
package_extract_s_file("firmware-update/emmc_appsboot.mbn", "/dev/block/platform/msm_sdcc.1/by-name/aboot");
ui_print("installing tz");
package_extract_s_file("firmware-update/tz.mbn", "/dev/block/platform/msm_sdcc.1/by-name/tz");
), "");
ifelse(msm.boot_update("backup"), (
ui_print("installing rpmbak");
package_extract_s_file("firmware-update/rpm.mbn", "/dev/block/platform/msm_sdcc.1/by-name/rpmbak");
ui_print("installing sbl1bak");
package_extract_s_file("firmware-update/sbl1.mbn", "/dev/block/platform/msm_sdcc.1/by-name/sbl1bak");
ui_print("installing abootbak");
package_extract_s_file("firmware-update/emmc_appsboot.mbn", "/dev/block/platform/msm_sdcc.1/by-name/abootbak");
ui_print("installing tzbak");
package_extract_s_file("firmware-update/tz.mbn", "/dev/block/platform/msm_sdcc.1/by-name/tzbak");
),"no backup partition");
msm.boot_update("finalize");
ui_print("installing DDR");
package_extract_file("firmware-update/DDR.img", "/dev/block/platform/msm_sdcc.1/by-name/DDR");
ui_print("installing modem");
package_extract_file("firmware-update/NON-HLOS.bin", "/dev/block/platform/msm_sdcc.1/by-name/modem");
ui_print("installing asusfw");
package_extract_file("firmware-update/asusfw.img", "/dev/block/platform/msm_sdcc.1/by-name/asusfw");

REMOVE the two lines

getprop("ro.product.device") == "ASUS_T00N" || abort("This package is for \"ASUS_T00N\" devices; this is a \"" + getprop("ro.product.device") + "\".");

block_image_update("/dev/block/platform/msm_sdcc.1/by-name/system", package_extract_file("system.transfer.list"), "system.new.dat", "system.patch.dat");

and save your file

4. Repack your rom

Drag and drop your modified

updater-script​

in your already opened 7-zip rom archive and overwrite the included one with your version

5. Profit

Close 7-zip and copy your firmware only rom to your Android device.

Use CWM or TWRP to make a backup of your boot partition (Kernel)

Now install your zip and reboot your phone