Problems with Compilation of Framework-res.apk - Android Q&A, Help & Troubleshooting

Hey i am playing around with decompiling the framework and so i made some changes but i couldn't compile it then.
So i tried decompiling an app and then without making any changes compiling it but the command propt gives me these errors:
{
"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"
}
Click to expand...
Click to collapse

try this:
http://apkmultitool.com/node/2

Update your apkmanager. Btw, isnt this supposed to be in Q&A?

apk multitool doesnt work for me it always says that i should choose a project but i tried so much things but it says that everytime! ):
could you give me short instructions??
Sent from my GT-I9001 using XDA

apk manager 5.02

EternalFame said:
apk multitool doesnt work for me it always says that i should choose a project but i tried so much things but it says that everytime! ):
could you give me short instructions??
Sent from my GT-I9001 using XDA
Click to expand...
Click to collapse
- place the apk in /multi-tool/place-apk-here-for-modding/
- run Script.bat in /multi-tool
- type 22
- select apk by number
- type 9 to decompile
- make changes in the folder of your apk in /multi-tool/projects/
- type 11 to compile
- type "y" (yes) for first question and "n" for second question
- go into /multi-tool/place-apk-here-for-modding/
- open your new unsingedBLABLA.apk with winrar or something else
- delete "META-INF" and "AndroidManifest.xml"
add these files from the original ...
- rename like you want and have fun.
- if you getting errors, your modifying was wrong. you can see the error in /multi-tool/log.txt
- if you want to make more changes again in /multi-tool/projects/
you have to delete "build"-folder before recompiling...
this should work for every normal apk..
sure there are some other apk's like lidroid-res.apk. then it is not so easy, you will need another how-to... but if it is a difficult apk like this, you will get a error already while decompiling...

Moved to Android Q&A

texten said:
- place the apk in /multi-tool/place-apk-here-for-modding/
- run Script.bat in /multi-tool
- type 22
- select apk by number
- type 9 to decompile
- make changes in the folder of your apk in /multi-tool/projects/
- type 11 to compile
- type "y" (yes) for first question and "n" for second question
- go into /multi-tool/place-apk-here-for-modding/
- open your new unsingedBLABLA.apk with winrar or something else
- delete "META-INF" and "AndroidManifest.xml"
add these files from the original ...
- rename like you want and have fun.
- if you getting errors, your modifying was wrong. you can see the error in /multi-tool/log.txt
- if you want to make more changes again in /multi-tool/projects/
you have to delete "build"-folder before recompiling...
this should work for every normal apk..
sure there are some other apk's like lidroid-res.apk. then it is not so easy, you will need another how-to... but if it is a difficult apk like this, you will get a error already while decompiling...
Click to expand...
Click to collapse
with multitool 5.0.2?
what should i use to decomplie android.policy.jar?
Sent from my GT-I9001 using XDA

EternalFame said:
with multitool 5.0.2?
what should i use to decomplie android.policy.jar?
Sent from my GT-I9001 using XDA
Click to expand...
Click to collapse
look for backsmali and smali for decompile jar files.
there are many solutions.

Thank you guys it worked
I've made myself an extended powermenu for 2.3.3 (XXKG3)

Related

[REQUEST] Sense Navbar.. (might be one for you, Cryshop?)

