ZTE Radiant Developer Tools - CWM-UNBRICK-ROMS-KERNELS-KERNEL SOURCE- AND OTHER


Thread Status:
Not open for further replies.
  1. hroark13

    hroark13 Well-Known Member Developer

    ZTE Radiant (z740) Developer Tools

    Post 2 -
    ClockWorkMod Touch v6.0.4.7

    Post 3 -
    UN-BRICK GUIDE

    Post 4 -
    BASE DE-ODEXED STOCK ROM


    Post 5 - PURE STOCK ROM

    Post 6 - Kernel source code and Kernel Builder

    Post 7 -
    ZTE Radiant Kernel / Recovery Packer

    Post 8 - All ROMS and Kernels I Released FOR Z740

    I will use this thread as a repository for any developer tools I make or come across for the ZTE Radiant (z740)





    If I have helped you, and you like my work, please click on the Thanks Button and give my thread a rating by clicking on the stars above.

    If you would like to buy me a beer, you can click on the PayPal button

    [​IMG]




    .hK

    Advertisement
  2. hroark13

    hroark13 Well-Known Member Developer

    ClockWorkMod Touch v6.0.4.7 for ZTE Radiant (Z740)

    this may work on ZTE Sonata too, but I do not have one to test with

    GET PHONE READY

    Enable USB Debugging on the phone - (Menu Button - System Settings - Developer Otions)
    Turn Developer Options ON, scroll down and put a check in USB Debugging

    GET COMPUTER READY


    DOWNLOAD z740_cwm_tch.zip




    z740_cwm_tch.zip contains:

    USB Driver
    adb executable
    Clock Work Mod Touch image for ZTE Radiant (Z740)
    Clock Work Mod image for ZTE Radiant (Z740)
    Stock Recovery for Z740 (if you want to remove CWM)
    Readme file

    install scripts


    Unzip z740_cwm_tch.zip to your c: drive (c:\z740_cwm_tch.zip)


    Plug Phone into computer,

    Install ADB driver

    You will need to go into your device manager and look for ZTE HUSB DEVICE

    Double click it and click Update Driver

    Click Browse my computer for a driver software
    Click Let me pick from a list of device drivers on my computer
    Click Next
    Click have disk
    Click browse
    Browse to c:\z740_cwm_tch.zip\Drivers\64bit\WIN7 or c:\z740_cwm_tch.zip\Drivers\32bit\WIN7 if you have Windows 32 bit
    Click Open
    Click OK
    Click ZTE Composite ADB Interface
    Click Next
    Click Yes if you get a warning


    You should now have in the Device Manager ADB Interfaces \ ZTE Composite ADB Interface

    INSTALL CLOCK WORK MOD TOUCH ON YOUR Z740

    run the install_z740_cwm_tch.bat file and follow any on screen instructions
    (if you want older non touch CWM run install_z740_cwm.bat

    if the screen just says
    error: device not found
    < waiting for device >

    Go into your windows device manager and install the ZTE Composite ADB Interface driver for the device that says Android under Other Devices the same way you did the ZTE HUSB DEVICE above




    IF YOU WANT TO REMOVE CLOCK WORK MOD AND RESTORE THE STOCK RECOVERY FOR SOME REASON

    run install_z740_stock_recovery.bat and follow any on screen instructions


    VIDEO OF ME DOING THIS ON MY COMPUTER





    When You have ClockWorkMOD on this phone, you can boot into it from from a powered off state

    Hold Volume Up and Power button

    Notes:
    Mount USB Storage does not work at all in the non touch version, it works in the touch version

    We do have fastboot on this phone, and it works to load a recovery or kernel into ram
    and boot it

    adb reboot bootloader
    fastboot boot recovery.img

    but if you try to install a kernel ot recovery it does NOT WORK

    adb reboot bootloader
    fastboot flash recovery recovery.img



    thanks to CyanogenMod Team, Koush, Shabbypenguin, PlayfulGod





    source code / device tree
    https://github.com/hroark13/android_device_zte_metis

    touch version was built with Clock Work Mod builder
    http://builder.clockworkmod.com/



    hK.
    Nothing_5 likes this.
  3. hroark13

    hroark13 Well-Known Member Developer

    UN-BRICK GUIDE

    If you happen to brick your phone before you had to a chance to install CWM and make a backup, follow these instructions.

    Make sure you have the USB adb driver installed as instructed in the CWM post (post 2)

    Put Phone into FTM Mode by holding VOLUME DOWN and POWER

    The screen should say FTM

    Install ClockWork Mod as instructed in post 2

    Install the base de-odexed rom from post 4
    OR
    Pure Stock Rom from post 5[/spoiler]


    .hK
    Nothing_5 likes this.
  4. hroark13

    hroark13 Well-Known Member Developer

    BASE DE-ODEXED STOCK ROM

    I created a base de-odexed rom that can be installed with Clock Work Mod

    This rom can be used to un-brick, and for developers that would like to make custom themed or de-bloated roms

    If you use this ROM to create your own, I would like to see my name mentioned / credited in your thread, as long as you do that you have my permission to use this to make your own rom


    You need to have Clock Work Mod installed on the phone, see post 2 of this thread

    Download z740_base_rom.zip
    MD5 SUM - 998910e2d7664b2bdd3dceb2ff034046


    Copy z740_base_rom.zip to you sd card

    Boot into Clock Work Mod

    Use Vol up or Vol down to navigate, use Power button to select


    1. install zip
    2. choose zip from external_sd
    3. z740_base_rom.zip
    4. Yes - Install z740_base_rom.zip

    It will take a little while to install, when it is done it should say
    Rom Install Success
    Install from sdcard complete,


    5 .++++++++Go Back +++++++
    6. reboot system now

    Note:
    Since this is a de-odexed ROM it will take longer than normal to boot the first time or after you do a factory wipe, because the apk and jars need to extract, but it will boot quickly the next time phone is restarted

    ROM is rooted with busybox, de-odexed, and zip aligned


    .hK
    Xplex42 likes this.
  5. hroark13

    hroark13 Well-Known Member Developer

    PURE STOCK ROM

    I created a rom that is as close to factory stock as possible, it can be installed with Clock Work Mod

    This rom can be used to un-brick, and for developers that would like to make custom de-bloated roms
    I mainly created this ROM for those who may have to return their phone for some reason, if you are selling the phone or if ZTE pushes an update that does not work if you are rooted. etc. etc.


    If you use this ROM to create your own, I would like to see my name mentioned / credited in your thread, as long as you do that you have my permission to use this to make your own rom


    You need to have Clock Work Mod installed on the phone, see post 2 of this thread

    ONCE YOU INSTALL THIS YOU WILL NO LONGER HAVE CWM BECAUSE IT INSTALLS STOCK RECOVERY

    THIS ROM IS NOT ROOTED
    DOES NOT HAVE BUSY BOX
    IS ODEXED (HAS NOT BEEN DE-ODEXED)
    NOT ZIP ALIGNED
    AS CLOSE TO FACTORY THAT I COULD GET IT



    Download z740_pure_stock.zip
    MD5 SUM - a18e44fe5e3efa8bb324190b0e391212


    Copy z740_pure_stock.zip to you sd card

    Boot into Clock Work Mod

    Use Vol up or Vol down to navigate, use Power button to select


    1. install zip
    2. choose zip from external_sd
    3. z740_pure_stock.zip
    4. Yes - Install z740_pure_stock.zip

    It will take a little while to install, when it is done it should say
    Rom Install Success
    Install from sdcard complete,


    5 .++++++++Go Back +++++++
    6. reboot system now








    .hK
    Nothing_5 and capncurly like this.
  6. hroark13

    hroark13 Well-Known Member Developer

    Kernel source code and Kernel Builder

    ZTE Has not released source code for the Radiant so I decided to port the Kernel source for the ZTE N9511 to the Radiant Z740


    Kernel Source
    For those that are familiar with building kernels, here is a link to my github for the Radiant source, you have to use Branch 3.4.0. use the cm_metis_defconfig and the arm-eabi-4.4.3 toolchain that you will need to download, that is all you should need to know since you have experience

    https://github.com/hroark13/zte-kernel-metis



    Kernel Builder
    I made a more automated Kernel builder for those who are just learning about kernels, and those who like a little more automation, and I will provide some instructions on how to use it. It contains the needed toolchain and some scripts and such

    You must have a Linux computer, with git installed.

    To install git type this in your terminal window
    sudo apt-get install git-core

    Now we will download the git repository to you computer

    Type this in your terminal Window

    git clone https://github.com/hroark13/zte-kernel-metis.git -b builder z7kbuilder

    it will take a while to download since it is pretty big, when it is done type

    cd z7kbuilder

    Then type

    ./makez740krnl.pl

    it will now build a kernel zImage, pack that zImage with the stock ram disk into a boot.img, and create a cwm flashable zip file that contains the new boot.img, the built modules, and the wifi firmware, the zip file will be in the root of the
    z7kbuilder folder and should look something like this

    z740_krnl.zip



    .hK

  7. hroark13

    hroark13 Well-Known Member Developer

    ZTE Radiant Kernel / Recovery Packer


    I created some tools for repacking a zImage and ramdisk, so that people can release Kernels with custom ramdisk (custom boot logo, and such)

    My tool can create ClockWorkMod flash-able kernels and recoveries, this is for ZTE Radiant only

    You have to have Linux to use this, it may work with Cygwin, but I am not sure

    Download z7pack.tar.gz
    MD5 SUM - 9d08fa5dce06fbd6d56db91276d73c67

    and unzip the z7pack.tar.gz file to your /home/"user" folder

    Examples

    To Create a Kernel that you flash with dd
    Open terminal
    cd /home/"user"/z7pack
    ./boot.pl stock_boot

    you will now have a boot.img file in the z7pack folder that you could can flash with dd

    To Create a CWM flashabe Kernel zip file
    Open terminal
    cd /home/"user"/z7pack
    ./z7cwmkrnl stock_boot

    you will now have a z7cwmkrnl.zip file in the z7pack folder that you could copy to sdcard and flash with cwm

    To Create a Recovery that you flash with dd
    Open terminal
    cd /home/"user"/z7pack
    ./recovery.pl stock_recovery
    or
    ./recovery.pl cwm_hroark

    you will now have a recovery.img file in the z7pack folder that you could can flash with dd

    To Create a CWM flashabe Recovery zip file
    Open terminal
    cd /home/"user"/z7pack
    ./z7cwmrec.pl stock_recovery
    or
    ./z7cwmrec.pl cwm_hroark

    you will now have a z7cwmrec.zip file in the z7pack folder that you could copy to sdcard and flash with cwm









    .hK
    Nothing_5 likes this.
  8. hroark13

    hroark13 Well-Known Member Developer

    reserved 3
  9. hroark13

    hroark13 Well-Known Member Developer

    reserved 4
  10. hroark13

    hroark13 Well-Known Member Developer

  11. sharksfan7

    sharksfan7 Well-Known Member

    Thanks for this. I was able to get CWM installed and created a nandroid. But when i tried to find it on my sdcard I couldn't. I then found the backup on the internal storage under /storage/sdcard1. I went back into CWM and tried to mount /external_sd and kept getting "Error mounting /external_sd!"

    Any ideas as to why CWM can't mount the sdcard?
  12. hroark13

    hroark13 Well-Known Member Developer

    hi


    how big is your sd, and what file system is it formatted in

    do you have a nother sd card you can try ?
  13. sharksfan7

    sharksfan7 Well-Known Member

    Hi. The one that was in the phone when I installed CWM is 1GB. When I discovered the error, I tried with a 2GB card. Both are formatted FAT32. I reformatted both and tried mounting them again but still not luck.
  14. sharksfan7

    sharksfan7 Well-Known Member

    I did notice that the nandroid that I made was larger than 1GB so it wouldn't have fit on the card that was installed, so I'll definitely have to get a bigger card. But I don't think that would prevent it from mounting in CWM, right?
  15. hroark13

    hroark13 Well-Known Member Developer


    yeah cwm mod backs up system, data and cache, i want to see if if i can disable it from backing up cache some how


    I have been working on a test touch recovery, do you want to test it with the sd card stuff
    ?
  16. sharksfan7

    sharksfan7 Well-Known Member

    Sorry, I just got this phone and I'm setting it up to give to my dad. Just kinda playing around with it for a few days until I can give it to him. Once I do, I won't be able to do any more work with it.
  17. hroark13

    hroark13 Well-Known Member Developer


    no prob, i have uploaded the touch version and updated the the instructions, this is the version I am recommending everyone use
  18. sharksfan7

    sharksfan7 Well-Known Member

    I went ahead and installed the touch version and it now mounts & recognizes the sdcard. However it was a bit confusing at first with the labeling. When I first went to "Install .zip from /sdcard" I couldn't find the .zip I was looking for. Realized this was the internal storage. Was then looking for "/external_sd" as in the previous version and couldn't find that. Then saw the "/storage/sdcard1" and there it was.

    Then I ran a backup to "/storage/sdcard1" and it backed up to the external card fine. Didn't try to restore so, I'm hoping it's a good backup.

    I haven't used CWM in a few years so I'm not familiar with how it's set up. Is the labeling of "/sdcard" for the internal storage & "/storage/sdcard1" for external card standard? What makes it even more confusing is when I boot into the ROM and use ES File Explorer, and look at /storage there are two folders, "/storage/sdcard0" & "/storage/sdcard1". "/storage/sdcard0" takes me to the external card & "/storage/sdcard1" takes me to the internal storage, opposite of the labeling in CWM.

    Also I see the z740_cwm_tch.img in the internal storage. Does that need to remain there? Or can I delete it? If I can I want to delete that entire "/storage/sdcard1" (internal storage) directory.
  19. hroark13

    hroark13 Well-Known Member Developer


    Hi Thanks for the feedback

    I had to change it to /storage/sdcard1 to get USB Mass storage working, I am not sure if I can change that to /storage/sdcard0 or not, but I will give it a try.

    You can delete the z740_cwm_tch.img from the sd card, it is not needed

    on my next version I will try to get sdcard1 change to sdcard0

    and I will add a line in the script to delete the z740_cwm_tch.img

    What you will notice with this version is that USB mass storage works, but once you mount it nothing else can access the sd card, even if you unmount UMS, you have to reboot recovery to be able to access it again. I am not sure if I will be able to fix this issue
  20. sharksfan7

    sharksfan7 Well-Known Member

    I don't know anything about how these programs are written so forgive me if this is a stupid question. Is it possible to just change how the interface reads but leave what each button does? So instead of reading "Install .zip from /sdcard", it says "Install .zip from internal storage"? And change "/storage/sdcard1" to read "external storage"? Do that for all the different functions. That would at least remove the confusion that I had.
  21. hroark13

    hroark13 Well-Known Member Developer

    it is not really programed into the interface, what it does is read information from the /etc/recovery.fstab

    you can not change this file unless you unpack and repack the kernel

    it will not allow you to use friendly names

    oh and i have been testing UMS, and it seems to be working fine now, it was only giving me that issue when I had phone plugged into a Linux computer for some reason

    I will see If I can change that 1 to a 0 now
  22. hroark13

    hroark13 Well-Known Member Developer


    when i change it it kills functionality and you can not access the sdcard at all
  23. capncurly

    capncurly Member

    Thanks a lot man. Downloading stock zip right now but got cwm on and ready to go. again sorry about the delay but school is heavy. matter of fact im an aspiring computer scientist so the fact that you got all this put together is simply amazing. crossing fingers that once zip is on sd card, problem solved. thanks again




Thread Status:
Not open for further replies.

Share This Page