CARA DECOMPILE RECOMPILE LENGKAP Di HH Menggunakan APKTOOL
Pernak Pernik Teknologi - Yang lagi mencari APKTOOL sekaligus tutorial cara menggunakannya, saya akan coba share buat sobat...
Persiapan APKTOOL : download disini
Terima kasih :
Persiapan APKTOOL : download disini
- Download apktool di atas
- Extract Apktool....zip
- Masuk ke dalam hasil extract tsb
- Pindahkan folder apktool ke sdcard (/ sdcard/disini)
- Buat satu folder di sdcard internal* dengannama terserah sebagai folder khusus operasi >>contoh -editan ku
- Buka apktool
- Masuk folder /sdcard/...
- tap dan tahan folder apktool
- Pilih "set as apktool data folder" *sdcard internal memiliki kecepatan read & write lebih cepat daripada sdcard external sehingga tiap proses yang dilakukan akan lebih cepat 2.
PROSES INSTALASI FRAMEWORK :
- Buka apktool
- Masuk folder /system/framework
- Tap framework-res.apk
- Pilih import as framework
- Lakukan hal yang sama (jika ada) pada mediatek-res.apk
PROSES DECOMPILE :
(Contoh SystemUI.apk)
(Contoh SystemUI.apk)
- Masukan SystemUI.apk ke dalam folder
- Editan ku(sesuai contoh folder project diatas)
- Buka Apktool - Masuk ke folder
- -editan ku- Tap SystemUI. apk
- pilih decompile all
- Tunggu proses selesai
- Hasil proses Decompile akan muncul folder baru SytemUI_src
- Perhatikan di dalam folder tsb jika terdapat file apktool.yml berarti proses Decompile Berhasil!!
Silahkan lakukan proses editing yang dikehendaki. :
- Jika tidak ada file tersebut (apktool.yml)berarti proses Decompile Gagal!!! Harap di ulang proses Decompilenya
- Jika muncul output/log error dan warning dari apktool pilih copy to clipboard lalu paste di comment bawah kita diskusikan bersama screenshoot
PROSES RECOMPILE :
Setelah melewati proses Decompile lalu melakukan editing/oprek langkah selanjutkan adalah proses Recompile:
Setelah melewati proses Decompile lalu melakukan editing/oprek langkah selanjutkan adalah proses Recompile:
- Pastikan telah melakukan editing dengan benar serta men
- Save file-file yang di edit - Buka apktool
- Tap folder SystemUI_src
- Pilih recompile
- Tunggu hingga proses selesai
- Perhatikan pada output/log jika akhirannya terdapat tulisan building apk file APAPUN warning diatasnya disertai muncul file baru SystemUI_src.apk maka proses Recompile Berhasil!
- Jika pada output/log apktool di akhirannyatidak terdapat tulisan building apk file dan tidak muncul file baru SystemUI_src.apk maka proses Recompile tsb Gagal!
PROSES SIGN :
- Buka Rootex
- Extract SystemUI.apk
- Extract SystemUI_src.apk
- copy META~INF da AndroidManifest.xml dari hasil extract SystemUI
- paste ke dalam folder hasil extract SystemUI_src
- tap dan tahan folder SystemUI_src lalu pilih zip this folder
- go to zip
- rename SystemUI_src.zip menjadi SystemUI.apk
- Lalu push ke system/app/.... ( sebelum dipindah permissionya di rubah dulu jadi r-w-r-r )
- Bukhori HardBrick ( atas tutornya )
- Tomy Bkn Tomy ( atas ScreenShotnya )
Jangan Lupa, Instal CUSTOM ROM XPERIA Z4 XTREME
Salam Oprekers...
ini knp om.?
BalasHapussh: /data/data/per.pqy.apktool/mydata/apktool.sh: No such file or directory
tidak ada datanya gan kaykanya
HapusI: Smaling...
BalasHapusI: Building resources...
invalid resource directory name: /sdcard/apktool/Contacts_src/res/drawable-ldrtl-hdpi
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [/data/data/per.pqy.apktool/lix/aapt, p, --min-sdk-version, 3, --target-sdk-version, 17, -F, /data/data/per.pqy.apktool/APKTOOL1043016552263151279.tmp, -0, arsc, -I, ?/apktool/framework/1.apk, -S, /sdcard/apktool/Contacts_src/res, -M, /sdcard/apktool/Contacts_src/AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [/data/data/per.pqy.apktool/lix/aapt, p, --min-sdk-version, 3, --target-sdk-version, 17, -F, /data/data/per.pqy.apktool/APKTOOL1043016552263151279.tmp, -0, arsc, -I, ?/apktool/framework/1.apk, -S, /sdcard/apktool/Contacts_src/res, -M, /sdcard/apktool/Contacts_src/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [/data/data/per.pqy.apktool/lix/aapt, p, --min-sdk-version, 3, --target-sdk-version, 17, -F, /data/data/per.pqy.apktool/APKTOOL1043016552263151279.tmp, -0, arsc, -I, ?/apktool/framework/1.apk, -S, /sdcard/apktool/Contacts_src/res, -M, /sdcard/apktool/Contacts_src/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
gimana gan.?
Coba folder /drawable-ldrtl-hdpi di hapus gan ,, :)
Hapus../../../storage/sdcard0/apktool/Contacts_src/smali/com/mediatek/contacts/widget/ButtonGridLayout.smali[611,15] no viable alternative at input 'height'
HapusException in thread "main" brut.androlib.AndrolibException: Could not smali file: com/mediatek/contacts/widget/ButtonGridLayout.smali
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:72)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:56)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:41)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:337)
at brut.androlib.Androlib.buildSources(Androlib.java:298)
at brut.androlib.Androlib.build(Androlib.java:284)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:233)
at brut.apktool.Main.main(Main.java:88)
I: Using Apktool 2.0.0-Beta7 on Contacts_src
I: Smaling...
Kalo gini gimana gan, mohon bantuannya.
cek di /smali/com/mediatek/contacts/widget/ButtonGridLayout.smali[611,15] no viable alternative at input 'height'
Hapusente ngapain aja di situ hehe, naruh apa gitu :v
Ni mau fix dialpad kepotong gan, eh malah gak bisa, ada cara lain untuk fix nya gak,?
HapusApa cocok gan untuk rom purexperia z2.?
Hapusdi coba dulu aja gan siapa tau bisa kan
HapusThanks gan, sukses.,
Hapusgitu gan pas ane import as farmwork. kenapa ya??
BalasHapustrus juga pas decompile system ui ga ada apktool.yml nya gan?
Itu kayaknya sudah jadi gan.. sudah terinstall framework di apktoolnya :)
Hapus/sdcard/1/SystemUI_src/res/values/public.xml:24: error: Public symbol drawable/alert_bar_background declared here is not defined.
BalasHapus/sdcard/1/SystemUI_src/res/values/public.xml:96: error: Public symbol drawable/alert_bar_background_normal declared here is not defined.
/sdcard/1/SystemUI_src/res/values/public.xml:97: error: Public symbol drawable/alert_bar_background_pressed declared here is not defined
Ini kenapa gan??
Gan punyaku kok sh: can't open '/data/data/per.pay.apktool/mydata/apktool2.sh'
BalasHapussystem android kitkat
mohon pencerahannya
terimakasih
wah,, kitkat ya..belum nyoba kalau kitkat gan :)
HapusGak muncul sytemui. Src gan setelah di decompile all...
BalasHapusKnp ya..??
belum berhasil gan :)
Hapuspunya ane kok kek gini recompile fw nya? solusinya gimana gan... W: Could not find sources I: Building resources... invalid resource directory name: /sdcard/apktool/framework-res_src/res/drawable-ldrtl-hdpi invalid resource directory name: /sdcard/apktool/framework-res_src/res/drawable-ldrtl-xhdpi Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [/data/data/per.pqy.apktool/lix/aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, /data/data/per.pqy.apktool/APKTOOL7335479172306057549.tmp, -x, -0, arsc, -S, /sdcard/apktool/framework-res_src/res, -M, /sdcard/apktool/framework-res_src/AndroidManifest.xml] at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358) at brut.androlib.Androlib.buildResources(Androlib.java:283) at brut.androlib.Androlib.build(Androlib.java:206) at brut.androlib.Androlib.build(Androlib.java:176) at brut.apktool.Main.cmdBuild(Main.java:228) at brut.apktool.Main.main(Main.java:79) Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [/data/data/per.pqy.apktool/lix/aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, /data/data/per.pqy.apktool/APKTOOL7335479172306057549.tmp, -x, -0, arsc, -S, /sdcard/apktool/framework-res_src/res, -M, /sdcard/apktool/framework-res_src/AndroidManifest.xml] at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357) at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336) ... 5 more Caused by: brut.common.BrutException: could not exec command: [/data/data/per.pqy.apktool/lix/aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, /data/data/per.pqy.apktool/APKTOOL7335479172306057549.tmp, -x, -0, arsc, -S, /sdcard/apktool/framework-res_src/res, -M, /sdcard/apktool/framework-res_src/AndroidManifest.xml] at brut.util.OS.exec(OS.java:89) at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355) ... 6 more
BalasHapusI: Smaling...
BalasHapusI: Building resources...
invalid resource directory name: /sdcard/apktool/SystemUI_src/res/drawable-ldrtl-xxhdpi
invalid resource directory name: /sdcard/apktool/SystemUI_src/res/drawable-ldrtl-xhdpi
invalid resource directory name: /sdcard/apktool/SystemUI_src/res/drawable-ldrtl-hdpi
invalid resource directory name: /sdcard/apktool/SystemUI_src/res/drawable-ldrtl-sw600dp-xxhdpi
invalid resource directory name: /sdcard/apktool/SystemUI_src/res/drawable-ldrtl-sw600dp-hdpi
invalid resource directory name: /sdcard/apktool/SystemUI_src/res/drawable-ldrtl-sw600dp-xhdpi
invalid resource directory name: /sdcard/apktool/SystemUI_src/res/layout-ldrtl
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [/data/data/per.pqy.apktool/lix/aapt, p, --min-sdk-version, 19, --target-sdk-version, 19, -F, /data/data/per.pqy.apktool/APKTOOL5054789993338749486.tmp, -I, ?/apktool/framework/1.apk, -S, /sdcard/apktool/SystemUI_src/res, -M, /sdcard/apktool/SystemUI_src/AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [/data/data/per.pqy.apktool/lix/aapt, p, --min-sdk-version, 19, --target-sdk-version, 19, -F, /data/data/per.pqy.apktool/APKTOOL5054789993338749486.tmp, -I, ?/apktool/framework/1.apk, -S, /sdcard/apktool/SystemUI_src/res, -M, /sdcard/apktool/SystemUI_src/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [/data/data/per.pqy.apktool/lix/aapt, p, --min-sdk-version, 19, --target-sdk-version, 19, -F, /data/data/per.pqy.apktool/APKTOOL5054789993338749486.tmp, -I, ?/apktool/framework/1.apk, -S, /sdcard/apktool/SystemUI_src/res, -M, /sdcard/apktool/SystemUI_src/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
Ini gimana
sh: /data/data/per.pqy.apktool/mydata/apktool.sh: No such file or directory
BalasHapus