[Q] Can someone building apk from these? - XPERIA X8 Themes and Apps

Hy! I used apktool to decompile framework-res.apk... I edited, everythings ok, but i can't compile it It says errors...
I uploaded a zip file, inside:
original framework-res.apk
and the folder with the files from i want the apk.
Plese help me
http://www.multiupload.com/2F564KY7EX
Oh, and sorry for my eng

levus95 said:
Hy! I used apktool to decompile framework-res.apk... I edited, everythings ok, but i can't compile it It says errors...
Click to expand...
Click to collapse
if you can't compile it, then clearly something is not ok, lol.

levus95 said:
Hy! I used apktool to decompile framework-res.apk... I edited, everythings ok, but i can't compile it It says errors...
I uploaded a zip file, inside:
original framework-res.apk
and the folder with the files from i want the apk.
Plese help me
http://www.multiupload.com/2F564KY7EX
Oh, and sorry for my eng
Click to expand...
Click to collapse
haha you don't know how to compile it !!!!!
LOL, that means you are nothing

7zip
Sent from my X8 using XDA

Lol idiot That was at october 29... And the bug was my windows 7...
Never mind...
Sent from my X8 using xda premium

Related

[Q] framework compile error

i have a problem to decompile an apk, it's the framework-miui-res.apk, when i try to decompile with apktool it give me a warning (W: Cant find 9patch chunk in file: "drawable-hdpi/popup_item_single_normal.9.png". Renaming it to *.png. ) anyways it decompile all the files and i can edit it, but whan i try to compile it's a completly mess, give me a lot of errors
i was googling it , and i found that the error is because there are two files with the same name in xml files, i try to replace it, rename it, using different tools and version of apktool, making "apktool if", but i just can't make it compile. any ideas?
Huncriter said:
i have a problem to decompile an apk, it's the framework-miui-res.apk, when i try to decompile with apktool it give me a warning (W: Cant find 9patch chunk in file: "drawable-hdpi/popup_item_single_normal.9.png". Renaming it to *.png. ) anyways it decompile all the files and i can edit it, but whan i try to compile it's a completly mess, give me a lot of errors
i was googling it , and i found that the error is because there are two files with the same name in xml files, i try to replace it, rename it, using different tools and version of apktool, making "apktool if", but i just can't make it compile. any ideas?
Click to expand...
Click to collapse
Your problem was stated on the decompile. The .9 issue will throw up errors on everything when it is the only thing wrong. Might want to ask on the MIUI site
already did that, but there's no answer
Huncriter said:
already did that, but there's no answer
Click to expand...
Click to collapse
Have you tried fixing the .9 png ?
yeap, it creates two files when decompile, one is 9.png but is trash(0kb) and the other is the .png file, i try to rename the png (with 9.png) delete the 9.png file but it didn't work.
also i decompile another framework-miui-res.apk from another rom(without error) , extrac the 9.png replace in my rom and still no work.
Huncriter said:
yeap, it creates two files when decompile, one is 9.png but is trash(0kb) and the other is the .png file, i try to rename the png (with 9.png) delete the 9.png file but it didn't work.
also i decompile another framework-miui-res.apk from another rom(without error) , extrac the 9.png replace in my rom and still no work.
Click to expand...
Click to collapse
Ok just renaming the png to a .9 will not work. .9 pngs are special made pngs with a special border system. Can you decompile and recompile the apk without the error?
zelendel said:
Ok just renaming the png to a .9 will not work. .9 pngs are special made pngs with a special border system. Can you decompile and recompile the apk without the error?
Click to expand...
Click to collapse
no, that's the problem, but i can decompile the framework-res-miui from another rom and extract the 9.png
can you try it? i let the framework at top
Huncriter said:
no, that's the problem, but i can decompile the framework-res-miui from another rom and extract the 9.png
can you try it? i let the framework at top
Click to expand...
Click to collapse
Sorry I don't touch anything from MIUI. There are a few threads around. Search for an MIUI themeing thread and they should be able to help you.
zelendel said:
Sorry I don't touch anything from MIUI. There are a few threads around. Search for an MIUI themeing thread and they should be able to help you.
Click to expand...
Click to collapse
, thanks, and no there's no thread with the solution for this, and i think the problem is not only in miui roms, and have other apps that i cant compile
i wonder if there is another way to compile wthout using apktool
Huncriter said:
, thanks, and no there's no thread with the solution for this, and i think the problem is not only in miui roms, and have other apps that i cant compile
i wonder if there is another way to compile wthout using apktool
Click to expand...
Click to collapse
The only two choices are using apktool or compiling it from the source code and making your changes and using apktool. What version of android is it for? ICS needs 2 versions. One to decompile and one to compile. I have themed every OS version I have used and with the right searching and some trial and error it has always worked. Including ics
it's based on android 2.3.7, and try that also(using 1.4.2 to decompile and 1.4.3 to compile)

