Saturday, December 25, 2021

Create XML Script for SP Flash Tool

Bismillahirrohmaanirrahiim

This is sample script of manual-format-address for SP-Flash-Tool. I attend this based on SP Flash Tool v5.1920 Help



This script is used for sp_flash_tool_cli_mode (flashtool -i file.xml)

AlhamdulillahirabbilAalamiin
See You on the next Article, and
May it be usefull and attend benefits and good :-)

Friday, December 24, 2021

ASUS X00ID ZC554KL FASTBOOT BATCH SCIPT

Bismillahirrahmaanirrahiim

::
:: file create by liunianliang for windows fastboot flash image
::
:: 20170315
::
@echo off
@echo ------------------------
@echo Begin fastboot flashall
@echo ------------------------

@setlocal enabledelayedexpansion

:: get platform
@set platform=8937
@set buildtype=eng
@set input=%1%
@set deviceId=%2%
@set flashtype=%3%

if !input! == 0 (
    @echo Earse Data: No
) else (
    @echo Earse Data: Yes
)

if "!deviceId!" == "" (
    @echo Support All device !
) else (
    @echo Support one device: !deviceId!
)

if "!deviceId!" == "" (
@fastboot getvar platform 2>&1 | findstr platform > %~dp0\platform.txt
@fastboot getvar build-type 2>&1 | findstr build-type > %~dp0\build-type.txt
@fastboot getvar secret-key-opt 2>&1 | findstr secret-key-opt > %~dp0\secret-key-opt.txt
) else (
@fastboot -s !deviceId! getvar platform 2>&1 | findstr platform > %~dp0\platform.txt
@fastboot -s !deviceId! getvar build-type 2>&1 | findstr build-type > %~dp0\build-type.txt
@fastboot -s !deviceId! getvar secret-key-opt 2>&1 | findstr secret-key-opt > %~dp0\secret-key-opt.txt
)

@for /f "tokens=2 delims=: " %%i in (%~dp0\platform.txt) do @(
    set "platform=%%i"
    @echo platform is !platform!

    @for /f "tokens=2 delims=: " %%a in (%~dp0\build-type.txt) do (
        set "buildtype=%%a"
    )

    @for /f "tokens=2 delims=: " %%k in (%~dp0\secret-key-opt.txt) do (
        set "secret_key=%%k"
        set /p =!secret_key! %~dp0\default_key.bin
    )
    @echo buildtype is !buildtype!
    if !buildtype! == user (
        if "!deviceId!" == "" (
            fastboot flash frp-unlock %~dp0\default_key.bin
            fastboot flashing unlock
            fastboot flashing unlock_critical
        ) else (
            fastboot -s !deviceId! flash frp-unlock %~dp0\default_key.bin
            fastboot -s !deviceId! flashing unlock
            fastboot -s !deviceId! flashing unlock_critical
        )
    )

    :: partition and file name
    call:flash_one_image modem  NON-HLOS.bin !platform!
    call:flash_one_image cmnlib cmnlib.mbn !platform!
    call:flash_one_image cmnlibbak cmnlib.mbn !platform!
    call:flash_one_image cmnlib64 cmnlib64.mbn !platform!
    call:flash_one_image cmnlib64bak cmnlib64.mbn !platform!
    call:flash_one_image keymaster keymaster.mbn !platform!
    call:flash_one_image keymasterbak keymaster.mbn !platform!
    call:flash_one_image aboot emmc_appsboot.mbn !platform!
    call:flash_one_image abootbak emmc_appsboot.mbn !platform!
    call:flash_one_image boot boot.img !platform!
    call:flash_one_image sec sec.dat !platform!
    call:flash_one_image sbl1 sbl1.mbn !platform!
    call:flash_one_image sbl1bak sbl1.mbn !platform!
    call:flash_one_image rpm rpm.mbn !platform!
    call:flash_one_image rpmbak rpm.mbn !platform!
    call:flash_one_image tz tz.mbn !platform!
    call:flash_one_image tzbak tz.mbn !platform!
    call:flash_one_image devcfg devcfg.mbn !platform!
    call:flash_one_image devcfgbak devcfg.mbn !platform!
    call:flash_one_image dsp adspso.bin !platform!
    call:flash_one_image cache cache.img !platform!
    call:flash_one_image mdtp mdtp.img !platform!
    call:flash_one_image APD APD.img !platform!
    call:flash_one_image ADF ADF.img !platform!
    call:flash_one_image splash splash.img !platform!
    if !input! == 0 (
        @echo not earse data partition...
    ) else (
        call:flash_one_image userdata userdata.img !platform!
    )
    call:flash_one_image system system.img !platform!

    if "!deviceId!" == "" (
        fastboot erase boot
        fastboot reboot bootloader
        ping 127.0.0.1 -n 5 > nul
        fastboot flash frp-unlock %~dp0\secret_key.bin
        fastboot flashing unlock
        fastboot flashing unlock_critical
    ) else (
        fastboot -s !deviceId! erase boot
        fastboot -s !deviceId! reboot bootloader
        ping 127.0.0.1 -n 5 > nul
        fastboot -s !deviceId! flash frp-unlock %~dp0\secret_key.bin
        fastboot -s !deviceId! flashing unlock
        fastboot -s !deviceId! flashing unlock_critical
    )
    call:flash_one_image boot boot.img !platform!

    if !buildtype! == user (
        if "!deviceId!" == "" (
            fastboot flashing lock
            fastboot flashing lock_critical
            if !flashtype! == tool (
                fastboot flash frp-unlock %~dp0\secret_key.bin
            )
        ) else (
            fastboot -s !deviceId! flashing lock
            fastboot -s !deviceId! flashing lock_critical
            if !flashtype! == tool (
                fastboot -s !deviceId! flash frp-unlock %~dp0\secret_key.bin
            )
        )
    )

    if "!deviceId!" == "" (
        if !input! == 0 (
            @echo not do factory reset...
        ) else (
            fastboot oem recovery_and_reboot
        )
    ) else (
        if !input! == 0 (
            @echo not do factory reset...
        ) else (
            fastboot -s !deviceId! oem recovery_and_reboot
        )
    )
)

