Having problems with long press to launch certain things
For example:
const-string v3, "android.settings.AIRPLANE_MODE_SETTINGS"
Will launch airplane mode settings
How can I launch tether settings? I know its com.android.settings.TetherSettings but what could I use above to work?
Also flashlight use to be called by:
const-string v3, "android.intent.action.FLASHLIGHT"
But this is no longer working on the new 3.32.401.5 base for some reason, get the error:
Unable to start activity
Anybody help?
I also wanted to take a look but I can't even decompile SystemUI.apk (3.32.401.5 base)?!
How did you manage to decompile/compile it?
Use the attached apktool.jar
Thank you, but I still get errors when decompiling...
"Invalid config flags detected: ..."
but it seems to work ...
EDIT: Tried to get rid of the recent apps but can't compile...
hansbert said:
Thank you, but I still get errors when decompiling...
"Invalid config flags detected: ..."
but it seems to work ...
EDIT: Tried to get rid of the recent apps but can't compile...
Click to expand...
Click to collapse
What is the error?
copied out of cmd:
C:\Users\USERNAME>cd c:\apktool
c:\apktool>apktool if com.htc.resources.apk
W: Config flags size > 36. Exceeding bytes: 0x1000000.
W: Invalid config flags detected: dimen-hdpi-ERR0
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-hdpi-ERR1
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-hdpi-ERR2
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-hdpi-ERR3
W: Config flags size > 36. Exceeding bytes: 0x1000000.
W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR4
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR5
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR6
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR7
W: Config flags size > 36. Exceeding bytes: 0x1000000.
W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR8
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR9
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR10
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR11
W: Config flags size > 36. Exceeding bytes: 0x1000000.
W: Invalid config flags detected: integer-hdpi-ERR12
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: integer-hdpi-ERR13
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: integer-hdpi-ERR14
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: integer-hdpi-ERR15
I: Framework installed to: C:\Users\USERNAME\apktool\framework\2.apk
c:\apktool>apktool d SystemUI.apk
I: Baksmaling...
testI: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\USERNAME\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Loading resource table from file: C:\Users\USERNAME\apktool\framework\2.apk
W: Config flags size > 36. Exceeding bytes: 0x1000000.
W: Invalid config flags detected: dimen-hdpi-ERR0
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-hdpi-ERR1
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-hdpi-ERR2
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-hdpi-ERR3
W: Config flags size > 36. Exceeding bytes: 0x1000000.
W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR4
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR5
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR6
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR7
W: Config flags size > 36. Exceeding bytes: 0x1000000.
W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR8
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR9
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR10
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR11
W: Config flags size > 36. Exceeding bytes: 0x1000000.
W: Invalid config flags detected: integer-hdpi-ERR12
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: integer-hdpi-ERR13
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: integer-hdpi-ERR14
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: integer-hdpi-ERR15
I: Loaded.
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
c:\apktool>apktool b SystemUI SystemUI_new.apk
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: c:\apktool\SystemUI\res/drawable-sw600dp-hdpi
invalid resource directory name: c:\apktool\SystemUI\res/layout-sw600dp
invalid resource directory name: c:\apktool\SystemUI\res/values-sw320dp-hdpi
invalid resource directory name: c:\apktool\SystemUI\res/values-sw360dp-hdpi
invalid resource directory name: c:\apktool\SystemUI\res/values-sw600dp
invalid resource directory name: c:\apktool\SystemUI\res/values-sw600dp-port
invalid resource directory name: c:\apktool\SystemUI\res/values-sw720dp
invalid resource directory name: c:\apktool\SystemUI\res/values-sw720dp-port
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\USERNAME\AppData\Local\Temp\APK
TOOL2223493940952411341.tmp, -I, C:\Users\USERNAME\apktool\framework\1.apk, -I, C:\Us
ers\USERNAME\apktool\framework\2.apk, -S, c:\apktool\SystemUI\res, -M, c:\apktool\Sys
temUI\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a: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:\U
sers\USERNAME\AppData\Local\Temp\APKTOOL2223493940952411341.tmp, -I, C:\Users\USERNAME\apk
tool\framework\1.apk, -I, C:\Users\USERNAME\apktool\framework\2.apk, -S, c:\apktool\S
ystemUI\res, -M, c:\apktool\SystemUI\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
Click to expand...
Click to collapse
Since we don't have many active theme creation here I wanted to look at porting some of the sense 4 themes from the Tegra section. I have no idea where to start. Can someone point me in the right direction?
This should help you out. If you need anything IM me.
http://forum.xda-developers.com/showthread.php?t=962136
I been reading up on it too
Sent from my HTC One X using xda app-developers app
I'm working on a dark red theme to match the calculator I posted a few days ago. I've been working on it everyday since. It's VERY time consuming. It's coming along nicely.
Sent from my One X using xda app-developers app
Glad to hear other folks are working on themes.
Been planning on doing this, haven't had time this weekend until now, starting one tonight hopefully, ill pm u with what method I use if it works
Sent from my HTC One X using Tapatalk 2
Yeah the more we get to help out and once the roms slow down on updates it does make things easier lol.
I'm using a Mac too, its not easy to find tools for deodexing/odexing, decompiling and recompiling apks, especially systemui haha
Sent from my HTC One X using Tapatalk 2
I have just about all OS you can get the mac one here.
http://code.google.com/p/android-apktool/
That's going to be your main tool just about.
Winrar or 7zip also
Remember if its a text you will need to recompile/builds etc
Pictures you can just open and drop them within the apk. You can open a apk with winrar or 7zip
Also use a fresh apk and not one that has hand its hands on etc.
Hope these little tips help ya guys.
jakew02 said:
I'm using a Mac too, its not easy to find tools for deodexing/odexing, decompiling and recompiling apks, especially systemui haha
Sent from my HTC One X using Tapatalk 2
Click to expand...
Click to collapse
Copy apktool to the root directory. I have a folder like this C:\apktool\ -files in here-
command is:
apktool d systemui.apk
That will create a folder at with you can import replace txt files and what ever.
When your done next command will be
apktool b systemui systemui-new.apk
That will make a new apk rename it and put it back into the right zip
thcue said:
I have just about all OS you can get the mac one here.
http://code.google.com/p/android-apktool/
That's going to be your main tool just about.
Winrar or 7zip also
Remember if its a text you will need to recompile/builds etc
Pictures you can just open and drop them within the apk. You can open a apk with winrar or 7zip
Also use a fresh apk and not one that has hand its hands on etc.
Hope these little tips help ya guys.
Copy apktool to the root directory. I have a folder like this C:\apktool\ -files in here-
command is:
apktool d systemui.apk
That will create a folder at with you can import replace txt files and what ever.
When your done next command will be
apktool b systemui systemui-new.apk
That will make a new apk rename it and put it back into the right zip
Click to expand...
Click to collapse
Giving this a shot, THANKS!
Do they have 7zip for Mac ?? I have never been able to find anything comparable to it, like the ability to edit the contents (add/delete things) from a file before it is decompressed. Like 7zip on windows lets you go in and do pretty much anything to a .ZIP, while it is still compressed as a .ZIP, WITHOUT unzipping it. you know what i mean?
jakew02 said:
Giving this a shot, THANKS!
Do they have 7zip for Mac ?? I have never been able to find anything comparable to it, like the ability to edit the contents (add/delete things) from a file before it is decompressed. Like 7zip on windows lets you go in and do pretty much anything to a .ZIP, while it is still compressed as a .ZIP, WITHOUT unzipping it. you know what i mean?
Click to expand...
Click to collapse
Really I like winrar better imo
thcue said:
I have just about all OS you can get the mac one here.
http://code.google.com/p/android-apktool/
That's going to be your main tool just about.
Winrar or 7zip also
Remember if its a text you will need to recompile/builds etc
Pictures you can just open and drop them within the apk. You can open a apk with winrar or 7zip
Also use a fresh apk and not one that has hand its hands on etc.
Hope these little tips help ya guys.
Copy apktool to the root directory. I have a folder like this C:\apktool\ -files in here-
command is:
apktool d systemui.apk
That will create a folder at with you can import replace txt files and what ever.
When your done next command will be
apktool b systemui systemui-new.apk
That will make a new apk rename it and put it back into the right zip
Click to expand...
Click to collapse
I've noticed that extracting the apk shows me all the files except for smali. Even when I try to decompile with apktool, a lot of the time smali isn't there either and apk manager doesn't give any error.
Sent from my One X using xda app-developers app
---------- Post added at 01:01 AM ---------- Previous post was at 12:59 AM ----------
jakew02 said:
Giving this a shot, THANKS!
Do they have 7zip for Mac ?? I have never been able to find anything comparable to it, like the ability to edit the contents (add/delete things) from a file before it is decompressed. Like 7zip on windows lets you go in and do pretty much anything to a .ZIP, while it is still compressed as a .ZIP, WITHOUT unzipping it. you know what i mean?
Click to expand...
Click to collapse
Winrar should let you do the same thing. I remember when I had a Mac I used to use Unrar. I think that's what it was called. I don't remember. It was a couple years ago.
Sent from my One X using xda app-developers app
thcue said:
Really I like winrar better imo
Click to expand...
Click to collapse
installed apktool to /usr/loca/bin like it says to,
tried running apktool d SystemUI.apk and Input file (SystemUI.apk) was not found or is not readable.
now, i didnt do ANYTHING after unpacking apktool to /usr/local/bin, i just put it there and ran that command.
I then did:
adb pull /system/app/SystemUI.apk /Users/jake/apktool
to bring SystemUI.apk onto my computer
tried running the command again, same error message, what'd i miss? I followed the instructions on the apktool page.
Also, I had a TON of errors when following the instructions for installed the com.htc.resources.apk as well, so i know the htc framework is not installed
EDIT: Might have just figured this mofo out, hold on
EDIT 2:
Ok, got framework-res.apk to work with:
apktool if framework-res.apk
I just used adb pull /system/framework/framework-res.apk to /usr/local/bin and ran the command. I used that folder because that is where i have the 3 files for apktool
that installs fine
my issue now is com.htc.resources.apk
if i use just apktool if com.htc.resources.apk i get this
Jacobs-MacBook-Pro:~ jake$ apktool if com.htc.resouces.apk
Exception in thread "main" brut.androlib.AndrolibException: java.util.zip.ZipException: error in opening zip file
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResources.java:404)
at brut.androlib.Androlib.installFramework(Androlib.java:365)
at brut.apktool.Main.cmdInstallFramework(Main.java:193)
at brut.apktool.Main.main(Main.java:69)
Caused by: java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:127)
at java.util.zip.ZipFile.<init>(ZipFile.java:143)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResources.java:374)
... 3 more
If i add the filepath for the com.htc.resources.apk i pulled and placed in /usr/local/bin i get this
Jacobs-MacBook-Pro:~ jake$ apktool if /Users/jake/apktool/com.htc.resources.apk
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-hdpi-ERR0
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-hdpi-ERR1
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-hdpi-ERR2
W: Config flags size > 36. Exceeding bytes: 0x6000000.
W: Invalid config flags detected: dimen-hdpi-ERR3
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-xhdpi-ERR4
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-xhdpi-ERR5
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-xhdpi-ERR6
W: Config flags size > 36. Exceeding bytes: 0x6000000.
W: Invalid config flags detected: dimen-xhdpi-ERR7
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-ja-hdpi-ERR8
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-ja-hdpi-ERR9
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-ja-hdpi-ERR10
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-ja-xhdpi-ERR11
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-ja-xhdpi-ERR12
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-ja-xhdpi-ERR13
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-ko-hdpi-ERR14
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-ko-hdpi-ERR15
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-ko-hdpi-ERR16
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-ko-xhdpi-ERR17
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-ko-xhdpi-ERR18
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-ko-xhdpi-ERR19
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR20
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR21
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR22
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-zh-rCN-xhdpi-ERR23
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-zh-rCN-xhdpi-ERR24
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-zh-rCN-xhdpi-ERR25
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR26
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR27
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR28
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-zh-rTW-xhdpi-ERR29
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-zh-rTW-xhdpi-ERR30
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-zh-rTW-xhdpi-ERR31
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: integer-hdpi-ERR32
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: integer-hdpi-ERR33
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: integer-hdpi-ERR34
W: Config flags size > 36. Exceeding bytes: 0x6000000.
W: Invalid config flags detected: integer-hdpi-ERR35
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: integer-xhdpi-ERR36
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: integer-xhdpi-ERR37
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: integer-xhdpi-ERR38
W: Config flags size > 36. Exceeding bytes: 0x6000000.
W: Invalid config flags detected: integer-xhdpi-ERR39
I: Framework installed to: /Users/jake/apktool/framework/2.apk
jakew02 said:
installed apktool to /usr/loca/bin like it says to,
tried running apktool d SystemUI.apk and Input file (SystemUI.apk) was not found or is not readable.
now, i didnt do ANYTHING after unpacking apktool to /usr/local/bin, i just put it there and ran that command.
I then did:
adb pull /system/app/SystemUI.apk /Users/jake/apktool
to bring SystemUI.apk onto my computer
tried running the command again, same error message, what'd i miss? I followed the instructions on the apktool page.
Also, I had a TON of errors when following the instructions for installed the com.htc.resources.apk as well, so i know the htc framework is not installed
EDIT: Might have just figured this mofo out, hold on
EDIT 2:
Ok, got framework-res.apk to work with:
apktool if framework-res.apk
I just used adb pull /system/framework/framework-res.apk to /usr/local/bin and ran the command. I used that folder because that is where i have the 3 files for apktool
that installs fine
my issue now is com.htc.resources.apk
if i use just apktool if com.htc.resources.apk i get this
Jacobs-MacBook-Pro:~ jake$ apktool if com.htc.resouces.apk
Exception in thread "main" brut.androlib.AndrolibException: java.util.zip.ZipException: error in opening zip file
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResources.java:404)
at brut.androlib.Androlib.installFramework(Androlib.java:365)
at brut.apktool.Main.cmdInstallFramework(Main.java:193)
at brut.apktool.Main.main(Main.java:69)
Caused by: java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:127)
at java.util.zip.ZipFile.<init>(ZipFile.java:143)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResources.java:374)
... 3 more
If i add the filepath for the com.htc.resources.apk i pulled and placed in /usr/local/bin i get this
Jacobs-MacBook-Pro:~ jake$ apktool if /Users/jake/apktool/com.htc.resources.apk
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-hdpi-ERR0
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-hdpi-ERR1
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-hdpi-ERR2
W: Config flags size > 36. Exceeding bytes: 0x6000000.
W: Invalid config flags detected: dimen-hdpi-ERR3
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-xhdpi-ERR4
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-xhdpi-ERR5
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-xhdpi-ERR6
W: Config flags size > 36. Exceeding bytes: 0x6000000.
W: Invalid config flags detected: dimen-xhdpi-ERR7
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-ja-hdpi-ERR8
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-ja-hdpi-ERR9
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-ja-hdpi-ERR10
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-ja-xhdpi-ERR11
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-ja-xhdpi-ERR12
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-ja-xhdpi-ERR13
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-ko-hdpi-ERR14
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-ko-hdpi-ERR15
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-ko-hdpi-ERR16
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-ko-xhdpi-ERR17
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-ko-xhdpi-ERR18
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-ko-xhdpi-ERR19
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR20
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR21
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR22
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-zh-rCN-xhdpi-ERR23
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-zh-rCN-xhdpi-ERR24
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-zh-rCN-xhdpi-ERR25
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR26
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR27
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR28
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-zh-rTW-xhdpi-ERR29
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-zh-rTW-xhdpi-ERR30
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-zh-rTW-xhdpi-ERR31
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: integer-hdpi-ERR32
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: integer-hdpi-ERR33
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: integer-hdpi-ERR34
W: Config flags size > 36. Exceeding bytes: 0x6000000.
W: Invalid config flags detected: integer-hdpi-ERR35
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: integer-xhdpi-ERR36
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: integer-xhdpi-ERR37
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: integer-xhdpi-ERR38
W: Config flags size > 36. Exceeding bytes: 0x6000000.
W: Invalid config flags detected: integer-xhdpi-ERR39
I: Framework installed to: /Users/jake/apktool/framework/2.apk
Click to expand...
Click to collapse
Yea, the same thing happens to me when I try to decompile com.htc.resources.apk in Windows.
Sent from my One X using xda app-developers app
SkizzMcNizz said:
Yea, the same thing happens to me when I try to decompile com.htc.resources.apk in Windows.
Sent from my One X using xda app-developers app
Click to expand...
Click to collapse
Well there's a ticket open on the apktool page about it, it talks about how this is caused by API Levels being different and the aapt being outdated, so I downloaded the Android SDK and replaced the aapt in the directory I have apktool in, but I kept receiving the same errors.
You can see that it does say it installs framework to 2.apk, however, with those errors, it wouldn't be functioning properly
Sent from my HTC One X using Tapatalk 2
As an art student and android lover, I fully intend on investigating theming the One XL, myself. Good luck on these ports; if anything useful comes up in my research, I'll be sure to forward my findings.
Sent from my HTC One XL using xda app-developers app
This is what I get when I decompile/recompile a framework-res.apk using apktool. It decompiles fine but has errors when I recompile. I don't know what I'm doing wrong. I've tried everything, followed every guide.
C:\apktools>java -jar apktool.jar if framework-res.apk
I: Framework installed to: C:\Users\Scott and Sarah\apktool\framework\1.apk
C:\apktools>java -jar apktool.jar d framework-res.apk
I: Loading resource table...
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
C:\apktools>java -jar apktool.jar b framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
aapt: warning: string 'checkbox_checked' has no default translation in C:\apktoo
ls\framework-res\res; found: ug
aapt: warning: string 'checkbox_not_checked' has no default translation in C:\ap
ktools\framework-res\res; found: ug
aapt: warning: string 'choose_account_text' has no default translation in C:\apk
tools\framework-res\res; found: ug
aapt: warning: string 'radiobutton_not_selected' has no default translation in C
:\apktools\framework-res\res; found: ug
aapt: warning: string 'radiobutton_selected' has no default translation in C:\ap
ktools\framework-res\res; found: ug
aapt: warning: string 'sms_control_default_app_name' has no default translation
in C:\apktools\framework-res\res; found: ug
aapt: warning: string 'switch_off' has no default translation in C:\apktools\fra
mework-res\res; found: ug
aapt: warning: string 'switch_on' has no default translation in C:\apktools\fram
ework-res\res; found: ug
aapt: warning: string 'togglebutton_not_pressed' has no default translation in C
:\apktools\framework-res\res; found: ug
aapt: warning: string 'togglebutton_pressed' has no default translation in C:\ap
ktools\framework-res\res; found: ug
aapt: warning: string 'wifi_p2p_pbc_go_negotiation_request_message' has no defau
lt translation in C:\apktools\framework-res\res; found: ug
aapt: warning: string 'wifi_p2p_pin_display_message' has no default translation
in C:\apktools\framework-res\res; found: ug
aapt: warning: string 'wifi_p2p_pin_go_negotiation_request_message' has no defau
lt translation in C:\apktools\framework-res\res; found: ug
I: Building apk file...
C:\apktools>
And when I do Calendar.apk there are no errors. I get this:
C:\apktools>java -jar apktool.jar d Calendar.apk
I: Baksmaling...
testI: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\Scott and Sarah\apktool\framework\
1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
C:\apktools>java -jar apktool.jar b Calendar
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
I: Building apk file...
C:\apktools>
It's so frustrating to see other people pop out roms and themes on a daily basis and I can't even get an apk to compile or decompile right, or make a cwm/twrp flashable zip that won't fail installing.. =(
I'm smart and can follow and understand directions really well but I follow these guides perfectly and get errors when I try.
I tried to take the Black and Cyan theme for cm10 and just change the colors to practice and I can't even get that right. I tried something easy. I took just the numbers from res/drawable-xhdpi and changed them to red, then replaced them in the Phone.apk. Then I took the Phone.apk and placed it in the theme zip and when I flashed it in twrp the numbers were still blue. I tried to just push the Phone.apk to /system/app and overwrite the one that was in there and it gave an error about parcing or something so I changed the permissions and the error was gone but when I open the phone app contacts fc's and the app closes.
I've been working all day and night for the last week straight trying to learn this stuff. I've been losing a lot of sleep but I just keep getting stuck.
All the guides I've come across say it's simple to make a cwm flashable zip. They give you a template to download and you just place your apk in the correct folder (/system/app) and flash in the recovery but when I go to flash it, it fails every time.
Look again them are warnings not errors have you tried to flash it anyway? I did notice after you get them warnings you can run the same command again and no warnings.
Sent from my One X using xda premium
thcue said:
Look again them are warnings not errors have you tried to flash it anyway? I did notice after you get them warnings you can run the same command again and no warnings.
Sent from my One X using xda premium
Click to expand...
Click to collapse
Do those warnings mean something will mess up when I recompile or that those files won't be there when I decompile? Also, after I recompile an apk whenever I put it in /system/app the permissions aren't set right in cm10. In Sense they are but not aosp.
The one line that seems to be a problem is the second one of the decompile where it says W: could not find sources.
Sent from my One X using xda app-developers app
SkizzMcNizz said:
Do those warnings mean something will mess up when I recompile or that those files won't be there when I decompile? Also, after I recompile an apk whenever I put it in /system/app the permissions aren't set right in cm10. In Sense they are but not aosp.
The one line that seems to be a problem is the second one of the decompile where it says W: could not find sources.
Sent from my One X using xda app-developers app
Click to expand...
Click to collapse
Could mean anything like could not find it so it leaves it alone. Did you try to run the same command again right after that?
Hey guys i'm having trouble installing the framework for com.htc.resources.apk using apktool.......
I'm facing this trouble only when i try to install com.htc.resources.apk of sense 4 roms.....when i try to install the the same apk of sense 3.5 roms it installs with no troubles......
Please tell me what's wrong....
I've successfully installed all other frameworks but this one seems to desist from installation....i've posted a screenie to show the error...
Please help i'm in great need for this as i can't compile any apk without this framework....
Thanks in advance
{
"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"
}
Hi bro..
Go to your apktool folder in C:\Users\ and try to delete whatever you have installed there.. and try reinstalling..
You are using the latest apktool.. I can see that.. try to downgrade to a lower version if that step doesnt help..
Did what you told me and still getting this error........ i've copied it here so that you can read it better.....
C:\apktool>apktool if com.htc.resources.apk
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-mdpi-ERR0
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-mdpi-ERR1
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-mdpi-ERR2
W: Config flags size > 36. Exceeding bytes: 0x6000000.
W: Invalid config flags detected: dimen-mdpi-ERR3
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-ja-mdpi-ERR4
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-ja-mdpi-ERR5
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-ja-mdpi-ERR6
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-ko-mdpi-ERR7
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-ko-mdpi-ERR8
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-ko-mdpi-ERR9
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-zh-rCN-mdpi-ERR10
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-zh-rCN-mdpi-ERR11
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-zh-rCN-mdpi-ERR12
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-zh-rTW-mdpi-ERR13
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-zh-rTW-mdpi-ERR14
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-zh-rTW-mdpi-ERR15
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: integer-mdpi-ERR16
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: integer-mdpi-ERR17
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: integer-mdpi-ERR18
W: Config flags size > 36. Exceeding bytes: 0x6000000.
W: Invalid config flags detected: integer-mdpi-ERR19
I: Framework installed to: C:\Users\Abhinav Thomas\apktool\framework\2.apk
C:\apktool>
I also tried downgrading the version of apktool still no luck.......:crying:
I'm unable to compile or decompile apks without this framework....
I found that this error is already reported at the apktool page:https://code.google.com/p/android-apktool/issues/detail?id=388
But no solution...
I have just one doubt how do the sense 4 modders(derefas,danceoff,apex.....etc) decompile and recompile apks...
Somebody please help me.....As i can't do anything without decompiling the apks and i'm so desperate for it.....:crying:
What? no one's got an answer?.......:crying::crying::crying:
Apktool is how I do it too .. Its a weird issue you are getting.. If you want to try apk manager.. Even thats pretty good.. Or multitool.. Your choice.. These are the 3 best
Sent from my Nexus 7 using xda app-developers app
Well i face the same error with all the tools you suggested how does people mod the apks without apktool?....
abhinavthms said:
Well i face the same error with all the tools you suggested how does people mod the apks without apktool?....
Click to expand...
Click to collapse
use the latest aapt.exe from the android sdk(in folder platform-tools) and the latest apktool...hope it solves your problem
I tried installing apkmanager and installing the frameworks provided with it...
Still the same problem...
Also @android007 i have latest apktool
Guys will create my sense theming guide after this rom is complete
today i will upload my rom
Hpsgill said:
Guys will create my sense theming guide after this rom is complete
today i will upload my rom
Click to expand...
Click to collapse
Waiting for it dude :fingers-crossed: hope i can finally start modding sense4.......
Tried everything i know and searched all over the net...
Still the same f****ing error!!.....
theming sense is hard
try theming with cm9 or cm1o then try theming sense
Hello everyone
I'm making this thread because I'm frustrated about the fact that the "framework-res.apk" will not decompile.
So here is a bit of information.
I am using "QuickMod" and I have installed the necessary .apk's. ( SystemUi and Framewrok-res ). But I used my roms .apk, the rom is Liquid Smooth. So When I attempt to decompile the apk it gives off an error, I've search everywhere but there is no valid explanation as to why this happens. Looking at the error log, I get the following message -
Code:
I: Loading resource table...
W: Config flags size > 36. Exceeding bytes: 0xFFFF.
W: Invalid config flags detected. Dropping resources: style-v17-ERR0
Exception in thread "main" brut.androlib.AndrolibException: Could not decode arsc file
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:56)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:491)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:74)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:66)
at brut.androlib.Androlib.getResTable(Androlib.java:50)
at brut.androlib.ApkDecoder.getResTable(ApkDecoder.java:189)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:114)
at brut.apktool.Main.cmdDecode(Main.java:146)
at brut.apktool.Main.main(Main.java:77)
Caused by: java.io.IOException: Expected: 0x00000008, got: 0x00000103
at brut.util.ExtDataInput.skipCheckShort(ExtDataInput.java:56)
at brut.androlib.res.decoder.ARSCDecoder.readValue(ARSCDecoder.java:222)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:182)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:170)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:135)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:110)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:83)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:49)
... 8 more
If you have an explanation for this thank you, if I'm doing something wrong. Please point it out. Thanks.
Nevermind, fixed the issue myself. Downloaded a clean rom, and installed those frameworks and it worked.
i can't install framework-res.apk file from Resurrection Remix rom v5.5.8 with any apktool, if i install it with apktool 2.0.1 and up it will give result like this
C:\Users\Nickl\Downloads\apktool>apktool if framework-res.apk
Exception in thread "main" brut.androlib.AndrolibException: Invalid value type:
0
at brut.androlib.res.data.value.ResValueFactory.factory(ResValueFactory.
java:64)
at brut.androlib.res.decoder.ARSCDecoder.readValue(ARSCDecoder.java:242)
at brut.androlib.res.decoder.ARSCDecoder.readComplexEntry(ARSCDecoder.ja
va:230)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:200)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:188
)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:156)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:11
3)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:78)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:47)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:39)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResource
s.java:678)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResource
s.java:660)
at brut.androlib.Androlib.installFramework(Androlib.java:641)
at brut.apktool.Main.cmdInstallFramework(Main.java:240)
at brut.apktool.Main.main(Main.java:87)
and this if i compile it with apktool v 2.0.0 and down (RC version)
C:\Users\Nickl\Downloads\apktool>apktool if framework-res.apk
W: Config flags size > 48. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: style-ERR0
W: Config flags size > 48. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: style-v21-ERR1
W: Config flags size > 48. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-ERR2
W: Config flags size > 48. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: color-ERR3
W: Config flags size > 48. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: drawable-ERR4
W: Config flags size > 48. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: drawable-v21-ERR5
W: Config flags size > 48. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: drawable-xhdpi-ERR6
W: Config flags size > 48. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: drawable-xxhdpi-ERR7
W: Config flags size > 48. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: anim-ERR8
W: Config flags size > 48. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: bool-ERR9
I: Framework installed to: C:\Users\Nickl\apktool\framework\1.apk
and that will give same result when i try to compile it
C:\Users\Nickl\Downloads\apktool>apktool d framework-res.apk
I: Using Apktool 2.0.1 on framework-res.apk
I: Loading resource table...
W: Config flags size > 48. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: style-ERR0
W: Config flags size > 48. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: style-v21-ERR1
W: Config flags size > 48. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-ERR2
W: Config flags size > 48. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: color-ERR3
W: Config flags size > 48. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: drawable-ERR4
W: Config flags size > 48. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: drawable-v21-ERR5
W: Config flags size > 48. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: drawable-xhdpi-ERR6
W: Config flags size > 48. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: drawable-xxhdpi-ERR7
W: Config flags size > 48. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: anim-ERR8
W: Config flags size > 48. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: bool-ERR9
I: Decoding AndroidManifest.xml with resources...
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
it said compile is finished and i can open almost all xml file, but when i recompile it and copy original signature to zip and i try it. this only give bootloop after push it to device . anyone can help me please?