[Q] Problem recompiling custom apks? - Samsung Epic 4G Touch

So I am trying to make some edits to the bools.xml which is located in the values folder which gets recompiled into the resources.arsc file and apkmanager keeps throwing errors regarding public.xml values being declared but not defined (i am using maddogin's rom and want to remove CRT animations). My question is what do I need to do to keep the errors from occurring or how do I hex edit resources.arsc to turn the CRT animations off. I have found the animatescreenlights section in my hex editor but can't figure out what values to change to make the bool "true".

ericwgarza1 said:
So I am trying to make some edits to the bools.xml which is located in the values folder which gets recompiled into the resources.arsc file and apkmanager keeps throwing errors regarding public.xml values being declared but not defined (i am using maddogin's rom and want to remove CRT animations). My question is what do I need to do to keep the errors from occurring or how do I hex edit resources.arsc to turn the CRT animations off. I have found the animatescreenlights section in my hex editor but can't figure out what values to change to make the bool "true".
Click to expand...
Click to collapse
I could be wrong but doesn't it have a setting to turn off Crt animation built into it?

playya said:
I could be wrong but doesn't it have a setting to turn off Crt animation built into it?
Click to expand...
Click to collapse
It does, but it isn't functioning atm. I just want to know how to do this for my personal knowledge.

I know this is old, but wanted to post for future reference.
Don't use a hex editor. Just open in a regular text editor like Notepad.
Line 16 should read:
<bool name="config_animateScreenLights">true</bool>
Just change true to false:
<bool name="config_animateScreenLights">false</bool>

Related

[HOWTO] Transparent dialer, custom background for AOSP-lockscreen

I posted some screenshots a long time ago that show a transparent dialer and a custom background for the AOSP-lockscreen.
I’m tired of answering pm’s so for people who are familiar with apktool and xml-editing, here’s what to do.
Custom background for AOSP-lockscreen
Decompile framework-res.apk and open
keyguard_screen_tab_unlock
in res/layout.
In line 2 change
Code:
android:background="#70000000"
to
Code:
android:background="@drawable/default_wallpaper"
In line 15 you can change the position if the sliders if you want. Change
Code:
android:layout_marginBottom="80.0dip"
to
Code:
android:layout_marginBottom="0.0dip"
and you’ll find the sliders at the very bottom of the lockscreen.
Save and close.
Open res/drawable-hdpi(-v4) and delete default_wallpaper.jpg.
Go and find a wallpaper (480 x 800), rename to default_wallpaper.png and copy to res/drawable-hdpi(-v4).
Now recompile framework-res.apk and you’re done.
Be careful with using apktool, you’ll get problems with the latest version so I recommend to use apktool 1.3.1.
Transparent dialer
Decompile DialerTabActivity.apk and open
colors.xml
in res/values.
In line 36 change
Code:
<color name="tw_color002">#ff000000</color>
to
Code:
<color name="tw_color002">#00000000</color>
Save and close.
Open
styles.xml
in res/values.
Change line 3-6
Code:
<style name="DialtactsTheme" parent="@android:style/Theme">
<item name="android:windowNoTitle">true</item>
<item name="android:windowContentOverlay">@null</item>
</style>
to
Code:
<style name="DialtactsTheme" parent="@android:style/Theme.Wallpaper">
<item name="android:windowBackground">@drawable/call_default_btn_normal</item>
<item name="android:windowNoTitle">true</item>
</style>
Save and close.
Open
dialer_searchdialog_contents.xml
in res/layout.
In lines 7, 9, 12 and 14 change
Code:
android:textColor="@color/tw_color002"
to
Code:
android:textColor="@color/black"
Save and close.
Recompile DialerTabActivty.apk.
These files in res/drawable-hdpi have to be transparent:
call_dial_btn_normal.png
call_dial_btn_normal_h.png
call_dial_edit_btn_normal.png
call_dial_panel_bg.png
call_dial_panel_bg_01.png
call_dial_panel_bg_01_h.png
call_dial_panel_bg_02_h.png
You can now change your background in the dialer by editing/changing
call_default_btn_normal.9.png.
You might want to change the buttons (numbers, video-call,...) as well...
Edit:
found my screenshots...
http://forum.xda-developers.com/showpost.php?p=9428697&postcount=1162
Nice one! When I have time I will try it out, to make some new theme maybe...
how do you decompile an apk?
BlackDino said:
how do you decompile an apk?
Click to expand...
Click to collapse
first post
or people who are familiar with apktool
Click to expand...
Click to collapse
OP: Any way you could help?
All my builds are failing, am I missing something?
$:smali ***********$ ./apktool b DialerTabActivity/ DialerTabActivity2
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /var/folders/kd/kdNOA0YVGdiaUt9uZypokE+++TI/-Tmp-/APKTOOL6167853566269819461.tmp, -I, /Users/***********/apktool/framework/1.apk, -I, /Users/***********/apktool/framework/2.apk, -S, /Users/***********/smali/DialerTabActivity/res, -M, /Users/***********/smali/DialerTabActivity/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, /var/folders/kd/kdNOA0YVGdiaUt9uZypokE+++TI/-Tmp-/APKTOOL6167853566269819461.tmp, -I, /Users/***********/apktool/framework/1.apk, -I, /Users/***********/apktool/framework/2.apk, -S, /Users/***********/smali/DialerTabActivity/res, -M, /Users/***********/smali/DialerTabActivity/AndroidManifest.xml]
at brut.util.OS.exec(Unknown Source)
... 7 more
Caused by: java.io.IOException: Cannot run program "aapt": error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
at java.lang.Runtime.exec(Runtime.java:593)
at java.lang.Runtime.exec(Runtime.java:466)
... 8 more
Caused by: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:53)
at java.lang.ProcessImpl.start(ProcessImpl.java:91)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)
... 10 more
Click to expand...
Click to collapse
I am using framework-res.apk & twframework-res.apk
Am I missing any frameworks?
BlackDino said:
OP: Any way you could help?
All my builds are failing, am I missing something?
I am using framework-res.apk & twframework-res.apk
Am I missing any frameworks?
Click to expand...
Click to collapse
This one is interesting
...Cannot run program "aapt"...
Click to expand...
Click to collapse
You need aapt.exe
http://code.google.com/p/android-apktool/
Requirements:
JRE 1.6 (Java Runtime Environment)
aapt command in a PATH
basic knowledge of what is SDK, aapt, PATH, smali and Google search engine may be useful
Click to expand...
Click to collapse
Thanks man, guess i should follow the instructions
Followed the guide and was able to get a transparent background but only for the top portion. I edited the call_default_btn_normal.9.png to just be transparent. I started to mess with some of the png's and you can see that I made the dialer buttons black rather than transparent. I am guessing I need to leave the png's alone as there are transparent ones in the drawable folders and edit the correct xml's to attain a keyboard like the screen shots from the first post. Any tips on this?
Did you saved the transparency of the png files while editing? Did you correctly oatch the. 9.pngs after editing? Tis could be the problem.
jim_panse said:
Did you saved the transparency of the png files while editing? Did you correctly oatch the. 9.pngs after editing? Tis could be the problem.
Click to expand...
Click to collapse
I just erased the color in PS so there is nothing but the checkered background. Changed Mode to indexed 8/bit, Palette = Exact, Forced = None, Transparency is checked Options= None and saved as png.
Then I used Draw9Patch to draw a single row around the png and save9.
Should I be using an Alpha channel in PS? Sorry for my noobness
Oh, sorry.
I forgot to mention some pngs that have to be edited
call_dial_btn_normal.png
call_dial_btn_normal_h.png
call_dial_edit_btn_normal.png
call_dial_panel_bg.png
call_dial_panel_bg_01.png
call_dial_panel_bg_01_h.png
call_dial_panel_bg_02_h.png
I hope that's it...
You'll then have a transparent background.
You are the man !!!!! Nice Tutorial !
Also had to edit:
call_dial_btn03_normal.png
call_dial_btn01_normal.png
call_dial_btn01_normal_h_.png
call_dial_btn02_normal.png
call_dial_btn02_normal_h_.png
call_dial_btn04_normal_h_.png
Also I believe the dialer_tab_bg.png has to be modifed but I am too tired after night shift. Scheichuwe, thanks for posting this. I am quite enjoying messing around. It looks like you modified a lot of things in your custom dialer screen shot.
Yes, I really changed a lot and I obviously can't remember everything.
Sorry for that.
If you want to, you might have a look at this
http://www.android-hilfe.de/themes-fuer-samsung-galaxy-s/54195-theme-simple-dark-jpo.html
It's a german board but you'll find the download
Take a look at the dialer and take whatever you want...
scheichuwe said:
Yes, I really changed a lot and I obviously can't remember everything.
Sorry for that.
If you want to, you might have a look at this
http://www.android-hilfe.de/themes-fuer-samsung-galaxy-s/54195-theme-simple-dark-jpo.html
It's a german board but you'll find the download
Take a look at the dialer and take whatever you want...
Click to expand...
Click to collapse
Thanks scheichuwe! I am stuck at getting rid of the top background so I am glad you posted.
Cheers
scheichuwe said:
I posted some screenshots a long time ago that show a transparent dialer and a custom background for the AOSP-lockscreen.
I’m tired of answering pm’s so for people who are familiar with apktool and xml-editing, here’s what to do.
Custom background for AOSP-lockscreen
Decompile framework-res.apk and open
keyguard_screen_tab_unlock
in res/layout.
In line 2 change
Code:
android:background="#70000000"
to
Code:
android:background="@drawable/default_wallpaper"
In line 15 you can change the position if the sliders if you want. Change
Code:
android:layout_marginBottom="80.0dip"
to
Code:
android:layout_marginBottom="0.0dip"
and you’ll find the sliders at the very bottom of the lockscreen.
Save and close.
Open res/drawable-hdpi(-v4) and delete default_wallpaper.jpg.
Go and find a wallpaper (480 x 800), rename to default_wallpaper.png and copy to res/drawable-hdpi(-v4).
Now recompile framework-res.apk and you’re done.
Be careful with using apktool, you’ll get problems with the latest version so I recommend to use apktool 1.3.1.
Transparent dialer
Decompile DialerTabActivity.apk and open
colors.xml
in res/values.
In line 36 change
Code:
<color name="tw_color002">#ff000000</color>
to
Code:
<color name="tw_color002">#00000000</color>
Save and close.
Open
styles.xml
in res/values.
Change line 3-6
Code:
<style name="DialtactsTheme" parent="@android:style/Theme">
<item name="android:windowNoTitle">true</item>
<item name="android:windowContentOverlay">@null</item>
</style>
to
Code:
<style name="DialtactsTheme" parent="@android:style/Theme.Wallpaper">
<item name="android:windowBackground">@drawable/call_default_btn_normal</item>
<item name="android:windowNoTitle">true</item>
</style>
Save and close.
Open
dialer_searchdialog_contents.xml
in res/layout.
In lines 7, 9, 12 and 14 change
Code:
android:textColor="@color/tw_color002"
to
Code:
android:textColor="@color/black"
Save and close.
Recompile DialerTabActivty.apk.
These files in res/drawable-hdpi have to be transparent:
call_dial_btn_normal.png
call_dial_btn_normal_h.png
call_dial_edit_btn_normal.png
call_dial_panel_bg.png
call_dial_panel_bg_01.png
call_dial_panel_bg_01_h.png
call_dial_panel_bg_02_h.png
You can now change your background in the dialer by editing/changing
call_default_btn_normal.9.png.
You might want to change the buttons (numbers, video-call,...) as well...
Edit:
found my screenshots...
http://forum.xda-developers.com/showpost.php?p=9428697&postcount=1162
Click to expand...
Click to collapse
Wow! Finally I found you! I am enjoying a glass dialer, ad I really would like to edit my own one, but with some little variations to avoid lag in scrolling Logs and Favourites.
What are the images involved in the background of the tabs on top? I think I'll put them as default because the livewallpaper I use is dark, and I barely can see it through the trasparent dialerin those tabs.
Is therere a way to have different background images for each tab? I mean that I would like to have trasparento bg for Keypad, and black for Logs and Favourites.
If not, si there any possibility to create a modded image for the Logs and favourites tab when acrive so that they could be so big to have like a big black rectangle hanging underneath them so to get all over the trasparent bg, and so to give black bg underneath the Logs and Favourites scrolling???
I hope you understood.
Thank you.
The tabs are in twframework-res.apk and DialerTabActivity.apk.
Look for tw_tab in res/drawable-hdpi(-v4).
No, you can't have different backgrounds for each tab. But just have a look at logs and favorites
scheichuwe said:
The tabs are in twframework-res.apk and DialerTabActivity.apk.
Look for tw_tab in res/drawable-hdpi(-v4).
No, you can't have different backgrounds for each tab. But just have a look at logs and favorites
Click to expand...
Click to collapse
I don't follow you.
I have already tried and modded several dialers for me own, editing images and looking at the xml files you mention in this topic, but always using the one made from the dialer that I edited (same xml editings mentioned in you thread), but I need to have complete NON trasparent background in logs and farourites because it lags!!
With black backgrond it would not lag!
Is there a way to put a custon image or set a custom color as the background of the focused Logs and Favourites tabs?
I was thinking at something not square, but big so to go even under the listings under the tabs...
Otherwise inver the things: all black but custom image (dark trasparent grey) for Keypad so to have it trasparent.
thnx for the thread
now.,, is there anyway to change tab color to transparent ?
I ve tried modding every image ,, nothing changed !
so plz guide me
Finally found the thread what i'm looking for, nice share... thanks man.
Can some one tell me how to make Settings.apk transparent? thanks before

