简体   繁体   English

如何在 Android 应用程序中检测受信任的 Web 活动 (TWA)

[英]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.

相关问题 如何在 android TWA(受信任的 web 活动)中创建动画启动画面 - How to create animated splash screen in android TWA( trusted web activity ) 受信任的 Web 活动 [TWA] - 它可以读取 Android 上的 AccountManager 帐户吗? - Trusted Web Activity [TWA] - Can it read AccountManager accounts on Android? Android native 和 Trusted Web Activity (TWA) 之间的通信 - Communication between Android native and Trusted Web Activity(TWA) 从可信网络活动 (TWA) 启动另一个活动 - Launching another activity from a Trusted Web Activity (TWA) Google Sign In 不适用于 Trusted Web Activity (TWA) 发行版 apk,但适用于调试 apk - Google Sign In doesn't work with Trusted Web Activity (TWA) release apk but works in debug apk Android上的可信Web活动不会隐藏URL栏 - Trusted Web Activity on Android not hiding URL bar Android更改Trusted Web Activity的StatusBarColor - Android Change StatusBarColor of Trusted Web Activity 如何对受信任的 Web 活动使用推送通知 - How to use push notification for trusted web activity 如何在受信任的 Web 活动中保持屏幕唤醒? - How to keep the screen awake in Trusted Web Activity? 仅通过受信任的 Android、iOS 和 Web 应用程序访问 Azure APIM - Access Azure APIM only via Trusted Android, iOS & Web Apps
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM