[Q] What files need to be changed when porting a theme? - HTC EVO 3D

I have been using Thyrus' GingerThyparancy theme for quite awhile now. Unfortunately the 2.3.4 update is incompatible with the theme and Thyrus is no longer supporting this theme for the EVO3D. I'd like to take a shot at making this compatible with 2.3.4 but I am not sure what files need to be changed. Can someone with theming experience or knowledge of how to do this try and point me in the right direction? THanks in advance.

mlin said:
I have been using Thyrus' GingerThyparancy theme for quite awhile now. Unfortunately the 2.3.4 update is incompatible with the theme and Thyrus is no longer supporting this theme for the EVO3D. I'd like to take a shot at making this compatible with 2.3.4 but I am not sure what files need to be changed. Can someone with theming experience or knowledge of how to do this try and point me in the right direction? THanks in advance.
Click to expand...
Click to collapse
the files most commonly changed are:
--core framework
/system/framework/framework-res.apk
/system/framework/com.htc.resouces.apk
/system/app/systemui.apk
/system/app/googleservicesframework.apk
--clock / lock ring
/system/app/fusion.apk
--lock screen
/system/app/idlescreen_base.apk
--apps
/system/app/browser.apk
/system/app/htcdialer.apk
/system/app/phone.apk
/system/app/mms.apk
/system/app/vending.apk
--setup
/system/app/htcsetupwizard.apk
--keyboard
/system/app/htc_ime.apk
--libs (keyboard predictive text/spell check)
/system/lib/libcpt9.so
/system/lib/libcpt9provider.so
/system/lib/libt9.so
depending on the theme, you would do some of these, all of these, or all of these and then some more...

chad.goodman said:
the files most commonly changed are:
--core framework
/system/framework/framework-res.apk
/system/framework/com.htc.resouces.apk
/system/app/systemui.apk
/system/app/googleservicesframework.apk
--clock / lock ring
/system/app/fusion.apk
--lock screen
/system/app/idlescreen_base.apk
--apps
/system/app/browser.apk
/system/app/htcdialer.apk
/system/app/phone.apk
/system/app/mms.apk
/system/app/vending.apk
--setup
/system/app/htcsetupwizard.apk
--keyboard
/system/app/htc_ime.apk
--libs (keyboard predictive text/spell check)
/system/lib/libcpt9.so
/system/lib/libcpt9provider.so
/system/lib/libt9.so
depending on the theme, you would do some of these, all of these, or all of these and then some more...
Click to expand...
Click to collapse
Ok, thanks you. Within those files is it just a matter of renaming .pngs to match the image I want to replace or do I need to edit .xml files as well?

Related

[ADV][DEV][MOD] Network/carrier removal