[Android] I8000 Theme's & Creating Theme's [UPDATED]

Tutorial & Theme's Download Hold On To Your Balls.
| How To Create You Own Theme. (There are images contain in the framework-res.apk Extract it using 7-Zip & edit it) [You Can Start Theme-ing now]
| How To Change Status Bar Font Color. Time Font Color: (Refer To Post: #2) | StatusBar Font Color - : (Refer To Post: #3)
| How To Get It Installed On Your I8000
- Basically its o2bupdate.tar.gz thingy.
File's Provided:
- Original Android 2.1(Eclair) Theme From Almar's android files [Beta1 Original Theme Extracted, Beta1 Original Framework-res.apk]
- Modified StatusBar Font Color: White/Black. [Statusbar - White, Statusbar - Black [Original] ]
- .... more will come
Requirement's To Start:
- Any photo editing software [Recommended **Adobe Photoshop/GIMP]
- Some files to work around with. [Smali Dex Compile&decompile, Context Editor, HxD Hex Editor]
- 7-Zip You will need it for some reason [You Will Understand Why Later]
- .... more will come
Smali Dex Compile & Decompile:
This small program is used generally for extensions that are .dex its a simple thing to use. (Refer To Post: #2)
Context Editor:
A program use to edit the file's that are found after using smali. (Refer To Post: #2)
Will Update More Soon.
Here are some screen-shots of what I've been working on:
Note: Please Ignore - (No Service)|Starhub. My sim got suspended for not paying bill's
There's so much that you can do but sadly im only a designer who designs theme. so with this info and file provided i hope you guys out there can do something better. Peace.
Please Take Note That Current Theme Won't Work On Beta 2, Only For Beta 1. I'm Currently working on Beta 2 File's. Will Update Soon.
How To Use Smali Dex Compile / DeCompile For classes.dex and Context Editor: [Changing Of Font Color Time On You Status Bar!]
Download This Files: [Smali Dex]
Normally I will place all my files to C:\Android\ for a new project. But you can choose anywhere you like that is at your own convenience.
1. You will need classes.dex from Service.jar - Extract it out using 7-Zip or WinRAR.
2. Once You have already done extracting classes.dex out put it in you project folder.
3. You can start following the steps below.
So lets start. Lets say i have already extracted all the file i've needed and placed it to my project folder here is what you need to do. Run CMD.
Type in cd C:\Android\ or where ever you project folder is located it. It should show you something like this once you've pressed ENTER.
[attachment=69743:1.png]
Okay lets move one, now here is what you need to check be sure that classes.dex is located inside the folder in order for you to start de-compiling the dex files.
Now Type in java -Xmx512M -jar baksmali.jar -o classout/ classes.dex
After pressing enter you should now get a classout folder inside you project folder.
[attachment=69746:2.png]
Now double click on the classout folder. [Do not close the CMD it will save you alot of time.] Inside the folder contains alot of files so lets cut it short with a photo:
Locate the file here: classout\com\android\server\status
Item will be: StatusBarIcon.smali
[attachment=69748:3.png]
Okay once you see the StatusBarIcon.smali we will now start using the Context Editor that is given on the first Post.
Right Click on StatusBarIcon.smali open with Context Editor or You could run context editor and just drag StatusBarIcon.smali into it.
You should get something like this:
[attachment=69752:4.png]
Now on Context Editor press CTRL+F and type color and press enter.
You should all be getting this paragraph that i've highlighted:
[attachment=69754:5.png]
Follow the following lines stated below: From original to edited.
Text Original:
Code:
.line 46
const/high16 v6, -0x100
invoke-virtual {v4, v6}, Landroid/widget/TextView;->setTextColor(I)V
Text Edited:
Code:
.line 46
const v6, -0x1
invoke-virtual {v4, v6}, Landroid/widget/TextView;->setTextColor(I)V
Once you are done, Save the file & close context editor. Go to your Project folder and rename your classes.dex to classes-old.dex You need to do this just incase you mess up some stuffs. After you have done with this go to cmd and type in java -Xmx512M -jar smali.jar classout/ -o classes.dex Press enter and now you'll get the new classes.dex
Here's what you need to do open service.jar with 7-Zip and drag the new classes.dex inside and save. You're done changing your status bar Time into white color. The next tutorial is changing your status bar text to white color [The Tricky Part].
To store the new service.jar you have compiled you can use ADB USB or o2bupdate.tar.gz your own convenience [I'll touch on a how to soon]
If your using o2bupdate.tar.gz place it in My Storage/ where haret is at and run haret. Let the o2bupdate do it stuffs & You'll get a white color time font something like this: [attachment=69760:tada.png]
Photo's Will Be Updated Soon.
How to use HxD Hex Editor: I Believe Most Of You Knows How To. (Changing Status Bar Font Color To White) Other colors may work to you can try.
Download Files: HxD Hex Editor 1.7.7.0
By now most of you should have the Framework-res.apk with you. Inside the apk contain images & XML for the android theme. You can mess around with the images & the xml.
But what i'm about to teach you all here is basically changing the font color of the status bar.
Go inside the framework-res folder that you have extracted. Go to this directory: framework-res\res\layout
Look for a file named status_bar.xml
[attachment=69761:1_1.png]
Now once you have found it. Open HxD Hex Editor and drag status_bar.xml into it.
Now once you have done that, press the search tab and click find 08 00 00 1C. change text string to hex value.
The first one should come out: [Now in the photo you see the red box Change it to FF FF FF.]
[attachment=69762:2_2.png]
We are not done yet. Do The same thing again search for 08 00 00 1C.
This is what you should get: [Now in the photo you see the red box Change it to FF FF FF.]
[attachment=69763:3_3.png]
One you change it save it but don't close it just yet. There's another few more steps you need to do.
Now search for 39 00 01 01.
You should get this: [Now in the photo you see the red box change it to 1C FF FF FF FF.]
[attachment=69764:4_4.png]
Now save it and close Hex editor. Open your framework-res.apk with 7-Zip and drag your edited Status_bar.xml in it and save.
Use o2bupdate.tar.gz to update or you can simply use adb usb. Remember if you use o2bupdate.tar.gz the should contain \system\framework\ in order for it to be updated. save goes to service jar.
Now this is what you should get after the update :
[attachment=69765:Tada_2.png]
Further Developement =D =D
Further Developement =D =D Further Developement =D =D

[Q] Apply transparency rosie.apk sense 3

Hello, I have 3 days trying to apply transparency to the sense rosie.apk 3.0 and it still fails.
I know I need to edit some xml apk, but I do not know what they are.
Please if someone could say that xml files are applying transparency.
Thanks in advance
a greeting
Forgive my groin but I use a translator .. jejeje
anxo79 said:
Hello, I have 3 days trying to apply transparency to the sense rosie.apk 3.0 and it still fails.
I know I need to edit some xml apk, but I do not know what they are.
Please if someone could say that xml files are applying transparency.
Thanks in advance
a greeting
Forgive my groin but I use a translator .. jejeje
Click to expand...
Click to collapse
You should post this in the Q and A section. Download one of my mods and decompile rosie.apk. Take my all_apps_view.xml in my layout folder and you can see the edits you need to make. Also values change colors and values hdpi colors.
This is the dev section not the q&a
But have a look at this thread: http://forum.xda-developers.com/showthread.php?t=1078621
It should be the same, i think.
regards
nickiberli said:
This is the dev section not the q&a
But have a look at this thread: http://forum.xda-developers.com/showthread.php?t=1078621
It should be the same, i think.
regards
Click to expand...
Click to collapse
So I've done is for the transparency of the dock bar, I wonder about the tranparent list of applications, but many thanks for your reply
klquicksall said:
You should post this in the Q and A section. Download one of my mods and decompile rosie.apk. Take my all_apps_view.xml in my layout folder and you can see the edits you need to make. Also values change colors and values hdpi colors.
Click to expand...
Click to collapse
thank you very much for your replies and forgive if this issue is not going in this section
There are different ways to the target, but here is the basic version (without custom addons of my custom Rosie).
1. Surprise - Decompile Rosie with apktool or apkmanager
2. Edit color.xml in values and values-hdpi folder
Bubble free Icon Text Background <color name="bubble_dark_background">#00191919</color> and <color name="bubble_text_shadowColor">#00000000</color>
Transparent App Drawer <color name="all_item_background">#00000000</color> and <color name="add_to_home_background">#00000000</color> (last one also in color.xml in values-hdpi folder)
2.a) 00 in the front is for Alpha Channel - that brings 100% Transparency. If you prefer semi transparent drawer, you can use 77, 88 or 99 (depends on your taste).
3. 4x5 App Drawer - edit intergers.xml in values folder
<integer name="allprogram_grid_rows">5</integer> and <integer name="allprogram_grid_columns">5</integer>
4. Smaller font in app drawer - edit application_boxed.xml
android:textSize="18.0px"
5. Compile and (if you use apkmanager) delete resources.arsc and layout folder in keep folder
In case you try it with 2.36 Rosie, you also need to edit launcher.smali
Change:
const/high16 v23, -0x100
to:
const/high16 v23, -0x6700
6. In order to change your dockbar, you need to decompile fusion.apk with m.10 editor and edit all necessary pngs there
he_stheone64 said:
There are different ways to the target, but here is the basic version (without custom addons of my custom Rosie).
1. Surprise - Decompile Rosie with apktool or apkmanager
2. Edit color.xml in values and values-hdpi folder
Bubble free Icon Text Background <color name="bubble_dark_background">#00191919</color> and <color name="bubble_text_shadowColor">#00000000</color>
Transparent App Drawer <color name="all_item_background">#00000000</color> and <color name="add_to_home_background">#00000000</color> (last one also in color.xml in values-hdpi folder)
2.a) 00 in the front is for Alpha Channel - that brings 100% Transparency. If you prefer semi transparent drawer, you can use 77, 88 or 99 (depends on your taste).
3. 4x5 App Drawer - edit intergers.xml in values folder
<integer name="allprogram_grid_rows">5</integer> and <integer name="allprogram_grid_columns">5</integer>
4. Smaller font in app drawer - edit application_boxed.xml
android:textSize="18.0px"
5. Compile and (if you use apkmanager) delete resources.arsc and layout folder in keep folder
In case you try it with 2.36 Rosie, you also need to edit launcher.smali
Change:
const/high16 v23, -0x100
to:
const/high16 v23, -0x6700
6. In order to change your dockbar, you need to decompile fusion.apk with m.10 editor and edit all necessary pngs there
Click to expand...
Click to collapse
thank you very much with this if it's clear that jejeje
Because we are very far if you do not invite a beer
XDXD

Problem with charge battery icon

Hi,
I have Minco V3, I would like to change the battery icon of this mod
https://www.dropbox.com/s/yng6akbnxnxxu98/ThunderStick-SAC-NoSearchButton-RLMenu.zip
With the icons contained in this zip: http://d-h.st/ssN
I followed this guide:
• Place your SystemUI.apk in place-apk-here-for-modding of your apktool/apkmanager folder
• Use apktool/apkmanager to extract the images (no need to decompile/compile) with option 1
• Look inprojects of your apktool/apkmanager folder for your SystemUI.apk
• Go to /res/drawable-xhdpi and replace the images with your favorite battery icon files.
• Zip the SystemUI.apk back with option 3 (as a system app)
• In place-apk-here-for-modding you should find an unsignedSystemUI.apk
• Rename it to SystemUI.apk and push it to /system/app (I have modified permissions to rw-r-r).
But systemUI go to crash and I have to restore the rom using nandbackup.
Is there something wrong in this procedure?
I have also noticed that the battery icons are provided in two different folders in the two zip files. drawable-hdpi instead of drawable-xhdpi. Could it be a problem?
thanks
up.. :angel:
If changing images in an APK file they need to have the same file name and be placed in the same directories as the images you wish to replace.
To move the menu button to the opposite side of the screen you need to decompile the APK, then edit the navigation_bar.xml file located in the res/layout folder.
Find lines containing
Code:
android:id="@id/menu"
Move these lines so that they are before what ever item is furthest to the left.
You can rearrange any items by using this same method.
Adding items how ever is more complicated as there needs to be smali additions.
Good luck, let me know if you need any more help. I will keep my responses in the forums so the knowledge can be shared. It took me a while to figure this stuff out as not too many people are willing to help out when it comes to teaching noobs. They forget we all started somewhere.
EDIT:
Oh yeah,
Don't use APK Manager, it is easier to use for some things but can really complicate things when problems arise.
If just replacing images, dont decompile anything, just open the APK using 7ZIP, then drag and drop image files directly in to the APK file. Don't unzip it to a folder, drag and drop.
Be certain all file names being added are replacing existing files with the same file names and types.
thank you! I changed the battery icons.
I'm trying to edit the xml file, but when I decompile and compile the file apk I have errors. i use apk manager and apk multitool.
error with apk manager 5.0.2
HTML:
I: Baksmaling...
I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x7f02002d drawable/ic_sysbar_ime_default, config=-xhdpi-v13
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:65)
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:58)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:196)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:165)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:130)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:105)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:82)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:48)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:315)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:50)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:43)
at brut.androlib.Androlib.getResTable(Androlib.java:44)
at brut.androlib.ApkDecoder.getResTable(ApkDecoder.java:148)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
at brut.apktool.Main.cmdDecode(Main.java:120)
at brut.apktool.Main.main(Main.java:57)
Looks like you have two instances of the same file in two different folders. Remove one of them.
First decompile the APK, with out making changes try to recompile it. If you still have errors. This may be a problem with APKTOOL, try a different version. If not you made the error when making modifications. Read the output
The very first line in the exception thread is the problem you need to work on.
Code:
Multiple resources: spec=0x7f02002d drawable/ic_sysbar_ime_default, config=-xhdpi-v13

[Q] How to edit Sony ICS Callscreen?

I'm trying to edit the positions of the graphics on this screen, but I can't find the specific strings in the code. I looked after the name of the different images and found them in the drawable-hdpi folder, but a string containing the filename does not exist!
I searched in framework-res.apk & SemcPhone.apk. I can change the graphics if I move them into the .apk's, but I want to change the location of the slider background for example. Can someone help me? Where do I have to start?
decompile "SemcPhone.apk",
Use:
$ astro grep
$ beyond compare
You can edit images via gimp, and move values via dimens.xml...

Categories

Resources