Mar 13, 2013

MXNEC M307 BUILD CUSTOM CWR or TWRP

ROOTING AND BACK UP MXNEC M307 MT6577, will Gain Perma ROOT. It mean after device rebooting, root will persist, user be able to install any app required root preville. However due to The Ramdisk in the stock kernel setting option ro.secure=1 (YES) the system partition is mounted READ ONLY, thus user CAN NOT push any file into /system partition via ADB. Thus turning ramdisk option into ro.secure=0 (NO) is required to gain real PERM ROOT with /system partition writable by user
Basically to change ramdisk option, need to unpack/split boot.img file, into kernel and ramdisk unpack ramdisk archive, modify the file and repack ramdisk then repack again the kernel and ramdisk into a boot.img (boot image) a flashable image into device. Many people doing this manually, but for some noob and not familiar with command line, MTKDroid Tools provide this feature

A. PATCHING STOCK BOOT IMAGE AND STOCK RECOVERY WITH MTK DROID TOOLS
  1. Get Preapred
    • Set Phone device by enabling USB Debugging on Development Option
    • Open MTK Droid Tools.exe and ensure to run as administrator for Win 7
    • Connect Phone to PC via USB


    • On MTK Droid Tools windows > Go to second Tab : root, recovery, backup
    • Ensure to click : To Choose boot.img file


  2. Hit Recovery and boot button above
    • A window will come up, requesting user to choose a boot.img file


    • Navigate into boot.img file you have. NOTE : You need to choose the boot.img in the folder where a back up file have been store from PROCEDURE : MXNEC M307 MT6577 ROOTING AND BACK UP


    • Click Open

    • Immediately a windows will come up to choose recovery.img file


    • Again Click Open
    • The Tools will Patching stock boot.img file to change option ro.secure=1 [TO] ro.secure=0 Then also Patching stock recovery.img to modify into custom Recovery : CWR v6.0.1.2 but we can not see this process (I also just guessing .... LOL)
    • A window will come up to offer Flashing PATCHED BOOT TO PHONE

    • SUGGESTED : TO CHOOSE NO
    • SURE You can Choose YES for your option ... It is will NOT harm the device
    • Similar suggested choice for offer Flashing PATCHED RECOVERY TO PHONE


  3. FINISHED A PROCESS TO PATCH STOCK BOOT IMAGE INTO UNSECURED CUSTOM BOOT IMAGE AND PATCHED STOCK RECOVERY IMAGE INTO CUSTOM CWR v6.0.1.2
  4. DISCUSSION
    • By accepting option (CHOOSE YES) to flash custom patched boot.img and to flash Custom Recovery.img (CWR v6.0.1.2) by MTK Droid Tools will NOT WORK
    • It is the reason this page Suggested to choose NO
    • Device MT6577 (in this case MXNEC M307) Need to turn into PRELOADER STATE To enable FLASHING AN IMAGE. so far only known to achieve PRELOADER STATE by Switching OFF, Pull Out Battery and Put Back battery into Battery Slot This need Help of Human ..... it was all of us as USER
    • I think NO SOFTWARE can substitute a step switched off, pull out battery and put back battery into battery slot
    • One day, probably if have been known, how to achieve PRELOADER STATE without Pull out and Put Back the Battery, a software can do something
  5. MTK Droid Tools I believed have been designed by the Developer to capable Flashing patched boot and recovery, but the device vendor give IMPOSSIBLE choice, due to the way to achieve PreLoader state is vague
B. BUILD A TWRP FOR MXNEC M307
  1. Use michfood-Port-TWRP-V2.4.2.0-Varun.Chitre15 : DOWNLOAD HERE
  2. This tools will PORT Stock Recovery for your Device into TWRP (a Touch Customs Android Recovery software) released by TEAM WIN
  3. Save downloaded michfood-Port-TWRP-V2.4.2.0 and Unpack
  4. BEFORE BUILDING ; info Need to be obtained
    • Type of Internal Flash Rom : MTD or EMMC, MXNEC M307 MT6577 having EMMC Flash Rom
    • Type of SoC : MXNEC M307 hardware is MT6577 SoC
    • Resolution Size : MXNEC M307 Resolution is 480 x 854 px
  5. Build process TWRP for MXNEC M307
    • Navigate to unpacked folder michfood-Port-TWRP-V2.4.2.0-Varun-Chitre15

    • Copy Scater file MT6577_Android_scatter_emmc.txt for MXNEC M307 have been made previously and Back Up of stock recovery.img for MXNEC M307
    • Paste both file into Folder : michfood-Port-TWRP-V2.4.2.0-Varun-Chitre15

    • Drag > file recovery.img and Drop into TWRP_V2.4.2.0.bat
    • A windows of process to build TWRP will come up. it is quiet easy and self explanatory

  6. FINISH
  7. recovery.img in michfood-xx folder is now TWRP V2.4.2.0 For MXNEC M307

Flashing boot.img, CWR, TWRP into device with SP FLASH TOOLS

could not execute command 'lessc' odoo 9.0

Well ... odoo installed properly and running well on local server. However after creating a data base and successfully logging in, the od...