android

恶意评论识别率提升14%!俄罗斯Sputnik App集成华为系统完整性检测

让人想犯罪 __ 提交于 2021-02-18 17:50:07
俄罗斯(Sputnik)是享有国际声誉的卫星通讯社,旗下新闻应用程序提供高质量的国际新闻,包括突发新闻、全球重大事件、深度报道、在线广告视频和独家采访。App集成了系统完整性检测功能后,应用市场内恶意评论识别率提升了14%。 业务挑战 Sputnik手机业务负责人Dmitry Priemov表示,“我们发现App运行的部分设备恶意攻击App,企图破解广告,”因此,他意识到,“我们需要知道哪些设备系统已被恶意篡改,因为那可能导致我们的App广告被破解。”此外,“对于商店中的差评,我们也需要快速评估是否是来自系统被篡改、利用的设备。” 解决方案 “我们将系统完整性检测作为评估设备风险性的重要一环,”Dmitry Priemov说。安全检测服务是华为推出的多维度安全检测开放服务,提供系统完整性检测等功能,帮助应用快速构建安全能力,保护用户隐私及App运行安全。其中,系统完整性检测是基于TEE可信执行环境和数字证书签名,帮助App检测其运行设备系统是否被恶意篡改。在App中加入系统完整性检测功能后,“我们可以清楚知道App运行设备是否已被root。” 如果发现设备存在安全风险,“我们可以选择限制部分恶意攻击的风险设备使用App的一些功能,从而保护我们的广告不被恶意破解。”另外,针对恶意差评问题,Sputnik后台团队就可以“跳过这类被检测出风险的设备的恶意差评,或回复他们如需正常使用

What is the ideal way to scale font size in App Development?

孤人 提交于 2021-02-18 17:49:12
问题 I know this question might sound a bit odd. I am a newbie in Flutter Development. While making my app responsive I always face an issue while scaling the text. If I keep the font size constant (say 10 or 20) it sometimes looks too small on devices with large resolution or too big on small phones. Then I tried scaling it with respect to screen dimensions (like 4% or screen width etc) but then the question remains to scale it with respect to screen height or width ? Hence I want to know what is

app is slow with images in android

一曲冷凌霜 提交于 2021-02-18 17:45:26
问题 I am doing a app on images to show them in GridView, i am fetching 20 images from server. Resolution of the each image is 720*540.I used JSON parsing to fetch url and used below code to convert into Bitmap in order to set images. public static Bitmap loadImageFromUrl(String url) { InputStream inputStream;Bitmap b; try { inputStream = (InputStream) new URL(url).getContent(); BitmapFactory.Options bpo= new BitmapFactory.Options(); if(bpo.outWidth>500) { bpo.inSampleSize=8; b=BitmapFactory

No Cached Version Gradle Plugin Available for offline mode

核能气质少年 提交于 2021-02-18 17:43:06
问题 I haven't used Android Studio in a while, but decided to update everything and create a new project and I get the above error, if I go to Preferences -> Build, Execution, Deployment -> Gradle. There's no option to 'Work Offline' as suggested here among other places No cached version of gradle available for offline mode I've also used the 'Command Shift A' and searched for 'Offline' and I get nothing. Anyway to disable this? 回答1: As per the Android Studio 3.6 release notes: To enable or

Android deep linking is not working

回眸只為那壹抹淺笑 提交于 2021-02-18 17:11:25
问题 Android deep linking is not working =================================== Android link:-notification://id=notificationid 1:-In manifest <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> <category android:name="android.intent.category.BROWSABLE" /> <data android:host="id" android:scheme="notification" /> </intent-filter> 2:-and coding side @Override protected void onResume() { super.onResume(); Intent intent =

Android webview loading fail in API 21 and above

微笑、不失礼 提交于 2021-02-18 17:11:15
问题 I have an Android application that uses WebView and load a page. This application works on Android devices running API 16 or above . Android WebView Code: String URL = "https://sandbox.napas.com.vn/gateway/message"; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_web_view); webview = (WebView) findViewById(R.id.webview); webview.getSettings().setJavaScriptEnabled(true); webview.getSettings().setAllowFileAccess

Android webview loading fail in API 21 and above

|▌冷眼眸甩不掉的悲伤 提交于 2021-02-18 17:08:41
问题 I have an Android application that uses WebView and load a page. This application works on Android devices running API 16 or above . Android WebView Code: String URL = "https://sandbox.napas.com.vn/gateway/message"; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_web_view); webview = (WebView) findViewById(R.id.webview); webview.getSettings().setJavaScriptEnabled(true); webview.getSettings().setAllowFileAccess

Android - Use Fingerprint scanner and Cipher to encrypt and decrypt multiple strings

一笑奈何 提交于 2021-02-18 17:04:51
问题 I need an end to encrypt different strings and related decryptions after user authenticate using fingerprint scanner. Following this project (https://github.com/StylingAndroid/UserIdentity/tree/Part1) and changed "tryEncrypt" method like below: private boolean tryEncrypt(Cipher cipher) { try { cipher.doFinal(SECRET_BYTES); String one = "augusto"; String two = "test@gmail.com"; String three = "3333333331"; byte[] oneEnc = cipher.doFinal(one.getBytes()); byte[] twoEnc = cipher.doFinal(one

Android Camera2 RAW streaming

白昼怎懂夜的黑 提交于 2021-02-18 16:59:41
问题 I am very new to Android and trying to: Stream raw data from the camera (ImageFormat RAW_SENSOR) Process raw data Display processed results interactively It seems like raw data capture is only available in still capture mode. Is this correct ? If so would it be possible to perform repeated CaptureRequests for RAW images instead ? What kind of performance can be expected using a 13MP sensor ? Any reference code ? Many thanks in advance, Guillaume EDIT : Here is what I have done so far: Create

Whoops! There was a …previewing this pdf document android

[亡魂溺海] 提交于 2021-02-18 16:40:10
问题 My application has a list of pdf inside listview. The pdf is viewed inside the application using a webview that open a Google Docs sheet. It works fine for the first opened PDF, but when going back and opening another PDF I got the error "whoops! There was a problem previewing this document" . Is there some kind of limitation on opening PDF using google sheet. If so, how can I get full rights to open any PDF I want. can someone help please. Here is my code. //---you need this to prevent the