Comments (7)
whatever version of android you are using might do a native compile on a maintenance schedule and maybe when charging, so you may need to wait for 2 days while charging at night. but there are also commands you can issue to force an optimize. i don't know much about android, especially recent ones; google and test. thanks!
from dexpatcher-tool.
from dexpatcher-tool.
haystack/patch-fileset:
if [ "$name" == "core.jar" ] || [ "$name" == "core-libart.jar" ]; then
error "patching core jars not yet supported by these scripts"
fi
is what I was looking at. Just realized that I posted in the wrong repo, my apologies.
from dexpatcher-tool.
from dexpatcher-tool.
Haystack works splendidly on Oreo, ODEXed even. I only had to deodex my services.jar
and then delete /system/framework/oat/arm64/services.odex
I tried to do the same for core-oj.jar
, but it was a lot different:
- no files under
/system/framework/oat/arm64
, but rather under/system/framework/arm64
- no odex+vdex file, but rather
boot-core-oj.oat,
boot-core-oj.art
andboot-core-oj.vdex
(note the prefix)
I managed to deodex the jar using SmaliEx, but after replacing the original and deleting those 3 files under /system/framework/arm64
, my phone doesn't boot...
I originally want to patch core.jar
, but it seems like it is split in two files in Oreo, thus my attempts to patch core-oj.jar
.
Any ideas how I could overcome this? Thank you!
from dexpatcher-tool.
Haystack works splendidly on Oreo
i've heard, but it is unsupported.
I only had to deodex my services.jar
I tried to do the same for core-oj.jar
nope!!! optimizing (odexing, quickening, compiling, whatever you wanna call it) is a global operation. you can't deodex and modify a single file! if you mod services.jar, you need to deodex everything that might depend on it (it will be odexed again on runtime) -ie, the complete android framework-, and reoptimize any apps you might have installed;
from dexpatcher-tool.
It now makes sense why there's a boot.oat file and a bunch of optimized files prefixed with boot-. I deodexed the whole framework and the ROM ran, indeed. Thanks so much for the explanations!
My last question is why is everything so utterly slow? Even after using the phone for an hour, performance is still far from the pre-optimized state. I do not recall such drastic performance issues when running a deodexed ROM.
Thanks!
from dexpatcher-tool.
Related Issues (20)
- Another request to complete the 'class rewrite' feature HOT 5
- Breaking the direct/virtual method and static/instance field barriers HOT 1
- About haystack: is it possible to patch the individual APKs instead of the framework JARs? HOT 2
- Could not create plugin of type 'PatchedAppPlugin'. ClassNotFoundException: PrepareLibraryTask HOT 8
- Error: target not found HOT 9
- Debugging not possible after dex2jar HOT 5
- Does it work with apps that are built with Android Studio 3.2/Gradle 4.6 and targeted to Android Pie? HOT 1
- Rewrite original anonymous to allow new ones HOT 41
- target-ing class methods/fields with @DexWrap/@DexEdit HOT 7
- Installation Documentation HOT 4
- Android resource compilation failed HOT 1
- EmptyMultiDexContainerException while patching multidex application HOT 12
- Add/Replace/delete class files in Dex HOT 1
- --map-source / --unmap-output inner classes HOT 22
- Implement app bundle support HOT 2
- Unable to map class interface declarations HOT 8
- Crash after patching telephony-common HOT 2
- cant get it working
- Do you have any plans to support AGP7.0 in the future HOT 4
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 dexpatcher-tool.