FOR NOOKIE FROYO ONLY
Usual disclaimers apply. Don't try this if you don't know what you are doing! I won't be responsible for any damage to your NC. This isn't worth taking risks if you're not an experienced user.
Thank you.
I've edited services.jar and android.policy.jar to:
- hide the (no) Signal icon from status bar
- hide Carrier info from lock screen
Both files need to be pushed to system/framework.
For devs interest, this is what is required:
Decompile .jars baksmali, compile with smali: "smali/baksmali". Google it.
To hide network icon on status bar:
In services.jar, find StatusBarPolicy.smali in /com/android/server/status/, change lines 611 to 615 from:
move-result-object v3
iput-object v3, p0, Lcom/android/server/status/StatusBarPolicy;->mPhoneIcon:Landroid/os/IBinder;
Click to expand...
Click to collapse
to:
move-result-object v3
invoke-virtual {p2, v3, v6}, Lcom/android/server/status/StatusBarService;->setIconVisibility(Landroid/os/IBinder;Z)V
iput-object v3, p0, Lcom/android/server/status/StatusBarPolicy;->mPhoneIcon:Landroid/os/IBinder;
Click to expand...
Click to collapse
To hide carrier info on lock screen:
In android.policy.jar, find LockScreen.smali in /com/android/internal/policy/impl/, change line 200 from:
const/4 v2, -0x1
Click to expand...
Click to collapse
to:
const/4 v2, -0x0
Click to expand...
Click to collapse
Have fun.
Sam
Great work!
where is the file?
Works for me!
[email protected]+950+thumbkeyboard+GBTheme=loving it
Files are available.
I downloaded smali/baksmali and did this procedure for nf 0.6.7. using the services.jar and android.policy.jar from nf 0.6.7 and everything went smoothly. When I push them back to the nook, it doesn't boot. When I use yours, the nook boots fine. Will using your files from a different build on nf 0.6.7 cause some problems down the road?
If these framework changes could be coupled with the status bar soft button mod
http://forum.xda-developers.com/showthread.php?t=932631
We could have the best of both worlds.
For those that need this to be as easy as possible:
Originally Posted by nookierookie
This worked for me -- with modified steps. I unzipped the files to my host pc, adb shell mounted system as r/w, shell'd into the device and renamed all 4 files that are going to be replaced in system/framework/ "whatever.jar.bak" ... and so on. Then I pushed the individual files from the OP's zipped archive and rebooted. First boot took a while for the OS to get going -- and I had to re-log-in to my google credentials (weird), but it seems to all be working really well at the moment.
Steps:
1. unzip OP's .zip to the default adb dir on your computer (or anywhere else, just know that when you're pushing those files with adb, you'll have to use the whole path ie: /Users/nookierookie/Desktop/framework.res instead of just framework.res)
2. from the command line on your host computer:
$ adb shell
# mount -o remount,rw /dev/block/mmcblk1p2 /system
# cd /system/framework/
# mv android.policy.jar android.policy.jar.bak
# mv services.jar services.jar.bak
#exit
$ adb push android.policy.jar /system/framework/android.policy.jar
$ adb push services.jar /system/framework/services.jar
$ adb reboot
chrisngrod:
Thanks. This worked. On my tablet I did lose screen rotation. Also, if you notice, the cellular network bars are there. Some people will probably not care for those since we have no radio obviously . The drop down status bar is small like the current, but does not have the gray background. You'll see if you install it. No FC issues noticed though. Almost there solution wise!
I went back to stock.
$ adb shell
# mount -o remount,rw /dev/block/mmcblk1p2 /system
# cd /system/framework/
# mv android.policy.jar.bak android.policy.jar
# mv services.jar.bak services.jar
#exit
adb reboot
Click to expand...
Click to collapse
Pretty much quoting from another status bar mod... The guts are what is important.
Worked for me. Thanks!
chhaggerty said:
If these framework changes could be coupled with the status bar soft button mod
http://forum.xda-developers.com/showthread.php?t=932631
We could have the best of both worlds.
Click to expand...
Click to collapse
+1 on this idea!
Well files can be different from one build to another. And make sure the. Jar you push is signed. Just use the original and replace changed files with archive manager..
Sent from my HTC Desire using XDA App
chhaggerty said:
If these framework changes could be coupled with the status bar soft button mod
http://forum.xda-developers.com/showthread.php?t=932631
We could have the best of both worlds.
Click to expand...
Click to collapse
+1 for this!
samuelhalff said:
Well files can be different from one build to another. And make sure the. Jar you push is signed. Just use the original and replace changed files with archive manager..
Sent from my HTC Desire using XDA App
Click to expand...
Click to collapse
Thanks, it was the signature.
I wonder how hard this would be to implement over to the cm7 release?
18.4009 said:
I wonder how hard this would be to implement over to the cm7 release?
Click to expand...
Click to collapse
I allready asked refer to this post http://forum.xda-developers.com/showpost.php?p=11486335&postcount=59
mrty4short said:
I allready asked refer to this post http://forum.xda-developers.com/showpost.php?p=11486335&postcount=59
Click to expand...
Click to collapse
Ah, thanks for the heads up.
chhaggerty said:
If these framework changes could be coupled with the status bar soft button mod
http://forum.xda-developers.com/showthread.php?t=932631
We could have the best of both worlds.
Click to expand...
Click to collapse
Another +1 to this! Have the status bar soft button mod installed already, but I'd love to be able to do this modification for the carrier notice removal, as well.
See nightly #15.
Sent from my HTC Desire using XDA App
Thanks, Samuel. Since this was for Nookie Froyo only, does this mean I should just copy android.policy.jar, framework.jar, services.jar, and framework-res.apk from the Nightly #15 package and put them in my system/framework directory (running Nookie Froyo 0.6.8 from an SD card)? Those were the original files in the mod that were changed to add soft buttons to the status bar.
Or do I just need to replace the android.policy.jar and services.jar files, and leave the other two alone?
(Or thirdly, were you suggesting I just run CM7 instead of Nookie Froyo if I want this feature? )
Thanks!
#15 has an updated code allowing Devs to compile cm without the icon.
These attached files will only work for froyo.
Sam
Sent from my HTC Desire using XDA App
I gotcha. I'm definitely not a Dev, so I thought your reply meant that a solution was already done integrating both modifications mentioned (carrier removal and soft buttons in status bar) and to just to grab those files and use them. As you can guess, that didn't end up working when I gave it a try.
So as of right now, there is still no solution that's been put out there to use both the carrier removal and the status bar soft buttons for Nookie Froyo users, it seems.
I know rookie1 decided not to pursue the soft buttons modification any further, and doing just that one ended up putting me into a continuous bootloop anyway, so it looks like I'll have to be content with just the carrier removal for now and SoftKeys (which is pretty great already, so that's not a bad thing).
Thanks for all your work, Samuel!