@echo All is download
goto:eof

:: function for download
:flash_one_image
@echo --------------------------------
@echo begin to flash partition %1
@if exist %~dp0%3_%2 (
    if "!deviceId!" == "" (
        fastboot erase %1
        fastboot flash %1 %~dp0%3_%2
    ) else (
        fastboot -s !deviceId! erase %1
        fastboot -s !deviceId! flash %1 %~dp0%3_%2
    )
) else (
    if exist %~dp0%2 (
        if "!deviceId!" == "" (
            fastboot erase %1
            fastboot flash %1 %~dp0%2
        ) else (
            fastboot -s !deviceId! erase %1
            fastboot -s !deviceId! flash %1 %~dp0%2
        )
    ) else (
        @echo can't flash partion %1
    )
)
@echo done!
@echo --------------------------------



Alhamdulillaahirabbil 'Aalamiin
May it be userfull and attend power to be good ... :-)

Monday, December 20, 2021

REDMI 9 [ LANCELOT ] THE SYSTEM HAS BEEN DESTROYED

BISMILLAAHIRRAHMAANIRRAHIIM

Redmi 9 Full Specs, Please visit links below:

  • Lancelot on gsmarena
  • Redmi 9 on mifirm
  • This phone has Mediatek MT6769V/CU Helio G80 (12 nm)
  • MT6768 platform
  • eMMC 5.1

  • BEFORE SOLVING
    ------------------------------------------------
    - SYSTEM HAS BEEN DESTROYED (BOOTLOOP)
    - MIUI Version: V12.5.1.0.RJCIDXM
    - Device Type: lancelot_id_global
    - Official fastboot and recovery >> Good
    - Volup+Voldown + Power >> Factory Mode
    
    
    WORKAROUND
    ------------------------------------------------
    1. Identify via preloader or brom mode
    2. Write partitions below from the official firmware file with same version:
        - RECOVERY
        - VBMETA_SYSTEM
        - VBMETA_VENDOR
        - LOGO
        - BOOT
    3. Restart, Insya Allah the Problem will be Solved
    



    ALHAMDULILLAAHIRRAHMAANIRRACHIIM
    May it be usefull and good :-)

    Membuat Profile Dial-up Modem GSM via CMD di Windows 7



    MEMBUAT PROFILE DIAL-UP MODEM GSM
    MELALUI/VIA COMMAND PROMPT (CMD)
    DI WINDOWS 7

    1.       Buka CMD.,
    Tidak bisa cara membuka CMD? Silikan klik disini.

    2.       Ketik Perintah “RASPHONE” (tanpa tanda petik), Lalu tekan tombol ENTER.
    Maka akan tampil/popup gambar seperti di bawah ini:

    Perintah “RASPHONE” akan tampil/popup seperti gambar  di samping, jika belum ada profile dial-up di komputer.


    3.       Klik OK.
    Maka akan muncul tampilan seperti gambar berikut:

    4.       Arahkan mouse ke “Dial-up” dan klik.
    Maka akan tampil seperti gambar di bawah:
    5.       Isikan/input  *99# pada kotak “telephone number”.
    *99# adalah nomor telepon modem gsm yang akan kita hubungi pada saat dial-up modem. Atau dengan lain kata, menghubungi *99# saat menghubungkan (connect) modem gsm.
    Destination name” boleh dibiarkan apa adanya seperti gambar di atas (Dial-up Connection), atau diisi nama sesuai dengan keinginan. Misalnya kita isikan “Modem”.
    Tombol “Next” akan aktif setelah kotak “Telephone number”  diisi. kalau belum, maka tombolnya akan non-aktif seperti yang ditampilkan gambar diatas.

    6.       Klik Next, maka tampilannya seperti gambar di bawah:
     

    -          “User Name” dan “Password” diisi sesuai dengan user name dan password operator kartu GSM masing-masing. Biasanya diabaikan dan tidak mempengaruhi koneksi ke operator kartu GSM.
    -          “Show characters” adalah pilihan untuk menampilkan dan tidak menampilkan password di kotak password.
    -          “Remember this password” berfungsi saat kita mengkoneksikan modem ke operator kartu.  Jika  opsi “Remember this password” dipilih/ceck/dicentang sesudah mengisi user name dan password, maka  tidak akan diminta mengisi password kembali setiap kali menghubungkan modem.

    7.       Klik “Create”,
    Ini merupakan langkah terakhir dalam membuat Profile Dial-up Modem GSM.
    Setelah kita Klik Create tampilan yang muncul selanjutnya seperti gambar berikut:


    8.       Sekarang pembuktian apakah sudah ada Profile dial-up yang baru saja dibuat di komputer?

    Buka Control Panel  > Network and Internet  > Network and Sharing Center  >  Change Adapter Settings, akan tampil seperti gambar di bawah.,

    Disini adalah Lokasi informasi adapter jaringan yang ada di komputer yang ber-OS Windows 7.

    Contoh:
    Nama Profile Dial-up modemnya adalah “Modem”, seperti yang ditampilkan gambar diatas.



                                      **************** S A M P A I     J U M P A ****************