QIANQIANZHUANG Telegram 74
自 Android 14 QPR3 开始,PM#getPackageArchiveInfo API 就无法正常返回 application info flags(永远是0),导致 LSPosed 寄生管理器无法正常打开。目前的 workaround 是手动给解析出的 flag 加上 FLAG_HAS_CODE。

当时我们就怀疑这是个 AOSP bug,最近调查后发现确实如此。近期,旧解析器切换到 PackageParser2 后,getPackageArchiveInfo 方法没有调用 hideAsFinal(),导致 assignDerivedFields2() 没有被执行,因此 appinfo.flags 没有被初始化。

修复也很简单,在解析包时显式调用 hideAsFinal() 即可。这个问题自 QPR3 到 Android 15 正式版均存在。

https://android-review.googlesource.com/c/platform/frameworks/base/+/3255356



tgoop.com/qianqianzhuang/74
Create:
Last Update:

自 Android 14 QPR3 开始,PM#getPackageArchiveInfo API 就无法正常返回 application info flags(永远是0),导致 LSPosed 寄生管理器无法正常打开。目前的 workaround 是手动给解析出的 flag 加上 FLAG_HAS_CODE。

当时我们就怀疑这是个 AOSP bug,最近调查后发现确实如此。近期,旧解析器切换到 PackageParser2 后,getPackageArchiveInfo 方法没有调用 hideAsFinal(),导致 assignDerivedFields2() 没有被执行,因此 appinfo.flags 没有被初始化。

修复也很简单,在解析包时显式调用 hideAsFinal() 即可。这个问题自 QPR3 到 Android 15 正式版均存在。

https://android-review.googlesource.com/c/platform/frameworks/base/+/3255356

BY 钱庄


Share with your friend now:
tgoop.com/qianqianzhuang/74

View MORE
Open in Telegram


Telegram News

Date: |

On June 7, Perekopsky met with Brazilian President Jair Bolsonaro, an avid user of the platform. According to the firm's VP, the main subject of the meeting was "freedom of expression." Users are more open to new information on workdays rather than weekends. Telegram message that reads: "Bear Market Screaming Therapy Group. You are only allowed to send screaming voice notes. Everything else = BAN. Text pics, videos, stickers, gif = BAN. Anything other than screaming = BAN. You think you are smart = BAN. A Hong Kong protester with a petrol bomb. File photo: Dylan Hollingsworth/HKFP. The SUCK Channel on Telegram, with a message saying some content has been removed by the police. Photo: Telegram screenshot.
from us


Telegram 钱庄
FROM American