Comments (28)
could not attach in first post idk why
framework-res.apk
Original comment by [email protected]
on 7 Dec 2011 at 1:31
Attachments:
from android-apktool.
and here Camer.apk i mentioned
Original comment by [email protected]
on 7 Dec 2011 at 1:32
Attachments:
from android-apktool.
also in \Mms\res\values\plurals.xml
ive spotted that in 1.4.2 it is:
<item quantity="other">%1$s results for \"%2$s\"</item>
and in 1.4.1:
<item quantity="other">%1$1$s results for \"%2$2$s\"</item>
Original comment by [email protected]
on 7 Dec 2011 at 6:37
Attachments:
from android-apktool.
Man, I hate these string formatting problems. I will make a quick fix.
Original comment by Brut.alll
on 7 Dec 2011 at 10:36
- Changed title: Multiple substitutions specified in non-positional format (1.4.2)
- Changed state: Accepted
- Added labels: Priority-High, Milestone-v1.4.3
- Removed labels: Priority-Medium
from android-apktool.
Issue 253 has been merged into this issue.
Original comment by Brut.alll
on 7 Dec 2011 at 10:36
from android-apktool.
Issue 250 has been merged into this issue.
Original comment by Brut.alll
on 7 Dec 2011 at 10:36
from android-apktool.
thank you, looking forward for 1.4.3 :)
Original comment by [email protected]
on 7 Dec 2011 at 11:34
from android-apktool.
Original comment by Brut.alll
on 8 Dec 2011 at 1:54
- Changed state: Fixed
from android-apktool.
While I appreciate the quick work, the issue is still present. I am the one who
reported issue 250, and the same thing happens with the new version.
Original comment by [email protected]
on 8 Dec 2011 at 1:59
from android-apktool.
Could you upload your apk (and framework if needed)?
Original comment by Brut.alll
on 8 Dec 2011 at 2:51
from android-apktool.
Ahh and did you decode this file again or just tried to build what you have
decoded using older version? You have to decode apk using v1.4.3.
Original comment by Brut.alll
on 8 Dec 2011 at 2:54
from android-apktool.
That was it! Sorry about that :)
Thank's again for your work!
Original comment by [email protected]
on 8 Dec 2011 at 3:01
from android-apktool.
plurals.xml:79: error: Multiple substitutions specified in non-positional
format; did you mean to add the formatted="false" attribute?
- ICS framework-res.apk
Apktool 1.4.3 did not work.
Original comment by [email protected]
on 8 Dec 2011 at 9:57
from android-apktool.
Did I say I hate formatting problems? ;-)
Original comment by Brut.alll
on 8 Dec 2011 at 10:37
- Changed state: Accepted
from android-apktool.
Ok, this one is more complicated. It's quite a different problem: Issue 256
Original comment by Brut.alll
on 8 Dec 2011 at 10:44
- Changed state: Fixed
from android-apktool.
yup missing formatted="false" problem still exists with 1.4.3 :|
Original comment by [email protected]
on 8 Dec 2011 at 11:53
from android-apktool.
This error may be caused by many different situations. I have fixed most of
them in 1.4.3, but still there are problems with xliff tags. This is why I have
created a new issue.
Original comment by Brut.alll
on 8 Dec 2011 at 12:20
from android-apktool.
holdin my breath till you sort it out in next release, hmm not literally ;]
Original comment by [email protected]
on 8 Dec 2011 at 12:41
from android-apktool.
ok framework-res.apk compiles now but there is a problem compiling Settings.apk
with output from Apk_Multi-Tool_Alpha_02 (with updated apktool ofc)
this is the error output -> http://pastebin.com/PWRiuWdz
attached Settings.apk deodexed with baksmali.jar 1.3.0 with -a 10
also attached twframework-res.apk if needed
framework used from comment #1 ->
http://code.google.com/p/android-apktool/issues/detail?id=254#c1
Original comment by [email protected]
on 8 Dec 2011 at 4:58
Attachments:
from android-apktool.
Confirming that this fix has caused regression issues as well.
Attached is Email.apk from I9100XWKK5. Decomping with 1.4.1 works correctly,
but with 1.4.3, there are many instances of "Multiple substitutions specified
in non-positional format; did you mean to add the formatted="false" attribute?"
Original comment by [email protected]
on 15 Dec 2011 at 4:42
Attachments:
from android-apktool.
apktool 1.4.3 has a problem. It decompiles \n\n into a hiden return. When
copying the sentence to MS Word, the whole line is broken into two lines.
Original comment by [email protected]
on 15 Dec 2011 at 6:32
from android-apktool.
v 1.4.3 also leaves % characters unescaped if there is no "formatted" attribute:
<string name="throttle_data_usage_subtext">%1$s (%2$d %),週期上限為
%3$s</string>
instead of:
<string name="throttle_data_usage_subtext">%1$s (%2$d %%),週期上限為
%3$s</string>
I think that it should check strings that contains % char(s) if it is valid
format string, if so, it should escape every % that is not part of a valid
format string.
Original comment by [email protected]
on 16 Dec 2011 at 2:46
Attachments:
from android-apktool.
SO here's what I know. 1.4.3 will not recompile to ICS 4.0.2 or 4.0.3
framework-res.apk file without the Multiple Substitutions issue located at
plurals.xml on line 79 mine says. So, In order to get it to work, I had to
decompile with apktool.jar 1.4.1 and then move my images and edited xmls into
that decompiled frame. What I also had to do, is rename two folders because
1.4.1 (and 1.4.3 when it worked) renames the drawable-sw600dp-hdpi folder and
the layout-sw600dp folders to drawable-xhdpi-v13 and layout-v13 respectively.
If you recompile without renaming, it will do it successfully but, upon
installation, your lock screen and settings.apk will be severely crippled. Let
me tell you one other thing I noticed. When apktool.jar 1.4.3 worked (it did
for a couple days) it renamed those folders. Now that its not working and im
getting the multiple substitution error, it actually keeps the folder names
correct when decompiling.
Original comment by [email protected]
on 5 Jan 2012 at 3:47
from android-apktool.
Adding on here... theres a folder thats called layout-w600dp. It somehow just
gets completely removed and you have to add it back in.
Original comment by [email protected]
on 5 Jan 2012 at 4:07
from android-apktool.
It`s faster if you decompile framework-res both with 1.41 and 1.43, then copy
all values folder from 1.41 to 1.43. Then compile 1.43 version with apktool
1.43 and it works.
Original comment by [email protected]
on 8 Jan 2012 at 7:32
from android-apktool.
and from where comes the certainty that there ain't other segments tht got
cutted out and that are not triggering any apktool errors or such? whats going
on on compile
Original comment by [email protected]
on 8 Jan 2012 at 12:26
from android-apktool.
Still getting this issue on GT-I9300-XXBLG1.
I get while decompiling :
<plurals name="matches_found">
<item quantity="other">%d of %d</item>
<item quantity="one">1 match</item>
</plurals>
Apktool can't compile it this way, i fix the strings format :
<plurals name="matches_found">
<item quantity="other">%1$d of %2$d</item>
<item quantity="one">1 match</item>
</plurals>
I compile it, then i got a duplicate %1$1$.
framework-res.apk : http://www.mediafire.com/?643ls00te81kz24
Original comment by [email protected]
on 19 Jul 2012 at 11:30
from android-apktool.
I do see this issue while decompiling an apk using apktool1.5.2. Tried out
other versions mentioned above - 1.4.3, 1.4.4 and few others. But the
"formatted=false" specified in the application resource strings.xml is not
available in the decompiled strings.xml generated by the apktool.
The string is as below;
<string name="_120435678" formatted="false">Test %1$s%。</string>
Strangely some strings.xml decompiled by the apktool do have the attribute
"formatted=false" as has been specified in the application resources. Is the
issue anywhere related to the value in the string like the % at the end of the
string?
Original comment by [email protected]
on 6 Aug 2014 at 11:42
from android-apktool.
Related Issues (20)
- build failed with error HOT 1
- Exception in thread "main" java.lang.StringIndexOutOfBoundsException HOT 6
- setting.apk in 2.3.5 XXKJ3 HOT 2
- Error after Compile Framework HOT 1
- Exception in thread main java.lang.StringIndexOutOfBoundsException HOT 3
- Apk recompile error HOT 4
- get error when install framework...com.htc.resources.apk HOT 1
- src folder not created HOT 1
- Update smali to 1.3.0 HOT 1
- Compilation error HOT 8
- Decompiling apks remove \n , \' and add formatted="false" to strings HOT 1
- Compiling latest build nov 30th failed HOT 2
- [Error]Error in decode Backup.apk [MIUI] HOT 2
- build error, formatted="false" HOT 3
- Apktool won't compile HOT 6
- Add support for apks with different resources package and manifest package (--rename-manifest-package) HOT 18
- Unable to build HOT 5
- Error when decompiling lastfm.apk HOT 2
- Multiple substitutions error when using xliff (v1.4.3) HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-apktool.