Alright, I'm trying to decompile and recompile a few of the SamsungWidgets so they'll work with Fr4gg0r's TW Launcher 4.5 using Apktool. When I went to decompile some of them, the apktool.yml didn't show up, so I couldn't recompile them. Why did this happen?
Also, I got one of the widgets to show apktool.yml, so when I went to recompile it, I got lost lol.
I know I need to sign the .apk with a javasigner, but where is that for a mac?
I'm trying to learn this all really fast, lol.
Scratch that.
Is it possible if someone could just sign the .apks themselves with the instructions in the OP?
Some/most Samsung widgets won't work without modification with this modded launcher. To fix it, grab the attached key, in AndroidManifest.xml set android:sharedUserId="tw4.fr4gg0r" (if not there add it) and resign it with the downloaded key (password is touchwiz, alias is fr4gg0r).
Here's the attachment for the key:
Related
I cant seem to find a way to get the 4 lock screens on just a standard theme, its kinda bothering me why nobody made one for the stock theme..
I guess this is impossible to have with the stock SGS theme.
Im starting to understand why there is no 4 lock screen for the stock theme, its not that is hard to make or anything infact the theme template for the 4 lock screen starts with a stock template then is modified.
Reason I think why nobody ever made a stock theme with 4 lock screens is that a lot of people what to use 4 lock screens and just stay with the standard theme this will make a lot of users abandon their current theme infavor of a stock theme with 4 lock screens, smart way of having people use a theme though.
Do it yourself
Take
android.policy.jar
framework.jar
framework-res.apk
Settings.apk
twframework-res.apk
from a theme with 4 lockscreens.
You can take the files out of this ROM
http://forum.xda-developers.com/showthread.php?t=844514
it's not that heavily modified and works quite well with stock images.
Open framework-res.apk and replace the files inside res/drawable-hdpi(-v4) with files from the stock theme. Do the same for twframework-res.apk.
Build an update.zip and install.
There might be a few xml changes to do, but it will be very, very stock already...
Thanks but Im afraid I dont have time to mess around and learn with it, you might be able to do for us here at XDA?
It's just copy&paste.
No hard things to do...
You need
7-zip
framework-res.apk (modded and stock)
twframework-res.apk (modded and stock)
1.
Open stock framework-res.apk with 7-zip and go to res/drawable-hdpi.
Open modded framework-res.apk with 7-zip and go to res/drawable-hdpi(-v4).
Mark all files in stock framework-res.apk/res/drawable-hdpi and copy over to modded framework-res.apk/res/drawable-hdpi(-v4). Drag&drop.
2.
Open stock twframework-res.apk with 7-zip and go to res/drawable-hdpi.
Open modded twframework-res.apk with 7-zip and go to res/drawable-hdpi(-v4).
Mark all files in stock twframework-res.apk/res/drawable-hdpi and copy over to modded twframework-res.apk/res/drawable-hdpi(-v4). Drag&drop.
That's all.
The other files (android.policy.jar, framework.jar, Settings.apk) don't have to be modified.
If I copy over the contents of the modded framework HDPI to the original frame work wont it look like the modded frame work instead?
So the andriod.policy / framework.jar / settings.apk are the core files to have the 4 screens working and not really the framework-res.apk ?
Apart from the other changes, we will need to modify the settings APK...
this is because we want to see the option of selecting one of teh four lockscreens in the settings...
apart from this, the drawable-hdpi folder just has the icons, to add the functionality, we need to modify the classes.dex file which is within the jar file...
not such an easy task for someone new to modding...
msri3here said:
Apart from the other changes, we will need to modify the settings APK...
this is because we want to see the option of selecting one of teh four lockscreens in the settings...
apart from this, the drawable-hdpi folder just has the icons, to add the functionality, we need to modify the classes.dex file which is within the jar file...
not such an easy task for someone new to modding...
Click to expand...
Click to collapse
I have zero experience with theme modding, Im only a kernel/rom flasher and Im pretty good at it ( who isnt ? )
Im currently using a theme, the only one I like that gives the Ginger look w/o the extra bells and whistles of changed icons ( http://forum.xda-developers.com/showthread.php?t=873825 )
Maybe someone can be so kind enough to add the 4 lock screen there ?
msri3here said:
Apart from the other changes, we will need to modify the settings APK...
this is because we want to see the option of selecting one of teh four lockscreens in the settings...
apart from this, the drawable-hdpi folder just has the icons, to add the functionality, we need to modify the classes.dex file which is within the jar file...
not such an easy task for someone new to modding...
Click to expand...
Click to collapse
You don't have to.
scheichuwe said:
...
Take
android.policy.jar
framework.jar
framework-res.apk
Settings.apk
twframework-res.apk
from a theme with 4 lockscreens.
...
Click to expand...
Click to collapse
Please read before posting...
Edit:
@EarlZ
You can try this tool
http://forum.xda-developers.com/showthread.php?t=737526
Lets see if I got this
the 4 lock screen is dependent on the following files
android.policy.jar
framework.jar
Settings.apk
and the UI looks depends on these:
twframework-res.apk
framework-res.apk
So basically I can use any 4 lock screen theme and just overwrite it with the stock twframework and framework on it ?
EDIT:
By just replacing the twframework-res and framework-res the phone is not usable, it does boot and when the home screen loads it vibrates and goes into a endless reloading loop if ever you get a chance to go to the settings to choose the lock screen when you lock then unlock the device theres no lock screen visible.
When you want the clean gingerbread look you should take a 4 lockscreen theme that has these black menu background (when you hit menu-softkey) as your base.
Here are some
http://forum.xda-developers.com/showthread.php?t=898892
http://forum.xda-developers.com/showthread.php?t=899471
http://forum.xda-developers.com/showthread.php?t=854191
http://forum.xda-developers.com/showthread.php?t=864112
Just a few examples, there are more...
I mentioned it before:
There might be some xml edits that have to be done (colors for texts etc.), but the icons will be stock...
EarlZ said:
...
EDIT:
By just replacing the twframework-res and framework-res the phone is not usable, it does boot and when the home screen loads it vibrates and goes into a endless reloading loop if ever you get a chance to go to the settings to choose the lock screen when you lock then unlock the device theres no lock screen visible.
Click to expand...
Click to collapse
That's why I wrote this
scheichuwe said:
...
Take
android.policy.jar
framework.jar
framework-res.apk
Settings.apk
twframework-res.apk
from a theme with 4 lockscreens.
...
Click to expand...
Click to collapse
I've just tried some of the themes available here against the apkmanager tool - decompiling and then compiling the framework-res.apk and twframework-res.apk and all of the custom themes give tons of errors (sometimes won;t even compile back) .. the only one that goes without troubles is the stock framework-res.apk and twframework-res.apk
I'm just wondering whether this is correct or not and where is the issue - is it apkmanager or the themes that are wrong ?
w83 said:
I've just tried some of the themes available here against the apkmanager tool - decompiling and then compiling the framework-res.apk and twframework-res.apk and all of the custom themes give tons of errors (sometimes won;t even compile back) .. the only one that goes without troubles is the stock framework-res.apk and twframework-res.apk
I'm just wondering whether this is correct or not and where is the issue - is it apkmanager or the themes that are wrong ?
Click to expand...
Click to collapse
I never had much luck with APKManager, that's why I use APKTool.
Try v1.3.1 if you can find it, 1.3.2 has problems.
Apk Manager uses apktool too.
@w83
Take a look at log.txt.
I guess it's due to corrupted .9.png.
Solution:
Replace all modded .9.png with original files, decompile, make your changes, compile.
Then you can put in your modded .9.pngs again...
scheichuwe said:
Apk Manager uses apktool too.
@w83
Take a look at log.txt.
I guess it's due to corrupted .9.png.
Solution:
Replace all modded .9.png with original files, decompile, make your changes, compile.
Then you can put in your modded .9.pngs again...
Click to expand...
Click to collapse
Is it really a solution ? .. cause it seems like all of the modded .9.pngs are basically broken
You're right, let's say workaround
For fixing your modded .9.png search for xUltimate draw 9 patcher. I don't know what it's called exactly.
But for editing framework-res.apk the workaround should be acceptable.
I can manage to decompile the theme (usually with some patched pngs messed up) but when I try to compile it (even without any changes) I end up with tons of errors in the form:
apktools/vagreen_frame/res/values/public.xml:3760: error: Public symbol drawable/zzzzz_tw_quickcontact_top_frame declared here is not defined.
(lots of these ones)
any idea what's wrong ?
w83 said:
I can manage to decompile the theme (usually with some patched pngs messed up) but when I try to compile it (even without any changes) I end up with tons of errors in the form:
apktools/vagreen_frame/res/values/public.xml:3760: error: Public symbol drawable/zzzzz_tw_quickcontact_top_frame declared here is not defined.
(lots of these ones)
any idea what's wrong ?
Click to expand...
Click to collapse
Once your 9.pngs are poorly done, errors such as the above would appear. There were only 6 9.png errors and the log generated a loh file size of 130+kb. But once solved, all errors were eliminated.
Sent from my GT-I9000 using XDA App
scheichuwe said:
You're right, let's say workaround
For fixing your modded .9.png search for xUltimate draw 9 patcher. I don't know what it's called exactly.
But for editing framework-res.apk the workaround should be acceptable.
Click to expand...
Click to collapse
I'm either using the android sdk draw9patch to generate the pngs or even GIMP to do it. Just make sure the first and last row/column must be either alpha or black. No other colours are allowed there.
Sent from my GT-I9000 using XDA App
g00ndu said:
I'm either using the android sdk draw9patch to generate the pngs or even GIMP to do it. Just make sure the first and last row/column must be either alpha or black. No other colours are allowed there.
Click to expand...
Click to collapse
Ok so ur saying that after I should correct the patch 9 pngs in the framework and it should compile correctly ? .. so two options: [1] decompile, replace the pngs with correct ones, compile ? .. or .. [2] correct pngs, compile in eclipse, replace in framework, decompile, compile ?
I am pretty sure that I've already tried correcting them using [1] and it didn't help at all .. I was still flooded with errors ..
I guess I'll try to modify things from the bottom up .. take the stock theme with extended menu and play around with it .. are there any significant changes in the .jars inside the /system/framework in most of current themes ?
but still it would be way nicer if I could decompile and compile one of current themes without errors .. I'm so curious how the theme gurus are doing it .. I envy their knowledge
w83 said:
...
but still it would be way nicer if I could decompile and compile one of current themes without errors .. I'm so curious how the theme gurus are doing it .. I envy their knowledge
Click to expand...
Click to collapse
Replace all modded .9.png with original files, decompile, make your changes, compile.
The person who made the theme did it lazily and incorrectly. The first couple versions of my ROM had this problem. Did some research into how .9 PNGs work.
If you want to fix them, I can tell you how. It's a bit tedious.
scheichuwe said:
Replace all modded .9.png with original files, decompile, make your changes, compile.
Click to expand...
Click to collapse
Yep that worked perfectly !! Thx mate for that
I'll try to mod something and see how it works
MikeyMike01 said:
The person who made the theme did it lazily and incorrectly. The first couple versions of my ROM had this problem. Did some research into how .9 PNGs work.
Click to expand...
Click to collapse
Most of the available themes can't be compiled and decompiled without errors
w83 said:
Most of the available themes can't be compiled and decompiled without errors
Click to expand...
Click to collapse
But mine can.
Spent a couple days fixing every .9 PNG one at a time. All you have to do is:
Decompile the unthemed .apk
Copy the broken PNG equivalents from the unthemed .apk
Decompile the themed .apk
Delete the broken .9 PNGs
APK Manager will rename the broken xxxxx.9.png to xxxxx.png
Open the non-broken PNGs in your favorite image editor
Delete everything but the 1 pixel border
Paste the edited PNG over it, without touching the 1 pixel border
Save
Recompile the themed.apk
MikeyMike01 said:
But mine can.
Spent a couple days fixing every .9 PNG one at a time. All you have to do is:
Decompile the unthemed .apk
Copy the broken PNG equivalents from the unthemed .apk
Decompile the themed .apk
Delete the broken .9 PNGs
APK Manager will rename the broken xxxxx.9.png to xxxxx.png
Open the non-broken PNGs in your favorite image editor
Delete everything but the 1 pixel border
Paste the edited PNG over it, without touching the 1 pixel border
Save
Recompile the themed.apk
Click to expand...
Click to collapse
Thank you so very much for sharing this info!!!
MikeyMike01 said:
But mine can.
Click to expand...
Click to collapse
Perfect
MikeyMike01 said:
Delete everything but the 1 pixel border
Paste the edited PNG over it, without touching the 1 pixel border
Click to expand...
Click to collapse
You can just edit the broken png in draw9patch (or gimp or whatever) but sticking to the patch 9 png rules
Thanks for sharing !
Could you briefly explain how the editing in draw9patch is done, please.
MikeyMike01 said:
But mine can.
Spent a couple days fixing every .9 PNG one at a time. All you have to do is:
Decompile the unthemed .apk
Copy the broken PNG equivalents from the unthemed .apk
Decompile the themed .apk
Delete the broken .9 PNGs
APK Manager will rename the broken xxxxx.9.png to xxxxx.png
Open the non-broken PNGs in your favorite image editor
Delete everything but the 1 pixel border
Paste the edited PNG over it, without touching the 1 pixel border
Save
Recompile the themed.apk
Click to expand...
Click to collapse
But lets say I want to change the default blue of 'statusbar_background.9.png' to full plain black. If I leave the 1 pixel border and fill the rest to black, wouldn't I have a blue border in the status bar?
brittosa said:
But lets say I want to change the default blue of 'statusbar_background.9.png' to full plain black. If I leave the 1 pixel border and fill the rest to black, wouldn't I have a blue border in the status bar?
Click to expand...
Click to collapse
No, there's a special one pixel border that has black and transparent pixels that tell the system how to stretch the image without making it look stretched.
That's why you'll note that .9 PNG files are buttons and other things that are used to make different sized objects.
Sent from my Captivate.
So I'm currently using a MMS app that is modded with emojis + other useful settings . But I was wondering if anyone could help me add the emojis from ios6 into that application. I took the emojis out of the Handcent Emoji Plugin application and I'll attach it with this post along with the MMS.apk that has the "regular" emojis that I'm using at the moment.
If not, could someone help me with editing/modding the MMS.apk so I can add them myself? I played around with APKtool and also APK manager but I'm unable to "decompile" the application
Edit: Some possibly useful or useless information-Galaxy Nexus running on a rom that is on 4.2.1 (aosp)
:fingers-crossed:
Update!
So i was able to change the public.xml file to add the ios6 emojis. But now, when I recompile the apk, theres an error. Where else should I change the code?
I would also like this
Sent from my Nexus 4 using xda premium
areole said:
Update!
So i was able to change the public.xml file to add the ios6 emojis. But now, when I recompile the apk, theres an error. Where else should I change the code?
Click to expand...
Click to collapse
What error are you getting? Are you defining images in the public XML and not adding the actual image? Anyway a log would help also it's easier to just add the images try to recompile and let the public XML build new resource ids for the new images. I have never looked into this but i would imagine you would need to add something else in styles or strings can't remember which one. Also I'm not sure how well those new icons will play with other phones it might work i just don't know.
Sent from my Galaxy Nexus using xda premium
Beamer9408 said:
What error are you getting? Are you defining images in the public XML and not adding the actual image? Anyway a log would help also it's easier to just add the images try to recompile and let the public XML build new resource ids for the new images. I have never looked into this but i would imagine you would need to add something else in styles or strings can't remember which one. Also I'm not sure how well those new icons will play with other phones it might work i just don't know.
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
The error I'm getting is "public drawable symbol is not defined"
I added the actual image (.png) files to the folder where all the other drawable images were located. I believe the folder was called drawable-xhdpi (I don't have access the the computer I used to mod the mms.apk at the moment). This was the only folder were the older emojis were in. Could you explain to me the recompiling? Do I not physically edit the public.xml file, and let it update itself?
This is what I did:
1. Extracted new emoji's from handcent
2. Decompiled the mms.apk + added new emojis to drawable-xhdpi folder (I tried recompiling here but when I used the app, there were no new emojis)
3. I clicked around and opened the public.xml file and saw that there were emojis names and id codes so I manually added more coding so that the new emojis would have codes.
4. When I added id codes to all the new emojis, I noticed that the id codes doubled in some misc. picture files so I manually changed those as well so the id codes wouldn't double
5. Save and recompiled it but it wouldn't work.
The .png icons that I extracted from handcent (I believe) are the same ones in the mms.apk currently since they have the same names. So I assumed that it was okay to do, but I might be wrong.
Thank you, sorry for the trouble
...but I'm having issues installing the required java & android sdk files to my PC so I'm unsuccessful when trying to decompile the SystemUI.apk. Has anyone done that mod to a TW 4.1.2 ROM (Im on JMTJB v6 btw). If so think you could share the edited xml file(s) or the SystemUI apk? I also posted a link of my SystemUI.apk to see if anyone is willing to edit the needed xml files. Just name your price Thx ahead.
I can't be the only one wanting this mod, right? There has to be someone else who got it done on TW 4.1.2
http://forum.xda-developers.com/showthread.php?t=2109973 this should help you out
krazierokz said:
http://forum.xda-developers.com/showthread.php?t=2109973 this should help you out
Click to expand...
Click to collapse
Thank you...but as you see (and I stated on the o.p.) I have problems with my old-ass pc and I can't get the necessary files installed for me to decompile any apk. I have tried and tried but it just won't do it and I'm left unable to decompile crap. I know EXACTLY what I need to do but I CAN'T DECOMPILE the SystemUI.apk to do it. . That's the reason I'm asking if someone (that knows how to decompile, edit the status_bar.xml & tw_status_bar.xml, & compile again) could hook me up...and of course I'm willing to pay for their time.
Okay, so I am trying to get the navbar working on the Samsung Galaxy Note 3. Pretty much, I have a feeling that SystemUI is missing the icons for the navbar, which causes it to crash when the build.prop has the line "qemu.hw.mainkeys=0". The SystemUI has all the other files that were required for the S4 sysui mod, except for the icons. Being a noob at this, I went ahead and tried to add the icons, but my apk resulted in "System UI has stopped.".
So I decided maybe I am doing something wrong. So with Android Multitool for windows, I installed framework-res.apk, SystemUI.apk, and twframework-res.apk. Next I select the SystemUI.apk for decompiling, and decompile it. Then I simply select the decompiled directory (didn't modify anything!), and recompile it. I then open the new SystemUI.apk in 7z and add the META-INF and AndroidManifest.xml from the old SystemUI.apk. I then select the newly compiled SystemUI.apk for signing, then I sign it.
This is just decompiling, then building the same thing without modifications. SystemUI.apk before decompiling is 2.7 MB, the newly compiled one is only 2 MB! Something is missing out of the new one, but when I compare them in 7z, the only thing I can see that is different is the packed size; whereas the old one has files and folders that take up more space packed than the new one.
When I try doing this with just apktool and cmd, I get java errors like crazy, and the whole SystemUI.apk ends up only half decompiling.
Any idea what I am doing wrong?
Your best bet would be to copy the log to pastebin, and post it in the apktool support thread. Get more views there for sure. Which version of apktool are you using? Can you decompile and recompile anything? Also, if you want post your systemui up and i could see if I can get it to work, narrow it down to a problem on your end that way.
Sent from my SM-N900T using Xparent Skyblue Tapatalk 2
This is my first time doing this, so of course I make a noob mistake! I thought I had to sign ALL apks, but this is a SYSTEM app, and I don't sign it. All is well! Thanks for the reply. I also updated my apktool to 1.5.2, so that may have helped too.
all you have to do is add a + before the @ sign in the line that is giving you errors....umm depending if it is xml errors....
post the errors.....
gakio12 said:
This is my first time doing this, so of course I make a noob mistake! I thought I had to sign ALL apks, but this is a SYSTEM app, and I don't sign it. All is well! Thanks for the reply. I also updated my apktool to 1.5.2, so that may have helped too.
Click to expand...
Click to collapse
You don't need to sign it? I have also this problem. It gives me error that SystemUI has stopped.