java -jar apktool.jar d -s file.apk foldername tools.zip(1.13 KB)
there are three files in the archive
apktool-d.cmd - transfer to it an apk-file containing classes (classes.dex): parses it into a folder with the same name (phone.apk ->phone)
apktool-d-s.cmd - transfer apk-file to it
not containing classes: parses it into a folder with the same name (framework-res.apk ->framework-res)
apktool-b.cmd - you transfer a folder with edited files to it: it collects it in apk with the name out.apk (framework-res ->framework-res / dist / out.apk)
Respectively, apktool.jar should be in the same folder.
2 rangr Throw off initial apk and that which FK causes
PS
2 12enie open file
framework-res \ res \ values ​​\ styles.xml looking for something like this there (btn_default)
<style name = "Widget.Button" parent = "@ style / Widget">
<item name = "textAppearance">? textAppearanceSmallInverse</ item>
<item name = "textColor">@ color /primary_text_light </ item>
<item name = "gravity">center</ item>
<item name = "background">@ drawable /btn_default </ item>
<item name = "focusable">true</ item>
<item name = "clickable">true</ item>
</ style>
here you can change to primary_text_darkthen open the file
framework-res \ res \ color \ primary_text_light.xml <? xml version = "1.0" encoding = "UTF-8"?>
<selector
xmlns: android = "
http://schemas.android.com/apk/res/android "><item android: state_enabled = "false" android: color = "@ color /
bright_foreground_light_disabled " />
<item android: state_window_focused = "false" android: color = "@ color /
bright_foreground_light " />
<item android: state_pressed = "true" android: color = "@ color /
bright_foreground_light " />
<item android: state_selected = "true" android: color = "@ color /
bright_foreground_light " />
<item android: color = "@ color / bright_foreground_light" />
</ selector>
here you can change to bright_foreground_darkthen open the file
framework-res \ res \ values ​​\ colors.xml <color name = "bright_foreground_light"># ff000000 </ color>
<color name = "bright_foreground_light_inverse">#ffffffff </ color>
<color name = "bright_foreground_light_disabled">#80000000 </ color>
and here the color is already setThe first two characters - transparency, the remaining six - color in RGB
# ff000000 - ff - opaque, 000000 - black
can be changed in any of the files
Post has been editedsk0t - 29.10.10, 20:35