Saw this Thread under the Desire forum..
I really like the way the Navbar is made on this rom..
I myself do not have the graphic-skille to make something like this, so hopefully someone else have??
http://forum.xda-developers.com/showthread.php?t=729172
lol, ok, I did a quick job by pulling graphic files from mytouch 3g slide sense. Just download the zip, unzip it, then replace these files with ones in com.htc.resources.apk/res/drawable-port-mdpi
Drawable-port-mdpi
I'm not sure how it's look, maybe you could post a screenshot
Yep, as it turns out, you don't even have to bother resizing some images... as it is with battery, navbar, lockscreen...system just resizes them automatically...
of course it's a good Idea to conserve space...
use adw launcher and search for espresso theme in market
cryshop said:
lol, ok, I did a quick job by pulling graphic files from mytouch 3g slide sense. Just download the zip, unzip it, then replace these files with ones in com.htc.resources.apk/res/drawable-port-mdpi
Drawable-port-mdpi
I'm not sure how it's look, maybe you could post a screenshot
Click to expand...
Click to collapse
Just tried to replace the files in the original .apk - putting it all in a zip-file (not signed since I'm on S-OFF) but it just brings me to bootloop
I'm not entirely sure, but I think running apk's still have to be signed...correct me If I'm wrong...
Dr.Romca said:
I'm not entirely sure, but I think running apk's still have to be signed...correct me If I'm wrong...
Click to expand...
Click to collapse
I've never signed framework apk files. What I did is :
1. Open apk file with winrar, leave it.
2. Open folder window that includes necessary files.
3. Drag and drop file from (2) to (1) for replacing or something else.
4. Push apk files back to /system/framework/
Benefits:
- No need to extract apk files.
- No need to re-zip.
- No need to sign.
cryshop said:
I've never signed framework apk files. What I did is :
1. Open apk file with winrar, leave it.
2. Open folder window that includes necessary files.
3. Drag and drop file from (2) to (1) for replacing or something else.
4. Push apk files back to /system/framework/
Benefits:
- No need to extract apk files.
- No need to re-zip.
- No need to sign.
Click to expand...
Click to collapse
That's what I did.. (Used TotalCommander instead) ..
EDIT: Now trying using WinRAR
Now it worked.. Only "bug" is now, that the indicator of which homescreen used is still a "bow"... Is there any way to either get rid of that or to edit it..?
{
"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"
}
Now it worked.. Only "bug" is now, that the indicator of which homescreen used is still a "bow"... Is there any way to either get rid of that or to edit it..?
Click to expand...
Click to collapse
Oops!
These pngs go to /system/app/Rosie.apk/res/drawable-mdpi/
cryshop said:
Oops!
These pngs go to /system/app/Rosie.apk/res/drawable-mdpi/
Click to expand...
Click to collapse
Hehe... I'll look into that
Used NinjaMorph to replace the files (Thanx to S-OFF) and NOW it looks nice ;D

[Sense][BatteryMOD]STOCK SENSE BAR WITH NO PERCENTAGE.

This is just a stock sense battery w/o the percentage. I only made this cause I worry about my phone battery A LOT and battery percentage makes it worse for me and I wondered if other people felt the same, so I'm sharing it here. It's really not much so don't criticize or talk crap about it. Just for those iffy people who HATE battery percentages. Enjoy!
Installation Process
- Unzip files into a folder called battery.
- Go into cmd enter " cd C:\AndroidSDK\tools "
- Then enter " adb pull /system/framework/framework-res.apk "
- Open the .apk file w/winRAR
- Go to res>drawable-hdpi
- Drag contents from the "Battery Folder" into drawable-hdpi
- Now, put framework-res.apk into SDK tools folder and " adb push framework-res.apk /system/framework "
- Enjoy
{
"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"
}
I tried it on fusion 1.18 and it deleted all my accounts and wouldn't let me resync them...is this only compatible with sense 2.1?
kirkcody said:
I tried it on fusion 1.18 and it deleted all my accounts and wouldn't let me resync them...is this only compatible with sense 2.1?
Click to expand...
Click to collapse
O.O weird... I'm running the same and mines fine. Let me check real quick..
Thanks I'd really appreciate it, I feel the same way about battery percentages...yeah I used root explorer moved the apk to...wait I think I just moved it to system/framework...and didn't follow the rest ill try it again....sorry please repost zip
kirkcody said:
Thanks I'd really appreciate it, I feel the same way about battery percentages...yeah I used root explorer moved the apk to...wait I think I just moved it to system/framework...and didn't follow the rest ill try it again....sorry please repost zip
Click to expand...
Click to collapse
lol. just extract those .png files INTO A FOLDER.(Very Important) then move them to /system/framework/drawable-hdpi/ and reboot. =)
I found it but root explorer won't allow me to access the framework-res.apk...it won't allow me to paste them there, only options available for the framework apk are install,view and cancel when pressed.
kirkcody said:
I found it but root explorer won't allow me to access the framework-res.apk...it won't allow me to paste them there, only options available for the framework apk are install,view and cancel when pressed.
Click to expand...
Click to collapse
Same with me
Sent from my HTC Glacier using XDA Premium App
kirkcody said:
I found it but root explorer won't allow me to access the framework-res.apk...it won't allow me to paste them there, only options available for the framework apk are install,view and cancel when pressed.
Click to expand...
Click to collapse
I will post a new method. lol. darn. too many fails..
kirkcody said:
I tried it on fusion 1.18 and it deleted all my accounts and wouldn't let me resync them...is this only compatible with sense 2.1?
Click to expand...
Click to collapse
just restart and itll be fine
kinnyswaggg said:
I will post a new method. lol. darn. too many fails..
Click to expand...
Click to collapse
Uh need to unzip it and do that thats why
Sent from my WhiteHTCMyTouch4G using XDA Premium App

Make ur own dialer on the go