[MOD] Enable Transparancy & White Text for Status Bar

**ONLY TESTED ON ADEO v.01 v.02**
I labeled this a MOD since it's not quite a full theme. Since we have an SBF now (to restore when we **** up) I hope to see more people applying their creative talents to theming this awesome phone!
services.jar file white SPN/PLMN/clock and transparancy enabled for the notification drop-down background is attached to this post
*Also uploaded just the services.jar files to http://www.4shared.com/file/m9lfIXGq/services.html
*Here is my theme folder on 4shared, you can check periodically for new files I've tested that appear to be working correctly
Also included in the attached RAR file are a few of the images to mod in the framework-res.apk file under /res/drawable-hdpi to take advantage of the transparency. I'm working on porting a theme I've been slowly adding to for a few months on various devices so I also have a VERY early copy of framework-res.apk file with some of the graphics already included
*The included framework-res.apk file is ONLY for ADEO v.02!
RESERVED *probably for screenshots when I get around to it)
nice, thanks.
Any way for you to get rid of the ATT logo at the top left like synergye has in his gingerbread theme?
Great work. I copied the services.jar file to /system/framework and after a reboot, only my clock is in white, while the SNP and PLMN are in black..am i doing something wrong?
Is this a black status bar?
Is it possible to add this to the GingerBlur ROM framework? Is the transparency dependent on the services.jar file or is switching out the files in the framework.res the solution? Thanks

[GUIDE][MOD] Transparent Background of Arc System App