editing apk with eclipse

i am trying to edit infinity view apk.
I decompiled it using APK Multi tool and created a project but it always gives me error as shown in fig.
Plz tell me how to fix this error.
I think i have to import some files but don't know how to do them properly. i tried somethings but unable to resolve this error.
I think you also need framework files.
Sent from my Xperia Live using xda premium.
singh_dd93 said:
i am trying to edit infinity view apk.
I decompiled it using APK Multi tool .
Click to expand...
Click to collapse
Why are you editing with eclipse. What do you want to change exactly? Edit the xml file with notepad++ .. And compile back apk with apk tool again.
Thanks,
PALLAVI KALYANAM
pallavikv said:
Why are you editing with eclipse. What do you want to change exactly? Edit the xml file with notepad++ .. And compile back apk with apk tool again.
Thanks,
PALLAVI KALYANAM
Click to expand...
Click to collapse
That´s it my friend...
Use notepad++ to edit .xml and .smali files.
If anyone can help me integrate SDK tutorial or sequence mobilcore..tolong help me , God bless

Apktool for ICS APK files

I am unable to edit ICS apks using the apktool I have tried. Some times I get error while compiling and other times the compiled apk never work on phone.
I have tried compiling without changing any thing even then they don't work.
If some body can upload the apktool he/she is using to edit ICS apks I will be very grateful.
Thanks
singh_dd93 said:
I am unable to edit ICS apks using the apktool I have tried. Some times I get error while compiling and other times the compiled apk never work on phone.
I have tried compiling without changing any thing even then they don't work.
If some body can upload the apktool he/she is using to edit ICS apks I will be very grateful.
Thanks
Click to expand...
Click to collapse
If you are not going to touch the smali files, then no need to use apktool at all. For normal xml editing and PNG editing, I will prefer to use 7zip to open the apk package, and replace the files, without decompressing at all.
I had heard about the latest version of Apktool being released recently, I will search and share, in case someone doesn't do it before me.
Thanks,
Rick
Sent from my SK17i using XDA
thanks for help
I would have searched myself but I am having very slow internet in these hills.
I am unable to edit xml files without decompiling.
singh_dd93 said:
thanks for help
I would have searched myself but I am having very slow internet in these hills.
I am unable to edit xml files without decompiling.
Click to expand...
Click to collapse
Okay. So I tried to edit an ICS only apk using aptool version 1.4.3, and it could not recomplie. It threw in lots of errors.
It seems that you will need to use another version of apktool, which has some ICS APIs so that it becomes possible to successfully decompile and compile ICS apks.
Check this thread: http://forum.xda-developers.com/showthread.php?t=1558171.
The author of the post made it easier for newbies by making an apktool installer which has all the required forles to run ICS files already in it.
Thanks,
Rick
Sent from my SK17i using XDA
I am unable to decompile using ICS apktool from the link you mentioned.
When I used decompiled folder to compile using this apktool but got same errors.
There were no changes in any file.
singh_dd93 said:
I am unable to decompile using ICS apktool from the link you mentioned.
When I used decompiled folder to compile using this apktool but got same errors.
There were no changes in any file.
Click to expand...
Click to collapse
Dude, What app did u try? you know some lines was removed during decompile, so you may need to see error. like here when u try to compile Home.apk it'll gave error.
You need to :
<style name="Layout.ButtonContainer" for <style name="Layout.ButtonContainer" parent="@android:style/Theme.Wallpaper.NoTitleBar">
at \res\values\styles.xml and compile...
Click to expand...
Click to collapse
also, I use apktool_1.4.1.jar for doing de/compiling jobs.
Anyway, may you show the log?
nonake kh said:
Dude, What app did u try? you know some lines was removed during decompile, so you may need to see error. like here when u try to compile Home.apk it'll gave error.
You need to :
also, I use apktool_1.4.1.jar for doing de/compiling jobs.
Anyway, may you show the log?
Click to expand...
Click to collapse
well i had already replaced the thing in string.xml
but still have error
screen shot attached
singh_dd93 said:
well i had already replaced the thing in string.xml
but still have error
screen shot attached
Click to expand...
Click to collapse
:\
No: replace the string <style name="Layout.ButtonContainer" for <style name="Layout.ButtonContainer" parent="@android:style/Theme.Wallpaper.NoTitleBar">
at \res\values\styles.xml and compile..replace the string <style name="Layout.ButtonContainer" for <style name="Layout.ButtonContainer" parent="@android:style/Theme.Wallpaper.NoTitleBar">
at \res\values\styles.xml not string.xml
.
I am not pretty sure if it cause by resource problem. did u installed framework-res.apk yet?
Me I use Apkmanager 4.9
No problem at all.
yes i replaced these lines in styles.xml and have also installed framework-res.apk and SemcGenericUxpRes.apk
I am able to edit GB apks if i use GB framework files but not able to do in case of ICS(installed ICS framework files)
I am sorry i wrote string.xml by chance
singh_dd93 said:
yes i replaced these lines in styles.xml and have also installed framework-res.apk and SemcGenericUxpRes.apk
I am able to edit GB apks if i use GB framework files but not able to do in case of ICS(installed ICS framework files)
I am sorry i wrote string.xml by chance
Click to expand...
Click to collapse
Well, first try this, go to UOT kitchen, upload framework-res.apk then just mod battery icon,. cook it. u'll get new framework. use it and installed then try to decompile/compile maybe can help/.
---------- Post added at 07:56 PM ---------- Previous post was at 07:25 PM ----------
singh_dd93 said:
yes i replaced these lines in styles.xml and have also installed framework-res.apk and SemcGenericUxpRes.apk
I am able to edit GB apks if i use GB framework files but not able to do in case of ICS(installed ICS framework files)
I am sorry i wrote string.xml by chance
Click to expand...
Click to collapse
Well, first try this, go to UOT kitchen, upload framework-res.apk then just mod battery icon,. cook it. u'll get new framework. use it and installed then try to decompile/compile maybe can help/.

