[Q] twframework.apk not getting extracted!!! - Galaxy Grand Duos i9082 Q&A, Help & Troubleshootin

@wali01x i tried decompiling twframework.apk for adding the crt animation in my gt i9082. i refered to the post that u have written here. But its not getting extracted. It is showing few errors!!(screenshot attached for ur ready referrence). So will u plz edit it for me as i wanted the horizontal crt animation in a new rom which i m making.
n will u please also tell me that where i m going rong! n yes...i have java installed. @balliboxer @chotu222 @kk9999gada and other xda members if u know the solution then i nedd ur help too!!!
(Please open the images by right clicking on the thumbnail and then opening it in a new tab. Thankyou.)
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
- Error
- Log
Thanking u all in anticipation!:fingers-crossed:

adityab721 said:
@wali01x i tried decompiling twframework.apk for adding the crt animation in my gt i9082. i refered to the post that u have written here. But its not getting extracted. It is showing few errors!!(screenshot attached for ur ready referrence). So will u plz edit it for me as i wanted the horizontal crt animation in a new rom which i m making.
n will u please also tell me that where i m going rong! n yes...i have java installed. @balliboxer @chotu222 @kk9999gada and other xda members if u know the solution then i nedd ur help too!!!
(Please open the images by right clicking on the thumbnail and then opening it in a new tab. Thankyou.)
- Error
- Log
Thanking u all in anticipation!:fingers-crossed:
Click to expand...
Click to collapse
First of all I recommend you to use apktool for decompiling apks.
Tools Required:
Apktool (Download)
7-zip (Don't use WinRAR) (Download from Here)
Notepad++ (Download from Here)
Installing Apktool:
Download it from the attachment.(Apktool.zip)
Now Extract 3 files present inside zip to "C:\Windows" without any folder.
You have now installed apktool.
Installing frameworks:
Create a folder named "Apktool" here "C:\Apktool" or on any location with any name you want.
Copy "framework-res.apk" and "twframework-res.apk" (without quotes) to that folder you created.
Now hold Shift key and right click anywhere on the empty area in explorer. (See Image)
Select "Open Command Window Here" (See Image)
Now you will get a command window (See Image).
Now type "apktool if framework-res.apk" (without quotes). It will be installed. (See Image)
Now type "apktool if twframework-res.apk" (without quotes). (See Image)
Now both the frameworks are installed.
Compiling & Decompiling Apks:
To decompile the Apk place desired the apk inside the folder you created.
Once again hold Shift key and right click anywhere on the empty area in explorer.
Now type "apktool d framework-res.apk" or any **.apk you want to decompile (without quotes).
Similarly you can also decompile "twframework-res.apk" (See Image)
Now to compile back type "apktool b framework-res" (without quores and without .apk extension). (See Image)
Now you have successfully compiled apk.
Lockscreen CRT-OFF Animation:
Decompile framework-res.apk using the above tutorial.
Now navigate to \framework-res\res\values\bools.xml
Now edit bools.xml using Notepad++ (Don't use the inbuilt notepad of windows it will corrupt the file as it is not linux based)
Find "<bool name="config_animateScreenLights">true</bool>"
Now change "true" to "false" and save the file and exit Notepad++
Now compile back the apk using the above tutorial.
Now open the decompiled folder you will see two new folders "build" and "dist"
Go inside "build\apk" folder you will find a file named "resources.arsc"
Now open the original apk say, "framework-res.apk" that is inside C:\Apktool using 7-zip
Drag the "resources.arsc" from framework-res\build\apk\ to the original apk
Now you have successfully applied CRT-OFF Animation.
You can now replace the apk inside the phone with the modded one using root explorer.
Don't forget to keep a Nandroid Backup and a separate backup of original framework-res.apk just in case something goes wrong

kk9999gada said:
First of all I recommend you to use apktool for decompiling apks.
Tools Required:
Apktool (Download)
7-zip (Don't use WinRAR) (Download from Here)
Notepad++ (Download from Here)
Installing Apktool:
Download it from the attachment.(Apktool.zip)
Now Extract 3 files present inside zip to "C:\Windows" without any folder.
You have now installed apktool.
Installing frameworks:
Create a folder named "Apktool" here "C:\Apktool" or on any location with any name you want.
Copy "framework-res.apk" and "twframework-res.apk" (without quotes) to that folder you created.
Now hold Shift key and right click anywhere on the empty area in explorer. (See Image)
Select "Open Command Window Here" (See Image)
Now you will get a command window (See Image).
Now type "apktool if framework-res.apk" (without quotes). It will be installed. (See Image)
Now type "apktool if twframework-res.apk" (without quotes). (See Image)
Now both the frameworks are installed.
Compiling & Decompiling Apks:
To decompile the Apk place desired the apk inside the folder you created.
Once again hold Shift key and right click anywhere on the empty area in explorer.
Now type "apktool d framework-res.apk" or any **.apk you want to decompile (without quotes).
Similarly you can also decompile "twframework-res.apk" (See Image)
Now to compile back type "apktool b framework-res" (without quores and without .apk extension). (See Image)
Now you have successfully compiled apk.
Lockscreen CRT-OFF Animation:
Decompile framework-res.apk using the above tutorial.
Now navigate to \framework-res\res\values\bools.xml
Now edit bools.xml using Notepad++ (Don't use the inbuilt notepad of windows it will corrupt the file as it is not linux based)
Find "<bool name="config_animateScreenLights">true</bool>"
Now change "true" to "false" and save the file and exit Notepad++
Now compile back the apk using the above tutorial.
Now open the decompiled folder you will see two new folders "build" and "dist"
Go inside "build\apk" folder you will find a file named "resources.arsc"
Now open the original apk say, "framework-res.apk" that is inside C:\Apktool using 7-zip
Drag the "resources.arsc" from framework-res\build\apk\ to the original apk
Now you have successfully applied CRT-OFF Animation.
You can now replace the apk inside the phone with the modded one using root explorer.
Don't forget to keep a Nandroid Backup and a separate backup of original framework-res.apk just in case something goes wrong
Click to expand...
Click to collapse
Ok! Thanku! I have decompiled my frawework successfully! Bt that animateScreenLights in my bools is already false! So waht should I do? Should I make it true? Or should I compile the apk without making any changes?
Sent from my GT-I9082 using XDA Premium 4 mobile app

adityab721 said:
Ok! Thanku! I have decompiled my frawework successfully! Bt that animateScreenLights in my bools is already false! So waht should I do? Should I make it true? Or should I compile the apk without making any changes?
Sent from my GT-I9082 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Looks like Samsung is trying to block developers from editing the apks by removing some features. Sorry bro but I know this much only about crt off animation.
However you can try this app from play store as it has CRT-OFF ANIMATION
https://play.google.com/store/apps/details?id=com.katecca.screenofflock&hl=en

kk9999gada said:
Looks like Samsung is trying to block developers from editing the apks by removing some features. Sorry bro but I know this much only about crt off animation.
However you can try this app from play store as it has CRT-OFF ANIMATION
https://play.google.com/store/apps/details?id=com.katecca.screenofflock&hl=en
Click to expand...
Click to collapse
Yes I know about that app..bt I wanted the animation as integrated in ur inspiration rom! Unlucky Me! :crying: Anywayz...thanks a ton for ur concern!
Sent from my GT-I9082 using XDA Premium 4 mobile app

Related

[Tutorial] Decompiling-Compiling-Editing APKs

Hello guys. I'm creating a thread with a simple tutorial of how to decompile, compile, edit apks. I've seen some threads about it, but all of them were very complicated to understand. It's a simple tutorial, not designed to really mess with apks, just to edit a bit, like swapping icons, images, etc. When I get some more time, I will also teach how to mess with some CM9 Theme Chooser APKs
First of all, what you are going to get with this?
1. Decompile APKs
2. Decompiling all files, so you will only get XML [easy to edit], images and SMALI files [in most cases]
You need to know...
1. Works only Windows [x86 or x64] [You can try on linux, but you will need to download other files of apktool. But the steps are almost the same]
2. Choose the .bat of your version. [x86 = 32 bits] [x64= 64 bits]
3. You need JRE
4. Attached, the most updated apktool.
Let's go...
STEP 1 - preparing
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
1. I've optimized the files to run at D:\apktool [Another partition]. So, extract the .7z, and make sure that there's a apktool folder at the ROOT of D:\ drive. If you want to put this folder at other place, please pay attention: open the Run [x??].bat on the notepad. If you want the folder at the C:\ drive, delete the "D:" line, and swap the directory to the one you choose. [Example: "C:\Users\....user name....\Desktop"] Just make sure you included the cd before the path. If you want the folder at other place on D:\ drive, just change the directory [Example: "D:\Desktop"], and again, with the "cd" command before the path.
STEP 2 - still preparing...
1. Get framework-res.apk from your ROM [if you are on a Samsung ROM, also get twframework]
2. Extract framework-res.apk here
3. Open the correct .bat of your Windows version
4. Run this command: "apktool if framework-res.apk" [if you are on a Samsung ROM, also do with the other framework]
STEP 3 - now decompiling
1. Now, put the apk you want to edit on your apktool folder.
2. Run this command: "apktool d APK-NAME.apk
3. You may get NO errors when it's done.
4. The out put folder is the folder of the decompiled apk.
STEP 4 - now compiling
1. Run this command: "apktool b APK-NAME" [without the .apk]
2. You may get NO errors when it's done.
3. The output APK is located on \[apktoolfolder]\APK-NAME\dist
STEP 5 - optimizing
1. Sign your APK with this
2. Zipalign your APK with this. You can also use zipalign scripts on your ROM to zipalign.
3. Now you may install your apk normally. [user app or system app]
__________________________________________________ __________________________________________________ ___________________________________________
TIPS
1. You can edit .smali files with Notepad ++
2. You can also edit XML files on the Notepad [Windows notepad. I think that with Notepad ++ also works]
3. Soon, I'm going to teach how to edit CM9 Theme Choose APKs. You will be able to: theme non-themed apps, and replace images.
4. I tried to be the most clear and direct as possible. If something is unclear, tell me now. If you have any suggestions to make the tutorial better, please tell me...
reserved...
reserved too...
i reserved it, becouse i was trying it out, and i wanted to be one of the first post here, great tut, lika charm
android_isda_**** said:
RESERVED
Click to expand...
Click to collapse
??
Hi can you help me with this apk? http://forum.xda-developers.com/showthread.php?t=1738252
VasyleTheBest said:
Hi can you help me with this apk? http://forum.xda-developers.com/showthread.php?t=1738252
Click to expand...
Click to collapse
This is a lot harder. Can't do this for you. This isn't playstation2 with it's football games. Sorry. If you still want to try, decompile and search for images to replace.
Hi,
a question here:
I was succefull to theme system apps, but when I try to theme a normal, it never works. all the processes goes fine, but when i eant to install modified apk it gives error. and even when I copy it to /data/app/ it disappear from app drawer.(after restart of course)
sam5154 said:
Hi,
a question here:
I was succefull to theme system apps, but when I try to theme a normal, it never works. all the processes goes fine, but when i eant to install modified apk it gives error. and even when I copy it to /data/app/ it disappear from app drawer.(after restart of course)
Click to expand...
Click to collapse
I think you forgot to sign. Sign, and after you do, go back here and tell what error are you getting
i always got an error compiling systemui, can you help me?
edit:
found a solution using ics apktool here
http://forum.xda-developers.com/showthread.php?t=1558171
marcellocord said:
I think you forgot to sign. Sign, and after you do, go back here and tell what error are you getting
Click to expand...
Click to collapse
Wow, thanks it worked. But why system apps don't need to be signed?
Sent from my GT-I9100 using Tapatalk 2
First: Great Job
Second 2 Questions.
Is it not easyer to editing in .java (with dex2jar tool) then in smali?
For beginners is it not a little bit easyer to use "Apk One Click" for de- and recompile .apk (include the dex2jar Tool) ?
sam5154 said:
Wow, thanks it worked. But why system apps don't need to be signed?
Sent from my GT-I9100 using Tapatalk 2
Click to expand...
Click to collapse
They can still work.
$wissdroid said:
First: Great Job
Second 2 Questions.
Is it not easyer to editing in .java (with dex2jar tool) then in smali?
For beginners is it not a little bit easyer to use "Apk One Click" for de- and recompile .apk (include the dex2jar Tool) ?
Click to expand...
Click to collapse
Thanks. When you decompile, it will turn a lot of files into .smali files. Those smali files are very easy to modify on Notepad++. But I'm going to study more about dex2jar.
I had write before a Month or Two, A decompile Tutorial for German Users:
When you need some Pictures for your Tutorial, you Can find it: Here
thank you marcellocord
it works very well.
good job

[TUTORIAL] [Sense 2.1+3.5 only] Remove recent apps from Notification bar

Many of the user has requested for removing of RECENT APPS from notification...so i am presenting here..do it Urself...i have confirmed it..it is working
===============================================================​This mod is based on file "StatusBarFlag.smali" which is found in systemui.apk file (search for it in systemui folder after decompiling it using apktool.
Modify the below line in the "StatusBarFlag.smali" file using text editor Notepad++.
Insert "const/4 v0, 0x0" between ":goto_0 and sput-booleen v0,..." The code should be like
this-->
:goto_0
const/4 v0, 0x0
sput-boolean v0, Lcom/android/systemui/statusbar/StatusBarFlag;->HTC_RECENT_APP:Z
-Systemui.apk decomilation and recompilation method:
Required softwaregoogle for the tools to get them):
- APKtool (apktool1.4.3.tar, apktool-install-windows-r04-brut1.tar)
- an enhanced text editor to edit the XML/smali files with (i use Notepad++);
- *Root Explorer or any other root explorer out there (i use ES File Explorer);
- any archive utility that can open .ZIP files (7zip, WinRAR etc.);
- Windows PC.
*Note: yes, you have to have root.
Step 1 (installing the tools):
- Download and install the latest Java Runtime Environment (APKtool needs at least ver. 1.6);
- Download "apktool-install-windows-r04-brut1.tar" and "apktool1.4.3.tar" and unzip
them into a folder of your choosing;
Step 2 (preparing to decompile):
- In order to properly decompile/compile SystemUI.apk, you need to install the framework with
APKtool;
- Open your root explorer of choice and navigate to /system/framework;
- Copy both "framework-res.apk" and "com.htc.resources.apk" to the SD card, then move them to
your PC either via cable or via a software of your choosing (i use AirDroid);
- Put both "framework-res.apk" and "com.htc.resources.apk" into the folder where you've
extracted APKtool;
- Open a command prompt (Windows button + R then type "cmd") and navigate to the folder
where you have APKtool and the framework APKs;
- Type "apktool if framework-res.apk" then "apktool if com.htc.resources.apk". Your files will be
processed and the required bits will be "installed" in "C:/Users//apktool
/framework";
- You can now delete both APKs from the folder.
Step 3 (proper decompilation):
- Copy your SystemUI.apk from "/system/app" to the folder where you've extracted APKtool;
- Open a command prompt, navigate to the APKtool folder, type "apktool d SystemUI.apk" and
wait 'till APKtool has finished. You should get no errors whatsoever and your APK should now be
decompiled into "readable format" in "/SystemUI". Edit the file StatusBarFlag.smali with the text editor of your choosing.
Step 4 (proper compilation):
- After making the desired changes in the systemui.apk, it's now time to compile it;
- Open a command prompt, navigate to the APKtool folder then type "apktool b SystemUI". Your
APK will now be compiled to "/SystemUI/dist" (again, you should get no
errors whatsoever). DON'T USE IT YET!
- Being a system app, SystemUI.apk must first be signed with the proper keys else odds are it
won't work. To do that, you need to rename the SystemUI.apk you're editing (the original one)
into SystemUI.zip, open it with an archive manager then extract META-INF and
AndroidManifest.xml to the "/SystemUI/build/apk" folder, then run the
"apktool b SystemUI" command again. Your APK will now be built with the proper keys included,
and is now fully functional. You may "pick it up" from the "/SystemUI/dist"
folder;
- You can now flash the resulting (modded) APK to your device either via ADB or via a way of
your choosing (.ZIP from recovery etc.) or just replace the old systemui.apk with modified systemui.apk using esfile manager, rootexplorer etc.
Enjoy
Thanks to
Upadhyay
Plz dont say this is not working for me....just read it carefully than do it..
Screen shot...
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
(Note:this notification bar transperancy is Moded by mee)
Its actualy sense only not sense 2.1 only as it worsk on 3.5 too.
Also confirm it works, though I had to make a flashable zip. I had previously tried to use a file manager as soon as the new apk overwrote the old I was spammed with FCs (rebooting, setting permissions, and rebooting again did nothing, the whole notification bar wouldn't load). So, if you do encounter errors, try it as a flashable zip.
lol i posted this the other day!!
elspanish88 said:
lol i posted this the other day!!
Click to expand...
Click to collapse
You actualy linked it not posted and he did say its not his invention or anything just spreading the word.
baluuu said:
You actualy linked it not posted and he did say its not his invention or anything just spreading the word.
Click to expand...
Click to collapse
thanks man...i havent said that give me credit...
baluuu said:
Its actualy sense only not sense 2.1 only as it worsk on 3.5 too.
Click to expand...
Click to collapse
if u have tried and if confirmed than tell me, i will change the title
i dont care?? im not saying he has stolen my post :/ its freely available on the net
elspanish88 said:
i dont care?? im not saying he has stolen my post :/ its freely available on the net
Click to expand...
Click to collapse
Plz give him credit officialy on xda
Lol(stolen post)
Sent from my HTC Wildfire S A510e using xda app-developers app
smartboy0668 said:
if u have tried and if confirmed than tell me, i will change the title
Click to expand...
Click to collapse
Yep tried and confirmed here
that's really worth trying, thanks for putting all of this in one place, what about removing the operator name with that "clear" button ? any clue ?
Sent from my HTC Wildfire S A510e using xda app-developers app
Thanks for this!
damnit I cant get this to work -__-
danielstar13 said:
damnit I cant get this to work -__-
Click to expand...
Click to collapse
Try it with each step carefully read...it happened with mee too...just check you have installed your apktool properly ...
Sent from my HTC Wildfire S A510e using xda app-developers app
so do I have to install apktool too? i thought you just extract that..
danielstar13 said:
so do I have to install apktool too? i thought you just extract that..
Click to expand...
Click to collapse
Try to search tutorial for apktool on xda...
Sent from my HTC Wildfire S A510e using xda app-developers app
I dont get the dist folder when compiling.. what is wrong?
danielstar13 said:
I dont get the dist folder when compiling.. what is wrong?
Click to expand...
Click to collapse
that happened to me, make sure you install JDK (Java Development Kit)...that solved the problem for me....
Sent from my HTC Wildfire S A510e using xda app-developers app
Can't Find "StatusBarFlag.smali" on SystemUI Folder
Hi,
I've installed all necessary tools on my PC.
I don't find this file on any of the SystemUI folder after decompiled.
Take a look at this image of the Folders List.
How to accomplish this...?

[HOW TO] Theme ALL keyboards without FCs! [A guide for beginners]

Theming a keyboard may be common knowledge to some of the amazing Devs here. But to a noob like me, it took some research and time to get it working without breaking the original signature (That's the trick!). I searched the forum and it doesn't look like anyone has posted a "How To" on theming a keyboard, so I thought I'd share my experience with you all.
**Some of these steps may seem elementary, but I tried to explain everything in layman's terms so even a beginner can theme a keyboard.
// Before you get started:
You must have a working environment setup. Check out QBKing77's awesome video "How to install the android-sdk" to get that going.http://forum.xda-developers.com/showthread.php?t=1614922
Make sure you also have installed:
Notepad++ (for editing xml) // (www.notepad-plus-plus.org)
7zip (for extracting apks) // (www.7-zip.org)
the image editor of your choice. I use Paint.Net(www.getpaint.net), and Gimp(www.gimp.org). Both FREE!
apktool (http://forum.xda-developers.com/showthread.php?t=1755243)
LatinImeDictionaryPack.apk (drop in the 'system\app' folder on your phone. Only for the LatinIME.apk) Grab it here: http://d-h.st/Ebb
// This method has worked with every keyboard that I have encountered so far. I will use 'LatinIME.apk' for reference, as that is the stock ICS keyboard. //
WARNING.. DO NOT POST DISTRIBUTION LINKS TO ANY MODDED 'Swype.apk'. XDA HAS A STANDING ORDER FROM NUANCE (MAKERS OF SWYPE), THAT DOES NOT ALLOW SUCH LINKS TO BE POSTED.
1) To start make sure you have a working copy of your keyboard apk; grab it out of a ROM, download it, or use a file manager with root access (like Root Explorer) to copy it to your SD card then to your computer.
**I would suggest dropping the keyboard apk into a folder on the desktop, seperate from anything else, and making a backup of the original so that you have a spare copy.
2) Using 7zip extract the 'res\drawable-xhdpi' folder into the folder you created. This folder will contain the pngs that control some of the keys, outlined in red on this pic:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Color these pngs to match using your favorite editor and save (bucket fill with Paint.Net is a breeze!)
3) Now that your pngs are themed.. Within the folder that you created containing your apk, hold down shift and right click. Select "Open Command Window Here" to fire up command prompt.
4) Next to decompile the keyboard apk with apktool (again using 'LatinIME.apk' for reference, but the apk may be of a different name; SamsungIME.apk, HTC_IME.apk, etc.).
Type this command:
Code:
apktool d LatinIME.apk
When it's done, you will see a folder with the apk name appear, within the folder you created. Click into it and you should see at minimun a 'res' folder and a 'smali' folder.
5) Navigate to 'res\values' folder. Depending on the keyboard you are working on, the xml controlling the remaining key colors will be contained in the 'colors.xml' or 'styles.xml' file. Open with Notepad++, and change the color codes as needed. Save and close.
6) Go back to the root of the folder containing your apk, and fire up command prompt (if it's not still open). Now it's time to build using this command (again using 'LatinIME.apk' for reference, but the apk may be of a different name; SamsungIME.apk, HTC_IME.apk, etc.)
Code:
apktool b LatinIME
7) When it's done building, you should have 4 folders minimum now (res, smali, build, dist) and it's time for the key to success. Navigate into the 'dist' folder and you will see the "Built" apk. Open it with 7zip, and extract the 'resources.arsc' file to your folder. Close 7zip.
8) Now it's time to pull it all together. Navigate back to the ORIGINAL keyboard apk, and open with 7zip.
Copy (you can drag and drop with 7zip) the 'resources.arsc' that you extracted from your "Built" apk, into the "ORIGINAL" apk overwriting the file. Then with 7zip still open and the apk loaded, navigate (within 7zip) into the 'res\drawable-xhdpi' folder where you should see the list of unthemed pngs. Simply drop your edited pngs into this folder. Close 7zip and you're done here!
9) Finally, take your "ORIGINAL" but themed apk, and push it back the 'system\app' folder on your phone.
Fix permissions to 'rw-r--r--' (only check everything under 'read' and Owner under 'write')
Reboot, and bask in the glory of your new themed keyboard!
**Alternatively, grab my empty zip installer here: http://d-h.st/oKG to flash in recovery. You must drop your themed apk into the system\app folder of the zip and save. Also, the zip already contains the 'LatinImeDictionaryPack.apk'
Please hit THANKS if I helped!! And please keep this thread alive!
Nice,
Now, we need a simple guide on how to theme Jelly Bean...all of it ... (tapping foot patiently)
Thanks!
Naddict said:
Nice,
Now, we need a simple guide on how to theme Jelly Bean...all of it ... (tapping foot patiently)
Thanks!
Click to expand...
Click to collapse
Themed the same just new xml and some new images. I got everything to decompile and recompile, just some of the xml's have changed.
---------- Post added at 09:41 PM ---------- Previous post was at 09:39 PM ----------
Thanks rompnit. I can there a whole Rom but always have issues with the keyboard. I'll try this tomorrow night.
Sorry i'm a nub but does the apktool jar file have to be in the same folder as android-sdk?
shehroze3 said:
Sorry i'm a nub but does the apktool jar file have to be in the same folder as android-sdk?
Click to expand...
Click to collapse
I actually created a folder 'C:\apktool' where I dropped everything, then added that folder to the Path system variable; same method as you would add the SDK. Otherwise, drop it into the 'platform-tools' folder within the android-sdk. When configured properly, you should be able to open command prompt in any directory, simply type 'apktool' and see a list of commands.
rompnit said:
I actually created a folder 'C:\apktool' where I dropped everything, then added that folder to the Path system variable; same method as you would add the SDK. Otherwise, drop it into the 'platform-tools' folder within the android-sdk. When configured properly, you should be able to open command prompt in any directory, simply type 'apktool' and see a list of commands.
Click to expand...
Click to collapse
ok i did what u said and put the apktool jar file into the platform-tool folder, but when i type apktool in cmd prompt nothing happens.
shehroze3 said:
ok i did what u said and put the apktool jar file into the platform-tool folder, but when i type apktool in cmd prompt nothing happens.
Click to expand...
Click to collapse
Did you also grab the "wrapper" script from the link as well? It contains a few more necessary files that go with apktool.
Sent from my SPH-L710 using xda app-developers app
time for dazed and rompnit to collaborate. maybe a simple guide for us wannabees...
recompiling never works for me, I read somewhere about empty folders being my problem...oh well, I can use 7zip though! and notepad+...
rompnit said:
Did you also grab the "wrapper" script from the link as well? It contains a few more necessary files that go with apktool.
Sent from my SPH-L710 using xda app-developers app
Click to expand...
Click to collapse
I'll check it out when I get home. Thanks
Sent from my SPH-L710 using xda premium
ok i got it to work. All i had to do was rename apktool_1.5.0 to apktool. I'm a noob, i know, try not to laugh to hard lmao
shehroze3 said:
ok i got it to work. All i had to do was rename apktool_1.5.0 to apktool. I'm a noob, i know, try not to laugh to hard lmao
Click to expand...
Click to collapse
Glad you got it to work!! And everyone has to start somewhere! Let me know how it turns out for ya!!
Sent from my SPH-L710 using xda app-developers app
Does this method work for both Odex and De-Odex ROMs??? I am currently on an Odex rom. Thanks!!
taihard said:
Does this method work for both Odex and De-Odex ROMs??? I am currently on an Odex rom. Thanks!!
Click to expand...
Click to collapse
This method will not work on .odex keyboard apk's, at least to my knowledge but I've always run deodexed ROMS. However, check to see if the keyboard apk you are working with even contains an odex file; a lot of them do not. If it does, you could always grab the apk off the web, mod it, and install it after removing the original files.
Thank you for the walk through, this is awesome
Hey Rompnit. Ok, I was having trouble getting apktool to run on my computer. That's what I was talking about on morphology anyway, so I was trying to learn how to theme an app and somehow was lead to morphology and got all caught up over there. Lol. But ya, I'm gonna have to crap clean my laptop to use this. Thanks. See ya over there
Sent from my Insanely Morphed S3 LI3 ktoonsez747 (196-2106) TW FreeGs3 2.0.0
rompnit said:
This method will not work on .odex keyboard apk's, at least to my knowledge but I've always run deodexed ROMS. However, check to see if the keyboard apk you are working with even contains an odex file; a lot of them do not. If it does, you could always grab the apk off the web, mod it, and install it after removing the original files.
Click to expand...
Click to collapse
This method WILL in fact work on odexed keyboards. Theming for an odex base is no different then a de-odexed base. You are not making any smali adjustments here so nothing that concerns the odex, thus it will not be affected.
Sent from my SPH-L710 using xda app-developers app
Guess no one was interested in theming an odexed keyboard after all huh? ....
Sent from my SPH-L710 using xda app-developers app
gruesomewolf said:
Guess no one was interested in theming an odexed keyboard after all huh? ....
Sent from my SPH-L710 using xda app-developers app
Click to expand...
Click to collapse
Guess not.. This thread's been quiet for a while... I guess people just don't want to theme keyboards in general!
Hey do you know if this process will work with keyboards from the market like SwiftKey 3? The themeson there are so boring need new colors lol
rompnit said:
Guess not.. This thread's been quiet for a while... I guess people just don't want to theme keyboards in general!
Click to expand...
Click to collapse
Guess that's what we get for trying to help. ... lol