Hello,
I had asked how to make the background of System App transparent a couple of weeks ago here.
But Nobody can answer the way what exactly I want to do so I finally figure out how to make the background of System App transparent~~
This is including for Phone, Contacts, Messaging, Settings, Music, Alarms, Email, Calendar, Calculator, Sync, Media Server, Clock, Media Discovery, Setup Guide.
This is not including for Timescape, TrackID, Support.. I'm still investigating and will update for this...
It's actually not make the background of System app transparent.... show the wallpaper in the background of System app.
So if you change wallpaper, the background of System app also can be changed to your wallpaper~~~
When I modified style.xml just for the transparency, it's so confusing because the other app behind of System app.
This is based on Rooted LT15i 3.0.1.A.0.145 O2 so working for 145 based Rom. But I'm not sure it's working for LT15i_3.0.A.2.181 Rom.
--------------------------------------------------------------------------------------------------------
[GUIDE HOW TO]
I add the guide which xml and png is modified so it will be helpful for someone who use the other version ROM.
It's so simple if you already know how to inherit from the other in android.
For framework-res.apk, first of all decompile framework-res.apk
Step 1 : In \res\values\style.xml
Change this :
Code:
<style name="SEMCTheme" parent="@style/Theme">
to
Code:
<style name="SEMCTheme" parent="@style/Theme.Wallpaper">
Save and close
Step 2 : In \res\drawable-hdpi-v4\semc_bg.png
Open with photoshop and make semc_bg.png transparent
Step 3 : Compile framework-res.apk
For SemcGenericUxpRes.apk, first of all decompile SemcGenericUxpRes.apk
Step 1 : In \res\values\style.xml
Change this :
Code:
<style name="SEMCTheme" parent="@android:style/Theme">
to
Code:
<style name="SEMCTheme" parent="@android:style/Theme.Wallpaper">
Save and close
Step 2 : In \res\drawable-hdpi-v4\semc_bg.png and \res\drawable-land-hdpi-v4\semc_bg.png
Open with photoshop and make semc_bg.png transparent
Step 3 : Compile SemcGenericUxpRes.apk
For FBMediaDiscovery.apk, first of all decompile FBMediaDiscovery.apk
Step 1 : In \res\values\style.xml
Change this :
Code:
<style name="MediaUpdatesTheme" parent="@android:style/Theme">
to
Code:
<style name="MediaUpdatesTheme" parent="@android:style/Theme.Wallpaper">
Save and close
Step 2 : In \res\drawable-hdpi-v4\semc_bg.png
Open with photoshop and make semc_bg.png transparent
Step 3 : Compile FBMediaDiscovery.apk
--------------------------------------------------------------------------------------------------------
Please see the attached apk files.
Framework-res.apk and SemcGenericUxpRes.apk is for System Apps and should push under /system/framework/
FBMediaDiscovery.apk is for Media Discovery in 145 based rom and should push under /system/app
Looks good, I'll test it out when I get home.
hi rleon...
...thank you so much dude, i've been waiting for this mod everything works perfectly fine....i have just one small request: could you possibly include the CRT screen off animation, or the reboot options mod?
That's what has just come to my mind, it'd be great if you could include those....if not, it's actually awesome anyway
Great~ everything works fine for you...
As I know, CRT Screen off animation and reboot option already exists in the other thread...
If you wanna just one framework-res.apk file including all things, I will try but I'm not sure~~
Please give me a time~~
Hi rleon,
Could you please give a detailed list of items / files / folders you changed or altered?
I'm trying to make the system backgrounds invisible aswell however it seems folders have different names in .181
Thanks for the hard work tho!
For framework-res.apk and SemcGenericUxpRes.apk, 181 Rom is same.
framework-res.apk and SemcGenericUxpRes.apk should be located in the same folder which is under /system/framework/ so you can push these files under /system/framework/
And FBMediaDiscovery.apk is just for 145 based Rom so it may not be there in 181 Rom.
Please check whether there is FBMediaDiscovery.apk under /system/app ro not.
If not, you cannot push this file.
Hmm just tried to install them.. however I got a bootloop.
Anything special I should do while copying the files?
I think your 181 rom is different so it cannot be applied this apks.
I just compiled for 145 based rom...
I will update how to modify style.xml later so you can modify and compile for your 181 based rom by yourself....
That would be awesome, looking forward to it
I did a noob mistake and put it on my phone (3.0.1 UK) and now i can't change my wallpaper at all =\
can anybody upload me the original files for my firmware please???
This is good! My homedock, status bar and notification is already transparent and now I just added this too. Cool!
Sent from my LT15i using XDA Premium App
Is it Build 3.0.1.A.0.145 UK?? It should be working...
Currently my rom also Build 3.0.1.A.0.145 UK......
Thanks a lot for the guide! :-D
// Edit
However there doesnt seem to be a style.xml in my version hmmm interesting ;p!
meidan95 said:
I did a noob mistake and put it on my phone (3.0.1 UK) and now i can't change my wallpaper at all =\
can anybody upload me the original files for my firmware please???
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=1052067
Damorisio said:
http://forum.xda-developers.com/showthread.php?t=1052067
Click to expand...
Click to collapse
sorry if it's a stupid question but what am I need to do with this link?
where did you find the "value" folder inside the res folder, i cant find it anywhere..Trying to edit it myself so that i can retain the crt sreen off as well as the reboot option.
Can't even find the value folder much less the style.xml
Sent from my LT15i using XDA Premium App
Since I changed my rom to HK 145 rom, I applied your work to my arc. It looked good and nice and worked very well. Great job. Thank you very much.
I followed the instructions for framework-res.apk and got a bootloop.
Couldn't even decompile SemcGenericUxpRes.apk, I got error messages.
I don't suppose anyone might have any idea why?
Is it possible to have it as a solid black background?
and does this work on Xperia Play?