Can´t recompile framework-res.apk Help please.

Hello,
i have a problem recompiling framework-res.apk.
I can flawlessly decompile and change any other apk (also system apks).
Decompiling the framework-res.apk goes flawlessly as well...
But when i try to recompile apktool tells me
could not find sources
checking whether resources has changed
building ressourced
Click to expand...
Click to collapse
then it gives and incredible long error message that something is wrong in values/plurals (I have not even touched it!!) and some other **** that may be wrong..
Even if I don´t change anything I get this message..
First of all:
- i have installed the framework (java -jar apktool.jar if framework-res.apk)
- i have updated to the latest aapt.exe
- i am using apktool 1.4.8 but it also happens with all other versions (I tried it)
I don´t know what´s wrong since I can flawlessly change any other apks that way as i told..
I hope you can help me!
Thanks in advance!
Use apkmanager is best...... to install framework, put it in others folder use "apktool if framework-res.apk" cmd..... as ur error says, u r not installed framework correctly i think..... try this....
Sent from my Micromax A60 using xda premium
Well... apkmanager is like an automatic Version of apktool...
So I will get same Error...
Can´t anyone help me? Has no one ever discovered this Problem before?...
Can you post the long error message to track the issue copy it to paste bin or something
Sent from my GT-N7000 using xda premium
spartanier7 said:
Hello,
i have a problem recompiling framework-res.apk.
I can flawlessly decompile and change any other apk (also system apks).
Decompiling the framework-res.apk goes flawlessly as well...
But when i try to recompile apktool tells me
then it gives and incredible long error message that something is wrong in values/plurals (I have not even touched it!!) and some other **** that may be wrong..
Even if I don´t change anything I get this message..
First of all:
- i have installed the framework (java -jar apktool.jar if framework-res.apk)
- i have updated to the latest aapt.exe
- i am using apktool 1.4.8 but it also happens with all other versions (I tried it)
I don´t know what´s wrong since I can flawlessly change any other apks that way as i told..
I hope you can help me!
Thanks in advance!
Click to expand...
Click to collapse
same problem!
Try THIS and report back.
Well thanks
That ICS Apktool worked. Allthough i was editing a JB apk...
Thanks anyway I hop it will remain working Otherwise I´ll report on that here.
Thanks again. You saved my ass.
The funny thing is that SystemUI is not recompilable with that apktool. But it works fine with my old one..
It seems that it only works for framework-res.apk...
isn´t that strange somehow?
spartanier7 said:
isn´t that strange somehow?
Click to expand...
Click to collapse
It is a pain in the ass, try this one for it which is what I use for my SystemUI and other problem APKs, but keep the two separate, so have the first in it's own folder and this in it's own folder...