[HOW-TO] Change framework background

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
WOAH!!!YOUR A MIND READER:highfive:
Zpik said:
WOAH!!!YOUR A MIND READER:highfive:
Click to expand...
Click to collapse
XD
enricocid said:
XD
Click to expand...
Click to collapse
So throughout the whole rom, this background will show?
Zpik said:
So throughout the whole rom, this background will show?
Click to expand...
Click to collapse
Yes. Only dialer remain untouched
would be nice if there were an xposed framework installer for this.
EDIT: Google search ftw.
http://forum.xda-developers.com/showthread.php?t=2342570
I'm not seeing a file named values in my framework-res apk. I'm not sure if this matters, but I used a file Explorer and extracted the apk on my phone. I use my phone to make zipthemer mods, so I figured this method would work for that too. Any reason it wouldn't show up?
Sent from my Galaxy Nexus using Tapatalk
NeverSeparate said:
I'm not seeing a file named values in my framework-res apk. I'm not sure if this matters, but I used a file Explorer and extracted the apk on my phone. I use my phone to make zipthemer mods, so I figured this method would work for that too. Any reason it wouldn't show up?
Sent from my Galaxy Nexus using Tapatalk
Click to expand...
Click to collapse
No no... You should decompile using apktool this is the only say to add trasparent background, modifying the .xml
enricocid said:
No no... You should decompile using apktool this is the only say to add trasparent background, modifying the .xml
Click to expand...
Click to collapse
This is what I got when extracting the apk. I can open and modify the xml files on my phone, but there isn't a folder named values. Are you certain the folder isn't specific to certain devices or roms? I'm on carbon at the moment on a GNex.
Sent from my Galaxy Nexus using Tapatalk
NeverSeparate said:
This is what I got when extracting the apk. I can open and modify the xml files on my phone, but there isn't a folder named values. Are you certain the folder isn't specific to certain devices or roms? I'm on carbon at the moment on a GNex.
Sent from my Galaxy Nexus using Tapatalk
Click to expand...
Click to collapse
You have to actually decompile framework res apk, take apart all the pieces instead of just extracting the apk. Decompiling and extracting are not the same thing
Link for apktool http://forum.xda-developers.com/showthread.php?t=2213985
NeverSeparate said:
This is what I got when extracting the apk. I can open and modify the xml files on my phone, but there isn't a folder named values. Are you certain the folder isn't specific to certain devices or roms? I'm on carbon at the moment on a GNex.
Sent from my Galaxy Nexus using Tapatalk
Click to expand...
Click to collapse
No... the problem is that You can't modify .apk using the phone....
This is because You can't decode an .apk with a file manager ... and You can't modify .xml if You don't decode it using apktool
If You don't use apktool You won't be able to exctract & decode the .apk
This folder must be in framework-res.apk and all .apk
Try use apktool to properly decompile it and You will be able to see all resources from .apk
If You try to exctract an .apk with a zip manager and You open an .xml, You won't see anything... only unreadable simbols
https://code.google.com/p/android-apktool/downloads/detail?name=apktool1.5.2.tar.bz2&can=2&q=
https://android-apktool.googlecode.com/files/apktool-install-windows-r05-ibot.tar.bz2
extract aapt.exe, apktool.bat and apktool.jar to a folder You will call apktool and that You will create in C:/:
C:\apktool
copy the framework-res.apk inside this folder
Press shift+leftmouse and click to "open command prompt here"
In cmd do the following
1) Install the framework-res.apk
Code:
apktool if framework-res.apk
2) Decompile framework-res.apk
Code:
apktool d framework-res.apk
3) Modify the .xml using notepad++
4) Recompile back
Code:
apktool b framework-res
5) Once done
Delete the compiled .apk in dist folder inside the framework-res folder you will find in apktool folder
open original framework-res.apk 7zip
Go to build folder
then open apk folder
Drag & drop folder META-INF & androidmanifest overwriting the original
6) Go again in CMD terminal and
Code:
apktool b framework-res
The compiled framework-res.apk is the good one
You can use the same steps I used in this guide to properly decompile/compile the framework-res.apk
http://forum.xda-developers.com/showthread.php?p=44997467#post44997467
Thanks. And I wasn't trying to argue. I know there is a difference on decompiling and extracting. And I know I can't modify the apk directly from my phone, but I use my method of extracting to locate png piles to make zipthemer zips, and it works fine for that. I wasn't looking to modify an apk. I was just going to attempt to make a zip with an edited xml and see if it would overwrite the existing one the same as it does with pngs. And I can open and edit xml using an xml app. But, if the extraction technique won't show me the file, then it doesn't matter. I'm just trying to learn a bit myself.
I was hoping to make a way that people could use the framework mods I've made without having to be in dark mode. Many of the people using mods off these threads wouldn't consider taking the time to learn any of this, they just want to use what's made. So a simple flashable zip that included an edited xml would be great. But if it won't work, it won't work.
Sent from my Galaxy Nexus using Tapatalk
NeverSeparate said:
Thanks. And I wasn't trying to argue. I know there is a difference on decompiling and extracting. And I know I can't modify the apk directly from my phone, but I use my method of extracting to locate png piles to make zipthemer zips, and it works fine for that. I wasn't looking to modify an apk. I was just going to attempt to make a zip with an edited xml and see if it would overwrite the existing one the same as it does with pngs. And I can open and edit xml using an xml app. But, if the extraction technique won't show me the file, then it doesn't matter. I'm just trying to learn a bit myself.
I was hoping to make a way that people could use the framework mods I've made without having to be in dark mode. Many of the people using mods off these threads wouldn't consider taking the time to learn any of this, they just want to use what's made. So a simple flashable zip that included an edited xml would be great. But if it won't work, it won't work.
Sent from my Galaxy Nexus using Tapatalk
Click to expand...
Click to collapse
You can try to make vrthemes
I already resolved my problem in Step 1 by editing the "Environment Variables".
Step 4
I'm stuck with step 4 ( recompiling ):
there's no "META-INF" folder under build/apk folder
Question: after I overwritten the "META-INF & androidmanifest" from the original framework-res.apk (C:\apktool\framework-res.apk)
and recompiled it using "apktool b framework-res", how can I flashed the compiled framework-res.apk w/c is located at
(C:\apktool\framework-res\dist) to system/framework? many thanks to this one, new learning
genkralyz said:
I'm stuck with step 4 ( recompiling ):
there's no "META-INF" folder under build/apk folder
Question: after I overwritten the "META-INF & androidmanifest" from the original framework-res.apk (C:\apktool\framework-res.apk)
and recompiled it using "apktool b framework-res", how can I flashed the compiled framework-res.apk w/c is located at
(C:\apktool\framework-res\dist) to system/framework? many thanks to this one, new learning
Click to expand...
Click to collapse
I will prepare You, as soon as possible, a template to flash it
enricocid said:
I will prepare You, as soon as possible, a template to flash it
Click to expand...
Click to collapse
Thanks! btw is it ok if I only overwrite the original "androidmanifest" because there's no "META-INF" under build/apk,
or there should be a "META-INF"?
genkralyz said:
Thanks! btw is it ok if I only overwrite the original "androidmanifest" because there's no "META-INF" under build/apk,
or there should be a "META-INF"?
Click to expand...
Click to collapse
You must copy also the meta-inf
enricocid said:
You must copy also the meta-inf
Click to expand...
Click to collapse
but when I tried to re-compiled, there's no META-INF showing up under build/apk folder as you can see from my screenshot..
did I missed some steps?
genkralyz said:
but when I tried to re-compiled, there's no META-INF showing up under build/apk folder as you can see from my screenshot..
did I missed some steps?
Click to expand...
Click to collapse
After first compilation Meta-inf is missing... it's normal don't worry
but without a meta-inf Your .apk wouldn't work
So you must delete the first compiled apk from dist folder, copy meta-inf and androidmanifest from the original .apk to build/apk folder and recompile 2nd time to get the framework correctly working
You can use this mod to flash the framework
http://d-h.st/0lL
there's already a framework-res inside it... delete it using 7zip and replace with Your framework and flash it