[Q]Problem after changing AndroidManifest.xml

Hello Guys and Galls,
I want to change the background of Settings.apk from black to white. I use the FroyoMod Rom http://forum.xda-developers.com/showthread.php?t=815595.
If change
Code:
<application android:label="@string/settings_label" android:icon="@drawable/ic_launcher_settings" android:taskAffinity="">
to
Code:
<application android:theme=[COLOR="Red"]"@android:style/Theme.Light.NoTitleBar"[/COLOR] android:label="@string/settings_label" android:icon="@drawable/ic_launcher_settings" android:taskAffinity="">
in AndroidManifest.xml.
I use ApkManger to decompile and compile. The (de)compiling is without any errors.
After compile with ApkManager i do the follow:
- open original Settings.apk and unsignedSettings.apk with 7-zip
- delete AndrodManifest.xml in original Settings.apk
- copy AndroidManifest.xml from unsignedSettings.apk to original Settings.apk
- copy the modified original Settings.apk to the phone in /system/app
- chmod 644 Settings.apk
- chown root:root Settings.apk
So now if I start Settings nothing happens, nothing, not even an fc.
This is was logcat says:
Code:
com.android.settings has no certificates at entry AndroidManifest.xml
What I´m doing wrong?
Try one of the many apk re-packaging tools on this forum. Ive used apktool but there are some front ends built for it
From something awesome
killersnowman said:
Try one of the many apk re-packaging tools on this forum.
Click to expand...
Click to collapse
tigger-gg said:
I use ApkManger to decompile and compile.
Click to expand...
Click to collapse
By the way if I change any other xml file in /res there are no such problems.
tigger-gg said:
I use ApkManger to decompile and compile.
Click to expand...
Click to collapse
dur
i read this on the mobile and did not see that....
solving the problem? because I would be interested
Me too, I'm having a problem recompiling an AndroidManifest.xml with apkmanager 5.0.1., it won't install unless I use an original AndroidManifest.xml file first, then I can flash right over it. At first I thought it was a the change I made in the file, but I just decompiled and compiled an unmodified version, and it did the same thing. So its the compiler.
Settings.apk is a signed system app. It will refuse to run unless signed by the same key as the rest of the system apps. Just replacing a single XML in the APK will cause a signature mismatch.
Best bet? I'd say make your change, then use a kitchen like dsixda's to resign the whole system with the test key (I think this is a menu option).
Yep your whole system has to have the same signature. I did this edit for a rom a while back, but I made the settings transparent instead of white background by using Theme.Wallpaper.NoTitlebar. Just sign your whole rom together with testkeys and all should be good until another system app gets changed/modified and the signatures don't match again.
Sent from my PG06100 using Tapatalk
Thanks to Gene Poole and one_love_420, I will try your instructions.
If your after quickly signing a whole load of apk's, I wrote a command line front end to do all the hard work for you.
You can even generate your own private key.
Questions or Problems Should Not Be Posted in the Development Forum
Please Post in the Correct Forums
Moving to Q&A
BUMP to top
Please big problem been fighting for weeks
any one know anything about this!!
So anybody find a solution yet? Seems to be the binary text conversion.
It is the signitures in manifest.inf fyi

