Comments (7)
zipalign at first and signer apk at last
from apktool.
Sorry you are encountering this, as mentioned above - depending on the type of signature you have to zipalign prior now. However, you are using jarsigner which is quite old. So that isn't the problem.
Theres just not enough details here to work from - so apologies I'm not positive.
from apktool.
Hm ok, I always ziped after signing.
But this seems not to be the problem.
I tried only unpacking and packing my apf file.
apktool d -s compiled.apk -o whatever / apktool b whatever -o whatever_repacked.apk
Here I got several errors.
/whatever/res/values-v31/colors.xml:34: error: resource android:color/background_floating_material_dark is private.
This I could fix with replacing @android with *@android.
But then I got this errors.
whatever/res/color-v31/m3_ref_palette_dynamic_neutral24.xml:4: error: attribute android:lStar not found.
So, since I compile my app for Android 10+, I can not unpack and repack the apk file with apktool any longer.
Maybe my recompiled ans smaller app is not running, because there are some things missing while recompiling.
from apktool.
This test worked:
apktool d -r compiled.apk -o whatever
apktool b whatever -o whatever_repacked.apk
apktool 2.5dirty / 2.8.1 / 2.9 / 2.9.1:
release 1:
37M compiled.apk
38M whatever_repacked.apk
latest release:
54M compiled.apk
43M whatever_repacked.apk
You can see, that the latest release is quite smaller than the original apk file.
This does not work while recompiling (values-v31/colors.xml problems and so on):
apktool d -s compiled.apk -o whatever
apktool b whatever -o whatever_repacked.apk
from apktool.
I see, so skipping resource disassembly leads to a proper build.
from apktool.
Yes, but only on older release I compiled with older Android Studio.
Since I changed to Android 10+ apps, it also do not work with skipping resource disasselmbly. Then the recompiled apk file has 10 MB less size. It can be installed but it will not start.
Same procedure on 2.9.1. :-(
from apktool.
Noone any idea?
Please re-open this issue.
from apktool.
Related Issues (20)
- [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
- decompiling APK that compiled using NP Manager APK , with error Found: NP_MANAGER3 HOT 1
- [BUG] brut.androlib.exceptions.AndrolibException HOT 10
- [BUG] Rebuild of Citra MMJ with altered assets does not put altered assets into data folder HOT 1
- Unable to rebuild apk with apktool HOT 3
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.