yashsingh1/xdaforums huggingface dataset:
[XPERIA X10 Themes and Apps] rynoon:
AndroidUI.apk and framework-res.apk don't contain any executable code. Android uses the Dalvik virtual machine for executing java. A .dex file is a java executable which can be run by Dalvik. An odex file is an optimized dex file. So as framework-res and AndroidUI contain no actual java, creating an odex from those apk's wouldn't really do anything. The speed increase you mentioned is most likely all in your mind.

The font colours in the status bar (besides the clock) aren't set in services.jar, but in framework-res.

When an odex has stale dependencies it means that one of the other odex files it depends on isn't as the virtual machine expects. If you've add, removed or modified one of those dependencies you will receive this problem and you will not be able to boot the device.

Some reading on the subject: http://www.netmite.com/android/mydroid/dalvik/docs/dexopt.html

In short, the solution is to deodex all of its dependencies and add the .dex file that results to their associated apk's. This also means that EVERY odex'd file on the system will need to have this done, as they all depend on the same root odex files. So that's the fun part. In order to change the clock colour, you will probably need to deodex EVERY SINGLE odex'd file on your system, pack the dex file into their associated apk and then throw those fixed apk's back onto the phone.

After you do this Dalvik will go ahead and optimize and verify the dex files (basically turning them into odex files at runtime) and the phone will take a while to boot. After it does, you're good to go. A fair amount of work to do one little thing.
[XPERIA X10 Themes and Apps] bcool15:
i want it too please, thanks in advance
[XPERIA X10 Themes and Apps] HunteronX:
Thanks for this; it's really useful.
[XPERIA X10 Themes and Apps] UltraLinx:
Yeh no one seems to want to port it over, i've asked over 10 people now and no one replies :(
[XPERIA X10 Themes and Apps] Tom-Helge:
No problem mate. I'm not in a hurry. Because i have been using your old framework-res theme in the meantime anyways hehe.

EDIT: Oh, something seems to be missing from your framework-res theme.

The icons you used on the buttons when you press the menu button to get up the settings and that are not the same as the old version.

And the top bar icons you had on your old version is also different, or it's back to default on this new version.

EDIT 2: Check your pm HunteronX.
[XPERIA X10 Themes and Apps] bcool15:
deleted post sorry
[XPERIA X10 Themes and Apps] gavriel18:
@maxld Thanks, and I'll definitely add it and update it. ETA a day or so ;)

@chewitt I'm not sure but Im going to keep looking, its driving me bonkers

@rynoon Great thank you :D! I just got through the link and I think I understand it all. Did you see the deodexer jerpelea modified? Does that at least get through some of the work? Lets say I did try this out would I just put the modified apk with classes.dex still in it and the vm will overwrite the odex on the next startup right? Once again thanks for this great info! :)

@UltraLinx I got it on the back burner but I will do my best to port it over for you, but it may take a bit...
[XPERIA X10 Themes and Apps] Chewitt:
Yeah, im thinking its in the code, only place it can be as ive looked at every image in Mediascape
[XPERIA X10 Themes and Apps] bcool15:
how can i preview that animation in reskiined themes package?
[XPERIA X10 Themes and Apps] rynoon:
It wouldn't overwrite the odex files, no. Not really, anyway. What it would do is optimize, verify and sign the dex files and place them into a cache, rather than have them in their current location on the filesystem, so there would be no odex files there whatsoever. This cache would be built the first time you booted the system after adding the apk's and removing the odex'd files and would probably take a while to do.
[XPERIA X10 Themes and Apps] gavriel18:
Ok so before booting the system with any changes (dex files), I would have to manually remove the odex'd files and replace the apk's?
[XPERIA X10 Themes and Apps] trojjanhorse:
Hello everyone,

Thanks for this thread. I was finally able to customize the notification bar to my liking. I have been playing around with the system files and figured out how to change the SMS notification icon. I used rynoon's notification style and I must say I'm very happy with it. I noticed that the SMS/MMS notification icon has not been changed, so I figure out a way to get it to work.