Status bar background transperancy

Hey guais!
Any ideas on how to get the Status bar background transperant?
EDIT
The background image of the status menu not the bar it's self
i tried modifying framework-res.apk and add the status_bar_background.png from CM7 <Black edition> but i get a dithered image...
Any help would be appreciated.
Droidpirate has a few on that site that are transparent. I think they have both balck and grey transparent. If I can get to a PC later on tonight, I have them both and can upload.
Woodrube said:
Droidpirate has a few on that site that are transparent. I think they have both balck and grey transparent. If I can get to a PC later on tonight, I have them both and can upload.
Click to expand...
Click to collapse
Thanks man, but i have never been able tyo get most of that stuff on droid pirate working...
http://droidpirate.com/?s=transparent+statusbar+metamorph
sileshn said:
http://droidpirate.com/?s=transparent+statusbar+metamorph
Click to expand...
Click to collapse
wow! sileshn !!!
I've seen your work.... you're good!!!
Thank you for answering my post i feel honored.
I'm sorry i want to make the background of the status bar menu transparent, not the status bar it;s self
Sorry for the mix up i should have expressed my self better...
hellmonger said:
wow! sileshn !!!
I've seen your work.... you're good!!!
Thank you for answering my post i feel honored.
I'm sorry i want to make the background of the status bar menu transparent, not the status bar it;s self
Sorry for the mix up i should have expressed my self better...
Click to expand...
Click to collapse
I've tried a few times but never had any luck.
7. Transparent background Notification Drawer
I only tested this only for a pure AOSP-ROM (Oxygen).
CyanogenMod based based already have this patch integrated.
It may work for Sense Roms. Feel free to test it and report your experience.
Files that have to be edited:
/system/framework/services.jar
Tools you need to do the job:
smali/baksmali
text editor of your choice
zip tool of your choice (WinRAR, 7zip, WinZIP, ...)
What you have to do:
Extract the services.jar from your phone/rom file to the same directory as your smali/baksmali jar files.
Extract the classes.dex out of the services.jar using a zip tool of your choice. Only extract it. Do not extract the whole file
Decompile classes.dex: java -jar baksmali.jar -o classout/ classes.dex
That will create a directory classout where your decompiled files are stored
move to the directory classout/com/android/server/status . There you will find a lot of .smali files
Open StatusBarService.smali in the text editor of your choice
Search for the text const/4 v5, 0x2 (there should be only one)
Change this to: const/4 v5, -0x3.
Save the file and move back to your directory, where you have saved the classes.dex
Rename it for having a backup file
Run this command: java -Xmx512M -jar smali.jar classout/ -o classes.dex
Replace the classes.dex INSIDE your services.jar with your newly created classed.dex
Push the new services.jar to your phone (/system/framework/) and reboot.
Don't get panic, this reboot can take several minutes..
hellmonger said:
wow! sileshn !!!
I've seen your work.... you're good!!!
Thank you for answering my post i feel honored.
I'm sorry i want to make the background of the status bar menu transparent, not the status bar it;s self
Sorry for the mix up i should have expressed my self better...
Click to expand...
Click to collapse
In the new sileshn theme (twisted inception) there is a background of the status bar menu transparent (you can see it here)

Categories

Resources