As the title suggests we're going to see how to solve the problems at compile time with regard to systemUi.apk JB 4.2.2
Who tried to do any modification to the systemUi Jelly bean version 4.2.2 you will surely find them cope with the rock the error in compilation.
Well ... I do and that's why I started to rebuild the apk since mom Samsung had "forgotten" to declare some styles so that at compile time obviously did get errors .. .
Required to do the modding version of Android 4.2.2:
SDK updated
JDK updated
APKTOOL updated
Well, at this point we can decompile the SystemUi.apk.
move on to SystemUi. apk \ res \ values \ styles.xml open it and add this
Save and you have solved your problems Now you can make all the changes you want and compile without getting any kind of error (unless you do not commit
)
Who tried to do any modification to the systemUi Jelly bean version 4.2.2 you will surely find them cope with the rock the error in compilation.
Well ... I do and that's why I started to rebuild the apk since mom Samsung had "forgotten" to declare some styles so that at compile time obviously did get errors .. .
Required to do the modding version of Android 4.2.2:
SDK updated
JDK updated
APKTOOL updated
Well, at this point we can decompile the SystemUi.apk.
move on to SystemUi. apk \ res \ values \ styles.xml open it and add this
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="RecentsStyle" parent="@*android:style/Theme.Holo.Wallpaper.NoTitleBar">
<item name="android:windowAnimationStyle">@style/Animation.RecentsActivity</item>
</style>
<style name="Animation.RecentsActivity" parent="@*android:style/Animation.Activity">
<item name="android:activityOpenEnterAnimation">@anim/recents_launch_from_launcher_enter</item>
<item name="android:activityOpenExitAnimation">@anim/recents_launch_from_launcher_exit</item>
<item name="android:taskOpenEnterAnimation">@anim/recents_launch_from_launcher_enter</item>
<item name="android:taskOpenExitAnimation">@anim/recents_launch_from_launcher_exit</item>
<item name="android:taskToFrontEnterAnimation">@anim/recents_launch_from_launcher_enter</item>
<item name="android:taskToFrontExitAnimation">@anim/recents_launch_from_launcher_exit</item>
<item name="android:wallpaperOpenEnterAnimation">@anim/recents_launch_from_launcher_enter</item>
<item name="android:wallpaperOpenExitAnimation">@anim/recents_launch_from_launcher_exit</item>
<item name="android:wallpaperIntraOpenEnterAnimation">@anim/wallpaper_recents_launch_from_launcher_enter</item>
<item name="android:wallpaperIntraOpenExitAnimation">@anim/wallpaper_recents_launch_from_launcher_exit</item>
</style>
[COLOR="Red"]<style name="SystemBarNotificationText">
<item name="android:textSize">16.0sp</item>
<item name="android:textColor">#ff999999</item>
</style>
<style name="SystemBarPanelSettingsRow">
<item name="android:orientation">horizontal</item>
<item name="android:background">?android:listChoiceBackgroundIndicator</item>
<item name="android:paddingRight">16.0dip</item>
<item name="android:layout_width">fill_parent</item>
<item name="android:layout_height">64.0dip</item>
</style>
<style name="SystemBarPanelSettingsIcon">
<item name="android:layout_width">64.0dip</item>
<item name="android:layout_height">fill_parent</item>
<item name="android:scaleType">center</item>
</style>
<style name="SystemBarPanelSettingsContents">
<item name="android:textSize">18.0sp</item>
<item name="android:textColor">?android:textColorPrimary</item>
<item name="android:layout_gravity">left|center</item>
<item name="android:layout_width">0.0dip</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_weight">1.0</item>
</style>
<style name="SystemBarPanelSettingsPanelSeparator">
<item name="android:background">@*android:drawable/divider_horizontal_dark</item>
<item name="android:layout_width">fill_parent</item>
<item name="android:layout_height">1.0dip</item>
<item name="android:layout_marginRight">0.0dip</item>
</style>[/COLOR]
<style name="TextAppearance.StatusBar.IntruderAlert" parent="@*android:style/TextAppearance.StatusBar" />
<style name="TextAppearance.StatusBar.SystemPanel" parent="@*android:style/TextAppearance.StatusBar">
<item name="android:textAppearance">?android:textAppearance</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ff808080</item>
</style>
<style name="TextAppearance.StatusBar.TextButton" parent="@*android:style/TextAppearance.StatusBar">
<item name="android:textAppearance">?android:textAppearance</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ffffffff</item>
</style>
<style name="TextAppearance.StatusBar.Clock" parent="@*android:style/TextAppearance.StatusBar.Icon">
<item name="android:textSize">16.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">@*android:color/holo_blue_light</item>
</style>
<style name="TextAppearance.StatusBar.Date" parent="@*android:style/TextAppearance.StatusBar.Icon">
<item name="android:textSize">16.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">@*android:color/holo_blue_light</item>
</style>
<style name="TextAppearance.StatusBar.Expanded" parent="@*android:style/TextAppearance.StatusBar" />
<style name="TextAppearance.StatusBar.Expanded.Clock" parent="@style/TextAppearance.StatusBar.Expanded">
<item name="android:textSize">32.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ffffffff</item>
<item name="android:fontFamily">sans-serif-light</item>
</style>
<style name="TextAppearance.StatusBar.Expanded.Date" parent="@style/TextAppearance.StatusBar.Expanded">
<item name="android:textSize">12.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ffcccccc</item>
<item name="android:textAllCaps">true</item>
</style>
<style name="TextAppearance.StatusBar.Expanded.Network" parent="@style/TextAppearance.StatusBar.Expanded.Date">
<item name="android:textColor">#ff999999</item>
<item name="android:textAllCaps">false</item>
</style>
<style name="TextAppearance.StatusBar.Expanded.Network.EmergencyOnly" parent="@style/TextAppearance.StatusBar.Expanded.Network" />
<style name="TextAppearance" />
<style name="TextAppearance.QuickSettings" parent="@style/TextAppearance" />
<style name="TextAppearance.QuickSettings.TileView" parent="@style/TextAppearance.QuickSettings">
<item name="android:textSize">12.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ffcccccc</item>
<item name="android:ellipsize">marquee</item>
<item name="android:paddingLeft">6.0dip</item>
<item name="android:paddingRight">6.0dip</item>
<item name="android:paddingBottom">2.0dip</item>
<item name="android:fadingEdge">horizontal</item>
<item name="android:singleLine">true</item>
<item name="android:drawablePadding">12.0dip</item>
<item name="android:textAllCaps">true</item>
</style>
<style name="TextAppearance.QuickSettings.Clock" parent="@style/TextAppearance.QuickSettings.TileView">
<item name="android:textSize">20.0dip</item>
<item name="android:textColor">@*android:color/holo_blue_light</item>
</style>
<style name="TextAppearance.QuickSettings.Date" parent="@style/TextAppearance.QuickSettings.TileView">
<item name="android:textSize">14.0dip</item>
</style>
<style name="TextAppearance.QuickSettings.Alarm" parent="@style/TextAppearance.QuickSettings.TileView">
<item name="android:textSize">14.0dip</item>
<item name="android:textColor">#ff3a3b39</item>
</style>
<style name="BaseBrightnessDialogContainer">
<item name="android:layout_width">fill_parent</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_marginTop">15.0dip</item>
<item name="android:layout_marginBottom">15.0dip</item>
</style>
<style name="BrightnessDialogContainer" parent="@style/BaseBrightnessDialogContainer" />
<style name="Animation" />
<style name="Animation.ShirtPocketPanel" parent="@style/Animation">
<item name="android:windowEnterAnimation">@*android:anim/grow_fade_in_from_bottom</item>
<item name="android:windowExitAnimation">@*android:anim/shrink_fade_out_from_bottom</item>
</style>
<style name="Animation.RecentPanel" parent="@style/Animation">
<item name="android:windowEnterAnimation">@*android:anim/grow_fade_in_from_bottom</item>
<item name="android:windowExitAnimation">@*android:anim/shrink_fade_out_from_bottom</item>
</style>
<style name="Animation.StatusBar" parent="@style/Animation" />
<style name="Animation.StatusBar.IntruderAlert" parent="@style/Animation.StatusBar">
<item name="android:windowEnterAnimation">@anim/priority_alert_enter</item>
<item name="android:windowExitAnimation">@anim/priority_alert_exit</item>
</style>
<style name="TextAppearance.StatusBar.PhoneTicker" parent="@*android:style/TextAppearance.StatusBar.Ticker">
<item name="android:textSize">14.0dip</item>
</style>
<style name="ClingButton">
<item name="android:textStyle">bold</item>
<item name="android:background">@drawable/cling_button_bg</item>
<item name="android:paddingLeft">35.0dip</item>
<item name="android:paddingTop">10.0dip</item>
<item name="android:paddingRight">35.0dip</item>
<item name="android:paddingBottom">15.0dip</item>
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
</style>
<style name="ClingTitleText">
<item name="android:textSize">23.0sp</item>
<item name="android:textColor">#ff49c0ec</item>
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_marginBottom">5.0dip</item>
<item name="android:shadowColor">#ff000000</item>
<item name="android:shadowDy">2.0</item>
<item name="android:shadowRadius">2.0</item>
</style>
<style name="ClingText">
<item name="android:textSize">15.0sp</item>
<item name="android:textColor">#ffffffff</item>
<item name="android:shadowColor">#ff000000</item>
<item name="android:shadowDy">2.0</item>
<item name="android:shadowRadius">2.0</item>
<item name="android:lineSpacingMultiplier">1.1</item>
</style>
<style name="TutorialPopupStyle">
<item name="android:textSize">18.0dip</item>
<item name="android:textColor">#ff000000</item>
<item name="android:background">@drawable/help_popup_picker_bg_w_01</item>
<item name="android:paddingLeft">@dimen/smart_alert_popup_text_padding</item>
<item name="android:paddingTop">10.0dip</item>
<item name="android:paddingRight">@dimen/smart_alert_popup_text_padding</item>
<item name="android:paddingBottom">15.0dip</item>
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
</style>
<style name="Animation_MiniAppsEditPanel">
<item name="android:windowEnterAnimation">@anim/mini_apps_edit_panel_show_anim</item>
<item name="android:windowExitAnimation">@anim/mini_apps_edit_panel_hide_anim</item>
</style>
<style name="TextAppearance_EditPanelTitle">
<item name="android:textSize">20.0dip</item>
<item name="android:textStyle">bold</item>
</style>
<style name="TextAppearance_SaveAndCancelButton">
<item name="android:textSize">20.0dip</item>
</style>
<style name="TextAppearance_EditButton">
<item name="android:textSize">18.0dip</item>
</style>
<style name="TextAppearance_PreviewLabel">
<item name="android:textSize">16.0dip</item>
</style>
<item type="style" name="APKTOOL_DUMMY_001e">false</item>
<item type="style" name="APKTOOL_DUMMY_001f">false</item>
<item type="style" name="APKTOOL_DUMMY_0020">false</item>
<item type="style" name="APKTOOL_DUMMY_0021">false</item>
<item type="style" name="APKTOOL_DUMMY_0022">false</item>
<item type="style" name="APKTOOL_DUMMY_0023">false</item>
<item type="style" name="APKTOOL_DUMMY_0024">false</item>
<item type="style" name="APKTOOL_DUMMY_0025">false</item>
</resources>
Attachments
-
1.6 KB Views: 1,310