JANGAN LUPA BACKUP SYSTEMUI.APK YANG LAMA UNTUK JAGA2.
DO IT WITH YOUR OWN RISK, SAYA TIDAK BERTANGGUNG JAWAB UNTUK SEGALA KERUSAKAN YG TERJADI PADA HH ANDA
.
Tools :
- adb installed
- Latest android-sdk
- Latest Registered JDK
- Latest JRE- Notepad++- Photoshop atau sejenisnya yg support transparency png
- Platform-tools, APK Manager, APKTool atau apalah yg bisa decompile n compile
.
Step by step :
1. Decompile SystemUI.apk2. Copy gambar2 yg akan dianimasikan sbg animasi pulldown background ke /SystemUI.apk/res/drawable-mdpi/*
3. Edit status_bar_background.png di /SystemUI.apk/res/drawable-mdpi/status_bar_background.png menjadi full transparan tanpa 1 titik warna pun, agar animated pulldown background tidak terhalang status_bar_background
4. Buat xml untuk animasi pulldown backgroundnya :
a. Buka Notepad++b. Copas line ini
.
<?xml version="1.0" encoding="UTF-8"?>
<animation-list android:oneshot="false"
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:duration="100" android:drawable="@drawable/0001" />
<item android:duration="100" android:drawable="@drawable/0002" />
<item android:duration="100" android:drawable="@drawable/0003" />
</animation-list>
.
- 0001, 0002, 0003 adalah nama file gambarnya, boleh ditambah, dikurangi, atau diganti dg apapun asalkan berurutan, extensi/format file tdk perlu ditulis di xml - Duration adalah durasi tiap frame (milisecond)
.
c. Save file tersebut dg nama apapun, contohnya pulldown.xml
.
5. Daftarkan semua file baru tersebut di /SystemUI.apk/res/values/public.xml, dibawah line drawable paling bawah, contohnya
.
...
<public type="drawable" name="status_bar_tab_on" id="0x7f0200ca" />
<public type="drawable" name="pulldown" id="0x7f0200cb" />
<public type="drawable" name="0001" id="0x7f0200cc" />
<public type="drawable" name="0002" id="0x7f0200cd" />
<public type="drawable" name="0003" id="0x7f0200ce" />
<public type="layout" name="battery_low" id="0x7f030000" />
...
.
- di contoh di atas, line drawable paling bawah tadinya adalah line status_bar_tab_on
- yang harus diperhatikan, id dalam public.xml TIDAK BOLEH ADA YANG SAMA dan usahakan BERURUTAN dg yg sebelumnya dan HARUS DALAM KELOMPOK TYPE YANG SAMA
.
6. Save public.xml tersebut
7. Buka /SystemUI.apk/res/layout/status_bar_tracking.xml, lalu tambahkan
.
android:background="@drawable/pulldown"
.
pada line <com.android.systemui.statusbar.TrackingView ...
.
contohnya
.
<com.android.systemui.statusbar.TrackingView android:orientation="vertical" android:background="@drawable/pulldown" android:paddingLeft="0.0px" android:paddingRight="0.0px" android:paddingBottom="0.0px" android:focusable="true" android:visibility="gone" android:descendantFocusability="afterDescendants"
.
8. Save status_bar_tracking.xml tersebut
9. Compile SystemUI.apk, Pada 2 pertanyaan jawab dg Y
10. Setelah pertanyaan ke 2 akan muncul folder "keep", pada folder keep, delete resource.asrc dan /res/layout/status_bar_tracking.xml
11. Tekan apa saja (biasanya enter)
12. Hasilnya bisa dilihat pada folder output atau place-apk-here-for-modding dg nama unsignedSystemUI.apk
13. Enjoy :p
.
CMIIW, klo ada kesalahan mohon maaf dan tolong dibetulkan :D
credit to Reezqy Eightl-l
Tidak ada komentar:
Posting Komentar