Comments (7)
Do you have an older framework by chance?
➜ 3401 apktool d F-Droid.apk -f -s
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
I: Using Apktool v2.9.0-8-34a69708-SNAPSHOT on F-Droid.apk
I: Loading resource table...
I: Decoding file-resources...
I: Loading resource table from file: /home/ibotpeaches/.local/share/apktool/framework/1.apk
I: Decoding values */* XMLs...
I: Decoding AndroidManifest.xml with resources...
I: Regular manifest package...
I: Copying raw classes.dex file...
I: Copying raw classes2.dex file...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
I: Copying META-INF/services directory
➜ 3401 apktool b F-Droid
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
I: Using Apktool v2.9.0-8-34a69708-SNAPSHOT
I: Copying F-Droid classes.dex file...
I: Copying F-Droid classes2.dex file...
I: Checking whether resources has changed...
I: Building resources...
I: Copying libs... (/kotlin)
I: Copying libs... (/META-INF/services)
I: Building apk file...
I: Copying unknown files/dir...
I: Built apk into: F-Droid/dist/F-Droid.apk
➜ 3401
Perhaps what I need to build is detection of the internal framework in use to detect when one doesn't match the internal one we use.
from apktool.
Guess I missed that you did clear your framework, but so did I and I don't replicate. I don't even have the shared frameworks, so not sure what is going on here.
I confirmed I downloaded the file you listed. Closing as not replicating.
from apktool.
@iBotPeaches I am pretty sure you downloaded the 'FDroid' application itself not the app I supposed to, the correct link is a few lines below. Here is the direct download link to the latest version that still exposes the same behaviour:
https://f-droid.org/repo/org.totschnig.myexpenses_655.apk
Sorry for the inconvenience!
from apktool.
Okay now I see - this is an existing issue we have. The resource is not on 0x7F which we expect for all internal/private resources. This is because it points to a split.
I imagine when the manifest is being parsed on device - the split is there to resolve. I wrote about this in detail in this ticket: #2514 (comment)
Its the same root cause - we'll have adjust parser to support many packages to read and reference.
➜ 3401 aapt2 d resources org.totschnig.myexpenses_655.apk| grep -i '79040000'
resource 0x79040000 xml/splits0
However, since this example is much easier to investigate than the other issue (Twitter). I've copied this application into my folder for issue 2514.
So I'll close for that ticket, but I'm using this APK for it.
from apktool.
But why apktool 2.7.0 succeeds?
from apktool.
Something odd with the android:value
vs android:resource
. Unsure how that would have changed at the moment. I'll take another look.
from apktool.
Looks like Apktool is correct now (in my eyes) now. We corrected attribute resolution (https://github.com/iBotPeaches/Apktool/pull/3123/files) to prefer the res map over the string block, which lead to the resource/value mismatch.
Now that is correct (resource) that property is more strict and since we generated an invalid reference it failed. Prior as value it was treated as the scalar it was.
So it does look like my original comment was right - a duplicate now of an existing issue #2514
from apktool.
Related Issues (20)
- Moovit map not shown HOT 3
- [BUG] Can't decompile altered version of Azur Lane HOT 5
- [BUG] (My mistake, from aapt2 compile) error: resource has invalid entry name $ and public.xml: error: file failed to compile HOT 4
- [BUG] Apk can not install after re build HOT 3
- [BUG] HOT 1
- [BUG] Recompiling system jars produces strange jars HOT 3
- Bug: Apktool Unable to Resolve Resource Reference in activity_simulation_freefire.xml (Line 23) HOT 2
- [BUG] Facebook: expected element name 'view' and not 'View' HOT 6
- Can't update apktool in kali... Help needed!!
- [BUG] App crashes due to android.content.res.Resources$NotFoundException HOT 3
- [BUG] App breaks after recompiling apk HOT 4
- 应用程序崩溃 UnsatisfiedLinkError: No implementation found for HOT 3
- [BUG] ClassNotFoundException in recompiled app HOT 5
- [BUG] Missing res-xml file after building HOT 5
- [BUG] Attribute android:graph not found HOT 13
- [BUG] apktool cannot recompile obfuscated apks with shrinkResources = true after updating Gradle HOT 4
- [BUG] Duplicate entry stamp-cert-sha256 when rebuilding HOT 2
- [BUG] dexlib2 out of range HOT 1
- Failed with a malform AndroidManifest file HOT 4
- [BUG] Can't rebuild an apk which misses references HOT 2
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 apktool.