I have been receiving hundreds of request to mod apps for different dpi. Each day I had a PM with request "Please mod this app sir,I need this app,I need this at this dpi". I can't fulfill everyone's request and I don't have time either. So,I thought to make a guide with all tools and requirements to mod those apps. I know there are many users here who have ability and skills but don't have proper knowledge to do this. Many of you are aware of my 240dpi ModPack. But there are some users who prefer 270/280dpi instead of 240/320dpi. So here's a comprihensive guide with all information regarding dpi/modding apps.
--Its an OPEN PROJECT--Everyone is welcomed here.Please share your knowledge and skills.
I want every member to share their knowledge and/or help me and others.This isn't a step-by-step guide since this is a development project where users will share their knowledge and skills. I am also learning day-by-day and still learning. So I may be weak at some point or have less knowledge regarding it.
Requirements-
1.Java Development kit-JDK
2.Android SDK
3.Winrar (or 7zip/winzip)
4.Notepad++
5.Apktool-Download or MultiTool(for noobs.Get it here)
Setup JDK
Install JDK to C:/JAVA/jdk instead of C:/Program Files/Java. After installing, click on-
Start->Control Panel->System->Advanced system settings. A System Properties dialog box will appear. Click on Advanced tab->Environment variables. Now add a new system variable. Name is JAVA_HOME and the path is ”C:\Java\jdk"(without quotes)
Decompiling/Recompiling apk and jar
Follow this guide on how to decompile/decompile apk HERE
Note- When you decompile System apps,you need to install framework-res.apk and twframework.apk from apktool using this command-
apktool if framework-res.apk
apktool if twframework.apk
Click to expand...
Click to collapse
After giving this command,required framework files will be installed. If you don't do this step,you will get errors(instead it won't decompile)
Error if framework isn't installed-
I: Baksmaling...
I: Loading resource table...
W: Skipping "android" package group
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Vinny\apktool\framework\1.apk
I: Loaded.
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x01030332
I: Regular manifest package...
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=contentDescription, value=0x010407a6
W: Could not decode attr value, using undecoded value instead: ns=android, name=contentDescription, value=0x010407a6
W: Could not decode attr value, using undecoded value instead: ns=android, name=contentDescription, value=0x010407a6
W: Could not decode attr value, using undecoded value instead: ns=android, name=contentDescription, value=0x010407a6
I: Decoding values */* XMLs...
I: Done.
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x01030332
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:58)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:54)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:50)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferenceValue.java:61)
at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResReferenceValue.java:47)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlAttr(ResScalarValue.java:45)
at brut.androlib.res.decoder.ResAttrDecoder.decode(ResAttrDecoder.java:40)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlResourceParser.java:351)
at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValue(XmlPullParserDelegate.java:69)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartTag(StaticXmlSerializerWrapper.java:267)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(StaticXmlSerializerWrapper.java:211)
at brut.androlib.res.decoder.XmlPullStreamDecoder$1.event(XmlPullStreamDecoder.java:87)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDecoder.java:141)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decodeManifest(XmlPullStreamDecoder.java:155)
at brut.androlib.res.decoder.ResFileDecoder.decodeManifest(ResFileDecoder.java:131)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:264)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:113)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:116)
at brut.apktool.Main.cmdDecode(Main.java:148)
at brut.apktool.Main.main(Main.java:77)
You also need to sign the apk after modding or else it won't work.
I'll add more guides and info. So please share your valuable thoughts and skills. I'll add it to op and update it everyday.
How to make Launcher Multi-dpi/240dpi
Decompile SecLauncher2.apk/SecLauncher4.apk. Then go to res folder and make new folder named "values-sw359dp-hdpi". This is the first step to make the Launcher multidpi. Now go to values-sw359dp-xhdpi or values-sw359dp-xxhdpi and copy dimens.xml and integers.xml to values-sw359dp-hddpi. Open dimens.xml from "values-sw359dp-hdpi" and change these lines:
Lines 320DPI Homescreen:
<dimen name="home_cellWidth_port">68.0dip</dimen>
<dimen name="home_cellHeight_port">92.0dip</dimen>
<dimen name="home_pageIndicatorTop">485.0dip</dimen>
<dimen name="hotseat_cellWidth">62.0dip</dimen>
Lines edited for 240DPI Homescreen:
<dimen name="home_cellWidth_port">92.0dip</dimen>
<dimen name="home_cellHeight_port">110.0dip</dimen>
<dimen name="home_pageIndicatorTop">699.0dip</dimen>
<dimen name="hotseat_cellWidth">74.2dip</dimen>
Lines 320DPI For App & Widgets Drawer:
<dimen name="menuAppsGrid_cellWidth">68.0dip</dimen>
<dimen name="menuAppsGrid_cellHeight">88.0dip</dimen>
<dimen name="menuAppsGrid_cellGapX">3.0dip</dimen>
<dimen name="menuAppsGrid_cellGapY">0.0dip</dimen>
<dimen name="menu_pageIndicatorGap">9.0dip</dimen>
<dimen name="menu_pageIndicatorTop">540.0dip</dimen>
<dimen name="menuWidgets_previewWidth">145.0dip</dimen>
<dimen name="menuWidgets_previewHeight">118.0dip</dimen>
<dimen name="menuWidgets_cellGapX">26.0dip</dimen>
<dimen name="menuWidgets_cellGapY">2.0dip</dimen>
<dimen name="menuWidgets_pagePaddingTop">13.0dip</dimen>
<dimen name="menuWidgets_pagePaddingBottom">0.0dip</dimen>
<dimen name="menuWidgets_pagePaddingLeft">17.0dip</dimen>
<dimen name="menuWidgets_pagePaddingRight">17.0dip</dimen>
Lines edited for 240DPI For App & Widgets Drawer:
<dimen name="menuAppsGrid_cellWidth">92.0dip</dimen>
<dimen name="menuAppsGrid_cellHeight">114.4dip</dimen>
<dimen name="menuAppsGrid_cellGapX">3.6dip</dimen>
<dimen name="menuAppsGrid_cellGapY">0.0dip</dimen>
<dimen name="menu_pageIndicatorGap">10.8dip</dimen>
<dimen name="menu_pageIndicatorTop">699.0dip</dimen>
<dimen name="menuWidgets_previewWidth">174.0dip</dimen>
<dimen name="menuWidgets_previewHeight">141.6dip</dimen>
<dimen name="menuWidgets_cellGapX">31.2dip</dimen>
<dimen name="menuWidgets_cellGapY">2.4dip</dimen>
<dimen name="menuWidgets_pagePaddingTop">15.6dip</dimen>
<dimen name="menuWidgets_pagePaddingBottom">0.0dip</dimen>
<dimen name="menuWidgets_pagePaddingLeft">20.4dip</dimen>
<dimen name="menuWidgets_pagePaddingRight">.4dip</dimen>
To Increase Grid Size we have to change some lines in integers.xml.
Now, open integers.xml from values-sw320dp-hdpi and change these lines:
Lines 320DPI Homescreen:
<integer name="home_cellCountX">5</integer>
<integer name="home_cellCountY">5</integer>
Lines 240DPI Homescreen:
<integer name="home_cellCountX">5</integer>
<integer name="home_cellCountY">6</integer>
Lines 320DPI App Drawer:
<integer name="menuAppsGrid_cellCountX">5</integer>
<integer name="menuAppsGrid_cellCountY">6</integer>
Lines 240DPI App Drawer:
<integer name="menuAppsGrid_cellCountX">5</integer>
<integer name="menuAppsGrid_cellCountY">6</integer>
Finally compile SecLauncher2.apk/Seclauncher4.apk
Credits-
@Pafcholini
--User guides and thoughts--
Apps and mods section
Users apps and mods will be added here. Best apps will selected and added in this post.
last
thanks @mannyvinny i am going to use this guide and try to utilize and test some other DPIs thanks for your share
Nice will check back for the guide on the nodding it self
Remember to make a video for it as a picture says more then a thousand words
@mannyvinny i've completed the setup as you've instructed above now ill be using the APK multi tool
now based on this could you provide the step by step instructions on how to work on this.
aukhan said:
@mannyvinny i've completed the setup as you've instructed above now ill be using the APK multi tool
now based on this could you provide the step by step instructions on how to work on this.
Click to expand...
Click to collapse
You can follow the multi-tool thread for this. Or else I'll make a guide for the same.
Sent from my GT-N7100 using XDA Premium 4 mobile app
i m reading Multi tool thread if you could make yours it would be great and really helpful.waiting.
aukhan said:
i m reading Multi tool thread if you could make yours it would be great and really helpful.waiting.
Click to expand...
Click to collapse
ok bro..i think xda will force me to put on spectacles! lol
mannyvinny said:
ok bro..i think xda will force me to put on spectacles! lol
Click to expand...
Click to collapse
hahaha get some screen Filters (Y)
mannyvinny said:
I have been receiving hundreds of request to mod apps for different dpi. Each day I had a PM with request "Please mod this app sir,I need this app,I need this at this dpi". I can't fulfill everyone's request and I don't have time either. So,I thought to make a guide with all tools and requirements to mod those apps. I know there are many users here who have ability and skills but don't have proper knowledge to do this. Many of you are aware of my 240dpi ModPack. But there are some users who prefer 270/280dpi instead of 240/320dpi. So here's a comprihensive guide with all information regarding dpi/modding apps.
--Its an OPEN PROJECT--Everyone is welcomed here.Please share your knowledge and skills.
I want every member to share their knowledge and/or help me and others.This isn't a step-by-step guide since this is a development project where users will share their knowledge and skills. I am also learning day-by-day and still learning. So I may be weak at some point or have less knowledge regarding it.
Requirements-
1.Java Development kit-JDK
2.Android SDK
3.Winrar (or 7zip/winzip)
4.Notepad++
5.Apktool-Download or MultiTool(for noobs.Get it here)
Setup JDK
Install JDK to C:/JAVA/jdk instead of C:/Program Files/Java. After installing, click on-
Start->Control Panel->System->Advanced system settings. A System Properties dialog box will appear. Click on Advanced tab->Environment variables. Now add a new system variable. Name is JAVA_HOME and the path is ”C:\Java\jdk"(without quotes)
Decompiling/Recompiling apk and jar
Follow this guide on how to decompile/decompile apk HERE
Note- When you decompile System apps,you need to install framework-res.apk and twframework.apk from apktool using this command-
After giving this command,required framework files will be installed. If you don't do this step,you will get errors(instead it won't decompile)
Error if framework isn't installed-
I: Baksmaling...
I: Loading resource table...
W: Skipping "android" package group
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Vinny\apktool\framework\1.apk
I: Loaded.
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x01030332
I: Regular manifest package...
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=contentDescription, value=0x010407a6
W: Could not decode attr value, using undecoded value instead: ns=android, name=contentDescription, value=0x010407a6
W: Could not decode attr value, using undecoded value instead: ns=android, name=contentDescription, value=0x010407a6
W: Could not decode attr value, using undecoded value instead: ns=android, name=contentDescription, value=0x010407a6
I: Decoding values */* XMLs...
I: Done.
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x01030332
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:58)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:54)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:50)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferenceValue.java:61)
at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResReferenceValue.java:47)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlAttr(ResScalarValue.java:45)
at brut.androlib.res.decoder.ResAttrDecoder.decode(ResAttrDecoder.java:40)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlResourceParser.java:351)
at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValue(XmlPullParserDelegate.java:69)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartTag(StaticXmlSerializerWrapper.java:267)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(StaticXmlSerializerWrapper.java:211)
at brut.androlib.res.decoder.XmlPullStreamDecoder$1.event(XmlPullStreamDecoder.java:87)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDecoder.java:141)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decodeManifest(XmlPullStreamDecoder.java:155)
at brut.androlib.res.decoder.ResFileDecoder.decodeManifest(ResFileDecoder.java:131)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:264)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:113)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:116)
at brut.apktool.Main.cmdDecode(Main.java:148)
at brut.apktool.Main.main(Main.java:77)
You also need to sign the apk after modding or else it won't work.
I'll add more guides and info. So please share your valuable thoughts and skills. I'll add it to op and update it everyday.
Click to expand...
Click to collapse
Thanks a lot Vinny for the setup tutorials. I have been longing for this. We who are willing to learn will contribute to the success of this project. As the lead mentor, I know you will continue to guide and help us. Thanks once again for always sharing with us
Why everyone is quite here? Please share your thoughts and knowledge here and help others. This way everyone can learn easily.
Sent from my 240dpi'ed AweSomE Note2
mannyvinny said:
Why everyone is quite here? Please share your thoughts and knowledge here and help others. This way everyone can learn easily.
Sent from my 240dpi'ed AweSomE Note2
Click to expand...
Click to collapse
great going ! true people learn a lot who have the willingness to do so , but yeah on free time
Do you have somebody accuweather in 240 dpi completed?
majkicimo said:
Do you have somebody accuweather in 240 dpi completed?
Click to expand...
Click to collapse
Decompile accuweather widget and navigate to res-> values-swxhdpi(don't remember folder name exactly) and open dimens.xml file. There you need to mod each dimensions accordingly.
Try this and report..
Sent from my 240dpi'ed AweSomE Note2
Hi Manny..... With good strength I have decided to give a try to convert Key board to 240 dpi. Im a big NOOOB in this case. So now I want to know step by step how should I convert the DN3V3.1 keyboard to 240 DPI without touching the black theme.
I have already installed all the drives as mentioned above (Hope So they are installed):silly:
Do not laugh on me. Im trying just the key board only.
maheshhtc said:
Hi Manny..... With good strength I have decided to give a try to convert Key board to 240 dpi. Im a big NOOOB in this case. So now I want to know step by step how should I convert the DN3V3.1 keyboard to 240 DPI without touching the black theme.
I have already installed all the drives as mentioned above (Hope So they are installed):silly:
Do not laugh on me. Im trying just the key board only.
Click to expand...
Click to collapse
Go to res folder->values->sw359xhdpi->dimens.xml
Now decompile my modded keyboard and navigate to above said directory. Compare both files side by side and enter the same figure as it is in my file. Save it. Now again do the same thing with sw359xhdpi-land. After editing recompile it again. Follow the instructions said in op on how to recompile.
Good luck
Sent from my 240dpi'ed AweSomE Note2
Bro just for learning purpose ive decompiled the Sec launcher file and navigated to res>values>dimens
and opened it on notepad ++
and could you tell me if these are the lines that i play around with for different Dpi like 280
<dimen name="ged_home_cellWidth_land">106.0dip</dimen>
<dimen name="ged_home_cellWidth_port">80.0dip</dimen>
<dimen name="ged_home_cellHeight_land">74.0dip</dimen>
<dimen name="ged_home_cellHeight_port">100.0dip</dimen>
or do i have other files also to play around with in decompiled folder and could you please tell me if i am modding any touch wiz apps what is the basic requirement i see on OP it says to run a command Framework-res i pretty much dint get that what your trying to say
thanks @mannyvinny for your help in advance.
Related
Hi, i'm trying to decompile the file com.htc.resources using apktool but i get an error
Code:
W: Could not decode attr value, using undecoded value instead: ns=android, name=src, value=0x0108035e
W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x01080366
W: Could not decode attr value, using undecoded value instead: ns=android, name=src, value=0x0108035e
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x0108035e
at brut.androlib.res.data.ResPackage.getResSpec(Unknown Source)
at brut.androlib.res.data.ResTable.getResSpec(Unknown Source)
at brut.androlib.res.data.ResTable.getResSpec(Unknown Source)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(Unknown Source)
at brut.androlib.res.data.value.ResReferenceValue.toResXmlFormat(Unknown Source)
at brut.androlib.res.data.value.ResAttr.convertToResXmlFormat(Unknown Source)
at brut.androlib.res.decoder.ResAttrDecoder.decode(Unknown Source)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(Unknown Source)
at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValue(Unknown Source)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartTag(Unknown Source)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(Unknown Source)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(Unknown Source)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(Unknown Source)
at brut.androlib.res.decoder.ResFileDecoder.decode(Unknown Source)
at brut.androlib.res.decoder.ResFileDecoder.decode(Unknown Source)
at brut.androlib.res.AndrolibResources.decode(Unknown Source)
at brut.androlib.Androlib.decodeResourcesFull(Unknown Source)
at brut.androlib.ApkDecoder.decode(Unknown Source)
at brut.apktool.Main.cmdDecode(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
anyone can help me find how to decompile this file...
or if anyone can upload the decompiled file.
Thanks!!!
I thought the HTC/Sense modifications to Android were closed source?
Perhaps it is protected or you do not have the correct permissions.
I didn't have any problems to decompile that file for the desire but for the desire HD its not working, maybe thy add some protections but i don't think so because i can decompile the framework-res.
please, anyone?
PLEASE.........
As far as I know you cant decompile you can only rebuild from original sources
Why would you want to decompile?
And there i can find the original sources?
i what to add new language.
PLEASE.........
padlets said:
PLEASE.........
Click to expand...
Click to collapse
HTC have released them, look on the htc site or seach google the sources are there somewhere
Thats all i know but other people on here should be able to help you compile
Good Luck!!
You certainly can decompile htcresources - you just need to install them also as additional framework in apktool. The easiest way is using apkmanager and decompile with 10, then draw your htcresources in the window and it will decompile.
Note - only decompile unthemed htcresources, otherwise it will not compile if there is only a single wrong patched .9.png from a theme.
What would these files be used for?
Sent from my Desire HD using XDA App
cant find java in apk manager and it wont let me decompile apps
Having the same problem. Running windows 7 home premium. I dl Java and it keeps saying not installed whenever. I go to use apk says Java not installed
Sent from my SGH-T959 using XDA Premium App
I use it just fine on Windows 7 Ultimate x64
I have the JDK(Java Development Kit) installed on mine tho...maybe thats what you need....and make sure you're using the up-to-date one...4.9
well i have installed the jdk for windows 7 64 and whenever i try and install apk it say you need the jdk i check its there in the programs unistall it reinstall still the same thing maybe using the wrong version or something but i've tried all of them i think.
Mr. Apocalypse said:
I use it just fine on Windows 7 Ultimate x64
I have the JDK(Java Development Kit) installed on mine tho...maybe thats what you need....and make sure you're using the up-to-date one...4.9
Click to expand...
Click to collapse
+1 I have the same setup and it works fine for me
well can one of you send me the jdk your using to see if that helps. I'm about to drop kick this desktop i can't even get it to recognize my phone with odin.
i figured out the problem...i have the jdk installed and the latest java
it was my environment variables.
goto your environment varibles in the advanced system settings
scroll to path and click edit and type
C:\Program files (x86)\Java\jre8\bin;
if you're running 64bit windows, then you have to open up IE 64bit version and go to java's download site to get the 64bit specific java install package, otherwise apk manager will freak out.
(apk manager doesn't detect the difference between 32bit and 64bit. 32bit java on a 64bit windows os looks in c:\program files\java\ while java is actually installed to c:\program files (x86)\java and apk manager doesn't reference that).
Deleted, my problem solved.
if someone could tell me what to do here i would really appreciate it im running windows xp pro and it wont let me decompile apps in system/app but will let me decompile framework
|Thu 04/21/2011 -- 11:30:47.21|
--------------------------------------------------------------------------
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) Client VM (build 19.1-b02, mixed mode, sharing)
'adb' is not recognized as an internal or external command,
operable program or batch file.
Could Not Find C:\Program Files\Android\android-sdk\APKMANAGER\place-apk-here-for-modding\../place-apk-here-for-modding/signedSystemUI.apk
Could Not Find C:\Program Files\Android\android-sdk\APKMANAGER\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedSystemUI.apk
I: Baksmaling...
I: Loading resource table...
I: Decoding resources...
I: Loading resource table from file: C:\Documents and Settings\Administrator\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_width, value=0x01050019
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_height, value=0x01050019
W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x01060089
W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x01060088
W: Could not decode attr value, using undecoded value instead: ns=android, name=overScrollMode, value=0x00000001
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x0108038a
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x0105000e
at brut.androlib.res.data.ResPackage.getResSpec(Unknown Source)
at brut.androlib.res.data.ResTable.getResSpec(Unknown Source)
at brut.androlib.res.data.ResTable.getResSpec(Unknown Source)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(Unknown Source)
at brut.androlib.res.data.value.ResReferenceValue.toResXmlFormat(Unknown Source)
at brut.androlib.res.data.value.ResAttr.convertToResXmlFormat(Unknown Source)
at brut.androlib.res.data.value.ResStyleValue.serializeToXml(Unknown Source)
at brut.androlib.res.AndrolibResources.generateValuesFile(Unknown Source)
at brut.androlib.res.AndrolibResources.decode(Unknown Source)
at brut.androlib.Androlib.decodeResourcesFull(Unknown Source)
at brut.androlib.ApkDecoder.decode(Unknown Source)
at brut.apktool.Main.cmdDecode(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
Its a headache i finally got my w7 pc to recognize adb then it stop recognizing java got java workin adb stopped arrrg
Sent from my SGH-T959 using XDA Premium App
how can i compilation and decompilation the file ''blur-res.apk''?? no matter how i compilation the file ''blur-res.apk'',it turned out the APK cannot work properly,why???
G:\Android\MOTO A4G\tools\apktool132>java -jar apktool.jar b blur-res-02
.............
ERROR display
G:\Android\MOTO A4G\tools\apktool132>java -jar apktool.jar d blur-res-02.apk
I: Loading resource table...
I: Decoding resources...
I: Loading resource table from file: C:\Users\Mapleshadow-Office\apktool\framewo
rk\1.apk
I: Loading resource table from file: C:\Users\Mapleshadow-Office\apktool\framewo
rk\3.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x030201d5
I: Loading resource table from file: C:\Users\Mapleshadow-Office\apktool\framewo
rk\3.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x030201d3
I: Loading resource table from file: C:\Users\Mapleshadow-Office\apktool\framewo
rk\3.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x030201d3
mapleshadow said:
how can i compilation and decompilation the file ''blur-res.apk''?? no matter how i compilation the file ''blur-res.apk'',it turned out the APK cannot work properly,why???
G:\Android\MOTO A4G\tools\apktool132>java -jar apktool.jar b blur-res-02
.............
ERROR display
G:\Android\MOTO A4G\tools\apktool132>java -jar apktool.jar d blur-res-02.apk
I: Loading resource table...
I: Decoding resources...
I: Loading resource table from file: C:\Users\Mapleshadow-Office\apktool\framewo
rk\1.apk
I: Loading resource table from file: C:\Users\Mapleshadow-Office\apktool\framewo
rk\3.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x030201d5
I: Loading resource table from file: C:\Users\Mapleshadow-Office\apktool\framewo
rk\3.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x030201d3
I: Loading resource table from file: C:\Users\Mapleshadow-Office\apktool\framewo
rk\3.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x030201d3
Click to expand...
Click to collapse
Please use the search function. There are several dozen threads on XDA about how to edit apk's.
nope,the blur-res.apk is very special,just as special as file blurphone.apk.for example,using apktool. blurphone.apk need to reverse 2.apk and 3.apk ,which come from library file of framework,only by doing this,compilation and descompilation can work properly.so far,blue-res.apk make me no progress.
UP................
The app in question is comicrack free. When I try to pick a folder from the options the text where the folders shows up is empty/blank. I have no refresh but running that and changing the contrast doesn't help it. I also tried looking at the screen from my computer but it shows up exactly as it does on my device. I am unsure where to go from here. Any ideas on how to get the text to be seen?
RustyMongoose said:
The app in question is comicrack free. When I try to pick a folder from the options the text where the folders shows up is empty/blank. I have no refresh but running that and changing the contrast doesn't help it. I also tried looking at the screen from my computer but it shows up exactly as it does on my device. I am unsure where to go from here. Any ideas on how to get the text to be seen?
Click to expand...
Click to collapse
http://goldendict.org/forum/viewtopic.php?f=12&t=2082
decompile package using 'ApkTool' modify the source according to info in this thread, compile it , post results.
howto :
http://www.blindndumb.com/2012/04/android-tutorial-how-to.html
If you don't want to fiddle with the package just write to the main dev of this apk and ask him to make these changes in the main branch.
osowiecki said:
http://goldendict.org/forum/viewtopic.php?f=12&t=2082
decompile package using 'ApkTool' modify the source according to info in this thread, compile it , post results.
howto :
http://www.blindndumb.com/2012/04/android-tutorial-how-to.html
If you don't want to fiddle with the package just write to the main dev of this apk and ask him to make these changes in the main branch.
Click to expand...
Click to collapse
I wish I checked here before messing with the framework-res.apk with ninjamorph. I'll give it a go once I restore my nook (relaunch stopped working).
When I try to decompile the app I get these errors. Which I assume shouldn't be popping up.
Code:
C:\Apktool 4.2.2>apktool d ComicRack.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Alberto\apktool\framework\1.apk
I: Loaded.
W: Could not decode attr value, using undecoded value instead: ns=android, name=largeHeap, value=0xffffffff
I: Regular manifest package...
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=resizeMode, value=0x00000003
W: Could not decode attr value, using undecoded value instead: ns=android, name=minResizeWidth, value=0x00007801
W: Could not decode attr value, using undecoded value instead: ns=android, name=minResizeHeight, value=0x00007801
W: Could not decode attr value, using undecoded value instead: ns=android, name=widgetCategory, value=0x00000003
W: Could not decode attr value, using undecoded value instead: ns=android, name=textIsSelectable, value=0xffffffff
W: Could not decode attr value, using undecoded value instead: ns=android, name=widgetCategory, value=0x00000001
W: Could not decode attr value, using undecoded value instead: ns=android, name=widgetCategory, value=0x00000001
W: Could not decode attr value, using undecoded value instead: ns=android, name=alpha, value=0x3f000000
W: Could not decode attr value, using undecoded value instead: ns=android, name=widgetCategory, value=0x00000001
W: Could not decode attr value, using undecoded value instead: ns=android, name=widgetCategory, value=0x00000001
I: Decoding values */* XMLs...
I: Done.
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x0101035a
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:58)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:54)
at brut.androlib.res.decoder.ResAttrDecoder.decode(ResAttrDecoder.java:35)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlResourceParser.java:313)
at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValue(XmlPullParserDelegate.java:69)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartTag(StaticXmlSerializerWrapper.java:267)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(StaticXmlSerializerWrapper.java:211)
at brut.androlib.res.decoder.XmlPullStreamDecoder$1.event(XmlPullStreamDecoder.java:77)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDecoder.java:127)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decodeManifest(XmlPullStreamDecoder.java:141)
at brut.androlib.res.decoder.ResFileDecoder.decodeManifest(ResFileDecoder.java:126)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:216)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:115)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:99)
at brut.apktool.Main.cmdDecode(Main.java:141)
at brut.apktool.Main.main(Main.java:72)
I'm using apktools from here. http://forum.xda-developers.com/showthread.php?t=2195680
Also tried to use the ones from osowiecki's post with the same error.
Since I'm a noob at this I don't really know what's next. Anymore Ideas?
RustyMongoose said:
When I try to decompile the app I get these errors. Which I assume shouldn't be popping up.
Code:
C:\Apktool 4.2.2>apktool d ComicRack.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Alberto\apktool\framework\1.apk
I: Loaded.
W: Could not decode attr value, using undecoded value instead: ns=android, name=largeHeap, value=0xffffffff
I: Regular manifest package...
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=resizeMode, value=0x00000003
W: Could not decode attr value, using undecoded value instead: ns=android, name=minResizeWidth, value=0x00007801
W: Could not decode attr value, using undecoded value instead: ns=android, name=minResizeHeight, value=0x00007801
W: Could not decode attr value, using undecoded value instead: ns=android, name=widgetCategory, value=0x00000003
W: Could not decode attr value, using undecoded value instead: ns=android, name=textIsSelectable, value=0xffffffff
W: Could not decode attr value, using undecoded value instead: ns=android, name=widgetCategory, value=0x00000001
W: Could not decode attr value, using undecoded value instead: ns=android, name=widgetCategory, value=0x00000001
W: Could not decode attr value, using undecoded value instead: ns=android, name=alpha, value=0x3f000000
W: Could not decode attr value, using undecoded value instead: ns=android, name=widgetCategory, value=0x00000001
W: Could not decode attr value, using undecoded value instead: ns=android, name=widgetCategory, value=0x00000001
I: Decoding values */* XMLs...
I: Done.
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x0101035a
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:58)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:54)
at brut.androlib.res.decoder.ResAttrDecoder.decode(ResAttrDecoder.java:35)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlResourceParser.java:313)
at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValue(XmlPullParserDelegate.java:69)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartTag(StaticXmlSerializerWrapper.java:267)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(StaticXmlSerializerWrapper.java:211)
at brut.androlib.res.decoder.XmlPullStreamDecoder$1.event(XmlPullStreamDecoder.java:77)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDecoder.java:127)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decodeManifest(XmlPullStreamDecoder.java:141)
at brut.androlib.res.decoder.ResFileDecoder.decodeManifest(ResFileDecoder.java:126)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:216)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:115)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:99)
at brut.apktool.Main.cmdDecode(Main.java:141)
at brut.apktool.Main.main(Main.java:72)
I'm using apktools from here. http://forum.xda-developers.com/showthread.php?t=2195680
Also tried to use the ones from osowiecki's post with the same error.
Since I'm a noob at this I don't really know what's next. Anymore Ideas?
Click to expand...
Click to collapse
https://code.google.com/p/android-apktool/wiki/FrameworkFiles
it seems that nooks 'framework' does not contain needed values.
The only option I can see is to modify framework-res-apk
http://forum.xda-developers.com/showthread.php?t=1343484
I don't have time to risk bricking my NST right now and if you are a "noob" you also shouldn't try.
Try to find some older versions of CR and see if any of them work correctly.
Edit :
before you try to do something silly
- read this thread
http://forum.xda-developers.com/showthread.php?t=1480398
- talk to the devs from this thread
- "lurk moar"
good luck
osowiecki said:
https://code.google.com/p/android-apktool/wiki/FrameworkFiles
it seems that nooks 'framework' does not contain needed values.
The only option I can see is to modify framework-res-apk
http://forum.xda-developers.com/showthread.php?t=1343484
I don't have time to risk bricking my NST right now and if you are a "noob" you also shouldn't try.
Try to find some older versions of CR and see if any of them work correctly.
Edit :
before you try to do something silly
- read this thread
http://forum.xda-developers.com/showthread.php?t=1480398
- talk to the devs from this thread
- "lurk moar"
good luck
Click to expand...
Click to collapse
I actually saw that webpage but couldn't find any resources in the nook.
Anyways seeing as this is somewhat over my head. I'm just going to copy over the mangas over to the default folder. Which is sdcard/DCIM/100ANDRO for anyone following this thread. Just found out about it. Thanks for your time.
I want to decompile Superuser.apk Because
I want to edit the AndroidManifest.xml so that I can hide it from the App Launcher.
But I am Getting the following Errors while Decompiling.
Decompiling Apk Sources and Resources Files
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Anik3t\apktool\framework\1.apk
I: Loaded.
W: Could not decode attr value, using undecoded value instead: ns=android, name=uiOptions, value=0x00000001
I: Regular manifest package...
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=exitFadeDuration, value=0x000001f4
W: Could not decode attr value, using undecoded value instead: ns=android, name=textAllCaps, value=0xffffffff
W: Could not decode attr value, using undecoded value instead: ns=android, name=exitFadeDuration, value=0x000001f4
W: Could not decode attr value, using undecoded value instead: ns=android, name=state_activated, value=0xffffffff
W: Could not decode attr value, using undecoded value instead: ns=android, name=exitFadeDuration, value=0x00000190
W: Could not decode attr value, using undecoded value instead: ns=android, name=state_activated, value=0xffffffff
W: Could not decode attr value, using undecoded value instead: ns=android, name=dividerPadding, value=0x00000c01
W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x010102fd
W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x010102fd
W: Could not decode attr value, using undecoded value instead: ns=android, name=state_activated, value=0xffffffff
W: Could not decode attr value, using undecoded value instead: ns=android, name=fragment, value=0x0000000a
Exception in thread "main" java.lang.NullPointerException
at java.io.Writer.write(Unknown Source)
at brut.androlib.res.util.ExtMXSerializer.writeAttributeValue(ExtMXSerializer.java:38)
at org.xmlpull.mxp1_serializer.MXSerializer.attribute(MXSerializer.java:673)
at org.xmlpull.v1.wrapper.classic.XmlSerializerDelegate.attribute(XmlSerializerDelegate.java:106)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartTag(StaticXmlSerializerWrapper.java:267)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(StaticXmlSerializerWrapper.java:211)
at brut.androlib.res.decoder.XmlPullStreamDecoder$1.event(XmlPullStreamDecoder.java:80)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDecoder.java:130)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamDecoderContainer.java:34)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:107)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:91)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:238)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:115)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:114)
at brut.apktool.Main.cmdDecode(Main.java:146)
at brut.apktool.Main.main(Main.java:77)
"An Error Occured, Please Check The Log (option 23)"
Press any key to continue . . .
Please Some One Help me.
My Rom Development is Stuck Because of this
and I am more or less a noob.
umm why are you decompiling superuser app in the first place
as far as i know , its not needed
Sent from my GT-S5670 using xda premium
Looks like u installed frameworks while decompiling...dont install anything..and decompile straight away..3rd party apps dont need frameworks to be installed..
EatHeat said:
Looks like u installed frameworks while decompiling...dont install anything..and decompile straight away..3rd party apps dont need frameworks to be installed..
Click to expand...
Click to collapse
Thank You Very Much EatHeat.
You are Great.
It Worked for me.
AniketRane said:
Thank You Very Much EatHeat.
You are Great.
It Worked for me.
Click to expand...
Click to collapse
You are welcome bro.
oh so that is problem when decompiling 3rd party apps.. thanks for this.
Zius said:
oh so that is problem when decompiling 3rd party apps.. thanks for this.
Click to expand...
Click to collapse
Yes. You need frameworks installed when decompiling stock apps because they are based on the stock framework. Third party apps are not made phone dependent. So they will give errors with the frameworks installed as you are forcing them to decompile with something that it doesnt need.
You have the solution?
Hi! I have the same problem is a identic message in cmd on windows
I want to decompile System UI
and the cmd I capture this:
apktool if SystemUI.apk
apktool d SystemUI.apk-------> In this part I get the message (same you show in this post)
Who can help me.... Thanks
p95870 said:
Hi! I have the same problem is a identic message in cmd on windows
I want to decompile System UI
and the cmd I capture this:
apktool if SystemUI.apk
apktool d SystemUI.apk-------> In this part I get the message (same you show in this post)
Who can help me.... Thanks
Click to expand...
Click to collapse
For decompiling systemui.apk, u have to install the frameworks first. Type:
Code:
apktool if framework-res.apk
apktool if twframework-res.apk
After that type:
Code:
apktool d systemui.apk