[英]How to detect a Trusted Web Activity (TWA) in Android Apps
I'm working on a script that analyzes the AndroidManifest.xml of decompiled apps and detects if they contain a TWA or not.我正在编写一个脚本来分析反编译应用程序的 AndroidManifest.xml 并检测它们是否包含 TWA。
Is there a better approach for detecting a TWA than analyzing the AndroidManifest?有没有比分析 AndroidManifest 更好的方法来检测 TWA? I'm currently checking if the below activity is defined in the manifest or not, but almost all the apps from my dataset gave negative results;
我目前正在检查清单中是否定义了以下活动,但我数据集中的几乎所有应用程序都给出了否定结果;
<activity android:name="com.google.androidbrowserhelper.trusted.LauncherActivity">
Apps generated by Bubblewrap (via the CLI, PWA Builder, etc) will have a twa_generator
meta-tag . Bubblewrap 生成的应用程序(通过 CLI、PWA Builder 等)将具有
twa_generator
元标记。 Checking com.google.androidbrowserhelper.trusted.LauncherActivity
won't work for current Bubblewrap generated apps since each application will have its own LauncherActivity implementation .检查
com.google.androidbrowserhelper.trusted.LauncherActivity
不适用于当前 Bubblewrap 生成的应用程序,因为每个应用程序都有自己的 LauncherActivity 实现。
Checking for com.google.androidbrowserhelper.trusted.LauncherActivity
or if the twa-generator
may work better.检查
com.google.androidbrowserhelper.trusted.LauncherActivity
或者twa-generator
是否可以更好地工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.