In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to fix the problem of new testing items in Android P". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to fix the problem of new testing items in Android P".
The cause of the problem:
Commit 7c947996ca9426a8ae3abf9feb110f166d8f11daAuthor: Vladimir Marko Date: Thu Apr 26 09:18:10 2018 + 0100 AOT inlined method lookup should stay within dex file. Rewrite the AOT inlined method lookup and guard against crossing dex file boundary. The compiler does not currently support inlining across dex files, so this is an indication of multiple dex files defining the same class and the AOT code having used a definition which is not used at runtime. Test: M test-art-host-gtest Test: testrunner.py-host--optimizing-jit Test: Pixel 2 XL boots. Test: testrunner.py-target-optimizing-jit Bug: 74410240 (cherry picked from commit 63a9f3e9e1b9fb8d98d8ca9abe626f3aa11e5692) Change-Id: Ibe9792f952d0c963b8560f10d57a951e227b24aa
As can be seen from the submitted log, the introverted inline should be stored in a dex file, and cross-dex files are not allowed.
About the art/runtime/entrypoints/entrypoint_utils-inl.h log:
1. Problem scenario
As most of the domestic applications basically integrate the thermal repair function, this feature of Android P has a great impact on the domestic applications. (do not quite understand the hot repair of children's shoes can refer to: Ali's Android thermal repair technology principle. Pdf)
At present, it is found that there are two main situations:
Scene one
There are duplicate classes in the application of dex An in the original apk and hotfix dex B downloaded from the application server. This problem occurs after the hotfix is fixed and the system backend optimizes inline compilation.
Scene two
A class1 loaded by classloader A calls an inline method in a class2 loaded by classloader B, causing the application to flicker.
2. How to self-check the application?
1. First of all, it is recommended to test in Android P to verify whether there is this problem:
Adb shell cmd package compile-m speed-f application package name (compiled by inline).
Start the application, construct the thermal repair scene, and repair the side contact heat in the application.
After the hot fix is complete, restart the application to detect flicker and non-response problems.
two。 Identify the problem through key log analysis:
If you have this key log in the problem log: This must be due to duplicate classes or playing wrongly with class loaders, you can be sure it is the problem.
As shown below:
06-20 19V 07lav 24.597 30376 30376 F m.taobao.taoba:entrypoint_utils-inl.h:94] Inlined method resolution crossed dex file boundary: from void com.ali.mobisecenhance.Init.doInstallCodeCoverage (android.app.Application, android.content.Context) inbound Dataget appplash com.taobao.taobao.taobaolue YPDeV7WbuyZckOfyMuik 5AuKwKwong parts Universe base.apkhands classes3.dexplet 0xece238f0to void com.ali.mobisecenhance.code.CodeCoverageEntry.CoverageInit (android.app.Application) Android.content.Context) inpact _ data _ This must be due to duplicate classes or playing wrongly with class loaders
3. Repair suggestion
1. Do not package jar packets preset in ROM to apk.
two。 Do not use the same class loader to load duplicate classes.
3. If you have to have duplicate classes, avoid inlining (for example, add try catch to a function that is not expected to be inline, so that compiler will not inline this function).
Thank you for your reading, the above is the content of "how to fix the problem of new testing items in Android P". After the study of this article, I believe you have a deeper understanding of how to fix the problem of new testing items in Android P, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.