huawei

“Source code does not match the bytecode” for system files on Huawei

。_饼干妹妹 提交于 2020-06-11 16:54:28
问题 We are debugging an issue with one of our apps which affects only Huawei devices. To debug it, we purchased P20 Lite ANE-LX1. We've placed some breakpoints in our code and are investigating the full stack trace. The device has Android 8.0 installed, and we have the same SDK downloaded in our Android Studio. When we attach our device to a debugger and try to investigate the stack trace we get the following errors in system source files: After playing with the stack trace, we can confirm that

“Source code does not match the bytecode” for system files on Huawei

别说谁变了你拦得住时间么 提交于 2020-06-11 16:52:08
问题 We are debugging an issue with one of our apps which affects only Huawei devices. To debug it, we purchased P20 Lite ANE-LX1. We've placed some breakpoints in our code and are investigating the full stack trace. The device has Android 8.0 installed, and we have the same SDK downloaded in our Android Studio. When we attach our device to a debugger and try to investigate the stack trace we get the following errors in system source files: After playing with the stack trace, we can confirm that

How to open the Huawei AppGallery directly?

半腔热情 提交于 2020-05-13 07:12:57
问题 I know that is possible to open my app (based on package name) in Google Play Store, but how to do same in Huawei AppGallery? 回答1: Opening your app in the Huawei App Gallery is similar to opening Google Play Store. Here is a snippet for the Huawei App Gallery: private void startHuaweiAppGallery() { Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("appmarket://details?id=" + getPackageName())); List<ResolveInfo> otherApps = getPackageManager().queryIntentActivities(intent, 0); for

MediaStyle : RemoteServiceException: Bad notification posted from package

浪子不回头ぞ 提交于 2020-04-07 06:28:05
问题 I'm trying to create a notification media controller in my app using the code below which is working fine on all devices expect Huawei P8 Lite with Android 5.0 , I get this error log from Firebase Test Lab : android.app.RemoteServiceException: Bad notification posted from package maa.app_app: Couldn't expand RemoteViews for: StatusBarNotification(pkg=maa.app_app user=UserHandle{0} id=555 tag=null score=10 key=0|maa.app_app|555|null|10108: Notification(pri=1 contentView=maa.app_app/0x109007f

Set Default Android Launcher on Huawei devices?

此生再无相见时 提交于 2020-02-29 04:23:13
问题 My Goal is here is to set my app as default launcher on Huawei devices. 1 - Explanations: 1.1 - Current situation: I am already able to: Check if my app is the default launcher Display the 'launcher picker' (with the 'use once' / 'always' choice) This all works fine.. except on Huawei devices! From my point of view, Huawei's Android flavor does not properly 'honor' the "ACTION_MANAGE_DEFAULT_APPS_SETTINGS" intent action contract. // this displays the list of default apps on all tested devices

Set Default Android Launcher on Huawei devices?

懵懂的女人 提交于 2020-02-29 04:22:47
问题 My Goal is here is to set my app as default launcher on Huawei devices. 1 - Explanations: 1.1 - Current situation: I am already able to: Check if my app is the default launcher Display the 'launcher picker' (with the 'use once' / 'always' choice) This all works fine.. except on Huawei devices! From my point of view, Huawei's Android flavor does not properly 'honor' the "ACTION_MANAGE_DEFAULT_APPS_SETTINGS" intent action contract. // this displays the list of default apps on all tested devices

Intent BOOT_COMPLETED not working on Huawei device

烈酒焚心 提交于 2020-02-23 05:39:28
问题 I want to listen to APN Changes in my Android App. Therefore I start a Service on android.intent.action.BOOT_COMPLETED . This Service starts a ContentObserver which listens to changes to content://telephony/carriers/preferapn . I tested this setup on a few different devices (e.g. LG Spirit with Android 5.0, Samsung A3 with 6.0, Emulator Nexus5 with 7.0 and Huawei P9 Lite with 7.0) On the Huawei phone onCreate of my Service is not called. My other approach with android.intent.action.ANY_DATA

Not working - Debug Mode native code (c/c++) on Android studio with tablet HUAWEI MediaPad M5

泄露秘密 提交于 2020-01-23 14:37:26
问题 I have a problem when i put breakpoints on my native code (c/c++) with this tablet (HUAWEI MediaPad M5, android 8.0.0, processor Hisilicon Kirin 960s). Indeed, in debug mode, i can't use the breakpoint on native code. So i can't debug native code. It's working with all the others devices (smartphone : samsung, sony). The setup configuration on android studio is ok. Can you help me please ? Do you have any solution please? Thanks you, Best regards 回答1: Well, We contact HUAWEI's tech support

Not working - Debug Mode native code (c/c++) on Android studio with tablet HUAWEI MediaPad M5

筅森魡賤 提交于 2020-01-23 14:37:13
问题 I have a problem when i put breakpoints on my native code (c/c++) with this tablet (HUAWEI MediaPad M5, android 8.0.0, processor Hisilicon Kirin 960s). Indeed, in debug mode, i can't use the breakpoint on native code. So i can't debug native code. It's working with all the others devices (smartphone : samsung, sony). The setup configuration on android studio is ok. Can you help me please ? Do you have any solution please? Thanks you, Best regards 回答1: Well, We contact HUAWEI's tech support

Not working - Debug Mode native code (c/c++) on Android studio with tablet HUAWEI MediaPad M5

╄→гoц情女王★ 提交于 2020-01-23 14:36:29
问题 I have a problem when i put breakpoints on my native code (c/c++) with this tablet (HUAWEI MediaPad M5, android 8.0.0, processor Hisilicon Kirin 960s). Indeed, in debug mode, i can't use the breakpoint on native code. So i can't debug native code. It's working with all the others devices (smartphone : samsung, sony). The setup configuration on android studio is ok. Can you help me please ? Do you have any solution please? Thanks you, Best regards 回答1: Well, We contact HUAWEI's tech support