replace the /system/app/Mms.apk with the one attached bellow.

I have screenshots of the new sms/mms notifications, also attached bellow

I made a custom icon of a failed SMS/MMS as red :)

I did look around if someone has done this before, but couldn't find anything.
[XPERIA X10 Themes and Apps] SXUsr:
Hi.

I have managed to get my framework-res on to the sd card, modified the colour of my status bar, but can't seem to push it back. I've only just set up ADB and I'm finding the commands a bit troublesome?
[XPERIA X10 Themes and Apps] gavriel18:
the reason you are getting that error is because you are not in the right directory (I think). Find the file path where adb is. On my pc it is C:\Users\Gavriel\android-sdk-windows\tools. When you find it type cd C:\the\path\here.

Try this script: Copy this exactly

adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system

hit enter (don't copy this)

adb shell dd if=/sdcard/apps/framework-res.apk of=/system/framework/framework-res.apk

That should do it, then reboot
[XPERIA X10 Themes and Apps] SXUsr:
C:\android-sdk-windows\tools is where it is, and after trying your suggestions I'm still getting adb not found. I've managed to get ADB File Explorer running but even using that the changes I've made to the framework-res file aren't showing after a reboot of the phone.
[XPERIA X10 Themes and Apps] gavriel18:
If you run the above script without adb shell in it from your phone using terminal it should work.

Did you set up the environment variable on your PC?
[XPERIA X10 Themes and Apps] SXUsr:
The variable is set up, and when running the command in Better Terminal it says it's a "read only" file system. :confused:
[XPERIA X10 Themes and Apps] SXUsr:
Managed it now, also changed my dialler to the found HERE. Thanks for your assistance, I'm sure I'll get the hang of it eventually.
[XPERIA X10 Themes and Apps] trojjanhorse:
Anyone tampered with the lock screen?
[XPERIA X10 Themes and Apps] gavriel18:
Yeah take a look, ill upload it when i get home
[XPERIA X10 Themes and Apps] trojjanhorse:
cool. I'm trying to get the nexus unlock screen to work on my x10. That would be sweet. I really hate swiping my finger in an arc motion, it's so inconvenient.
[XPERIA X10 Themes and Apps] Jablko:
The landscape background image in framework-res.apk: res/drawable-land-240dpi/semc_background.png isn't modified, it's the original blue SE image. Just thought I'd give a heads up.

Great work, really appreciated!
[XPERIA X10 Themes and Apps] OM3G4:
No problem. ;)
[XPERIA X10 Themes and Apps] HunteronX:
Thanks! :D

@ Jablko

I'll change that as soon as I can (probably tomorrow).
[XPERIA X10 Themes and Apps] SXUsr:
Hi

I am trying to edit an ADW theme, but can't find where it is installed? I am wanting to use this from ADW.Theme.one...

...with the Sticker album theme, but as I can't find what I'm looking for I'm a little stuck.
[XPERIA X10 Themes and Apps] HunteronX:
I'm not sure what the package name is, but if you install something that can back up your applications (e.g. Astro), then you can find it, copy it to your computer, and edit it like you would a framework-res.apk - or you could have a look at Anderweb's theme template, which I think allows you to create a theme apk that can be installed and applied on top of of ADW launcher whenever you want.

http://github.com/AnderWeb/ADW.Theme-Template
[XPERIA X10 Themes and Apps] realunited123:
pull com.piratemedia.stickeralbum.apk (Sticker album) and org.adw.theme.one.apk (Theme one) from data/app , do your thing just like framework-res.apk ,push it... (edited )
[XPERIA X10 Themes and Apps] SXUsr:
Thanks, I had looked at that already but seems quite above my expertise.

I'll give that whirl and see how I get on.
[XPERIA X10 Themes and Apps] SXUsr:
It's not having it. :mad:

I backed both themes up with Titanium, but unlike other apks it's showing it as a zip folder, but named apk, with another apk inside. Once I've edited the extracted apk, it won't allow me to put it back in the apk that looks like a zip file even if I rename it. :mad: Hope that makes sense.
[XPERIA X10 Themes and Apps] realunited123:
did you try

adb pull /data/app/com.piratemedia.stickeralbum.apk com.piratemedia.stickeralbum.apk

adb pull /data/app/org.adw.theme.one.apk org.adw.theme.one.apk
[XPERIA X10 Themes and Apps] SXUsr:
I have now. Do you just change pull for push in the command when I'm done?
[XPERIA X10 Themes and Apps] realunited123:
if you want to push it

mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system
adb push org.adw.theme.one.apk /sdcard/org.adw.theme.one.apk
adb shell dd if=/sdcard/org.adw.theme.one.apk of=/data/app/org.adw.theme.one.apk
[XPERIA X10 Themes and Apps] SXUsr:
Ah yes. :o
[XPERIA X10 Themes and Apps] SXUsr:
Just one last question, which folder do I need to edit, or do I need to do all of them?
[XPERIA X10 Themes and Apps] HunteronX:
Don't sign the apk.

Just do this from your computer:

Copy the apk to your sd card.

Using cmd in windows, or terminal in linux etc. Type in (Without quotation marks):

'adb shell'

'su'

'mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system' (Makes system folder writeable)

'adb shell dd if=/sdcard/org.adw.theme.one.apk of=/data/app/org.adw.theme.one.apk'

This is really just what realunited123 said, but without any signing of apks.
[XPERIA X10 Themes and Apps] realunited123:
Well we are talking about the theme for adw aren't we?
[XPERIA X10 Themes and Apps] HunteronX:
Here's the new link:

http://www.4shared.com/file/_sM90-pO/Complete_Mash-up.html

:)
[XPERIA X10 Themes and Apps] HunteronX:
Just edited it, sorry. :o
[XPERIA X10 Themes and Apps] HunteronX:
You can just edit any folders that contain graphics; but if you want to edit nine-patch images, look at this:

http://developer.android.com/guide/developing/tools/draw9patch.html
[XPERIA X10 Themes and Apps] SXUsr:
Thanks, but I've got my head around that part, what I'd like to know now is which folder I need to edit as there is about 6 folders which contain the same files and not sure if I just need to edit one or all of the folders. :confused:
[XPERIA X10 Themes and Apps] SXUsr:
Thats all of them then, which seems a lot for just the bar.
[XPERIA X10 Themes and Apps] HunteronX:
Is there one called 'drawable-hdpi'? Edit the graphics in that one, as the xperia x10 has a high dpi.

Also if there's 'drawable-land-hdpi', edit stuff in that too.

This is the new folder layout for Android 2.0 upwards, so that's why metamorphs don't work as intended without editing them.

Well it's not so new anymore, considering that 2.0 was released at the end of last year...
[XPERIA X10 Themes and Apps] realunited123:
OK thank you for clarification .. I will edit my post .. :)
[XPERIA X10 Themes and Apps] HunteronX:
Also, just in case you want to type in 'adb shell', then 'su' for any reason; you'll have to confirm it on your phone, by choosing 'Allow' (I think), on the Superuser permissions pop-up.
[XPERIA X10 Themes and Apps] SXUsr:
Thanks for clearing that up, I'll give it another go and see how I get on.
[XPERIA X10 Themes and Apps] SXUsr:
:mad:

Trying to install using ADB gives me "INSTALL FAILED_INSUFFICIENT STORAGE" message:confused:
[XPERIA X10 Themes and Apps] realunited123:
did you try to install or push ?
[XPERIA X10 Themes and Apps] SXUsr:
If I push and try and install it says it can't be installed on the system, if I install through ADB I get the above message. I'm using the same method I have been with my framework-res, open winrar, extract the files, edit them whilst leaving the winrar window open, copy and paste back, close, push back, voila.

