Hi all.
I´m having an issue when I try to decompile a theme for cm9 (this one http://forum.xda-developers.com/showthread.php?t=1673652 I do have permision to do so from creator)
I´ve installed this java "jdk1.7.0_07 for 64bit windows" when I run "java -version" in cmd I get
{
"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"
}
which I think means I dont have to add the path right ?
I´ve installed android-sdk aswell as platform-tools, and added C:\Program Files (x86)\Android\android-sdk\platform-tools in path, I can do adb command if I CD to the folder.
I have taken the framework-res.apk and SystemUI.apk from my phone, renamed the first one 1.apk and 2nd one 2.apk and placed them in the "User\apktool\framework" folder location.
But when I set the corect project in apkmanager 5.0.2 and then try to decompile I get this error in log.
Code:
|10-10-2012 -- 19:06:14,36|
--------------------------------------------------------------------------
java version "1.7.0_07"
Java(TM) SE Runtime Environment (build 1.7.0_07-b11)
Java HotSpot(TM) 64-Bit Server VM (build 23.3-b01, mixed mode)
E:\User\Desktop\and\place-apk-here-for-modding\../place-apk-here-for-modding/signedtheme.apk blev ikke fundet.
E:\User\Desktop\and\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedtheme.apk blev ikke fundet.
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: E:\User\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x010301e9
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:55)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:51)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferenceValue.java:59)
at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResReferenceValue.java:46)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlAttr(ResScalarValue.java:43)
at brut.androlib.res.data.value.ResStyleValue.serializeToResValuesXml(ResStyleValue.java:48)
at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResources.java:264)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:137)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:93)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
at brut.apktool.Main.cmdDecode(Main.java:120)
at brut.apktool.Main.main(Main.java:57)
Can anyone see what I´m doing wrong, and point me in the right direction to fix it?
And I´m just trying to theme the phone signal icons from grey to yellow.
Phone is SGS2 I9100 and on stock CM9
really, no one have any experience with this ?
More details, Ive installed these two.
http://www.oracle.com/technetwork/java/javase/downloads/jre-7u2-download-1377135.html for 64bit
http://www.oracle.com/technetwork/java/javase/downloads/jdk7u7-downloads-1836413.html for 64bit
---final edit---
got it fixed now
I guess JDK 1.6 is needed for it to work properly as mentioned here. As Android officially supports the 1.6 version only. But doesn't matter, as you've already got it fixed.
pharaohdk said:
More details, Ive installed these two.
http://www.oracle.com/technetwork/java/javase/downloads/jre-7u2-download-1377135.html for 64bit
http://www.oracle.com/technetwork/java/javase/downloads/jdk7u7-downloads-1836413.html for 64bit
---final edit---
got it fixed now
Click to expand...
Click to collapse
can i knw how did u fix it...............
Related
I am trying to edit something in the Google Voice apk, but everytime I try to compile, I get the following error:
Code:
C:\Users\Family\Desktop\APKTool>apktool b com.google.android.apps.googlevoice-2
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathN
otExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.apktool.Main.cmdBuild(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(Unknown Source)
... 5 more
I have tried updating aapt.exe, re-installing APKTool, etc. but nothing has worked.. I am on Windows Vista 64-bit. Any suggestions?
Google Voice always has issues when trying to decompile etc.. just use one from another ROM or something. What do you want to do?
CdTDroiD said:
Google Voice always has issues when trying to decompile etc.. just use one from another ROM or something. What do you want to do?
Click to expand...
Click to collapse
Well I tried decompiling and recompiling a random apk and got the same error. I'm trying to make a way to get to the inbox if you're in a conversation thread. For example, sometimes I have to press the Back key like 30 times to get all the way back to the inbox. I was going to make the "Archive" button take you to the inbox (because I never use Archive).
I will try to compile on a different computer and update what happens.
edit: Fixed it!
Just deleted everything in the /apktool/frameworks folder and it worked.
twolves14 said:
edit: Fixed it!
Just deleted everything in the /apktool/frameworks folder and it worked.
Click to expand...
Click to collapse
Sorry i dont understand. I have the same error, but where is "apktool/framework"??
I have this..
{
"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"
}
How can i decompile it?
dany_danay said:
Sorry i dont understand. I have the same error, but where is "apktool/framework"??
I have this..
How can i decompile it?
Click to expand...
Click to collapse
I will have to look at my old desktop PC, but I'll let you know what I did in more detail.
I have problems decompiling settings.apk of stock rom with panel settings in it. This is Apkmanager's log
Code:
--------------------------------------------------------------------------
|17-Jul-12 -- 9:43:22.38|
--------------------------------------------------------------------------
java version "1.7.0_05"
Java(TM) SE Runtime Environment (build 1.7.0_05-b06)
Java HotSpot(TM) Client VM (build 23.1-b03, mixed mode, sharing)
Could Not Find E:\mini pro\Apk_Manager_5.0.2_ICS_APKTool_fix\place-apk-here-for-modding\../place-apk-here-for-modding/signedSettings.apk
Could Not Find E:\mini pro\Apk_Manager_5.0.2_ICS_APKTool_fix\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedSettings.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\Sudan\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
this is a screen shot of ApkManager showing the error
{
"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 far as I know, 2.apk is for samsung and other ROMS which have dependencies other than framework-res.apk. Then why is ApkManager asking me to install 2.apk please help
Sudanminipro said:
I have problems decompiling settings.apk of stock rom with panel settings in it. This is Apkmanager's log
Code:
--------------------------------------------------------------------------
|17-Jul-12 -- 9:43:22.38|
--------------------------------------------------------------------------
java version "1.7.0_05"
Java(TM) SE Runtime Environment (build 1.7.0_05-b06)
Java HotSpot(TM) Client VM (build 23.1-b03, mixed mode, sharing)
Could Not Find E:\mini pro\Apk_Manager_5.0.2_ICS_APKTool_fix\place-apk-here-for-modding\../place-apk-here-for-modding/signedSettings.apk
Could Not Find E:\mini pro\Apk_Manager_5.0.2_ICS_APKTool_fix\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedSettings.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\Sudan\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
this is a screen shot of ApkManager showing the error
View attachment 1203527
As far as I know, 2.apk is for samsung and other ROMS which have dependencies other than framework-res.apk. Then why is ApkManager asking me to install 2.apk please help
Click to expand...
Click to collapse
2.apk is SEMC framework called SemcGenericUxpRes.apk.
You need to go to folder where is apktool.jar placed and copy 'SemcGenericUxpRes.apk' (phone memory/system/framework) to this folder.
Open cmd and in prompt go to folder where is placed apktool.jar
in cmd type: java -jar apktool.jar if SemcGenericUxpRes.apk
Now you have 2.apk installed
reaper61616 said:
2.apk is SEMC framework called SemcGenericUxpRes.apk.
You need to go to folder where is apktool.jar placed and copy 'SemcGenericUxpRes.apk' (phone memory/system/framework) to this folder.
Open cmd and in prompt go to folder where is placed apktool.jar
in cmd type: java -jar apktool.jar if SemcGenericUxpRes.apk
Now you have 2.apk installed
Click to expand...
Click to collapse
Just did this confirming it works, I was also stuck.
Cheers,
Evil.
reaper61616 said:
2.apk is SEMC framework called SemcGenericUxpRes.apk.
You need to go to folder where is apktool.jar placed and copy 'SemcGenericUxpRes.apk' (phone memory/system/framework) to this folder.
Open cmd and in prompt go to folder where is placed apktool.jar
in cmd type: java -jar apktool.jar if SemcGenericUxpRes.apk
Now you have 2.apk installed
Click to expand...
Click to collapse
Thanks a lot
evilbarcode said:
Just did this confirming it works, I was also stuck.
Cheers,
Evil.
Click to expand...
Click to collapse
Thanks for confirming that it works
Decompiling Error
I want to decompile the 4.3 Settings.apk of the Xperia ZL.
I use the latest ApkTool
My Steps :
1. i install the framework-res.apk
2. i decompile the Settings.apk
after decompile comes the Error:
Can't find framework resources for package of id: 2. You must install proper fra
mework files, see project website for more info.
What must i do....or what did i have forgotten.
Hi guys i downloaded the new AOSP JB Clock,Android Police said thats its only working on JB so i checked it.
First i tried to push it to system/app after trying to start (on ICS) it gave fc.
Ok but the Widget was working.
So i took a look in android manifest.xml
Min androidsdk was: 15 which is Android 4.03 (ICS)
Targeting androidsdk was 17 JB
So just change the target to "15" and the app should work
Sent from my SK17i using xda app-developers app
can you share already modified apk?
KhemaraS. said:
Hi guys i downloaded the new AOSP JB Clock,Android Police said thats its only working on JB so i checked it.
First i tried to push it to system/app after trying to start (on ICS) it gave fc.
Ok but the Widget was working.
So i took a look in android manifest.xml
Min androidsdk was: 15 which is Android 4.03 (ICS)
Targeting androidsdk was 17 JB
So just change the target to "15" and the app should work
Sent from my SK17i using xda app-developers app
Click to expand...
Click to collapse
yeah.can u post it here?
Decomplie deskclock.apk no error changed SDK version Not recomplie Error
Code:
java version "1.7.0_07"
Java(TM) SE Runtime Environment (build 1.7.0_07-b11)
Java HotSpot(TM) 64-Bit Server VM (build 23.3-b01, mixed mode)
C:\Users\Root\Desktop\Apk_Manager_ICS - Kopya\place-apk-here-for-modding\../place-apk-here-for-modding/signedDeskClockGoogle.apk Bulunamad
C:\Users\Root\Desktop\Apk_Manager_ICS - Kopya\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedDeskClockGoogle.apk Bulunamad
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\Root\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
C:\Users\Root\Desktop\Apk_Manager_ICS - Kopya\other\..\projects\DeskClockGoogle.apk\AndroidManifest.xml:45: error: No resource identifier found for attribute 'showOnLockScreen' in package 'android'
C:\Users\Root\Desktop\Apk_Manager_ICS - Kopya\other\..\projects\DeskClockGoogle.apk\AndroidManifest.xml:92: error: No resource identifier found for attribute 'showOnLockScreen' in package 'android'
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Root\AppData\Local\Temp\APKTOOL6204651241436718691.tmp, -I, C:\Users\Root\apktool\framework\1.apk, -S, C:\Users\Root\Desktop\Apk_Manager_ICS - Kopya\other\..\projects\DeskClockGoogle.apk\res, -M, C:\Users\Root\Desktop\Apk_Manager_ICS - Kopya\other\..\projects\DeskClockGoogle.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Root\AppData\Local\Temp\APKTOOL6204651241436718691.tmp, -I, C:\Users\Root\apktool\framework\1.apk, -S, C:\Users\Root\Desktop\Apk_Manager_ICS - Kopya\other\..\projects\DeskClockGoogle.apk\res, -M, C:\Users\Root\Desktop\Apk_Manager_ICS - Kopya\other\..\projects\DeskClockGoogle.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
pls Share Worked APK
I've try this and its dont working
{
"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"
}
Sent from my Motorola Occam using Tapatalk 2 Beta
Hey friends, can you tell me how to sign an apk in linux??
I hav downloaded signapk files from source code(https://code.google.com/p/signapk/downloads/detail?name=signapk-0.3.1.tar.bz2&can=2&q=)..
Made a folde named 'signapk' on desktop...
Then i ran the following command...
Code:
java -jar signapk.jar certificate.pem key.pk8 ~/Desktop/SystemUI.apk
But i got this error!! plz help...
{
"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"
}
TheStrix said:
Hey friends, can you tell me how to sign an apk in linux??
I hav downloaded signapk files from source code(https://code.google.com/p/signapk/downloads/detail?name=signapk-0.3.1.tar.bz2&can=2&q=)..
Made a folde named 'signapk' on desktop...
Then i ran the following command...
Code:
java -jar signapk.jar certificate.pem key.pk8 ~/Desktop/SystemUI.apk
But i got this error!! plz help...
Click to expand...
Click to collapse
try not to use the .jar extension.
just type signapk instead of signapk.jar
same crap that java does with .class
Lgrootnoob said:
try not to use the .jar extension.
just type signapk instead of signapk.jar
same crap that java does with .class
Click to expand...
Click to collapse
Still error..
TheStrix said:
Still error..
Click to expand...
Click to collapse
is the signapk jar actually in your directory?
Post the output of these commands:
Code:
ls
ls Desktop
ls Desktop/signapk
Lgrootnoob said:
is the signapk jar actually in your directory?
Post the output of these commands:
Code:
ls
ls Desktop
ls Desktop/signapk
Click to expand...
Click to collapse
TheStrix said:
Click to expand...
Click to collapse
Your trying to access signapk but it is not in the current directory. So youhave to cd to Desktop/signapk before executing your command.
as follows
Code:
cd Desktop/signapk
java -jar signapk.jar certificate.pem key.pk8 ../SystemUI.apk
java -jar signapk certificate.pem key.pk8 ../SystemUI.apk
I Have Setup JAVA_HOME But facing Some Problem like In screenshot With advance apk tool and simple apktool.
{
"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"
}
Earlier when i only used JRE I done it also worked flawless but when i installed JDK something like this Arise
HELP ME AND MY FRIENDS AS MANY OF THEM FACING PROBLEM
I also tryed reinstalling JAVA JDK And JRE 2 times
You have to scroll down System Variable list and when you reach PATH variable, edit it and add directory containing java at end of it.
iamareebjamal said:
You have to scroll down System Variable list and when you reach PATH variable, edit it and add directory containing java at end of it.
Click to expand...
Click to collapse
Thanks A Lot My Big Bro Always Help Me I was doing Silly Mistake.
iamareebjamal said:
You have to scroll down System Variable list and when you reach PATH variable, edit it and add directory containing java at end of it.
Click to expand...
Click to collapse
Code:
F:\apktool>apktool b framework-res.apk
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathN
otExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:164)
at brut.androlib.Androlib.build(Androlib.java:183)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:
103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:160)
... 4 more
Facing This ProBlem In Compiling Frame-res.apk
Regards Bro
SMARTY BOY said:
Code:
F:\apktool>apktool b framework-res.apk
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathN
otExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:164)
at brut.androlib.Androlib.build(Androlib.java:183)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:
103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:160)
... 4 more
Facing This ProBlem In Compiling Frame-res.apk
Regards Bro
Click to expand...
Click to collapse
It wasn't decompiled correctly. apktool.yml is auto generated on complete decompiling. But as the compiling program can't find it, it means that the app wasn't decompiled successfully.
iamareebjamal said:
It wasn't decompiled correctly. apktool.yml is auto generated on complete decompiling. But as the compiling program can't find it, it means that the app wasn't decompiled successfully.
Click to expand...
Click to collapse
Tried many times with Other ROMs FRAMEWORK-RES.APK But still gettings Same Problem. I Am Using Latest Apktool and always Facing The same Error while recompiling.
Regards