[英]How to determine if an app is native or flutter
I would like to know whether a given mobile app is native or written using flutter.我想知道给定的移动应用程序是原生的还是使用 flutter 编写的。 Is there any way to know that from the build files (apk, ipa.. etc).有什么方法可以从构建文件(apk、ipa 等)中知道这一点。 How can I detect if an app is native or flutter?如何检测应用是原生应用还是 Flutter 应用?
Upload the apk file on http://www.javadecompilers.com/apk上传http上的apk文件://www.javadecompilers.com/apk
If you find a folder flutter in sources so this app is a flutter app如果您在源中找到文件夹 flutter,则此应用程序是 flutter 应用程序
One can check from the phone by enabling layout bounds.可以通过启用布局边界从手机进行检查。 If the app show bounds around all component then it might be developed with native android or react native.如果应用程序显示所有组件的边界,那么它可能是使用原生 android 或 react native 开发的。 Still, in the case of flutter, it directly accesses canvas from the native side and paints on it, so it will not show any bounds around the components due to the direct use of canvas.尽管如此,在flutter的情况下,它直接从native端访问canvas并在上面绘制,因此不会因为直接使用canvas而显示组件周围的任何边界。
Here is SS of the app made with Flutter and native or other frame work which uses the native component.这是使用 Flutter 和原生或其他使用原生组件的框架工作制作的应用程序的 SS。
Flutter扑 |
---|
Native Component原生组件 |
. . |
You can find whether an app is using flutter or not by using the following method,您可以使用以下方法查看应用程序是否正在使用 flutter,
Here is a screenshot of the file from the Flutter Gallery app .这是来自Flutter Gallery 应用程序的文件的屏幕截图。
Of course, you can find out by extracting the APK.当然,你可以通过解压APK找到。 But there is another simple way:但还有另一种简单的方法:
Install the app on your device, then open it and check list or grid in the UI .在您的设备上安装应用程序,然后打开它并在UI中检查列表或网格。
If you feel that when you scroll with two fingers, the speed doubles, and when you scroll with one finger, then the application is developed in Flutter.如果你觉得用两根手指滚动时,速度翻倍,而用一根手指滚动时,那么应用是用Flutter开发的。
Simple solution:简单的解决方案:
Open app, swipe down from the top of the screen and touch icon layout to enable show layout bound.打开应用程序,从屏幕顶部向下滑动并触摸图标布局以启用显示布局绑定。
Flutter app won't show small pieces layout of UI but Native app does. Flutter 应用程序不会显示 UI 的小块布局,但本机应用程序会显示。
java -jar apktool.*.jar d file.apk -o output
open up AndroidManifest.xml in a text editor在文本编辑器中打开 AndroidManifest.xml
search for occurrences of flutter within the file在文件中搜索出现的 flutter
if using vim, at the terminal prompt,如果使用 vim,在终端提示符下,
vim +/flutter +"set hlsearch" AndroidManifest.xml
such occurrences could be flutter plugins and 'flutterEmbedding' which is responsible for integrating flutter within an Android app.此类事件可能是 flutter 插件和“flutterEmbedding”,它负责将 flutter 集成到 Android 应用程序中。
We can do the Finger-scroll test.我们可以进行手指滚动测试。
Start by scrolling the app with one finger, then use two fingers.首先用一根手指滚动应用程序,然后使用两根手指。 Make sure you are scrolling at the same pace.确保您以相同的速度滚动。 If the speed of the scroll increases with every finger you add, then it's built using Flutter.如果滚动速度随着您添加的每根手指而增加,那么它是使用 Flutter 构建的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.