Test And Work Asus Zenfone5 t00f
1. Decompile framework-res
merge all file...
framework-res.apk\res\values
styles.xml
copas line dibawah tepat diatas </resources>
<style name="Animation.Toast.Fade" parent="@style/Animation.Toast">
<item name="windowEnterAnimation">@anim/fade_in</item>
<item name="windowExitAnimation">@anim/fade_out</item>
</style>
<style name="Animation.Toast.SlideRight" parent="@style/Animation.Toast">
<item name="windowEnterAnimation">@anim/slide_in_right</item>
<item name="windowExitAnimation">@anim/slide_out_right</item>
</style>
<style name="Animation.Toast.SlideLeft" parent="@style/Animation.Toast">
<item name="windowEnterAnimation">@anim/slide_in_left</item>
<item name="windowExitAnimation">@anim/slide_out_left</item>
</style>
<style name="Animation.Toast.Xylon" parent="@style/Animation.Toast">
<item name="windowEnterAnimation">@anim/xylon_toast_enter</item>
<item name="windowExitAnimation">@anim/xylon_toast_exit</item>
</style>
<style name="Animation.Toast.Toko" parent="@style/Animation.Toast">
<item name="windowEnterAnimation">@anim/toko_toast_enter</item>
<item name="windowExitAnimation">@anim/toko_toast_exit</item>
</style>
<style name="Animation.Toast.Tn" parent="@style/Animation.Toast">
<item name="windowEnterAnimation">@anim/tn_toast_enter</item>
<item name="windowExitAnimation">@anim/tn_toast_exit</item>
</style>
<style name="Animation.Toast.Honami" parent="@style/Animation.Toast">
<item name="windowEnterAnimation">@anim/honami_toast_enter</item>
<item name="windowExitAnimation">@anim/honami_toast_exit</item>
</style>
<style name="Animation.Toast.FastFade" parent="@style/Animation.Toast">
<item name="windowEnterAnimation">@anim/fast_fade_in</item>
<item name="windowExitAnimation">@anim/fast_fade_out</item>
</style>
<style name="Animation.Toast.GrowFade" parent="@style/Animation.Toast">
<item name="windowEnterAnimation">@anim/grow_fade_in</item>
<item name="windowExitAnimation">@anim/fast_fade_out</item>
</style>
<style name="Animation.Toast.GrowFadeCenter" parent="@style/Animation.Toast">
<item name="windowEnterAnimation">@anim/grow_fade_in_center</item>
<item name="windowExitAnimation">@anim/fast_fade_out</item>
</style>
<style name="Animation.Toast.Translucent" parent="@style/Animation.Toast">
<item name="windowEnterAnimation">@anim/translucent_enter</item>
<item name="windowExitAnimation">@anim/translucent_exit</item>
</style>
<style name="Animation.Toast.GrowFadeBottom" parent="@style/Animation.Toast">
<item name="windowEnterAnimation">@anim/grow_fade_in_from_bottom</item>
<item name="windowExitAnimation">@anim/fast_fade_out</item>
</style>
--------------------------------------------------------------------------
Recompile,Decompile again
open public.xml
----------------------------------------------------------------------------------------------------------------------------------------------------
2.Decompile framework.jar
merge all file ..
change id in Toast$TN.smali dan Toast.smali to id public framework-res
open Toast$TN.smali
search #type
example :
const v1, 0x1030004 #type="style" name="Animation.Toast"
0x1030004 <--- This take on ids.xml in-res.apk framework decompile antecedent repeated earlier.
in the framework-res form the id 0x01030004, because it goes into framework.jar
we omit the 0 after 0x
so be 0x1030004
#type="style" name="Animation.Toast" <--- This is the name of the id concerned with
This id 0x1030004
and then all,. :D
---------------------------------------------------------------------------------------------------------------------------------------------------- 3.Decompile Settings.apk
merge all file²...
AsusSettings.apk\res\xml
add this preference want you want
<PreferenceScreen android:id="@+id/animation_settings" android:title="@string/animation_settings" android:fragment="com.android.settings.rr.AnimationSettings" />
or u can add to this
open dashboard_categories.xml
place kode this
<dashboard-category android:title="Mod Control">
<dashboard-tile android:icon="@drawable/a_lail_toast_anim" android:id="@id/animation_settings" android:title="Toast Animations" android:fragment="com.android.settings.rr.AnimationSettings" />
</dashboard-category>
--------------------------------------------------------------------------
AsusSettings.apk\res\values
strings.xml
copy this before </resources>
<string name="misc_settings_title"><b>Miscellaneous</b></string>
<string name="animation_settings"><b>Animations</b></string>
<string name="toast_title"><b>Toast</b></string>
<string name="toast_icon_title">Toast icon</string>
<string name="toast_animation_title">Toast animations</string>
<string name="toast_animation_summary">Select and preview system toast animation</string>
<string name="toast_none_animation">None</string>
<string name="toast_default_animation">Default</string>
<string name="toast_fade_animation">Fade animation</string>
<string name="toast_SlideRight_animation">Slide right</string>
<string name="toast_SlideLeft_animation">Slide left</string>
<string name="toast_Xylon_animation">Xylon animation</string>
<string name="toast_Toko_animation">Toko animation</string>
<string name="toast_Tn_animation">Tn animation</string>
<string name="toast_Honami_animation">Honami animation</string>
<string name="toast_FastFade_animation">Fast fade</string>
<string name="toast_GrowFade_animation">Grow fade</string>
<string name="toast_GrowFadeCenter_animation">Grow fade center</string>
<string name="toast_GrowFadeBottom_animation">Grow fade bottom</string>
<string name="toast_Translucent_animation">Translucent animation</string>
<string name="animation_settings_title">Animations</string>
--------------------------------------------------------------------------
AsusSettings.apk\res\values
arrays.xml
copy this before </resources>
<string-array name="toast_animation_entries">
<item>@string/toast_none_animation</item>
<item>@string/toast_default_animation</item>
<item>@string/toast_fade_animation</item>
<item>@string/toast_SlideRight_animation</item>
<item>@string/toast_SlideLeft_animation</item>
<item>@string/toast_Xylon_animation</item>
<item>@string/toast_Toko_animation</item>
<item>@string/toast_Tn_animation</item>
<item>@string/toast_Honami_animation</item>
<item>@string/toast_FastFade_animation</item>
<item>@string/toast_GrowFade_animation</item>
<item>@string/toast_GrowFadeCenter_animation</item>
<item>@string/toast_GrowFadeBottom_animation</item>
<item>@string/toast_Translucent_animation</item>
</string-array>
<string-array name="toast_animation_values">
<item>0</item>
<item>1</item>
<item>2</item>
<item>3</item>
<item>4</item>
<item>5</item>
<item>6</item>
<item>7</item>
<item>8</item>
<item>9</item>
<item>10</item>
<item>11</item>
<item>12</item>
<item>13</item>
</string-array>
--------------------------------------------------------------------------
AsusSettings.apk\smali\com\android\settings
open SettingsPreferenceFragment.smali
Compare to SettingsPreferenceFragment_COMPARE.smali in the file zip..
search code ###toast to ###end, just copy paste,
--------------------------------------------------------------------------
Recompile
Decompile
Buka
AsusSettings.apk\smali\com\android\settings\rr
AnimationSettings.smali
change the id public
const v1, 0x7f050070 #type="xml" name="a_lail_toast_animation_settings"
Recompile again
Done..
**************************************
Credit And Thx:
**CyanogenMod
**Resurrection Remix ROM
**TickleFish@xda
**Adi Sukahadi (CM11 ViewPager ROM)
**Vanya Melnechenko (Guide Toast Animation CM11)
**You
**************************************
REHGUIDE by lail