But it's just not working with this.
[XPERIA X10 Themes and Apps] realunited123:
Are you trying it after removing the old theme ?? I guess you are..

Can you upload the modified apk.. i will take a look :)
[XPERIA X10 Themes and Apps] Vin87:
I had the same problem. You have to resign the .apk using Autosign. That made it work for me and that removed the 'can't be installed on the system' message:

http://xdaforums.com/showthread.php?t=471634
[XPERIA X10 Themes and Apps] SXUsr:
I'd given up so deleted it, but will have another crack at it, and thanks for the offer.

Thanks for the suggestion, as I've said I'll try again and try this.
[XPERIA X10 Themes and Apps] SXUsr:
Quick update:

Edited the files in drawable-land & drawable-land-hdpi, signed it using THIS method, as the one suggested is quite limited, installed it fine, but nothing has changed, so will change the icons in the rest of the folders one at a time to see which is the correct folder.

Update:

drawable-mdpi & drawable-land-mdpi updated but still no change.
[XPERIA X10 Themes and Apps] SXUsr:
Finally.

After changing the last two it's done! Thanks for all the assistance!!

I've attached the apk too in case anyone else would like to use it...
[XPERIA X10 Themes and Apps] realunited123:
great job!!
[XPERIA X10 Themes and Apps] HunteronX:
Looks like I was wrong about the signing issue...

Thanks for the information though, as well as the apk. :)

I think I've learnt a lot from the xda-developers forums.
[XPERIA X10 Themes and Apps] gavriel18:
Good news everyone, Stericson has modified ninjamorph so that it will work for our phones!!! Pick it up in the market. Its great, it allows you to fine tune theming from your phone with lots of options. Go check it out and Im going to be setting up the x10 theme repo for ninjamorph stuff. Anyways, download the app and I'll have a tutorial and some more detailed info. All in all, it makes theming SOOOOOOOOO much easier :D
[XPERIA X10 Themes and Apps] SXUsr:
Thanks, but noticed the google search bar widget has lost the appeal of the sticker theme one, so just going to sort that out, but everything else is spot on, so I'm pleased with it.

I definitely have, and will continue to for a good while yet.

EDIT: Sorted out the google bar which looks miles better...

...and added the new apk.
[XPERIA X10 Themes and Apps] SXUsr:
Help -Default Dialer and Framework-res?

Had a nightmare day regarding my phone, long story short I've had to reflash, I've run a cleanup file which has removed my default dialer, and the framework-res file I had backed-up isn't showing any changes. The phone has been re-rooted, but can't get it back to how it was before due to the mentioned issues:confused:
[XPERIA X10 Themes and Apps] SXUsr:
Sorted out my statusbar and everything, the only problem now is the dialler...

...which I'm guessing because the default one was removed I'm not able to use the graphics in the Phonebook.apk, and it's the right one as I've pulled it and should look like this...
[XPERIA X10 Themes and Apps] Stef_dude:
Can't seem to find the apk.

Could you please PM it to me? same with your background, I really like it!
[XPERIA X10 Themes and Apps] HunteronX:
Is it alright if someone could upload the R2BA026 '/system/app' folder, because I'm thinking of updating my themes for this rom version.
[XPERIA X10 Themes and Apps] Chewitt:
Still not figured it out, i can edit bits of it. Ive extracted the entire /system/ folder to my laptop and ive started an image search pulling every image from every file in the directory, i will find it lol.
[XPERIA X10 Themes and Apps] SXUsr:
Hi.

The apk is on the last page (28), and my wallpaper...
[XPERIA X10 Themes and Apps] MarylandCookie:
http://www.mediafire.com/file/n3660jen2p06dn6/026-System-app.rar
[XPERIA X10 Themes and Apps] HunteronX:
Thanks! :)
[XPERIA X10 Themes and Apps] SXUsr:
Can someone simplify this a bit more please, I have edited 30 pngs but can't seem to get them into the folder? Another user posted a gif but I can't remember what thread it was on, but I've extracted and edited the frames so will look like...

