- val version = getString(R.string.version) + " " + BuildConfig.VERSION_NAME + " (" + getString(R.string.version_code) + " " + BuildConfig.VERSION_CODE + ")"
- val brandLabel = getString(R.string.brand) + " "
- val manufacturerLabel = getString(R.string.manufacturer) + " "
- val modelLabel = getString(R.string.model) + " "
- val deviceLabel = getString(R.string.device) + " "
- val bootloaderLabel = getString(R.string.bootloader) + " "
- val androidLabel = getString(R.string.android) + " "
- val buildLabel = getString(R.string.build) + " "
- val webViewVersionLabel = getString(R.string.webview_version) + " "
- appConsumedMemoryLabel = getString(R.string.app_consumed_memory) + " "
- appAvailableMemoryLabel = getString(R.string.app_available_memory) + " "
- appTotalMemoryLabel = getString(R.string.app_total_memory) + " "
- appMaximumMemoryLabel = getString(R.string.app_maximum_memory) + " "
- systemConsumedMemoryLabel = getString(R.string.system_consumed_memory) + " "
- systemAvailableMemoryLabel = getString(R.string.system_available_memory) + " "
- systemTotalMemoryLabel = getString(R.string.system_total_memory) + " "
- val easyListLabel = getString(R.string.easylist_label) + " "
- val easyPrivacyLabel = getString(R.string.easyprivacy_label) + " "
- val fanboyAnnoyanceLabel = getString(R.string.fanboy_annoyance_label) + " "
- val fanboySocialLabel = getString(R.string.fanboy_social_label) + " "
- val ultraListLabel = getString(R.string.ultralist_label) + " "
- val ultraPrivacyLabel = getString(R.string.ultraprivacy_label) + " "
- val issuerDNLabel = getString(R.string.issuer_dn) + " "
- val subjectDNLabel = getString(R.string.subject_dn) + " "
- val startDateLabel = getString(R.string.start_date) + " "
- val endDateLabel = getString(R.string.end_date) + " "
- val certificateVersionLabel = getString(R.string.certificate_version) + " "
- val serialNumberLabel = getString(R.string.serial_number) + " "
- val signatureAlgorithmLabel = getString(R.string.signature_algorithm) + " "
-
- // The WebView layout is only used to get the default user agent from `bare_webview`. It is not used to render content on the screen.
- // Once the minimum API >= 26 this can be accomplished with the WebView package info.
- val webViewLayout = layoutInflater.inflate(R.layout.bare_webview, container, false)
- val tabLayoutWebView = webViewLayout.findViewById<WebView>(R.id.bare_webview)
- val userAgentString = tabLayoutWebView.settings.userAgentString
+ val version = getString(R.string.version_code, BuildConfig.VERSION_NAME, BuildConfig.VERSION_CODE)
+ val brandLabel = getString(R.string.brand)
+ val manufacturerLabel = getString(R.string.manufacturer)
+ val modelLabel = getString(R.string.model)
+ val deviceLabel = getString(R.string.device)
+ val bootloaderLabel = getString(R.string.bootloader)
+ val androidLabel = getString(R.string.android)
+ val securityPatchLabel = getString(R.string.security_patch)
+ val buildLabel = getString(R.string.build)
+ val kernelLabel = getString(R.string.kernel)
+ val webViewProviderLabel = getString(R.string.webview_provider)
+ val webViewVersionLabel = getString(R.string.webview_version)
+ appConsumedMemoryLabel = getString(R.string.app_consumed_memory)
+ appAvailableMemoryLabel = getString(R.string.app_available_memory)
+ appTotalMemoryLabel = getString(R.string.app_total_memory)
+ appMaximumMemoryLabel = getString(R.string.app_maximum_memory)
+ systemConsumedMemoryLabel = getString(R.string.system_consumed_memory)
+ systemAvailableMemoryLabel = getString(R.string.system_available_memory)
+ systemTotalMemoryLabel = getString(R.string.system_total_memory)
+ val easyListLabel = getString(R.string.easylist_label)
+ val easyPrivacyLabel = getString(R.string.easyprivacy_label)
+ val fanboyAnnoyanceLabel = getString(R.string.fanboys_annoyance_label)
+ val fanboySocialLabel = getString(R.string.fanboys_social_label)
+ val ultraListLabel = getString(R.string.ultralist_label)
+ val ultraPrivacyLabel = getString(R.string.ultraprivacy_label)
+ val issuerDNLabel = getString(R.string.issuer_dn)
+ val subjectDNLabel = getString(R.string.subject_dn)
+ val startDateLabel = getString(R.string.start_date)
+ val endDateLabel = getString(R.string.end_date)
+ val certificateVersionLabel = getString(R.string.certificate_version)
+ val serialNumberLabel = getString(R.string.serial_number)
+ val signatureAlgorithmLabel = getString(R.string.signature_algorithm)
+
+ // Get the current WebView package info.
+ val webViewPackageInfo = WebView.getCurrentWebViewPackage()!!