Hướng dẫn mod music visualizer view cho android-how to add visualizerview graphic in statusbarstatusbar
GUIDE] How to add Music VisualizerView Graphic Equalizer
-Đổi apktool version về 1.5.2
Tiến hành:
1. Decompile SystemUI.apk , chép smali vào
2. Đặt code này vào status_bar_expanded.xml hoặc tab nào bạn thích :
<com.adi.rom.interface.MusicEqualizerVisualizer android:id="@+id/visualizer_view_panel" android:layout_width="fill_parent" android:layout_height="48.0dip">
<LinearLayout android:orientation="vertical" android:id="@+id/custom_visualizer_view_panel" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.adi.rom.interface.VisualizerView android:id="@+id/custom_visualizer_view" android:layout_width="fill_parent" android:layout_height="fill_parent" />
</LinearLayout>
</com.adi.rom.interface.MusicEqualizerVisualizer>
3. mở SystemUI_src/res/values/Color.xml
đặt code này nằm trên code cuối cùng
<color name="custom_equalizer_fill_color">#96ffffff</color>
4. mở SystemUI_src/res/values/Dimens.xml
đặt các code này nằm trên code cuối cùng
<dimen name="custom_eqalizer_path_effect_1">6.0dip</dimen>
<dimen name="custom_eqalizer_path_effect_2">1.0dip</dimen>
<dimen name="custom_eqalizer_path_stroke_width">6.0dip</dimen>
5. mở SystemUI_src/res/values/integers.xml
đặt các code này nằm trên code cuối cùng
<integer name="custom_equalizer_divisions">4</integer>
<integer name="custom_equalizer_db_fuzz_factor">2</integer>
<integer name="custom_equalizer_db_fuzz">-10</integer>
6. Mở SystemUI_src/Manifest.xml
tìm đoạn code
<uses-permission android:name="abc.xyz" />
đặt 2 code này nằm dưới chúng :
<uses-permission android:name="android.permission.RECORD_AUDIO"/>
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>
( xem screenshot )
7. Recompile SystemUI_src, decompile SystemUI_src.apk,
mở SystemUI_src_src/smali/com/adi/rom/interface/MusicEqualizerVisualizer.smali
tìm và thay các số id sau bằng số id tương ứng trong public.xml
- 0x7f0900db <public type="id" name="custom_visualizer_view"
- 0x7f0e0063 <public type="dimen" name="custom_eqalizer_path_stroke_width"
- 0x7f0b000e <public type="color" name="custom_equalizer_fill_color"
- 0x7f0e0061 <public type="dimen" name="custom_eqalizer_path_effect_1"
- 0x7f0e0062 <public type="dimen" name="custom_eqalizer_path_effect_2"
- 0x7f0d0012 <public type="integer" name="custom_equalizer_divisions"
- 0x7f0d0014 <public type="integer" name="custom_equalizer_db_fuzz"
- 0x7f0d0013 <public type="integer" name="custom_equalizer_db_fuzz_factor"
- 0x7f0900dd <public type="id" name="custom_visualizer_view_panel"
8. Recompile .
Chép Meta-inf từ SystemUI.apk sang SystemUI_src_src.apk
Đổi lại tên, nhét vào hệ thống.
Reboot
Và...
Original thread :
http://forum.xda-developers.com/android/themes/guide-how-to-add-music-visualizerview-t3062114
Credits :
- Om Adi Sukahadi / Adi Aishiteru
- CyanogenMod
- xda-developers
Viết bởi:Nguyễn Hữu An Nhiên
Admin Hội mod android việt
Facebook.com/groups/modapk
Edit: Trần Đức Tịnh
Mod và tổng hợp icons Android
.png)




rom Cm đc ko
ReplyDelete