[Q] Theming: Including the 9-lock-mod in a theme - Galaxy S I9000 Themes and Apps

Can anyone please point me to a tutorial (or write one) on how I can "inject" the 9-lockscreen-mod into the theme I'm currently running?
I have both the CWM-zip for the theme, as well as the source for the 9-lock-mod.
As I understand it there are 3 files that needs modification:
- framework-res.apk
- framework.jar
- android.policy.jar
I have modded the framework-res.apk using APK Manager (although I haven't tested it). But I'm unsure as to what I'm supposed to do with the .jar-files.

whaave said:
Can anyone please point me to a tutorial (or write one) on how I can "inject" the 9-lockscreen-mod into the theme I'm currently running?
I have both the CWM-zip for the theme, as well as the source for the 9-lock-mod.
As I understand it there are 3 files that needs modification:
- framework-res.apk
- framework.jar
- android.policy.jar
I have modded the framework-res.apk using APK Manager (although I haven't tested it). But I'm unsure as to what I'm supposed to do with the .jar-files.
Click to expand...
Click to collapse
You should be able to decompile them like .apk files. Try renaming their extensions to apk.

Thanks, man!
And it's actually your theme I want to keep (with LockeOn' mod), but I also want the 9-lock. (Specifically the MIUI).
I'll try to rename and decompile. Should I decompile any of the above mentioned files with dependancies?
Sent from my GT-I9000 using XDA App

Well... Im using a galaxy 3 but i believe the method must be somewhat same for all phones... So indirectly... SAME QUESTION HERE...

Related

[REQ] Stock JPY/JS3 AOSP 4 Lockscreen + Extented menu framework.

Can someone please make a "theme" with the stock framework from jpy or js3 that just has the 4 lock screens and extended menu?
Thanks a lot!
You could've just written your wishes here, here or here.
No need for opening new thread really. And there are even more threads, I just browsed through pages, didn't even use the search function.
cicer0 said:
You could've just written your wishes here, here or here.
No need for opening new thread really. And there are even more threads, I just browsed through pages, didn't even use the search function.
Click to expand...
Click to collapse
Thanks, one thread was nice, I missed that one!
I just read them all and nobody was able to make a stock theme with the lockscreens and extended menu. So I'm back to my original request; can someone with more skills please make one and share it?
I can't believe none of the talented modders here can't make a stock theme with 4 lockscreens and extented menu. This could be used as base for many of the less skill-full theme modders such as myself a lot.
You think you are a
spasms said:
...less skill-full theme modders such as myself ...
Click to expand...
Click to collapse
?
So, this should be no problem for you.
http://forum.xda-developers.com/showpost.php?p=10750365&postcount=4
Give it a try!
Edit:
I wrote a little guide, it may help you a bit:
4 lockscreen mod
You need to have a deodexed ROM to install the 4 lockscreen mod.
1.
Download
Code:
framework-res.apk
twframework-res.apk
framework.jar
android.policy.jar
Settings.apk
from this http://forum.xda-developers.com/showthread.php?t=844514 ROM. It's not that heavily modified, so it should work quite good with stock icons.
2.
Take
Code:
framework-res.apk
twframework-res.apk
from your stock Samsung-ROM and open
framework-res.apk/res/drawable-hdpi using 7-zip.
3.
Open the modded
framework-res.apk/res/drawable-hdpi(-v4) using 7.zip.
4.
Copy all ICONS from stock framework-res.apk/res/drawable-hdpi to modded framework-res.apk/res/drawable-hdpi(-v4).
Close framework-res.apk (both)
5.
Open stock
twframework-res.apk/res/drawable-hdpi using 7.zip.
6.
Open the modded
twframework-res.apk/res/drawable-hdpi(-v4) using 7.zip.
7.
Copy all ICONS from stock twframework-res.apk/res/drawable-hdpi to modded twframework-res.apk/res/drawable-hdpi(-v4).
Close twframework-res.apk (both)
8.
Take all your modded 4 lockscreen files (framework-res.apk, twframework-res.apk, framework.jar, android.policy.jar and Settings.apk) and build an update.zip.
9.
Make a backup and install your update.zip
You should now have a pretty stock Samsung-theme with working 4 lockscreen mod.
10.
There will be some themed icons left (e.g. charging animation), some xml have to be edited.
I'll help when you need help.
Thanks a lot fo the guide. I will give it a go and maybe share my silly ROM if I'm happy with it.
scheichuwe said:
You think you are a
?
So, this should be no problem for you.
http://forum.xda-developers.com/showpost.php?p=10750365&postcount=4
Give it a try!
Edit:
I wrote a little guide, it may help you a bit:
4 lockscreen mod
You need to have a deodexed ROM to install the 4 lockscreen mod.
1.
Download
Code:
framework-res.apk
twframework-res.apk
framework.jar
android.policy.jar
Settings.apk
from this http://forum.xda-developers.com/showthread.php?t=844514 ROM. It's not that heavily modified, so it should work quite good with stock icons.
2.
Take
Code:
framework-res.apk
twframework-res.apk
from your stock Samsung-ROM and open
framework-res.apk/res/drawable-hdpi using 7-zip.
3.
Open the modded
framework-res.apk/res/drawable-hdpi(-v4) using 7.zip.
4.
Copy all ICONS from stock framework-res.apk/res/drawable-hdpi to modded framework-res.apk/res/drawable-hdpi(-v4).
Close framework-res.apk (both)
5.
Open stock
twframework-res.apk/res/drawable-hdpi using 7.zip.
6.
Open the modded
twframework-res.apk/res/drawable-hdpi(-v4) using 7.zip.
7.
Copy all ICONS from stock twframework-res.apk/res/drawable-hdpi to modded twframework-res.apk/res/drawable-hdpi(-v4).
Close twframework-res.apk (both)
8.
Take all your modded 4 lockscreen files (framework-res.apk, twframework-res.apk, framework.jar, android.policy.jar and Settings.apk) and build an update.zip.
9.
Make a backup and install your update.zip
You should now have a pretty stock Samsung-theme with working 4 lockscreen mod.
10.
There will be some themed icons left (e.g. charging animation), some xml have to be edited.
I'll help when you need help.
Click to expand...
Click to collapse
You've written this guide several times and even for me, I gave up on this coz I never got it to work, boot loops or stuck on the boot logo, are you able to make a 100% stock JS3 theme with the 4 lock screen mod and just post the finished product here, its easier for everyone and for you to just post the finished product.
I would assume you've already tried the method you posted above?
Works fine on JPY. Flash in CWM. Backup first.
http://dl.dropbox.com/u/5906223/xda/stock_4lockscreen.zip
Not 100% stock, I left some work for you
Battery icons have to be changed, you'll make that.
thx a lot scheichuwe. i've tried on doc rom xwjs3 and the 4 lockscreen works. but i found some bug
- %d%% text appear instead of ongoing in notification bar
- "ongoing" text appear instead of clear button in same place
- when i click on wi fi or bluetooth wrong text appear instead of on/off text
- when empty battery notification appear. again, wrong text appear
so how do i fix that? thx in advance.
id's differ - jpy <-> js3
for simple, just copy decompiled public.xml, strings.xml [cause apktool_dummy..] from stock js3-framework-res.apk (/res/values/)
to decompiled jpy-folder
then just compile and at last change png's within framework-res.apk (/res/drawable-hdpi-v4/)
attached file / stock js3 framework
Any full stock rom deodexed with the extras to download?
scheichuwe said:
You think you are a
?
So, this should be no problem for you.
http://forum.xda-developers.com/showpost.php?p=10750365&postcount=4
Give it a try!
Edit:
I wrote a little guide, it may help you a bit:
4 lockscreen mod
You need to have a deodexed ROM to install the 4 lockscreen mod.
1.
Download
Code:
framework-res.apk
twframework-res.apk
framework.jar
android.policy.jar
Settings.apk
from this http://forum.xda-developers.com/showthread.php?t=844514 ROM. It's not that heavily modified, so it should work quite good with stock icons.
2.
Take
Code:
framework-res.apk
twframework-res.apk
from your stock Samsung-ROM and open
framework-res.apk/res/drawable-hdpi using 7-zip.
3.
Open the modded
framework-res.apk/res/drawable-hdpi(-v4) using 7.zip.
4.
Copy all ICONS from stock framework-res.apk/res/drawable-hdpi to modded framework-res.apk/res/drawable-hdpi(-v4).
Close framework-res.apk (both)
5.
Open stock
twframework-res.apk/res/drawable-hdpi using 7.zip.
6.
Open the modded
twframework-res.apk/res/drawable-hdpi(-v4) using 7.zip.
7.
Copy all ICONS from stock twframework-res.apk/res/drawable-hdpi to modded twframework-res.apk/res/drawable-hdpi(-v4).
Close twframework-res.apk (both)
8.
Take all your modded 4 lockscreen files (framework-res.apk, twframework-res.apk, framework.jar, android.policy.jar and Settings.apk) and build an update.zip.
9.
Make a backup and install your update.zip
You should now have a pretty stock Samsung-theme with working 4 lockscreen mod.
10.
There will be some themed icons left (e.g. charging animation), some xml have to be edited.
I'll help when you need help.
Click to expand...
Click to collapse
I tried this and my icons changed which was nice but I didn't get the lockscreen or extended menu.
I will try and make one theme soon with only 4 lockscreen and extended settings. I have tried a lot of themes now, but stock icons are really fine for me.
One is to green or to blue or whatever....
I just want a "clean" docrom with JS5 and only 4 lockscreen and extended settings. That's all !
Keep an eye on
http://forum.xda-developers.com/showthread.php?t=952579
If someone could instruct me on how to re-archive the factoryfs.rfs file I think I could make a ROM that can be flashed with Odin so its all there from a clean install with all the lock screens and extended menu.
I've extracted the files with MagicISO but if I resave them with it, it doesn't seem to flash properly. I think the file system has changed because I'm using MagicISO.

[Bugfix][Gingerbread-JV*] Oversized/Unaligned browser combobox in themes.

Hi! I noticed this bug in ock's theme originally and then when I was trying to make my own theme banged heads with it myself.
The issue is that in the browser the combobox button seems to spill over into the text and generally is stretched poorly.
Like this:
I tried at first simply creating a .9.png version and removing the originals and replacing with the .9s. This made the bar vanish completely.
Eventually I got it working with a bit of a work-around, by compiling the .apk twice and extracting the images.
Having to explain that process recently lead me to the real answer though.
combobox_disabled.png and combobox_nohighlight.png ARE .9.pngs even though they do not have the .9.png extension.
apkmanager won't decompile (or compile) them as .9's because they don't have the right extension (and the right extension 'breaks' the theme).
Attatched are my .9.png versions of both images. I added the guidelines from scratch, but they seem to be correct. If your theme has this issue and you need to fix it, just drop the 'compiled' versions into your res/drawable-hdpi and apk-manager should happily compile it and the issue should be resolved.
tried both versions to just replace the ones in my framework-res.apk (didn't decompile the file but just replaced the files) and both didn't solve the problem.
XlAfbk said:
tried both versions to just replace the ones in my framework-res.apk (didn't decompile the file but just replaced the files) and both didn't solve the problem.
Click to expand...
Click to collapse
That -may- not work. That was one of the first things I tried to do - replace with .pngs straight from stock without a decompile/recompile of the whole apk.
The format of the zip file might be slightly ambiguous.
9s - are the raw pngs with draw9patch guidelines.
compiled - are the compiled draw9patch pngs. If you use a draw9patch compiler on the files in the 9s directory you get these.
Even though the pngs are compiled you still need to go through the decompile/recompile procedure with apk manager. (using the 'compiled' pngs).
sargorn, I've tried several times to decompile and recompile the framework with no luck. The new framework is ok, except this damn combo box rendering.
I personally gave up trying :|.
Toss me the framework and I'll give it a shot.
here's mine, based on JVB. thx fo giving it a try
XlAfbk said:
here's mine, based on JVB. thx fo giving it a try
Click to expand...
Click to collapse
Hi,
I tried decompiling and then recompiling your framework and it does not recompile.
zzzzz_tw_quickcontact_slider_btn_pressed.9.png and zzzzz_tw_quickcontact_slider_btn_selected.9.png were both 0 bytes.
If you've just been replacing images this probably won't work
Here it is decompiled and recompiled with stock copies of those two files and the combo box 'fix'.
The filesize seems very 'off' so I'm not sure if it'll work or not.
ro_explorer said:
sargorn, I've tried several times to decompile and recompile the framework with no luck. The new framework is ok, except this damn combo box rendering.
I personally gave up trying :|.
Click to expand...
Click to collapse
I've just de/recompiled JVH's framework-res and the combobox fix still seems to work. (Although maybe it's not needed in JVH, didn't test it!).
I tried it again with JVH and failed again. What I did:
1. decompile framework-res.apk with apkmanager
(2. make some of my changes to some xml files)
3. place the 2 files from compiled in drawable-hdpi-v4
4. recompile the apk
Everything but the comboboxes works as expected.
I'm attaching the apk, maybe you could have a look at it. If you can make it work please tell me what I did wrong. Many thx
XlAfbk said:
I tried it again with JVH and failed again. What I did:
1. decompile framework-res.apk with apkmanager
(2. make some of my changes to some xml files)
3. place the 2 files from compiled in drawable-hdpi-v4
4. recompile the apk
Everything but the comboboxes works as expected.
I'm attaching the apk, maybe you could have a look at it. If you can make it work please tell me what I did wrong. Many thx
Click to expand...
Click to collapse
As im here looking for the fix for my dhd I thought I might be able to help
Looking at your framework I can clearly see that those images in there are not fixed.
Try simply dragging and dropping the fixed pngs straight into your framework
liamstears said:
Try simply dragging and dropping the fixed pngs straight into your framework
Click to expand...
Click to collapse
that won't work, was said before, needs to be compiled in
Try out the jvo rom - I think this issue may be resolved in that framework.
Sent from my GT-I9000 using XDA Premium App
I still have that issue with my JVO theme

Customize your phone (theme/icons/locksreen)

Hello dear Forum...
First off I have to apologize if I missed something in a sticky,
since I'm new to the forum and the hole rooting/customizing on my GT I-9000.
I've successfully rooted my phone and I'm running Darky_v10_RC5_Final now.
Could anyone provide a link or an explanation how to:
# set own icons for apps
# set lockscreen (as its said there are 4 different ones on this ROM; plus changing the lockscreen image in the settings is not quite working for me)
# setting another theme - if not too complicated.
many thanks in advance - seems to be a truly nice community!
reimi said:
I've successfully rooted my phone and I'm running Darky_v10_RC5_Final now.
Click to expand...
Click to collapse
Final ?? When did it come out ?? Didn't find on Darky's website.
Sorry , wasn't logged in.
GT-I9000 said:
Final ?? When did it come out ?? Didn't find on Darky's website.
Click to expand...
Click to collapse
its the files name, I downloaded from somewhere in this thread:
http://forum.xda-developers.com/showthread.php?t=814091
reimi said:
Hello dear Forum...
First off I have to apologize if I missed something in a sticky,
since I'm new to the forum and the hole rooting/customizing on my GT I-9000.
I've successfully rooted my phone and I'm running Darky_v10_RC5_Final now.
Could anyone provide a link or an explanation how to:
# set own icons for apps
# set lockscreen (as its said there are 4 different ones on this ROM; plus changing the lockscreen image in the settings is not quite working for me)
# setting another theme - if not too complicated.
many thanks in advance - seems to be a truly nice community!
Click to expand...
Click to collapse
To change the icon in an apk, you need to get the apk, open it with winrar and go to drawable-hdpi
There are pngs there. Normally, the icon one is called icon.png, but on some apps, it has a different name, for example ic_launcher_phone.png
You edit it and substitute it.
Then you push the apk back into your phone into /system/app in case it's a system app or you just copy the apk to your sdcard and install it.
Lockscreen background may not work with some specific lockscreens.
For a theme, to make one you'd need to edit the pngs in framework-res.apk/drawable-hdpi (opening it with winrar) and then push it back. That's for changing icons and part of the appearance, but to change text colours and other things you'd need to decompile the apk and edit some xml's.
To apply a theme you just need the zip of the theme, copy it into your sdcard and install it through cwm.
coldflid said:
To change the icon in an apk, you need to get the apk, open it with winrar and go to drawable-hdpi
There are pngs there. Normally, the icon one is called icon.png, but on some apps, it has a different name, for example ic_launcher_phone.png
You edit it and substitute it.
Then you push the apk back into your phone into /system/app in case it's a system app or you just copy the apk to your sdcard and install it.
Lockscreen background may not work with some specific lockscreens.
For a theme, to make one you'd need to edit the pngs in framework-res.apk/drawable-hdpi (opening it with winrar) and then push it back. That's for changing icons and part of the appearance, but to change text colours and other things you'd need to decompile the apk and edit some xml's.
To apply a theme you just need the zip of the theme, copy it into your sdcard and install it through cwm.
Click to expand...
Click to collapse
thank you for the answer!
Is there no way to change the icons of stock applications?
And how may I change the lockscreen?
could you please give me a link, or something how to apply themes via cwm - to be honest I don't even know what cwm is.
sorry for all the questions - many thanks in advance!
reimi said:
thank you for the answer!
Is there no way to change the icons of stock applications?
And how may I change the lockscreen?
could you please give me a link, or something how to apply themes via cwm - to be honest I don't even know what cwm is.
sorry for all the questions - many thanks in advance!
Click to expand...
Click to collapse
Sorry, had lost track of this thread.
You can change the icon of stock applications in same way, but you must be rooted since they are located in system/app
For the lockscreen, to theme the glass lockscreen, you need to edit the pngs in framework-res.apk/res/drawable-hdpi named zzz_unlock_arrow_0000.png up to zzz_unlock_arrow_0009.png and the zzz_unlock_blackbg.9.png and zzz_blackbg_dual.9.png
To theme puzzle lockscreen:
edit zzz_unlock_puzzle_noti_icon_unlock and zzz_unlock_puzzle_noti_icon_unlock_fit
For android lockscreen (in framework-res.apk/res/drawable-land-hdpi):
ic_jog_dial_unlock
ic_jog_dial_sound on
ic_jog_dial_sound off
For epic unlock on framework-res.apk/res/drawable-hdpi
mod zz_unlock_lockbg_press
mod zz_unlock_lockbg_press
In case you want to get a stock framework and get aosp lockscreen:
To get aosp lockscreen you'd need to decompile classes.dex in android.policy.jar and edit a few files.
For that, i use ubuntu.
You open android.policy.jar and extract classes.dex
Then get baksmali and smali and place them in the same location as classes.dex
Open up a terminal and type cd and the location
Example:
cd /home/coldflid/Desktop
Then type java -jar baksmali-1.2.5.jar classes.dex
(if you've got another version of bajsmali change the 1.2.5 for the version you have).
You can type java -jar baksmali-1.2.5.jar classes.dex -o *
Where * is the name of the folder where you want classes.dex to be decompiled
Then you'd need to mod LockPatternKeyGuardView.smali or replace it with a modded one.
Then type in terminal
Then type java -jar smali-1.2.5.jar *
Where * is the name of the folder where classes.dex was decompiled
out.dex should be generated, rename it to classes.dex and copy it to android.policy.jar (replace the old one).
Then use root explorer to copy it to system/framework
coldflid said:
Sorry, had lost track of this thread.
You can change the icon of stock applications in same way, but you must be rooted since they are located in system/app
For the lockscreen, to theme...
Click to expand...
Click to collapse
thank you for the answer!
I'm currently using LockBot Pro to change the locksreen and its background, works fine for me.
I'll try to change the stock app icons as soon as I have time. Thanks!
coldflid said:
Sorry, had lost track of this thread.
You can change the icon of stock applications in same way, but you must be rooted since they are located in system/app...
Click to expand...
Click to collapse
I'm currently trying to substitute the stock app icons.
My question is, how I can find out, which of all those images is used for the menu and how can I browse the folders on my pc, which I can browse on my phone via root explorer...
thanks for the answer!

[MOD] Villain Theme System ( VRtheme ) for XXLSJ/XWLS8

While preparing JB Style for XXLSJ I've seen that we needed a proper VRTheme templatefor the new partitions ( /preload ) in our new systems. This will probably change in the future as Samsung releases the final version... but meanwhile... you can use this template to build mods.
No need to replace the entire SystemUI for battery images. This is not my work, I just simply adapted the original template.
Source:
http://forum.xda-developers.com/showthread.php?t=1207017
http://www.villainrom.co.uk/forum/threads/about-villaintheme-system.4971/
Download:
http://depositfiles.com/files/6lj80t3aa
Crussader said:
While preparing JB Style for XXLSJ I've seen that we needed a proper VRTheme templatefor the new partitions ( /preload ) in our new systems. This will probably change in the future as Samsung releases the final version... but meanwhile... you can use this template to build mods.
No need to replace the entire SystemUI for battery images. This is not my work, I just simply adapted the original template.
Source:
http://forum.xda-developers.com/showthread.php?t=1207017
http://www.villainrom.co.uk/forum/threads/about-villaintheme-system.4971/
Download:
http://depositfiles.com/files/6lj80t3aa
Click to expand...
Click to collapse
Thanks for sharing this Mods for Create new things.
dark_zhero said:
Thanks for sharing this Mods for Create new things.
Click to expand...
Click to collapse
i tried using it but went into boot loop..
all system\app files including systemui.apk which were before in systems\apps will be now in preload\symlink\system\app ??
or will the systemui.apk reside somewhere else ??
and the folders with the modified pngs will be named like systemui.apk ?? with the the extension ??
Thanks
xinfinityoO said:
i tried using it but went into boot loop..
all system\app files including systemui.apk which were before in systems\apps will be now in preload\symlink\system\app ??
or will the systemui.apk reside somewhere else ??
Click to expand...
Click to collapse
exactly... in deodexed ROMs they're located in there ( preload\symlink\system\app ). If I recall correctly, in odexed ( stock fro sammobile source ) they're still on system/app.... check where they are before patching using a root file manager.
xinfinityoO said:
and the folders with the modified pngs will be named like systemui.apk ?? with the the extension ??
Thanks
Click to expand...
Click to collapse
you have to recreate the folder structure of the file you're trying to mod
SystemUI.apk / res / drawable-hdpi ( for example )
Check one of my mods to see what I mean
Crussader said:
exactly... in deodexed ROMs they're located in there ( preload\symlink\system\app ). If I recall correctly, in odexed ( stock fro sammobile source ) they're still on system/app.... check where they are before patching using a root file manager.
you have to recreate the folder structure of the file you're trying to mod
SystemUI.apk / res / drawable-hdpi ( for example )
Check one of my mods to see what I mean
Click to expand...
Click to collapse
i did as what you have said ..but boot loop ..will check the systemui.apk location and try again
thanks
xinfinityoO said:
i did as what you have said ..but boot loop ..will check the systemui.apk location and try again
thanks
Click to expand...
Click to collapse
are you using .9.png files? They must be compiled before so you can use them
Crussader said:
are you using .9.png files? They must be compiled before so you can use them
Click to expand...
Click to collapse
Is that so? I never knew that
So quick question... If I change the hue of. 9 image I can't drop straight into an apk? It has to be recompiled 1st? If that's the case, that explains a lot. Thanks for the heads up on this. Every time I did this previously the image got distorted so i gave up touching them and just changed normal pngs.

[MOD][CM10.1][June 28] Disable Crt Off Effect

Hi guys...As we all know that the Crt off Effect in Cm10.1 4.2.2 is glitchy and not smooth compared to the ICS builds. Well i was little annoyed by it and found out a way to disable it.
You can disable crt animation by modifying framework-res.apk by changing the value of animatescreenlights to true(If it is already set to true try false.) in res/values/bools.xml.
I have modified the framework-res.apk to disable it. Attaching the modified framework-res.apk.:good:
Use RootExplorer(or similar software) to replace the modified framework-res.apk.
-copy the modified framework-res.apk from the directory where u had it.
-navigate to the System folder paste the apk here.
-Change the permissions of the apk to rw-r-r. move the apk after changing the permissions.
-Navigate to the folder Framework i.e System/framework/ and replace it with the original apk.
-Reboot after replacing:good:
Sorry i dont know to create a flashable zip.
tested on temasek's UNOFFICIAL BUILD - RC0.2 and works great.
performing a Nandroid backup before changing system files is recommended .
P.S:Added a flashable Zip( not sure whether it works )
Hey OP, Update your title. It's still June
neemzeey said:
Hey OP, Update your title. It's still June
Click to expand...
Click to collapse
Lol your signature says I'm using safari but I'm using dolphin

Categories

Resources