..from the original...
[XPERIA X10 Themes and Apps] zephyrix:
Put all the images into a folder called default.

adb push default /sdcard/default
adb shell
su
busybox mount -o remount,rw /system
busybox cp -R /sdcard/default /etc/semc/startupshow/default
busybox mount -o remount,ro /system
[XPERIA X10 Themes and Apps] SXUsr:
Was good up until the busybox command, "permission denied", "are you root?"

Phone is rooted, busybox on my phone says it's rooted, any ideas?
[XPERIA X10 Themes and Apps] zephyrix:
did you su?
[XPERIA X10 Themes and Apps] SXUsr:
Yep, as I said, all was good until the busybox command.

Edit: Got the denied error with su too.

Edit 2: Sorted the su, completed all steps, but startup screen hasn't changed.
[XPERIA X10 Themes and Apps] Sixpence1:
I've started playing around with making my own theme. When I change the colour of a button the width of it decreases. I've seen this issue in a few people's themes and have read this entire thread but there doesn't seem to be any comments on it. Does anyone know how to fix this?

On another note, Bazza1976, those Android battery icons are sweet!
[XPERIA X10 Themes and Apps] realunited123:
Just put all the images in a folder default in sdcard and copy it to /etc/semc/startupshow/ ( using root explorer)

If you don't have startupshow folder create on using root explorer and copy default to it ( using root explorer)
[XPERIA X10 Themes and Apps] Chewitt:
if you used the X10Mini root method then that is what happens, although you get root its not as much of a full root. the original root method is the best one to use.
[XPERIA X10 Themes and Apps] zephyrix:
Incorrect.
[XPERIA X10 Themes and Apps] rynoon:
Care to explain? How is one method of enabling the root account on a linux system rootier than another? Root is root.
[XPERIA X10 Themes and Apps] HunteronX:
Exactly - lol at 'rootier'. :D
[XPERIA X10 Themes and Apps] zephyrix:
Don't worry about it, he's just confused.

I've rooted with both methods, and I'm currently using the exploid one.

Try cd /etc/semc/startupshow/default && chmod 644 *

And really, you shouldn't be changing the default startupshow.

Leave the default startupshow as the SE one, and make a new directory called custom in /etc/semc/startupshow/
[XPERIA X10 Themes and Apps] SXUsr:
How then do you change which one it chooses at start?
[XPERIA X10 Themes and Apps] Chewitt:
From personal experience, it gave me all the bits you would look at for root but infact when i looked further into it there was a few bits that it was as though the system still couldn't access so i went back to the original method.

just my personal experience with it, i have found people who some root methods will just not work for, but not all handsets are 100% the same for example my handset is an orange variant and so has slight differences to a voda variant, this is why i think the original root works for me as it de brands it during root were as the x10m root does not de brand during root.
[XPERIA X10 Themes and Apps] rynoon:
Sorry, no. That's not how it works. You either have access to the root account or you don't. There are no bits and pieces.

Edit: Yes, I'm aware that there are ways to allow root access to bits and pieces of a *NIX system, but it doesn't really apply here. :P
[XPERIA X10 Themes and Apps] zephyrix:
As long as a custom folder is there, the phone will always use custom. Otherwise it switches back to default.

Root is root is root is root. There is no such thing as bits and pieces that don't work. Debranding is a separate process, which CAN be achieved with root in any case.
[XPERIA X10 Themes and Apps] Sixpence1:
Is this actually important for theme development? Or is it more for application development?

Does this contain original versions of all applications in that folder? Will they work for any firmware version? Particularly, will it work for 026?
[XPERIA X10 Themes and Apps] zephyrix:
Neither. With the exploid root this is completely unnecessary.
[XPERIA X10 Themes and Apps] Sixpence1:
I assume the exploit root you're referring is the X10 mini way? What about with the original root?
[XPERIA X10 Themes and Apps] zephyrix:
It was intended for you to be able to apply fota.pkg updates on the fly with newer firmware, since only the old firmware had debug fota entry enabled, which is why you always had to flash to old firmware, then update through fota. It's not useful for the layman. Basically if you don't know what it does, you don't need it.

