First and foremost all credit goes to Alastrionia over at DF for cracking this.. Considering we haven't seen it anywhere else and most devs told us it wasn't possible w/o mega code writing.. but we prevailed (well, Alastrionia did) and he wanted to share it with the Android community... Here is a c&p of his OP over at DF.....
"First off this should work with all GB based roms that use systemui.apk
there may be subtle differences but the basics should be the same all around.
after much trial and error and ripping what little hair I have left out
success was mine and it's time to share this with everyone
and it's so simple that you'll love how fast you can integrate this into ROM's / themes / whatever your heart desires
1. take your systemui.apk and decompile it
2. navigate to layout folder
3. grab "status_bar_tracking.xml" and open it up in your editor
(now for the fun)
4. to the first line - "com.android.systemui.statusbar.TrackingView" add this ""android:background="@drawable/...anim.xml""
<com.android.systemui.statusbar.TrackingView android:background="@drawable/...anim.xml...>
5. after saving that, navigate back into the drawable folder and add your animation.xml file there
5a. next navigate into the drawable/hdpi folder and add your animated images
6. also in the drawable/hdpi folder find and open up the shade_bg.png with your editor and make it 100% transparent
7. now it's time to recompile your apk , following all the usual directions with that
8. enjoy your newly created systemui.apk with a pretty animated background. new and fresh and unlike anything before
that's it. done deal. it's super easy and fast and breathes life into true customization.
I used the stat_sys_upload.xml from the framework-res.apk as my base
all I had to do was change the timing and change the image names.
also you'll notice above - don't copy it word for word on the xml.
I did the "..." meaning whatever you decide to name your file."
*ADDED* - In the xml he says to add to the drawable folder, change the name of the anim_# pngs to something else like pulldown_anim1, pulldown_anim2, etc.. then make your new images that you add to the drawable-hdpi folder named the same, in sequence... Neither I nor Alastronia are responsible for your device so if you try this, it's at your own risk... but well worth that risk.. ... I don't have a video to post but I can confirm that this is legit and I am running one right now... I did test adding new png's via metamorph and zipthemer and it breaks the animation somehow... If I'm allowed to say this, shoot over to DF and locate Alastrionia and show him some donate love.. he very much deserves it... The possibilities are virtually endless as to customizing your pulldown now.. a slide show of loved ones, a cartoon image in motion, your fav boot animation, etc...
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Here's an example.. My MURDER gradually grows....
Exactly how is the animation(s)? Do you have a video or something?
Sent from my HTC Desire HD using XDA Premium App
I don't... sorry. But on df in the Droid themers section Alastrionia posted this thread and in the posts Mbk posted a video of the matrix one he made... right now we're using 5-8 anim_pngs so its still frame by frame but it's still very cool and totally different... on my screen shots, the "Murder" within the pulldown starts very small and gradually gets bigger....
Sent from my Droid using XDA App
deleted post because I think I know how now.
And here's for froyo and maybe eclair ROMs. My port
You need transparency hack enabled
Decompile framework-res.apk
Go to drawable-hdpi and make status_bar_background.png fully transparent with PS or GIMP
GO to layout and edit the 2nd line of status_bar_tracking.xml like this
<com.android.server.status.TrackingView android:background="@drawable/status_bar_background_animation" androidrientation="vertical" androidaddingLeft="0.0px" androidaddingRight="0.0px" androidaddingBottom="0.0px" android:focusable="true" android:visibility="gone" android:descendantFocusability="afterDescendants"
where status_bar_background_animation links to status_bar_background_animation.xml in drawable folder(dont have it? create it), there you set the images and durations.
So pleased
Just got this running on my Htc Desire and should be able to go crazy with animations because of framework-res.apk being on sd-ext.
Thanks go to:
Alastrionia - for the original idea and coding.
santiemanuel - for the Froyo coding
B-boy® - for this thread
Thanks again all
santiemanuel said:
And here's for froyo and maybe eclair ROMs. My port
You need transparency hack enabled
Decompile framework-res.apk
Go to drawable-hdpi and make status_bar_background.png fully transparent with PS or GIMP
GO to layout and edit the 2nd line of status_bar_tracking.xml like this
<com.android.server.status.TrackingView android:background="@drawable/status_bar_background_animation" androidrientation="vertical" androidaddingLeft="0.0px" androidaddingRight="0.0px" androidaddingBottom="0.0px" android:focusable="true" android:visibility="gone" android:descendantFocusability="afterDescendants"
where status_bar_background_animation links to status_bar_background_animation.xml in drawable folder(dont have it? create it), there you set the images and durations.
Click to expand...
Click to collapse
I'm with you until the create the xml part. Is it a similar layout to battery charge or sync animation xml?
http://www.dropbox.com/referrals/NTEyOTE1MzA3OQ
status_bar_background_animation.xml
That had me stumped at first.
Simply edit this xml to have the correct number off lines for your animation images. Also, you might need to edit the duration time before putting it in the /drawable folder.
download zip
LfcFan1977 said:
That had me stumped at first.
Simply edit this xml to have the correct number off lines for your animation images. Also, you might need to edit the duration time before putting it in the /drawable folder.
download zip
Click to expand...
Click to collapse
Sweet. Thank you.
http://www.dropbox.com/referrals/NTEyOTE1MzA3OQ
[help] idea
Instead of using status_bar_background.png, does anybody know how I might use status_bar_close_on.9.png instead?
@silverxbv2
There is a button for that
LfcFan1977 said:
Instead of using status_bar_background.png, does anybody know how I might use status_bar_close_on.9.png instead?
@silverxbv2
There is a button for that
Click to expand...
Click to collapse
Not from the app for some reason.
http://www.dropbox.com/referrals/NTEyOTE1MzA3OQ
After I finish steps 1-6, during the recompiling portion I get the following error using APK Manager:
Code:
C:\Users\DSB\Android\Personalization\Theming stuff\apk_manager_4.9\other\..\projects\SystemUI.apk\res\layout\status_bar_tracking.xml:2: error: Error parsing XML: not well-formed (invalid token)
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\DSB\AppData\Local\Temp\APKTOOL3941090156111040610.tmp, -I, C:\Users\DSB\apktool\framework\1.apk, -S, C:\Users\DSB\Android\Personalization\Theming stuff\apk_manager_4.9\other\..\projects\SystemUI.apk\res, -M, C:\Users\DSB\Android\Personalization\Theming stuff\apk_manager_4.9\other\..\projects\SystemUI.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(Unknown Source)
at brut.androlib.Androlib.buildResourcesFull(Unknown Source)
at brut.androlib.Androlib.buildResources(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.apktool.Main.cmdBuild(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\DSB\AppData\Local\Temp\APKTOOL3941090156111040610.tmp, -I, C:\Users\DSB\apktool\framework\1.apk, -S, C:\Users\DSB\Android\Personalization\Theming stuff\apk_manager_4.9\other\..\projects\SystemUI.apk\res, -M, C:\Users\DSB\Android\Personalization\Theming stuff\apk_manager_4.9\other\..\projects\SystemUI.apk\AndroidManifest.xml]
at brut.util.OS.exec(Unknown Source)
... 7 more
Anyone know wtf I'm doing wrong?
Double check your syntax in status bar tracking xml.
http://www.dropbox.com/referrals/NTEyOTE1MzA3OQ
I think I added it right...
Code:
<?xml version="1.0" encoding="UTF-8"?>
<com.android.systemui.statusbar.TrackingView android:background="@drawable/...anim.xml android:orientation="vertical" android:paddingLeft="0.0px" android:paddingRight="0.0px" android:paddingBottom="0.0px" android:focusable="true" android:visibility="gone" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<View android:background="@drawable/shade_bg" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0" />
<com.android.systemui.statusbar.CloseDragHandle android:orientation="vertical" android:id="@id/close" android:layout_width="fill_parent" android:layout_height="wrap_content">
<ImageView android:layout_gravity="bottom" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/status_bar_close_on" android:scaleType="fitXY" />
</com.android.systemui.statusbar.CloseDragHandle>
</com.android.systemui.statusbar.TrackingView>
@wewoapsiak
This is wrong.
Code:
<com.android.systemui.statusbar.TrackingView android:background="@drawable/...anim.xml android:orientation="vertical" android:paddingLeft="0.0px" android:paddingRight="0.0px" android:paddingBottom="0.0px" android:focusable="true" android:visibility="gone" android:descendantFocusability="afterDescendants"
It should be more like.
Code:
<com.android.systemui.statusbar.TrackingView android:background="@drawable/status_bar_background_animation.xml android:orientation="vertical" android:paddingLeft="0.0px" android:paddingRight="0.0px" android:paddingBottom="0.0px" android:focusable="true" android:visibility="gone" android:descendantFocusability="afterDescendants"
Then you need to create a status_bar_background_animation.xml to go in the /drawable folder.
Using this one (here) should be ok, just change the duration times and rename the pulldown#.png images to match your animation images.
[REQ]@B-boy
Can you please change the thread title to either include Froyo or remove the GB?
Froyo
Here is what I have come up with so far but I really need to figure out how to slimline it, framework-res.apk went from 7mb to 12mb.
LfcFan1977 said:
Here is what I have come up with so far but I really need to figure out how to slimline it, framework-res.apk went from 7mb to 12mb.
Click to expand...
Click to collapse
Wow! That looks amazing.
Thanks
Played about with the durations a little since I made that gif animation so NOTIFICATION" stay on for longer and a longer pause between scrolls.
Working on another version now and hopefully the framework will be smaller.
Is yours working now?
[Q][REQs]Froyo
Does anybody know how I can get transparency enabled for my animation images on Froyo?
Transparency is enable for my status_bar_background.png but if I use transparency on my animation png's I get bootloop and black screen exactly when the lockscreen should appear.
LfcFan1977 said:
Thanks
Is yours working now?
Click to expand...
Click to collapse
No I still get this error while compiling
Code:
C:\Users\DSB\Android\Personalization\Theming stuff\apk_manager_4.9\other\..\projects\SystemUI.apk\res\layout\status_bar_tracking.xml:2: error: Error parsing XML: not well-formed (invalid token)
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\DSB\AppData\Local\Temp\APKTOOL8047304496797767486.tmp, -I, C:\Users\DSB\apktool\framework\1.apk, -S, C:\Users\DSB\Android\Personalization\Theming stuff\apk_manager_4.9\other\..\projects\SystemUI.apk\res, -M, C:\Users\DSB\Android\Personalization\Theming stuff\apk_manager_4.9\other\..\projects\SystemUI.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(Unknown Source)
at brut.androlib.Androlib.buildResourcesFull(Unknown Source)
at brut.androlib.Androlib.buildResources(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.apktool.Main.cmdBuild(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\DSB\AppData\Local\Temp\APKTOOL8047304496797767486.tmp, -I, C:\Users\DSB\apktool\framework\1.apk, -S, C:\Users\DSB\Android\Personalization\Theming stuff\apk_manager_4.9\other\..\projects\SystemUI.apk\res, -M, C:\Users\DSB\Android\Personalization\Theming stuff\apk_manager_4.9\other\..\projects\SystemUI.apk\AndroidManifest.xml]
at brut.util.OS.exec(Unknown Source)
... 7 more
No clue what invalid token is, I made the line look like this:
Code:
<com.android.systemui.statusbar.TrackingView android:background="@drawable/status_bar_background_animation.xml android:orientation="vertical" android:paddingLeft="0.0px" android:paddingRight="0.0px" android:paddingBottom="0.0px" android:focusable="true" android:visibility="gone" android:descendantFocusability="afterDescendants"
And I'm using Notepad++ to edit the xml file.
Related
I hope this isn't posted anywhere yet.
This is a simple guide of porting the ICS style progress_indeterminate_horizontal_holo to gingerbread.
The progress bar animation when downloading and installing applications on android.
Change from this
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
to this
File to be edited:
framework-res\res\drawable\progress_indeterminate_horizontal.xml
Open it with notepad++ and paste this line of code:
Code:
<?xml version="1.0" encoding="utf-8"?>
<animation-list android:oneshot="false"
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:duration="50" android:drawable="@drawable/progressbar_indeterminate_holo1" />
<item android:duration="50" android:drawable="@drawable/progressbar_indeterminate_holo2" />
<item android:duration="50" android:drawable="@drawable/progressbar_indeterminate_holo3" />
<item android:duration="50" android:drawable="@drawable/progressbar_indeterminate_holo4" />
<item android:duration="50" android:drawable="@drawable/progressbar_indeterminate_holo5" />
<item android:duration="50" android:drawable="@drawable/progressbar_indeterminate_holo6" />
<item android:duration="50" android:drawable="@drawable/progressbar_indeterminate_holo7" />
<item android:duration="50" android:drawable="@drawable/progressbar_indeterminate_holo8" />
</animation-list>
Additional Note: Edit your Styles.xml
And copy this attributes to it, look for Widget.ProgressBar.Horizontal and Widget.SeekBar
Code:
<style name="Widget.ProgressBar.Horizontal" parent="@style/Widget.ProgressBar">
<item name="maxHeight">16.0dip</item>
<item name="indeterminateOnly">false</item>
<item name="indeterminateDrawable">@drawable/progress_indeterminate_horizontal</item>
<item name="progressDrawable">@drawable/progress_horizontal</item>
<item name="minHeight">16.0dip</item>
</style>
<style name="Widget.SeekBar" parent="@style/Widget">
<item name="focusable">true</item>
<item name="maxHeight">13.0dip</item>
<item name="indeterminateOnly">false</item>
<item name="indeterminateDrawable">@drawable/progress_horizontal</item>
<item name="progressDrawable">@drawable/progress_horizontal</item>
<item name="minHeight">13.0dip</item>
<item name="thumb">@drawable/seek_thumb</item>
<item name="thumbOffset">16.0dip</item>
</style>
After it save the file place the files from the zip file to your desired drawable folder, on mine I used drawable-mdpi, and using apktool just compile your framework-res again, then you have the finish product.
If you liked my post, just press the THANKS button..:good:
No need to follow this post, First post Updated
In addition to this modification you need to follow this post too:
http://forum.xda-developers.com/showpost.php?p=24548972&postcount=4
Thanks, nice! Any chance you also know how to back-port Honeycomb/ICS notification framework to GB?
Replace or Place
Hey man, Do I need to place the code or REPLACE the existing one with that code?
I replace the existing code & picture and end with bootloop.....
Helpppppp:crying:
Thx a lot for this mod!:fingers-crossed:
Yes just replace it with the code above and extract the contents of ics progress bar.zip to your res\drawable-mdpi or hdpi. It's also working on 2.2 Froyo.
toxic77 said:
Yes just replace it with the code above and extract the contents of ics progress bar.zip to your res\drawable-mdpi or hdpi. It's also working on 2.2 Froyo.
Click to expand...
Click to collapse
C:\ANDROID STUFFS\APKTOOL>apktool if framework-res.apk
I: Framework installed to: C:\Users\alex\apktool\framework\1.apk
C:\ANDROID STUFFS\APKTOOL>apktool if semcgenericuxpres.apk
I: Framework installed to: C:\Users\alex\apktool\framework\2.apk
C:\ANDROID STUFFS\APKTOOL>apktool d framework-res.apk
I: Loading resource table...
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
C:\ANDROID STUFFS\APKTOOL>apktool b framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
C:\ANDROID STUFFS\APKTOOL\framework-res\res\drawable\progress_indeterminate_hori
zontal.xml:1: error: Error parsing XML: not well-formed (invalid token)
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\alex\AppData\Local\Temp\AP
KTOOL4915893460393119994.tmp, -x, -S, C:\ANDROID STUFFS\APKTOOL\framework-res\re
s, -M, C:\ANDROID STUFFS\APKTOOL\framework-res\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\alex\AppData\Local\Temp\APKTOOL4915893460393119994.tmp, -x, -S, C:\ANDROID
STUFFS\APKTOOL\framework-res\res, -M, C:\ANDROID STUFFS\APKTOOL\framework-res\An
droidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
C:\ANDROID STUFFS\APKTOOL>
I get an error man
Error
Try this modded xml file and recompile the framework including the images to your drawable folder.
toxic77 said:
Try this modded xml file and recompile the framework including the images to your drawable folder.
Click to expand...
Click to collapse
I got bootloop
Mate maybe its not compatible with your device.
great!! one question, working in xperia arc s?
I have successfully went beyond porting only the inactive download animation from this guide but have also ported the entire ics progress bar as seen below in my own gb rom... I will add a how to in another post when I get the chance
Sent from my N860 using xda app-developers app
check here
Check here mate.
http://forum.xda-developers.com/showthread.php?t=1963469
Grrr... I took the time to do it myself... searched all over and only found this... oh well
Sent from my N860 using xda app-developers app
Thanks! worked great on the first try on a ZTE merit.
This mod is originally posted HERE by Evilisto and copy-pasting given code works for ICS, but NOT for JB. So, i worked out the little modifications to be done for JB, and it works, only you wont get the WP blue color as background. All actual credits go to Evilisto..This can be done for any device running Jellybean, the only thing you would need to change are the dip values.
SETTING UP
REQUIRED STUFF.
-- Apktool. 1.5.0 works best for me, but if not, a previous version is fine too.
-- framework-res.apk from ROM.
-- SystemUI.apk from ROM.
-- Knowledge on decompiling, recompiling apks.
-- Notepad++ recommended.
HOW-TO.
-- Copy framework-res.apk and SystemUI.apk to your folder.
-- Install framework-res.apk. This step is important.
Code:
apktool if framework-res.apk
-- Decompile framework-res.apk
Code:
apktool d framework-res.apk
This will give you a folder called framework-res. This is your decompiled apk.
-- Decompile SystemUI.apk
Code:
apktool d SystemUI.apk
This will give you a folder named SystemUI.
-- Alternatively, you can specify the folder name to be created. For ex : i want framework for framework-res.apk folder :
Code:
apktool d framework-res.apk framework
This will name the folder framework.
OR
Code:
apktool d SystemUI.apk System
This will give you folder named System for decompiled SystemUI.apk
==================================================
THE MODIFICATIONS
IN FRAMEWORK-RES.APK
-- Open framework-res folder. Navigate to res/values, right-click on Dimens.xml and select 'edit with Notepad++' or any other you may prefer.
Find default values of the following values and change it to given values.
res/values/dimens.xml
Code:
<dimen name="thumbnail_height">270.0dip</dimen>
<dimen name="thumbnail_width">192.0dip</dimen>
===================================================
IN SYSTEMUI.APK
-- Save file, go back and open your SystemUI folder and open the res/ folder.
-- Copy paste the following code by editing specified files.
res/values/dimens.xml
Code:
<dimen name="thumbnail_height">270.0dip</dimen>
<dimen name="thumbnail_width">192.0dip</dimen>
res/values/drawables.xml
ADD THE FOLLOWING LINE :
Code:
<item type="drawable" name="status_bar_recents_background_solid">#ff33b1e1</item>
res/layout-port/status_bar_recent_panel.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.recent.RecentsPanelView android:id="@id/recents_root" android:layout_width="fill_parent" android:layout_height="fill_parent" systemui:recentItemLayout="@layout/status_bar_recent_item"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<View android:id="@id/recents_transition_background" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" />
<FrameLayout android:id="@id/recents_bg_protect" android:background="@drawable/status_bar_recents_background_solid" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_centerVertical="true">
<ImageView android:id="@id/recents_transition_placeholder_icon" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.android.systemui.recent.RecentsHorizontalScrollView android:layout_gravity="bottom|left|center" android:id="@id/recents_container" android:scrollbars="none" android:fadingEdge="none" android:fadingEdgeLength="0.0dip" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginRight="0.0dip" android:stackFromBottom="true" android:divider="@null">
<LinearLayout android:orientation="horizontal" android:id="@id/recents_linear_layout" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</com.android.systemui.recent.RecentsHorizontalScrollView>
</FrameLayout>
<include android:id="@id/recents_no_apps" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" layout="@layout/status_bar_no_recent_apps" />
</com.android.systemui.recent.RecentsPanelView>
res/layout-port/status_bar_recent_item.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:paddingTop="@dimen/status_bar_recents_item_padding" android:paddingBottom="@dimen/status_bar_recents_item_padding" android:layout_width="wrap_content" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<RelativeLayout android:layout_gravity="center_vertical" android:id="@id/recent_item" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true">
<FrameLayout android:id="@id/app_thumbnail" android:background="@drawable/recents_thumbnail_bg" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:foreground="@drawable/recents_thumbnail_fg" android:layout_centerInParent="true">
<ImageView android:id="@id/app_thumbnail_image" android:layout_width="192.0dip" android:layout_height="270.0dip" />
<ImageView android:id="@id/app_icon" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_recents_app_icon_left_margin" android:layout_marginTop="0.0dip" android:scaleType="centerInside" android:adjustViewBounds="true" android:maxWidth="@dimen/status_bar_recents_app_icon_max_width" android:maxHeight="@dimen/status_bar_recents_app_icon_max_height" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" />
</FrameLayout>
<View android:id="@id/recents_callout_line" android:background="@drawable/recents_callout_line" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="1.0dip" android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin" android:layout_marginTop="3.0dip" android:layout_marginRight="3.0dip" android:layout_toLeftOf="@id/app_thumbnail" android:layout_below="@id/app_label" android:layout_alignParentLeft="true" />
<TextView android:textSize="@dimen/status_bar_recents_app_label_text_size" android:textColor="@color/status_bar_recents_app_label_color" android:ellipsize="marquee" android:id="@id/app_label" android:paddingTop="0.0dip" android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_text_fading_edge_length" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="fill_parent" android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin" android:layout_marginTop="95.0dip" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_thumbnail" android:layout_alignLeft="@id/app_thumbnail" android:layout_alignParentBottom="true" />
<TextView android:textSize="@dimen/status_bar_recents_app_description_text_size" android:ellipsize="marquee" android:id="@id/app_description" android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_text_fading_edge_length" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin" android:layout_marginTop="40.0dip" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_label" android:layout_alignLeft="@id/app_thumbnail" android:layout_alignParentBottom="true" />
</RelativeLayout>
</FrameLayout>
res/layout-land/status_bar_recent_panel.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.recent.RecentsPanelView android:id="@id/recents_root" android:layout_width="fill_parent" android:layout_height="fill_parent" systemui:recentItemLayout="@layout/status_bar_recent_item"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<View android:id="@id/recents_transition_background" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" />
<FrameLayout android:id="@id/recents_bg_protect" android:background="@drawable/status_bar_recents_background_solid" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentBottom="true">
<ImageView android:id="@id/recents_transition_placeholder_icon" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.android.systemui.recent.RecentsHorizontalScrollView android:layout_gravity="bottom|right|center" android:orientation="horizontal" android:id="@id/recents_container" android:scrollbars="none" android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_scroll_fading_edge_length" android:clipChildren="false" android:clipToPadding="false" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="@dimen/status_bar_recents_right_glow_margin" android:stackFromBottom="true" android:divider="@null">
<LinearLayout android:orientation="horizontal" android:id="@id/recents_linear_layout" android:clipChildren="false" android:clipToPadding="false" android:layout_width="wrap_content" android:layout_height="fill_parent" />
</com.android.systemui.recent.RecentsHorizontalScrollView>
</FrameLayout>
<include android:id="@id/recents_no_apps" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" layout="@layout/status_bar_no_recent_apps" />
</com.android.systemui.recent.RecentsPanelView>
res/layout-land/status_bar_recent_item.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:paddingLeft="@dimen/status_bar_recents_item_padding" android:paddingRight="@dimen/status_bar_recents_item_padding" android:layout_width="wrap_content" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<RelativeLayout android:layout_gravity="center_vertical" android:id="@id/recent_item" android:paddingTop="@*android:dimen/status_bar_height" android:layout_width="wrap_content" android:layout_height="wrap_content">
<FrameLayout android:id="@id/app_thumbnail" android:background="@drawable/recents_thumbnail_bg" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_recents_thumbnail_left_margin" android:layout_marginTop="@dimen/status_bar_recents_thumbnail_top_margin" android:foreground="@drawable/recents_thumbnail_fg" android:layout_alignParentLeft="true" android:layout_alignParentTop="true">
<ImageView android:id="@id/app_thumbnail_image" android:layout_width="125.0dip" android:layout_height="180.0dip" />
</FrameLayout>
<ImageView android:id="@id/app_icon" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_recents_app_icon_left_margin" android:layout_marginTop="@dimen/status_bar_recents_app_icon_top_margin" android:scaleType="centerInside" android:adjustViewBounds="true" android:maxWidth="@dimen/status_bar_recents_app_icon_max_width" android:maxHeight="@dimen/status_bar_recents_app_icon_max_height" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" />
<TextView android:textSize="@dimen/status_bar_recents_app_label_text_size" android:textColor="@color/status_bar_recents_app_label_color" android:ellipsize="marquee" android:id="@id/app_label" android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_text_fading_edge_length" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin" android:layout_marginTop="@dimen/status_bar_recents_text_description_padding" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_thumbnail" android:layout_alignLeft="@id/app_thumbnail" />
<TextView android:textSize="@dimen/status_bar_recents_app_description_text_size" android:ellipsize="marquee" android:id="@id/app_description" android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_text_fading_edge_length" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="wrap_content" android:layout_marginTop="@dimen/status_bar_recents_text_description_padding" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_label" android:layout_alignLeft="@id/app_thumbnail" />
</RelativeLayout>
</FrameLayout>
res/layout/status_bar_no_recent_apps.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:background="@drawable/status_bar_recents_background_solid" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<TextView android:textSize="20.0dip" android:textColor="@color/status_bar_recents_app_label_color" android:gravity="center_horizontal" android:layout_gravity="center" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/status_bar_no_recent_apps" />
</FrameLayout>
=================================================
-- Recompile SystemUI.apk
Code:
apktool b SystemUI SystemUI2.apk
-- Recompile framework-res.apk
Code:
apktool b framework-res framework-res2.apk
-- Open SystemUI.apk and SystemUI2.apk with 7-zip. Select open archive.
-- Delete resources.arsc, classes.dex and res folder from original SystemUI.apk
-- Copy resources.arsc, classes.dex and res folder from SystemUI2.apk and paste them into the SystemUI.apk archive.[/COLOR]
-- Now, here, i usually use Apk-Multitool but you can use CMD too. Now you need to zipalign SystemUI.apk. There are different methods, best is to download APkMultiTool and do it. Or if you have the SDK, you can do it directly through command prompt or terminal.
-- Connect phone to PC.
-- Copy SystemUI.apk and framework-res2.apk and rename framework-res2.apk to framework-res.apk.
--Move SystemUI.apk to system/app and set rw-r--r-- permissions. Move framework-res.apk to system/framework and set rw-r--r-- permissions.
-- Reboot and you're done.
Credits to Evilisto and others listed in his credits
Screenshot please?
Enviado desde mi GT-I9100 usando Tapatalk 2
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Which Jellybean does this work on; 4.1 or 4.2, if there would be any difference in the procedure, it would be nice if you could make that known
jhtfarquhar said:
Which Jellybean does this work on; 4.1 or 4.2, if there would be any difference in the procedure, it would be nice if you could make that known
Click to expand...
Click to collapse
I've tried with 4.1.x, you could try with 4.2 and tell me if it works..
Can't recompile
I need help, I have verizon galaxy nexus with CM10.1 nightly and I can't recompile apks with TickleMyAndroid, even if I dont change anything!!!
kouta77 said:
I need help, I have verizon galaxy nexus with CM10.1 nightly and I can't recompile apks with TickleMyAndroid, even if I dont change anything!!!
Click to expand...
Click to collapse
Try apktool 1.5.1
Cheers,
K.A.
When I am recompiling the apks for my Nexus 4 (using CM10.1) I get the errors, do you know
Code:
Ryan-McKinneys-MacBook-Pro-2:Mod RyanMcK$ apktool b SystemUI SystemUI2.apk
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
/Users/RyanMcK/Desktop/Mod/SystemUI/res/layout/status_bar_recent_panel.xml:5: error: Error: No resource found that matches the given name (at 'id' with value '@id/recents_transition_background').
/Users/RyanMcK/Desktop/Mod/SystemUI/res/layout/status_bar_recent_panel.xml:7: error: Error: No resource found that matches the given name (at 'id' with value '@id/recents_transition_placeholder_icon').
/Users/RyanMcK/Desktop/Mod/SystemUI/res/layout-land/status_bar_recent_panel.xml:5: error: Error: No resource found that matches the given name (at 'id' with value '@id/recents_transition_background').
/Users/RyanMcK/Desktop/Mod/SystemUI/res/layout-land/status_bar_recent_panel.xml:7: error: Error: No resource found that matches the given name (at 'id' with value '@id/recents_transition_placeholder_icon').
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, /var/folders/m_/jvrkxq0n7dlg81pnltdqljt00000gq/T/APKTOOL411786079513505054.tmp, -0, arsc, -I, /Users/RyanMcK/Library/apktool/framework/1.apk, -S, /Users/RyanMcK/Desktop/Mod/SystemUI/res, -M, /Users/RyanMcK/Desktop/Mod/SystemUI/AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, /var/folders/m_/jvrkxq0n7dlg81pnltdqljt00000gq/T/APKTOOL411786079513505054.tmp, -0, arsc, -I, /Users/RyanMcK/Library/apktool/framework/1.apk, -S, /Users/RyanMcK/Desktop/Mod/SystemUI/res, -M, /Users/RyanMcK/Desktop/Mod/SystemUI/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, /var/folders/m_/jvrkxq0n7dlg81pnltdqljt00000gq/T/APKTOOL411786079513505054.tmp, -0, arsc, -I, /Users/RyanMcK/Library/apktool/framework/1.apk, -S, /Users/RyanMcK/Desktop/Mod/SystemUI/res, -M, /Users/RyanMcK/Desktop/Mod/SystemUI/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
Wow, Looks Good..
Nice, I Like It,,,.
Btw, I dont Have device running Jb or ics...
qurit said:
When I am recompiling the apks for my Nexus 4 (using CM10.1) I get the errors, do you know
Code:
Ryan-McKinneys-MacBook-Pro-2:Mod RyanMcK$ apktool b SystemUI SystemUI2.apk
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
/Users/RyanMcK/Desktop/Mod/SystemUI/res/layout/status_bar_recent_panel.xml:5: error: Error: No resource found that matches the given name (at 'id' with value '@id/recents_transition_background').
/Users/RyanMcK/Desktop/Mod/SystemUI/res/layout/status_bar_recent_panel.xml:7: error: Error: No resource found that matches the given name (at 'id' with value '@id/recents_transition_placeholder_icon').
/Users/RyanMcK/Desktop/Mod/SystemUI/res/layout-land/status_bar_recent_panel.xml:5: error: Error: No resource found that matches the given name (at 'id' with value '@id/recents_transition_background').
/Users/RyanMcK/Desktop/Mod/SystemUI/res/layout-land/status_bar_recent_panel.xml:7: error: Error: No resource found that matches the given name (at 'id' with value '@id/recents_transition_placeholder_icon').
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, /var/folders/m_/jvrkxq0n7dlg81pnltdqljt00000gq/T/APKTOOL411786079513505054.tmp, -0, arsc, -I, /Users/RyanMcK/Library/apktool/framework/1.apk, -S, /Users/RyanMcK/Desktop/Mod/SystemUI/res, -M, /Users/RyanMcK/Desktop/Mod/SystemUI/AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, /var/folders/m_/jvrkxq0n7dlg81pnltdqljt00000gq/T/APKTOOL411786079513505054.tmp, -0, arsc, -I, /Users/RyanMcK/Library/apktool/framework/1.apk, -S, /Users/RyanMcK/Desktop/Mod/SystemUI/res, -M, /Users/RyanMcK/Desktop/Mod/SystemUI/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, /var/folders/m_/jvrkxq0n7dlg81pnltdqljt00000gq/T/APKTOOL411786079513505054.tmp, -0, arsc, -I, /Users/RyanMcK/Library/apktool/framework/1.apk, -S, /Users/RyanMcK/Desktop/Mod/SystemUI/res, -M, /Users/RyanMcK/Desktop/Mod/SystemUI/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
Click to expand...
Click to collapse
Read these lines :
Code:
/Users/RyanMcK/Desktop/Mod/SystemUI/res/layout/status_bar_recent_panel.xml:5: error: Error: No resource found that matches the given name (at 'id' with value '@id/recents_transition_background').
/Users/RyanMcK/Desktop/Mod/SystemUI/res/layout/status_bar_recent_panel.xml:7: error: Error: No resource found that matches the given name (at 'id' with value '@id/recents_transition_placeholder_icon').
/Users/RyanMcK/Desktop/Mod/SystemUI/res/layout-land/status_bar_recent_panel.xml:5: error: Error: No resource found that matches the given name (at 'id' with value '@id/recents_transition_background').
/Users/RyanMcK/Desktop/Mod/SystemUI/res/layout-land/status_bar_recent_panel.xml:7: error: Error: No resource found that matches the given name (at 'id' with value '@id/recents_transition_placeholder_icon').
Missing ids. Add the missing ids to values/ids.xml
Has anybody verified if this works on 4.2?
i followed this guide and didn't get any errors while recompiling but only the landscape works properly
look what happened to the portrait view
i am using galaxy s advance JB 4.1.2 stock rooted samsung official
its works bro, in my JB 4.1.2
thanks for your guide.
nice view
Can this guide work on 4.4.2 KitKat?
Inviato dal mio Nexus 4 con Tapatalk 2
You should make this into an xposed Framework module
Sent from my SM-N900V using Tapatalk
117micc said:
You should make this into an xposed Framework module
Sent from my SM-N900V using Tapatalk
Click to expand...
Click to collapse
I would love to see an xposed like that . But I don't think it's possible
≪███▓▒Sℵα℘℘εD ₣ℜ✪ℳ ℳψ JεℓℓySℵα℘ ℜ✪ℳ™▒▓███≫
Will this work on KitKat ?
H!
not work on cm10.1 :crying:
If you're going to make it possible ob Kitkat, I'll be one of those guys who wait
Sent from my GT-I8160 using Tapatalk
I vote for an xposed framework too
Sent from my Nexus 4 using Tapatalk
Recently I have searched in xda a lot on this topic... but unfortunately no proper guide i got... :silly::silly: so i thought to put a small guide about this for those who are searching this like me...
I don't know if i am putting this in right place... i request to the moderators if this topic doesn't suite in this area please move it to the right place...
In cm10 or aosp based roms (4.2 onwards)... there is no background_holo_dark.png in framework-res/drawable-nodpi folder which used to be the black background image of settings background....so till 4.1.. it was easy to replace the black/dark background by replacing the png file with any of your choice using 7zip file manager.... :good::good::good:
but from 4.2 google has changed it's policy about this... so it is no longer changing the png because this black/dark background color is hard coded as gradient color in framework-res/drawable/background_holo_dark.xml. ..
To change this and revert back to the image format.... you need to edit the abovementioned xml file....
steps::
1) Use apktool to decompile ur framework-res.apk
2) Go to framework-res/drawable/
3) Open background_holo_dark.xml using notepad++
you can see these lines as quoted below::
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android="http://schemas.android.com/apk/res/android">
<gradient android:startColor="#ff000000" android:endColor="#ff272d33" android:angle="270.0" />
</shape>
Click to expand...
Click to collapse
4) Delete all the red Lines and replace with blue lines as shown here::
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_height="match_parent"
android: orientation="vertical" android:background="@drawable/background_holo_dark">
</LinearLayout>
Click to expand...
Click to collapse
5) save the file
6) Now create any png file which you want to put as background... remember to keep the size of the png according to your screen display resolution (for an example.. my device's screen resolution is 540x960[qhd] ... so i created that png keeping image size 540x960) and rename it to background_holo_dark.png and put it in framework-res/hdpi or framework-res/xhdpi or framework-res/xxhdpi depending on your phone..
7) recompile your framework-res.apk
8) Done!!
Now you can copy the new framework-res.apk to /system/framework using any root file manager and set the proper permission... or else you can push this framework-res.apk to /system/framework using adb and set chmod 777... and reboot your phone... you are done.....!!!! :laugh::laugh:
Screenshot::
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
APKtool wont recompile after changing the XML
DonDizzurp said:
APKtool wont recompile after changing the XML
Click to expand...
Click to collapse
post the errors or ss while recompiling apk...
ron.gt said:
post the errors or ss while recompiling apk...
Click to expand...
Click to collapse
I found if you
1. pull framework-res.apk
2. using 7-zip, delete background_holo_dark.xml
3. place background_holo_dark.png in the nodpi folder
4. push it back and change permissions to 644
it will work.. no need to decompile and mess with xml files
DonDizzurp said:
I found if you
1. pull framework-res.apk
2. using 7-zip, delete background_holo_dark.xml
3. place background_holo_dark.png in the nodpi folder
4. push it back and change permissions to 644
it will work.. no need to decompile and mess with xml files
Click to expand...
Click to collapse
In that case u can only use image files... can't use gradient colors... using my method... u can always use image or gradient color whatever u feel good....
Please help
C:\Users\Jader\Desktop\APK Tool>apktool b framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
C:\Users\Jader\Desktop\APK Tool\framework-res\res\drawable\background_holo_dark.
xml:4: error: Error parsing XML: not well-formed (invalid token)
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 17, --target-sdk-version, 17, -F, C:\Users\Jader\AppData\Local\Temp
\APKTOOL7276255836522435344.tmp, -x, -0, arsc, -S, C:\Users\Jader\Desktop\APK To
ol\framework-res\res, -M, C:\Users\Jader\Desktop\APK Tool\framework-res\AndroidM
anifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, C:
\Users\Jader\AppData\Local\Temp\APKTOOL7276255836522435344.tmp, -x, -0, arsc, -S
, C:\Users\Jader\Desktop\APK Tool\framework-res\res, -M, C:\Users\Jader\Desktop\
APK Tool\framework-res\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 17, --target-sdk-version, 17, -F, C:\Users\Jader\AppData\Local\Temp\A
PKTOOL7276255836522435344.tmp, -x, -0, arsc, -S, C:\Users\Jader\Desktop\APK Tool
\framework-res\res, -M, C:\Users\Jader\Desktop\APK Tool\framework-res\AndroidMan
ifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
Im having this error when im recompiling it
jaderxiii said:
C:\Users\Jader\Desktop\APK Tool>apktool b framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
C:\Users\Jader\Desktop\APK Tool\framework-res\res\drawable\background_holo_dark.
xml:4: error: Error parsing XML: not well-formed (invalid token)
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 17, --target-sdk-version, 17, -F, C:\Users\Jader\AppData\Local\Temp
\APKTOOL7276255836522435344.tmp, -x, -0, arsc, -S, C:\Users\Jader\Desktop\APK To
ol\framework-res\res, -M, C:\Users\Jader\Desktop\APK Tool\framework-res\AndroidM
anifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, C:
\Users\Jader\AppData\Local\Temp\APKTOOL7276255836522435344.tmp, -x, -0, arsc, -S
, C:\Users\Jader\Desktop\APK Tool\framework-res\res, -M, C:\Users\Jader\Desktop\
APK Tool\framework-res\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 17, --target-sdk-version, 17, -F, C:\Users\Jader\AppData\Local\Temp\A
PKTOOL7276255836522435344.tmp, -x, -0, arsc, -S, C:\Users\Jader\Desktop\APK Tool
\framework-res\res, -M, C:\Users\Jader\Desktop\APK Tool\framework-res\AndroidMan
ifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
Im having this error when im recompiling it
Click to expand...
Click to collapse
remove the space between android: orientation....... then compile...
ron.gt said:
remove the space between android: orientation....... then compile...
Click to expand...
Click to collapse
having same error while compiling........
elaborate how fix this,...
Avenger4droid said:
having same error while compiling........
elaborate how fix this,...
Click to expand...
Click to collapse
post ur stock framework-res.apk link.... i will try on my own....
ron.gt said:
post ur stock framework-res.apk link.... i will try on my own....
Click to expand...
Click to collapse
FRAMEWORK RES APK &STYLE .XML
I EDITED THE STYLES.XML ....AND TRIED TO COMPILE....GO THE ERROR
UR METHOD DID NOT WORK FOR ME
I ASKED A DEVOLOPER OF MY DEVICE[CANVAS 2] HE SAIS ME TO CHANGE IT
AND RECOMPILE...
Is there a solution for 4.3.1?
It's not working for my 4.2 rom.. I was able to decompile teh framework-res and then modify the xml and add the image then recompile it successfully. But then after flashing there was no change.. Still no background in settings.!
vejito said:
It's not working for my 4.2 rom.. I was able to decompile teh framework-res and then modify the xml and add the image then recompile it successfully. But then after flashing there was no change.. Still no background in settings.!
Click to expand...
Click to collapse
With 4.2 you can simply delete the background_holo_dark.xml file and put your background_holo_dark.png file into /drawable-nodpi
With 4.3 this wont work
DonDizzurp said:
With 4.2 you can simply delete the background_holo_dark.xml file and put your background_holo_dark.png file into /drawable-nodpi
With 4.3 this wont work
Click to expand...
Click to collapse
That too didn't work.. What worked was modifying the style.xml file in res/values folder.
vejito said:
That too didn't work.. What worked was modifying the style.xml file in res/values folder.
Click to expand...
Click to collapse
How did you do it? I followed a guide on XDA but it failed to compile.
Sent from my Galaxy Nexus using Tapatalk
DonDizzurp said:
How did you do it? I followed a guide on XDA but it failed to compile.
Sent from my Galaxy Nexus using Tapatalk
Click to expand...
Click to collapse
Here's the process:
1. Decompile the Framework-res.apk
2. Copy the image you want to use as background named as background_holo_dark.png to res/drawable-nodpi/
3. Open the file: res/values/styles.xml
4. Find the line:
Code:
<item name="windowBackground">@drawable/screen_background_selector_dark</item>
5. Here replace the text "screen_background_selector_dark" with "background_holo_dark"
6. All done now recompile and push.
vejito said:
Here's the process:
1. Decompile the Framework-res.apk
2. Copy the image you want to use as background named as background_holo_dark.png to res/drawable-nodpi/
3. Open the file: res/values/styles.xml
4. Find the line:
Code:
<item name="windowBackground">@drawable/screen_background_selector_dark</item>
5. Here replace the text "screen_background_selector_dark" with "background_holo_dark"
6. All done now recompile and push.
Click to expand...
Click to collapse
I followed a guide I found on XDA and it worked
Thanks for the help anyway
Guys, any idea to get transparent notfication bar on galaxy s duos gt-s7562 ?????
Sent from my GT-S7562 using XDA Premium 4 mobile app
AlfasPeralassery said:
Guys, any idea to get transparent notfication bar on galaxy s duos gt-s7562 ?????
Sent from my GT-S7562 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
u can try gravitybox or xblast....
ron.gt said:
u can try gravitybox or xblast....
Click to expand...
Click to collapse
Gravity box and xblast didn't work on my device .
Sent from my GT-S7562 using XDA Premium 4 mobile app
Hello, this is my first thread
As you guys know, all of status bar icons in lollipop was hidden by google. There's no .png image in drawable folder for battery icon, signal, etc. That means, we're not able to change it with another image. But finally, i'm sucessfully change it. Now, we can say good bye to that annoying battery icon (yes, this tutorial is for kitkat too). Lets move to the tutorial.
Sorry for my bad english.
WHAT YOU NEED:
1). Brain
2). Patient
3).Apktool
4). Systemui.apk
5). Some .png images.
1). HOW TO CHANGE THAT ANNOYING BATTERY IMAGE?
Go to THIS thread. This guy will help you. All credit goes to him.
2). HOW TO CHANGE ANOTHER IMAGE ON YOUR STATUS BAR:
-). Decompile your Systemui.apk
-). Go to res/drawable.
-) In this folder, you will see the xml files for any icons on your status bar.
-). Delete those xml file. For example, if you wanna change the signal icon, just delete that stat_sys_signal_0, stat_sys_signal_0_fully, bla bla bla. Remember that xml file name before you delete it (Important!?).
-). Put that .png images for replacing xml files that you was deleted before on any drawable folder that fits your resolution (mine is drawable-hdpi). Ex: if you delete that stat_sys_signal_0 on your drawable folder, then you have to put that stat_sys_signal_0.png to replace it.
-). After you finish replacing all xml files with .png images, recompile it.
-). Don't forget to sign it and push into your system.
-). Done!
Here's my result on my device running cm12 for taoshan:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Can you share your SystemUI? I am taoshan user too
thanks
Bro can you share this battery icons ?
slir
upload ui plzzz
whychand said:
Hello, this is my first thread
As you guys know, all of status bar icons in lollipop was hidden by google. There's no .png image in drawable folder for battery icon, signal, etc. That means, we're not able to change it with another image. But finally, i'm sucessfully change it. Now, we can say good bye to that annoying battery icon (yes, this tutorial is for kitkat too). Lets move to the tutorial.
Sorry for my bad english.
WHAT YOU NEED:
1). Brain
2). Patient
3).Apktool
4). Systemui.apk
5). Some .png images.
1). HOW TO CHANGE THAT ANNOYING BATTERY IMAGE?
Go to THIS thread. This guy will help you. All credit goes to him.
2). HOW TO CHANGE ANOTHER IMAGE ON YOUR STATUS BAR:
-). Decompile your Systemui.apk
-). Go to res/drawable.
-) In this folder, you will see the xml files for any icons on your status bar.
-). Delete those xml file. For example, if you wanna change the signal icon, just delete that stat_sys_signal_0, stat_sys_signal_0_fully, bla bla bla. Remember that xml file name before you delete it (Important!?).
-). Put that .png images for replacing xml files that you was deleted before on any drawable folder that fits your resolution (mine is drawable-hdpi). Ex: if you delete that stat_sys_signal_0 on your drawable folder, then you have to put that stat_sys_signal_0.png to replace it.
-). After you finish replacing all xml files with .png images, recompile it.
-). Don't forget to sign it and push into your system.
-). Done!
Here's my result on my device running cm12 for taoshan:
Click to expand...
Click to collapse
@whychand can you upload your systemui ?
or statusbar icon ?
thanks
Thanks for the guide. I'm trying it now
Hope this process of decompile & recompile SystemUI will be simplified via xposed modules once xposed framework is working on lollipop
hi
reversegear said:
Thanks for the guide. I'm trying it now
Hope this process of decompile & recompile SystemUI will be simplified via xposed modules once xposed framework is working on lollipop
Click to expand...
Click to collapse
Dis u try this? If yes plz let me know did it work for u?
rajeshnitk said:
Dis u try this? If yes plz let me know did it work for u?
Click to expand...
Click to collapse
actually im interested in battery mods. for other components i use CM12 Themes
tried this guide http://forum.xda-developers.com/android/themes/how-to-change-battery-icon-kitkat-rom-t2919361/ and struck in this
Code:
!! You will do it manually so find your last drawable hex code and continue to it.. Then save & close..
still trying thank you for the reminder
reversegear said:
actually im interested in battery mods. for other components i use CM12 Themes
tried this guide http://forum.xda-developers.com/android/themes/how-to-change-battery-icon-kitkat-rom-t2919361/ and struck in this
Code:
!! You will do it manually so find your last drawable hex code and continue to it.. Then save & close..
still trying thank you for the reminder
Click to expand...
Click to collapse
Dont worry about this open public.xml and search drawable and the last drawable you get is your code
Tech N You said:
Dont worry about this open public.xml and search drawable and the last drawable you get is your code
Click to expand...
Click to collapse
i'm bit confused
can you help me in determining of hex code
ive attached my public.xml file
reversegear said:
i'm bit confused
can you help me in determining of hex code
ive attached my public.xml file
Click to expand...
Click to collapse
This your last drawable code <public type="drawable" name="APKTOOL_DUMMY_00fb" id="0x7f0200fb" />
Copy and paste these codes just after the above line highlighted in bold. Search for the above line in bold using Ctrl+F and just after that paste these codes.
Code:
<public type="drawable" name="stat_sys_battery" id="0x7f0200fc" />
<public type="drawable" name="stat_sys_battery_charge" id="0x7f0200fbd" />
it should look like this in your public.xml The bold part in this should be added where I added.
Code:
<public type="drawable" name="APKTOOL_DUMMY_0039" id="0x7f020039" />
<public type="drawable" name="APKTOOL_DUMMY_00ee" id="0x7f0200ee" />
<public type="drawable" name="APKTOOL_DUMMY_00f8" id="0x7f0200f8" />
<public type="drawable" name="APKTOOL_DUMMY_00fb" id="0x7f0200fb" />
[B]<public type="drawable" name="stat_sys_battery" id="0x7f0200fc" />
<public type="drawable" name="stat_sys_battery_charge" id="0x7f0200fd" />[/B]
<public type="mipmap" name="ic_daydreams" id="0x7f030000" />
<public type="mipmap" name="ic_launcher_dreams" id="0x7f030001" />
<public type="layout" name="app_circle_sidebar" id="0x7f040000" />
<public type="layout" name="carrier_label" id="0x7f040001" />
<public type="layout" name="circle_list_item" id="0x7f040002" />
Hope this helps. Hit thanks if I helped.
Tech N You said:
This your last drawable code <public type="drawable" name="APKTOOL_DUMMY_00fb" id="0x7f0200fb" />
Copy and paste these codes just after the above line highlighted in bold. Search for the above line in bold using Ctrl+F and just after that paste these codes.
Code:
<public type="drawable" name="stat_sys_battery" id="0x7f0200fc" />
<public type="drawable" name="stat_sys_battery_charge" id="0x7f0200fbd" />
it should look like this in your public.xml The bold part in this should be added where I added.
Code:
<public type="drawable" name="APKTOOL_DUMMY_0039" id="0x7f020039" />
<public type="drawable" name="APKTOOL_DUMMY_00ee" id="0x7f0200ee" />
<public type="drawable" name="APKTOOL_DUMMY_00f8" id="0x7f0200f8" />
<public type="drawable" name="APKTOOL_DUMMY_00fb" id="0x7f0200fb" />
[B]<public type="drawable" name="stat_sys_battery" id="0x7f0200fc" />
<public type="drawable" name="stat_sys_battery_charge" id="0x7f0200fd" />[/B]
<public type="mipmap" name="ic_daydreams" id="0x7f030000" />
<public type="mipmap" name="ic_launcher_dreams" id="0x7f030001" />
<public type="layout" name="app_circle_sidebar" id="0x7f040000" />
<public type="layout" name="carrier_label" id="0x7f040001" />
<public type="layout" name="circle_list_item" id="0x7f040002" />
Hope this helps. Hit thanks if I helped.
Click to expand...
Click to collapse
But same code already available in this lines
Code:
<public type="drawable" name="ic_qs_signal_g" id="0x7f0200fc" />
<public type="drawable" name="ic_qs_signal_h" id="0x7f0200fd" />
thanks I finally did it...
Thanks bro
I am not able to decompile lollipop system apks. I get this:
[*] _INPUT_APK\framework-res.apk
decompiling _INPUT_APK\framework-res.apk...
I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: Could not decode arsc file
at brut.androlib.res.decoder.ARSCDecoder.decode(Unknown Source)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(Unknown Source)
at brut.androlib.res.AndrolibResources.loadMainPkg(Unknown Source)
at brut.androlib.res.AndrolibResources.getResTable(Unknown Source)
at brut.androlib.Androlib.getResTable(Unknown Source)
at brut.androlib.ApkDecoder.getResTable(Unknown Source)
at brut.androlib.ApkDecoder.decode(Unknown Source)
at brut.apktool.Main.cmdDecode(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
Caused by: java.io.IOException: Expected: 0x001c0001, got: 0x00000000
at brut.util.ExtDataInput.skipCheckInt(Unknown Source)
at brut.androlib.res.decoder.StringBlock.read(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readTable(Unknown Source)
... 9 more
[*] _INPUT_APK\SystemUI.apk
decompiling _INPUT_APK\SystemUI.apk...
I: Baksmaling...
I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: Could not decode arsc file
at brut.androlib.res.decoder.ARSCDecoder.decode(Unknown Source)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(Unknown Source)
at brut.androlib.res.AndrolibResources.loadMainPkg(Unknown Source)
at brut.androlib.res.AndrolibResources.getResTable(Unknown Source)
at brut.androlib.Androlib.getResTable(Unknown Source)
at brut.androlib.ApkDecoder.getResTable(Unknown Source)
at brut.androlib.ApkDecoder.decode(Unknown Source)
at brut.apktool.Main.cmdDecode(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
Caused by: java.io.IOException: Expected: 0x001c0001, got: 0x00000000
at brut.util.ExtDataInput.skipCheckInt(Unknown Source)
at brut.androlib.res.decoder.StringBlock.read(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readTable(Unknown Source)
... 9 more
Click to expand...
Click to collapse
whychand said:
Hello, this is my first thread
As you guys know, all of status bar icons in lollipop was hidden by google. There's no .png image in drawable folder for battery icon, signal, etc. That means, we're not able to change it with another image. But finally, i'm sucessfully change it. Now, we can say good bye to that annoying battery icon (yes, this tutorial is for kitkat too). Lets move to the tutorial.
Sorry for my bad english.
WHAT YOU NEED:
1). Brain
2). Patient
3).Apktool
4). Systemui.apk
5). Some .png images.
1). HOW TO CHANGE THAT ANNOYING BATTERY IMAGE?
Go to THIS thread. This guy will help you. All credit goes to him.
2). HOW TO CHANGE ANOTHER IMAGE ON YOUR STATUS BAR:
-). Decompile your Systemui.apk
-). Go to res/drawable.
-) In this folder, you will see the xml files for any icons on your status bar.
-). Delete those xml file. For example, if you wanna change the signal icon, just delete that stat_sys_signal_0, stat_sys_signal_0_fully, bla bla bla. Remember that xml file name before you delete it (Important!?).
-). Put that .png images for replacing xml files that you was deleted before on any drawable folder that fits your resolution (mine is drawable-hdpi). Ex: if you delete that stat_sys_signal_0 on your drawable folder, then you have to put that stat_sys_signal_0.png to replace it.
-). After you finish replacing all xml files with .png images, recompile it.
-). Don't forget to sign it and push into your system.
-). Done!
Here's my result on my device running cm12 for taoshan:
Click to expand...
Click to collapse
reversegear said:
Thanks for the guide. I'm trying it now
Hope this process of decompile & recompile SystemUI will be simplified via xposed modules once xposed framework is working on lollipop
Click to expand...
Click to collapse
pls my android version is 2.3.6 but am running on a lollipop custom rom.can i also use this tut for theming my statusbar?
anyone know how to shift the signal icon to left fence, to close to the battery icon, im using cm12
thanks.
nilanko said:
I am not able to decompile lollipop system apks. I get this:
Click to expand...
Click to collapse
Did you load your framework-res.apk before decompiling?
bwar85 said:
Did you load your framework-res.apk before decompiling?
Click to expand...
Click to collapse
Thanks for response but all I needed was the new apktool, I was using an older one..
Where can i find the icon pack that are in the op
Please name icons pack
---------- Post added at 07:32 PM ---------- Previous post was at 07:19 PM ----------
what icon pack is that?
Hi Guys, This is a guide to add own theme action bar, background, list separators, etc) in any system/user apps like settings, contacts, mms , etc. Which doesn't have own theme , they are controlled by framework-res.apk
I have used it in Kitkat and Jellybean, not sure about other versions :silly:
Let's start
Requirements -
Apktool
Text editor
Patience
ADD OWN ACTION BAR
1. Decompile the app in which you wanna add your action bar. I'll take settings.apk
2. Open androidmanifest.xml
Search for <application
And scroll down, u'll find android:theme
In my Androidmanifest it is "android:theme="@style/Theme.Settings" it is different in all apps. Copy the theme that is Theme.Settings in my app.
3. Now open styles.xml and search whatever you copied. In my case it is "Theme.Settings"
4. Now add the following Red color highlighted lines.
Code:
<style name="Theme.Settings" parent="@android:style/Theme.Holo">
[COLOR="Red"]<item name="android:actionBarStyle">@style/Widget.Holo.Light.ActionBar.Solid.Inverse</item>[/COLOR]
5. Add the following codes below before </resources>
Code:
<style name="Widget.Holo.Light.ActionBar.Solid.Inverse" parent="@android:style/Widget.DeviceDefault.Light.ActionBar.Solid.Inverse">
<item name="android:background">@drawable/ab_solid_dark_holo</item>
<item name="android:displayOptions">showTitle</item>
<item name="android:titleTextStyle">@style/TextAppearance.Holo.Widget.ActionBar.Title.Inverse</item>
<item name="android:backgroundSplit">@drawable/ab_bottom_solid_dark_holo</item>
</style>
<style name="TextAppearance.Holo.Widget.ActionBar.Title.Inverse" parent="@android:style/TextAppearance.Holo.Widget.ActionBar.Title.Inverse">
<item name="android:icon">@android:color/transparent</item>
<item name="android:textSize">17.0dip</item>
<item name="android:textStyle">bold</item>
<item name="android:textColor">#ffffffff</item>
</style>
6. Now copy ur desired pngs in drawable-hdpi and change their their name to ab_solid_dark_holo and ab_bottom_solid_dark_holo
- ab_solid_dark_holo is for action bar and ab_bottom_solid_dark_holo for bottom action bar.
- <item name="android:icon">@android:color/transparent</item> is for making ur apps's icon transparent, if you wanna make it visible then don't add this line..
7. If u don't wanna add pngs and copy following red color highlighed codes to drawables.xml , u'll get it in values folder.
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
[COLOR="Red"]<item type="drawable" name="ab_solid_dark_holo">#00000000</item>
<item type="drawable" name="ab_bottom_solid_dark_holo">#00000000</item>[/COLOR]
</resources>
- If u don't have drawables.xml then create it in values folder and copy all lines... :good:
I'll add more when I will get time..
Credits -
@vibhu0009
@Droidbuster
MAAaD
And of course me for creating it
Hit thanks if this guide is useful for you
Reserved
Reserved 2
i had this error when recompiling
I: Copying classes.dex file...
I: Building resources...
/sdcard/external_sd/Settings_src/res/values/styles.xml:57: error: Error: No resource found that matches the given name: attr 'android:actionBarStyle'.
/sdcard/external_sd/Settings_src/res/values/styles.xml:73: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.DeviceDefault.Light.ActionBar.Solid.Inverse'.
/sdcard/external_sd/Settings_src/res/values/styles.xml:77: error: Error: No resource found that matches the given name: attr 'android:backgroundSplit'.
/sdcard/external_sd/Settings_src/res/values/styles.xml:75: error: Error: No resource found that matches the given name: attr 'android:displayOptions'.
/sdcard/external_sd/Settings_src/res/values/styles.xml:76: error: Error: No resource found that matches the given name: attr 'android:titleTextStyle'.
/sdcard/external_sd/Settings_src/res/values/styles.xml:79: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.Holo.Widget.ActionBar.Title.Inverse'.
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [/data/data/per.pqy.apktool/lix/aapt4.4, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, /data/data/per.pqy.apktool/APKTOOL7101752027673499559.tmp, -I, ?/apktool/framework/1.apk, -I, ?/apktool/framework/2.apk, -S, /sdcard/external_sd/Settings_src/res, -M, /sdcard/external_sd/Settings_src/AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [/data/data/per.pqy.apktool/lix/aapt4.4, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, /data/data/per.pqy.apktool/APKTOOL7101752027673499559.tmp, -I, ?/apktool/framework/1.apk, -I, ?/apktool/framework/2.apk, -S, /sdcard/external_sd/Settings_src/res, -M, /sdcard/external_sd/Settings_src/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [/data/data/per.pqy.apktool/lix/aapt4.4, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, /data/data/per.pqy.apktool/APKTOOL7101752027673499559.tmp, -I, ?/apktool/framework/1.apk, -I, ?/apktool/framework/2.apk, -S, /sdcard/external_sd/Settings_src/res, -M, /sdcard/external_sd/Settings_src/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
itsraj011 said:
Hi Guys, This is a guide to add own theme action bar, background, list separators, etc) in any system/user apps like settings, contacts, mms , etc. Which doesn't have own theme , they are controlled by framework-res.apk
I have used it in Kitkat and Jellybean, not sure about other versions :silly:
Let's start
Requirements -
Apktool
Text editor
Patience
ADD OWN ACTION BAR
1. Decompile the app in which you wanna add your action bar. I'll take settings.apk
2. Open androidmanifest.xml
Search for <application
And scroll down, u'll find android:theme
In my Androidmanifest it is "android:theme="@style/Theme.Settings" it is different in all apps. Copy the theme that is Theme.Settings in my app.
3. Now open styles.xml and search whatever you copied. In my case it is "Theme.Settings"
4. Now add the following Red color highlighted lines.
Code:
<style name="Theme.Settings" parent="@android:style/Theme.Holo">
[COLOR="Red"]<item name="android:actionBarStyle">@style/Widget.Holo.Light.ActionBar.Solid.Inverse</item>[/COLOR]
5. Add the following codes below before </resources>
Code:
<style name="Widget.Holo.Light.ActionBar.Solid.Inverse" parent="@android:style/Widget.DeviceDefault.Light.ActionBar.Solid.Inverse">
<item name="android:background">@drawable/ab_solid_dark_holo</item>
<item name="android:displayOptions">showTitle</item>
<item name="android:titleTextStyle">@style/TextAppearance.Holo.Widget.ActionBar.Title.Inverse</item>
<item name="android:backgroundSplit">@drawable/ab_bottom_solid_dark_holo</item>
</style>
<style name="TextAppearance.Holo.Widget.ActionBar.Title.Inverse" parent="@android:style/TextAppearance.Holo.Widget.ActionBar.Title.Inverse">
<item name="android:icon">@android:color/transparent</item>
<item name="android:textSize">17.0dip</item>
<item name="android:textStyle">bold</item>
<item name="android:textColor">#ffffffff</item>
</style>
6. Now copy ur desired pngs in drawable-hdpi and change their their name to ab_solid_dark_holo and ab_bottom_solid_dark_holo
- ab_solid_dark_holo is for action bar and ab_bottom_solid_dark_holo for bottom action bar.
- <item name="android:icon">@android:color/transparent</item> is for making ur apps's icon transparent, if you wanna make it visible then don't add this line..
7. If u don't wanna add pngs and copy following red color highlighed codes to drawables.xml , u'll get it in values folder.
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
[COLOR="Red"]<item type="drawable" name="ab_solid_dark_holo">#00000000</item>
<item type="drawable" name="ab_bottom_solid_dark_holo">#00000000</item>[/COLOR]
</resources>
- If u don't have drawables.xml then create it in values folder and copy all lines... :good:
I'll add more when I will get time..
Credits -
@vibhu0009
@Droidbuster
MAAaD
And of course me for creating it
Hit thanks if this guide is useful for you
Click to expand...
Click to collapse
Very useful..
Find Error In Styles.xml