How to Deodex stock rom manually with Smali_baksmali Compiler (Tutorial)

nah i will explain how to deodex stock rom with smali baksmali compiler, it's safe and simple way to deodex your firmware
first of all you must prepare this for your pc
Java JDK
Winrar
Smali Baksmali Compiler
and the last prepare your framework files from your /system/framework
- first make sure the application is already installed java jdk extract the files smali_baksmali anywhere if you've copied the files the framework of the folder system / framework folder into smali_baksmali
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
- if it is copy the apk file you want to deodex example odexnya SystemUI.odex SystemUI.apk and its file into the folder smali_baksmali
- after that do simultaneously press the shift key by right-clicking on the smali baksmali folder and select open command window here
- if open cmd like this
- enter the following command
java -jar baksmali.jar -x SystemUI.odex
if the above process is successful it will be in accordance with the picture below
- If you already enter this command again to remove the file classses.dex
******* java -Xmx1024m -jar smali.jar out -o classes.dex
- if the above process is successful it will appear classes.dex file in the folder you smali_baksmali
- if it is open earlier systemui.apk file using winrar right click and open with winrar until the demolition of the file systemui.apk
- if it drag classes.dex files into winrar to enter into one piece
completed and congratulations you have an application that is already in the file deodex well now just copy the file into the system / app and set permissions rw-r-r
nah may be that's my way, deodex with smali_baksmali compiler, if you have problem with java just tell me ok
Nice tutorial dude
Yap, but it little complicated but the result it's always working
Sent from my C1905 using XDA Free mobile app
Nicklas Van Dam said:
nah i will explain how to deodex stock rom with smali baksmali compiler, it's safe and simple way to deodex your firmware
first of all you must prepare this for your pc
Java JDK
Winrar
Smali Baksmali Compiler
and the last prepare your framework files from your /system/framework
- first make sure the application is already installed java jdk extract the files smali_baksmali anywhere if you've copied the files the framework of the folder system / framework folder into smali_baksmali
- if it is copy the apk file you want to deodex example odexnya SystemUI.odex SystemUI.apk and its file into the folder smali_baksmali
- after that do simultaneously press the shift key by right-clicking on the smali baksmali folder and select open command window here
- if open cmd like this
- enter the following command
java -jar baksmali.jar -x SystemUI.odex
if the above process is successful it will be in accordance with the picture below
- If you already enter this command again to remove the file classses.dex
******* java -Xmx1024m -jar smali.jar out -o classes.dex
- if the above process is successful it will appear classes.dex file in the folder you smali_baksmali
- if it is open earlier systemui.apk file using winrar right click and open with winrar until the demolition of the file systemui.apk
- if it drag classes.dex files into winrar to enter into one piece
completed and congratulations you have an application that is already in the file deodex well now just copy the file into the system / app and set permissions rw-r-r
nah may be that's my way, deodex with smali_baksmali compiler, if you have problem with java just tell me ok
Click to expand...
Click to collapse
Cant download Smali Baksmali Compiler can you please give any other link
yashgumaste said:
Cant download Smali Baksmali Compiler can you please give any other link
Click to expand...
Click to collapse
the link is completely working, ok wait i will give you another link
yashgumaste said:
Cant download Smali Baksmali Compiler can you please give any other link
Click to expand...
Click to collapse
here you go bro http://www.sharebeast.com/xey43d0hzc4i try to disable sharebeast downloader if you want to direct download
Nicklas Van Dam said:
here you go bro http://www.sharebeast.com/xey43d0hzc4i try to disable sharebeast downloader if you want to direct download
Click to expand...
Click to collapse
:good: downloaded
yashgumaste said:
:good: downloaded
Click to expand...
Click to collapse
Have try
First I copied the framework folder into my pc.
Then copied all the jar files from smali_baksmali.rar into framework folder and...
When I typed this commond -
java -jar baksmali.jar -x SystemUI.odex
it said cannot find SystemUI.odex
What to do?
My phone is LG-E455
Do I also have to copy LGSystemUI.apk ?
yashgumaste said:
First I copied the framework folder into my pc.
Then copied all the jar files from smali_baksmali.rar into framework folder and...
When I typed this commond -
java -jar baksmali.jar -x SystemUI.odex
it said cannot find SystemUI.odex
What to do?
My phone is LG-E455
Do I also have to copy LGSystemUI.apk ?
Click to expand...
Click to collapse
Ya you must copy the stock systemui.apk too
Nicklas Van Dam said:
Ya you must copy the stock systemui.apk too
Click to expand...
Click to collapse
I got classes.dex file but did not understand what to do next?
yashgumaste said:
I got classes.dex file but did not understand what to do next?
Click to expand...
Click to collapse
Next, open your systemui.apk with winrar only select open with and select winrar. After open drag your classes.dex file to your systemui.apk and after complete copy your systemui.apk to your phone and copy to /system/app and set permission to rw-r-r and delete SystemUI.odex file from there, after that reboot your phone and you have systemui app deodexed , but if you running on kitkat you must copy to /system/priv-app and do same thing like that
Nicklas Van Dam said:
Next, open your systemui.apk with winrar only select open with and select winrar. After open drag your classes.dex file to your systemui.apk and after complete copy your systemui.apk to your phone and copy to /system/app and set permission to rw-r-r and delete SystemUI.odex file from there, after that reboot your phone and you have systemui app deodexed , but if you running on kitkat you must copy to /system/priv-app and do same thing like that
Click to expand...
Click to collapse
Yup done with it. But how to confirm that rom is deodexed?
Previously when I was using the theme manager in rom tolbox pro, there showed a dialog box that my rom is not deodexed and themes wont apply
and now when I went there the dialog box did not show up but even the was not applied even after rebooting
yashgumaste said:
Yup done with it. But how to confirm that rom is deodexed?
Previously when I was using the theme manager in rom tolbox pro, there showed a dialog box that my rom is not deodexed and themes wont apply
and now when I went there the dialog box did not show up but even the was not applied even after rebooting
Click to expand...
Click to collapse
just check on your system/app folder in there you will find all your system apps and if deodexed you will not see any .odex file from any app on that folder. and if your system/app folder is deodexed and theme manager still tell you're not deodexed try to deodexed framework files too with this way and all almost same with this
Nicklas Van Dam said:
just check on your system/app folder in there you will find all your system apps and if deodexed you will not see any .odex file from any app on that folder. and if your system/app folder is deodexed and theme manager still tell you're not deodexed try to deodexed framework files too with this way and all almost same with this
Click to expand...
Click to collapse
The .odex files of other system apps are still there, that means I have to follow the same procedure with all other jars and apks in the framework folder to completely deodex my rom ?
yashgumaste said:
The .odex files of other system apps are still there, that means I have to follow the same procedure with all other jars and apks in the framework folder to completely deodex my rom ?
Click to expand...
Click to collapse
yap you're all completely deodex your rom bro
Have Fun

Categories

Resources