Also, it's called exploid, and is not specific to the X10 mini. This root method was originally created for the Droid X, but also happens to work on many other kernels.
[XPERIA X10 Themes and Apps] Sixpence1:
Ah ok, so it's for firmware upgrades rather than app/theme development.

So say when 2.1 is available, with the exploid method, you wouldn't have to flash to 1.6 014 first, you can update straight to 2.1? Sorry, i'm fairly new to android and just trying to get a basic level of understanding.

Cheers Zeph.
[XPERIA X10 Themes and Apps] zephyrix:
Assuming the exploid root isn't patched, yes.

Although, by the time 2.1 is here there'll probably be another root method. :p
[XPERIA X10 Themes and Apps] x10i DauL:
Does my phone work if i only change the phonebook.apk from this theme? http://xdaforums.com/showpost.php?p=7085634&postcount=82

kind regards DauL
[XPERIA X10 Themes and Apps] AndyD777:
Would the framework-res from a Droid or Droid X work on the X10? :D
[XPERIA X10 Themes and Apps] rynoon:
Likely not. It wouldn't take too much work to port it over though.
[XPERIA X10 Themes and Apps] zephyrix:
no. the framework apk is signed with the platform key.
[XPERIA X10 Themes and Apps] Chewitt:
+ most of the files that make the SE componants are named semc_ so it would be hard for the droid to pick them up, you would need to port them all over.
[XPERIA X10 Themes and Apps] AndyD777:
yea that's what I ment. :D

I'll have a good at this then later today :D
[XPERIA X10 Themes and Apps] Sixpence1:
Which .apk file do you need to modify for Contacts?

I looked in Contact.apk, but it looks like it's only for the standard Android contacts.
[XPERIA X10 Themes and Apps] AndyD777:
Where is the SMS icon located that pops up in the background bar?

Also how do you change the clock size and colour?

Thanks

Andy
[XPERIA X10 Themes and Apps] gavriel18:
@sixpence the background for thw contacts when u open them in phonebook is found in timescapee

@Andy I'm pretty sure the icon for SMS that pops up in the notification bar is in messaging.apk

As for changing the clock colour etc. Involves a lot of work. Rynoon spelled it out earlier in this thread. Basically u need to deodex everything, make the changes and push all the deodexed files back.

Jerpelea modified a deodexer tool and when I opened it it looked like he uploaded all the deodexed ish. I was about to try this when my laptop charger blew :-(. The deodexer can be found in the FOTA debug thread in the dev section.

Hope this helps.
[XPERIA X10 Themes and Apps] Sixpence1:
timescape eh? Odd place for it. Cheers Gav!

@andy - the SMS notification icon is in Mms.apk

What exactly is 'deodexing'? My current take on it is that the .odex files are the compiled classes and 'deodexing' would be reverse compiling. Is that correct?
[XPERIA X10 Themes and Apps] zephyrix:
Not exactly.

dex files are java .class files (compiled .java) translated to dalvik bytecode

odex files are optimized dex files which are platform specific.
[XPERIA X10 Themes and Apps] AndyD777:
What do you think on this theme? :p :D

Also in Messaging and Email etc.. The title bar that says messaging / email etc... What is that called?

Andy
[XPERIA X10 Themes and Apps] Contrarian:
Why are you guys so desperate to make your phone look like a Desire. The main appeal of the X10 is its uniqueness.
[XPERIA X10 Themes and Apps] HunteronX:
1. It's because we can.

2. Because we might like the X10 hardware, but also HTC's sense.
[XPERIA X10 Themes and Apps] rynoon:
Because the X10's default theme is ugly? :)
[XPERIA X10 Themes and Apps] gavriel18:
U said it :-)