[TOOL] Kamome tool for Windows - deodex tool for 4.4 KitKat

Search This thread

AndroPlus

Senior Member
  • Mar 13, 2013
    1,731
    3,996
    Kyoto
    androplus.org
    I created deodex tool based on kamome tool for Xperia 4.4.
    This tool supports all Xperia 4.4.

    Note: Z2 has "com.android.nfc_extras.odex", but there is no "com.android.nfc_extras.jar".
    Maybe it's OK to leave "com.android.nfc_extras.odex".

    This tool renames three files before deodexing (if they exists)
    playstationcertified.odex => com.playstation.playstationcertified.odex
    cneapiclient_release.odex => cneapiclient.odex
    com.quicinc.cne_release.odex => com.quicinc.cne.odex

    Download
    Note: v7 causes creating zip problem in some environment.
    Please use v6a if you have problem.
    * For KK 4.4 *
    Kamome tool v7 (mirror)
    kamome tool v6a (mirror)


    * For JB 4.3, 4.2 and 4.1*
    Kamome tool v7 (mirror)
    kamome tool v6a (mirror)


    Changelog
    v7
    - Automatically copy zip with timestamps when adding apk to zip
    - Clear messages after adding apk to zip -> go to menu
    - Display Java path on the top of the menu
    If you didn't install Java correctly, it will tell you "Java version not found,please install Java Runtime Environment!!"
    v6a
    - Changed script to delete whole /system/app, framework, priv-app instead of deleting only odex
    !! You have to install SuperSU zip after installing deodex zip !!
    Since deodex zip deletes superuser.apk, you will lost root if you doesn't install SuperSU zip.
    v6
    - Added "Exit 0" in del_odex.sh (thanks funky0308)
    - Added Exit menu (thanks Henry2o1o)
    v5
    - Added logging for 4.4 version to investigate what causes error while deodexing
    - Updated smali.jar and baksmali.jar (v2.0.3)
    v4
    - Removed zipalign menu

    v3
    - Fixed zipalign menu
    v2
    - Added zipalign option
    - Changed adb command (thanks to WafiAzmiHartono)

    Requirements
    Java runtime
    Enable USB debugging on your device (needed if you want to pull files)

    Guide
    1. Extract zip

    2. Run deodex_bat.bat

    3. Type 1 to create working directory

    4. Type 2 to pull files from your connected device
    This step can be skipped if you manually copy /system/app, /system/priv-app, /system/framework folder to /deodex_install_kitkat/system

    5. Type 3 to start deodexing

    6. Type 4 to create flashable zip

    7. Done!

    You can now copy deodex_install.zip to your device and flash it with recovery.
    NOTE: check the zip and see if there are META-INF folder and del_odex.sh.
    If there is only system folder, please download v6a and re-deodex with it.


    !! You have to install SuperSU zip after installing deodex zip !!
    Since deodex zip deletes folder which includes superuser.apk, you will lost root if you doesn't install SuperSU zip.

    Experimental option - Type 5 to zipalign apks (before "6. Type 4 to create flashable zip")
    **NOTE**
    If you have problem (error or bootloop) with zipalign, retry from 2. and DO NOT run 5. zipalign.
    ************


    Thanks @hagurekamome !
     
    Last edited:
    W

    WafiAzmiHartono

    Guest
    It's not working on Xperia M.
    But after replacing this code on deodex_bat.bat

    Code:
    :pfile
    cls
    cmd\adb wait-for-device
    @echo Pulling files from your device...
    cmd\adb pull /system/app system\app
    cmd\adb pull /system/framework system\framework
    pause
    cls
    goto menu

    With this code

    Code:
    :pfile
    cls
    cmd\adb kill-server
    cmd\adb start-server
    @echo Pulling files from your device...
    cmd\adb pull /system/app system\app
    cmd\adb pull /system/framework system\framework
    pause
    cls
    goto menu

    It's working perfect, awesome, thanks for the tool :)
    Sorry for my bad english.
     

    AndikaTedja

    Senior Member
    Feb 24, 2013
    162
    205
    Denpasar, Bali
    Also working on SGS 4 stock kitkat

    Finally i found the way to deodex my stock GS 4 rom, THANKS!!! :good:
    May i post di tool to GS 4 android development? for other members that dont know how to deodex?
     

    Top Liked Posts

    • There are no posts matching your filters.
    • 188
      I created deodex tool based on kamome tool for Xperia 4.4.
      This tool supports all Xperia 4.4.

      Note: Z2 has "com.android.nfc_extras.odex", but there is no "com.android.nfc_extras.jar".
      Maybe it's OK to leave "com.android.nfc_extras.odex".

      This tool renames three files before deodexing (if they exists)
      playstationcertified.odex => com.playstation.playstationcertified.odex
      cneapiclient_release.odex => cneapiclient.odex
      com.quicinc.cne_release.odex => com.quicinc.cne.odex

      Download
      Note: v7 causes creating zip problem in some environment.
      Please use v6a if you have problem.
      * For KK 4.4 *
      Kamome tool v7 (mirror)
      kamome tool v6a (mirror)


      * For JB 4.3, 4.2 and 4.1*
      Kamome tool v7 (mirror)
      kamome tool v6a (mirror)


      Changelog
      v7
      - Automatically copy zip with timestamps when adding apk to zip
      - Clear messages after adding apk to zip -> go to menu
      - Display Java path on the top of the menu
      If you didn't install Java correctly, it will tell you "Java version not found,please install Java Runtime Environment!!"
      v6a
      - Changed script to delete whole /system/app, framework, priv-app instead of deleting only odex
      !! You have to install SuperSU zip after installing deodex zip !!
      Since deodex zip deletes superuser.apk, you will lost root if you doesn't install SuperSU zip.
      v6
      - Added "Exit 0" in del_odex.sh (thanks funky0308)
      - Added Exit menu (thanks Henry2o1o)
      v5
      - Added logging for 4.4 version to investigate what causes error while deodexing
      - Updated smali.jar and baksmali.jar (v2.0.3)
      v4
      - Removed zipalign menu

      v3
      - Fixed zipalign menu
      v2
      - Added zipalign option
      - Changed adb command (thanks to WafiAzmiHartono)

      Requirements
      Java runtime
      Enable USB debugging on your device (needed if you want to pull files)

      Guide
      1. Extract zip

      2. Run deodex_bat.bat

      3. Type 1 to create working directory

      4. Type 2 to pull files from your connected device
      This step can be skipped if you manually copy /system/app, /system/priv-app, /system/framework folder to /deodex_install_kitkat/system

      5. Type 3 to start deodexing

      6. Type 4 to create flashable zip

      7. Done!

      You can now copy deodex_install.zip to your device and flash it with recovery.
      NOTE: check the zip and see if there are META-INF folder and del_odex.sh.
      If there is only system folder, please download v6a and re-deodex with it.


      !! You have to install SuperSU zip after installing deodex zip !!
      Since deodex zip deletes folder which includes superuser.apk, you will lost root if you doesn't install SuperSU zip.

      Experimental option - Type 5 to zipalign apks (before "6. Type 4 to create flashable zip")
      **NOTE**
      If you have problem (error or bootloop) with zipalign, retry from 2. and DO NOT run 5. zipalign.
      ************


      Thanks @hagurekamome !
      9
      I'm trying to update Kamome tool to support Lollipop, but there's some error while deodexing Google apps...
      If someone know how to fix them, please let me know.
      http://x.androplus.org/1H3cuNg
      8
      will it work on 4.3 ?

      It won't work because 4.4 version has "priv-app".
      I deleted "priv-app" related command, so this version will work for 4.3.
      https://mega.co.nz/#!30Q02QaQ!MM-PLgYRCpvPUUvasV6MTh76t_4mDrmUwQ1xc86KWcM
      5
      I updated kamome tool to v2:
      - Added zipalign option (not tested on my device...)
      - Changed adb command (thanks to WafiAzmiHartono)
      4
      Please don't use lollipop test version for your daily driver phone!
      As I said previous post, it's not completed and will cause bootloop.

      I'll release with temporary solution (ignore deodexing of some Google apps)