(req)android.policy.jar

Hi
can someone give me the stock 587 rom android.policy.jar?
thx guys
poria1999 said:
Hi
can someone give me the stock 587 rom android.policy.jar?
thx guys
Click to expand...
Click to collapse
in attach you have android.policy.jar + android.policy.odex (if you need that too)
Thx bro
I open the androidpolicy.Jar and I can't find the classes.dex ...
Where is it?
poria1999 said:
Thx bro
I open the androidpolicy.Jar and I can't find the classes.dex ...
Where is it?
Click to expand...
Click to collapse
You have to decompile it then you will get .dex file.
僕のLT18iから送られてきた
popthosegaskets said:
You have to decompile it then you will get .dex file.
僕のLT18iから送られてきた
Click to expand...
Click to collapse
Hi thx for ur help...
how I can decompile it?
I think I have to firstly find .dex file after that decompile it
take look at this thread
http://forum.xda-developers.com/showthread.php?t=2251719
poria1999 said:
Hi thx for ur help...
how I can decompile it?
I think I have to firstly find .dex file after that decompile it
take look at this thread
http://forum.xda-developers.com/showthread.php?t=2251719
Click to expand...
Click to collapse
Open the .jar file using 7zip.
You can then extract .dex file from the .jar file.
僕のLT18iから送られてきた
popthosegaskets said:
Open the .jar file using 7zip.
You can then extract .dex file from the .jar file.
僕のLT18iから送られてきた
Click to expand...
Click to collapse
Hi
There is not any .dex file...
only thing is there is this
android.policy\META-INF\MANIFEST.MF
Try this method:
http://forum.xda-developers.com/showthread.php?t=1296802
僕のLT18iから送られてきた
Hi
Thx from everyone that who helped me my finally I could decompile android.policy.jar...
For who don't know :for decompile stock odexed rom jar files u have to deodex ur Rom( the jar file u want to decompile)first...

Categories

Resources