MAKE UR OWN DIALER ​
hi frndz i was for long thinking how to simplify making ur own dialer on the go, so after help from Henk (team-member) i made smthing that might interest all.
Ok so lets get to steps.
1. Make sure u have sdk installed.
2. Download the cdt.rar from(http://forum.xda-developers.com/showthread.php?t=1261877).
3. Extract the zip and open it, you will find 5 folders.
4. The folder update dialer is one containing the images of buttons and the folder update res contains a single image of dialer background.
5. Edit the images as you like without changing the size and name.
6. connect the fone and run cdt_extreme.bat file.
7. Once done and fone rebooted u can see ur creativity.
8. For example i used following three files
{
"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"
}
-> As dialer bg
-> When u press dialer button it turns like this.
-> Left this transparent to generate max effect.
here is after what i got mixing the files above
9. plz plz plz if this has made u happy hit thnx button. and i wanna thank henk for his awsome help.
10. Dt forget to share ur work with others..
IMP : In folders there is a folder named original, this contains original files from ur present rom keep this safe and if u wanna revert back simply run recovery.bat also keep in mind that running will erase the original files created in first run so be careful to keep safe first run files.
woah this this sweet! THANKS will try when I have time
Sweeeeeeet!!!! I am going to try this as soon as I get home. This is the kind of thing I like to see on xda.
Sent from my PG86100 using xda premium
getting error message about 7z.exe not a valid win32 application. where do i need put the cdt folder? in the SDK?
killakarl said:
getting error message about 7z.exe not a valid win32 application. where do i need put the cdt folder? in the SDK?
Click to expand...
Click to collapse
install winrar....
still a no go.
killakarl said:
still a no go.
Click to expand...
Click to collapse
what os u using? and smthng seems to b wrong with ur sys files on system...try on different system...ppl have made dialers and working cool
Running XP. I extracted it to the desktop and I have 7zip in my program files so I don't know what's wrong.
Sent from my PG86100 using xda premium
The problem is he made the package to only work on Windows x64. If you use x32:
copy 7zip.exe & 7zip.dll
FROM: Program Files/7zip
TO: cdt/stuff
Obviously, you want to replace the original files.
This could be fixed by making two copies of the batch file, each pointing to a different directory that holds the 7zip for that OS version.
Thanks for this, had a little fun with mine!
All my images are in the zip below but you would need to put them in the right spots.

[TUTORIAL] Sense 4.0 Theme Creation [On Hold - Working Out Some Bugs]

Since there isn't a Desire X specific skinning tutorial i decided to make and share what i know so far. This is fully manual. Some tools or members may offer automated procedures. The choice is entirely upto you to find such tools. I prefer this method. So please don't say anything about others or point out. Of coz if there are any errors in my method please feel free to tell me.
**My respect and appreciation to sopL87 via whose thread i was inspired to create themes for Sense 2.1. The format of the tutorial and links are borrowed from his thread here. Please check his hard work and ideas there**
Downloads & Installations
a. Download and Install JDK and JRE
b. Download and Install Android SDK
c. Download and Extract Auto-Sign-Tool
d. Download and Extract APK Tools
Setting Up Theme Kitchen [Mini]
a. Extract apktool1.5.0.tar.bz2 anywhere. Copy and Paste apktool.jar in C:\Windows
b. Extract apktool-install-windows-r04-brut1.tar.bz2 anywhere. Copy and Paste aapt.exe and apktool.bat in C:\Windows
c. Extract Auto-Sign-Tool anywhere. Preferably in a specific folder like "Sense4Theme"
Setting Up Sense 4 Framework and Resources
a. Download the attached Desire X Specific Framework and Resources [To Be Attached Soon]
b. Extract the "Framework and Resources.zip" anywhere or Sense4Theme folder
c. Go inside the "Framework and Resources" folder
d. Open Command Prompt
e. Type the following command marked in bold apktool if framework-res.apk
f. Press ENTER and wait while it is installed. You will get I: Framework installed to: C:\Users\UserName\apktool\framework\1.apk
g. Type the following command marked in bold apktool if com.htc.resources.apk
h. Press ENTER and wait while it is installed. You will get I: Framework installed to: C:\Users\UserName\apktool\framework\2.apk
*You will get a couple of warning when you do the installation as in h. Ignore the warning. Unless you did not get any errors, you are good to go.
The Actual Theme Tutorial [Will Be Updated Soon]
[Place Holder] Will be updated when i get free time.
Added to Index.
Cheers
nlooooo said:
Added to Index.
Cheers
Click to expand...
Click to collapse
Nice work with indexing everything. Keep it up!
When will the actual theming tut come?
Sent from my awesome fridge
MaartenXDA said:
When will the actual theming tut come?
Sent from my awesome fridge
Click to expand...
Click to collapse
Sorry for the quite long delay. But i am having some rather odd problems. The themes i redesign has lines which is quite visible for example when a dialogue box is loading. It pre-modded themes (actual file) the said box appears white and clean. But in my modded theme i get odd and ugly yellowish egg colored blotches in the form of lines.
I have tried VTS also. But to no avail. So far i have just changes clock design and apps drawer button (hate the default bubble type ugly buttons)
If anyone can help me please feel free, while i try further experimenting.
ayyu3m said:
Sorry for the quite long delay. But i am having some rather odd problems. The themes i redesign has lines which is quite visible for example when a dialogue box is loading. It pre-modded themes (actual file) the said box appears white and clean. But in my modded theme i get odd and ugly yellowish egg colored blotches in the form of lines.
I have tried VTS also. But to no avail. So far i have just changes clock design and apps drawer button (hate the default bubble type ugly buttons)
If anyone can help me please feel free, while i try further experimenting.
Click to expand...
Click to collapse
Thread bump!
{
"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"
}

[TIP] How to remove an app's icon from the app drawer of a launcher

This is useful if you're trying to create a shortcut in Settings for a certain app and don't want yet another app in the app drawer or you want something running in the background......
1. First off, go ahead and setup apktool in ubuntu
Link to apktool found http://forum.xda-developers.com/showthread.php?t=1755243 Follow the instructions in that thread
2. Create a folder on your desktop (for the purpose of this guide, name it "folder")
3. Move your apk to your newly created folder, called folder
4. Assuming you've followed the steps in the apktool thread and setup it up correctly, open up a terminal and type in the following commands
Code:
cd Desktop/folder
then
Code:
apktool d yourapp.apk
If you decompiled correctly, you will see something similar to this....MAKE SURE YOU LEAVE YOUR TERMINAL OPEN, DO NOT CLOSE IT OUT!!
{
"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"
}
5. Now, navigate inside your app's decompiled folder and find the AndroidManifest.xml
6. Open the AndroidManifest.xml with any text editor
7. Find the highlighted line as pictured below....
8. Go ahead and remove that line from the AndroidManifest.xml and save/exit out of that
9. Press and hold Ctrl and H
10. Delete the file called "AndroidManifest.xml~"
11. Assuming you paid attention and didn't close out your terminal, go back to it and type in the following
Code:
apktool b yourapp
12. You should see something like this if you followed instructions correctly....
13. Now navigate inside your app's decompiled folder and you should find a folder called "dist". Inside of that, you should see your compiled apk with the change made and ready to be pushed to your device.
Here's a screenshot of a before and after
Just in case, who knows....
Mazda said:
Just in case, who knows....
Click to expand...
Click to collapse
Thanks for this helpful post!!! I needed something like this. Goomanager was getting on my nerves
I need help with deleting multiple icons from one single apk
I want to delete he camcorder and mirror on the evo 3d HTCCamera.apk
I followed your directions, but after I push apk and reboot it doesnt show up at all
mauricio.valladolid said:
I need help with deleting multiple icons from one single apk
I want to delete he camcorder and mirror on the evo 3d HTCCamera.apk
I followed your directions, but after I push apk and reboot it doesnt show up at all
Click to expand...
Click to collapse
For sense ROMs, you'll need to install the framework-res.apk and also the com.htc.resources.apk using apktool before you decompile/compile apks such as the HTCCamera.apk
Mazda said:
For sense ROMs, you'll need to install the framework-res.apk and also the com.htc.resources.apk using apktool before you decompile/compile apks such as the HTCCamera.apk
Click to expand...
Click to collapse
I have them installed, I already made changes to other apks, but its my first time trying to delete the icons and no luck
@Mazda
thx for this thread :good: It works even on windows but new apk needed a new sign (META-INF)
This was pretty helpful, thank you.
Thanks
app is not longer starting after boot completed
Hi,
thank you for the nice tutorial! The problem I have right now with an app where I removed “….category.LAUNCHER” is that the app is not starting at boot completed anymore. When I first install the unmodded app, and thereafter I install my created app without icon, the app is starting after boot completed. Do you know why the modded app is not starting after boot completed?
stan210 said:
Hi,
thank you for the nice tutorial! The problem I have right now with an app where I removed “….category.LAUNCHER” is that the app is not starting at boot completed anymore. When I first install the unmodded app, and thereafter I install my created app without icon, the app is starting after boot completed. Do you know why the modded app is not starting after boot completed?
Click to expand...
Click to collapse
If you're rooted,
Use Leedroid Tweaks to block apps in drawer
Sent from above using Xparent Tapatalk Blue

Categories

Resources