Я сталкиваюсь с Security Exception в моем приложении Android, когда пытаюсь начать намерение с Action Android.intent.Action.View, чтобы открыть URL (например, https: //wa.me/...). Этот сбой происходит только на устройствах на основе XOS (Android Dolphin v7.6.0), обычно используемых Infinix и Tecno. < /P>
Fatal Exception: java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.VIEW dat=https://wa.me/... cmp=team.opay.pay.merchant.service/com.opay.webview.WebFoundationActivity } from ProcessRecord{78bfa08 2792:com.test/u0a198} (pid=2792, uid=10198) not exported from uid 10181
at android.os.Parcel.createException(Parcel.java:2071)
at android.os.Parcel.readException(Parcel.java:2039)
at android.os.Parcel.readException(Parcel.java:1987)
at android.app.IActivityTaskManager$Stub$Proxy.startActivity(IActivityTaskManager.java:4018)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1712)
at android.app.Activity.startActivityForResult(Activity.java:5195)
at androidx.activity.ComponentActivity.startActivityForResult(ComponentActivity.java:728)
at android.app.Activity.startActivityForResult(Activity.java:5153)
at androidx.activity.ComponentActivity.startActivityForResult(ComponentActivity.java:709)
at android.app.Activity.startActivity(Activity.java:5524)
at android.app.Activity.startActivity(Activity.java:5492)
at com.test.BKConstants.sendOutstandingMsg(BKConstants.java:4204)
at com.test.TransactionsList$16.onClick(TransactionsList.java:2804)
at android.view.View.performClick(View.java:7156)
at android.view.View.performClickInternal(View.java:7129)
at android.view.View.access$3500(View.java:803)
at android.view.View$PerformClick.run(View.java:27543)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:264)
at android.app.ActivityThread.main(ActivityThread.java:7581)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:980)
< /code>
Я подтвердил, что мое приложение имеет необходимые разрешения, и я использую правильную структуру намерения. Сбой не происходит на других устройствах, включая другие версии и бренды Android.Try to open a URL using Intent.ACTION_VIEW (e.g., https://wa.me/...) from an app running on an XOS-based device (Infinix/TECNO).
The app crashes with a SecurityException indicating a permission denial.
< /code>
Соответствующий код: < /p>
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://wa.me/..."));
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);
< /code>
Возможные причины: < /p>
The XOS-based system (Android Dolphin v7.6.0) may have additional permission restrictions or security policies that prevent certain types of Intent actions.
The crash could be related to missing permissions or restrictions on opening external URLs in WebView activities.
< /code>
Вопросы: < /p>
Is this a known issue with XOS devices or Android Dolphin v7.6.0?
Are there any specific permissions or configurations I need to set to handle this case?
Are there any workarounds or best practices for handling Intent-based URL opening on these devices?
< /code>
Дополнительная информация: < /p>
The issue only occurs on XOS (Android Dolphin v7.6.0) devices (like Infinix or TECNO). Other Android devices do not experience this issue.
I’ve already checked that all necessary permissions (like INTERNET) are declared in the manifest.
Подробнее здесь: https://stackoverflow.com/questions/796 ... ing-in-xos
Fatal Exception: SecurityException - отрицание разрешения на намерения, начиная с XOS (Android Dolphin V7.6.0) на устрой ⇐ Android
Форум для тех, кто программирует под Android
1747396068
Anonymous
Я сталкиваюсь с Security Exception в моем приложении Android, когда пытаюсь начать намерение с Action Android.intent.Action.View, чтобы открыть URL (например, https: //wa.me/...). Этот сбой происходит только на устройствах на основе XOS (Android Dolphin v7.6.0), обычно используемых Infinix и Tecno. < /P>
Fatal Exception: java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.VIEW dat=https://wa.me/... cmp=team.opay.pay.merchant.service/com.opay.webview.WebFoundationActivity } from ProcessRecord{78bfa08 2792:com.test/u0a198} (pid=2792, uid=10198) not exported from uid 10181
at android.os.Parcel.createException(Parcel.java:2071)
at android.os.Parcel.readException(Parcel.java:2039)
at android.os.Parcel.readException(Parcel.java:1987)
at android.app.IActivityTaskManager$Stub$Proxy.startActivity(IActivityTaskManager.java:4018)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1712)
at android.app.Activity.startActivityForResult(Activity.java:5195)
at androidx.activity.ComponentActivity.startActivityForResult(ComponentActivity.java:728)
at android.app.Activity.startActivityForResult(Activity.java:5153)
at androidx.activity.ComponentActivity.startActivityForResult(ComponentActivity.java:709)
at android.app.Activity.startActivity(Activity.java:5524)
at android.app.Activity.startActivity(Activity.java:5492)
at com.test.BKConstants.sendOutstandingMsg(BKConstants.java:4204)
at com.test.TransactionsList$16.onClick(TransactionsList.java:2804)
at android.view.View.performClick(View.java:7156)
at android.view.View.performClickInternal(View.java:7129)
at android.view.View.access$3500(View.java:803)
at android.view.View$PerformClick.run(View.java:27543)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:264)
at android.app.ActivityThread.main(ActivityThread.java:7581)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:980)
< /code>
Я подтвердил, что мое приложение имеет необходимые разрешения, и я использую правильную структуру намерения. Сбой не происходит на других устройствах, включая другие версии и бренды Android.Try to open a URL using Intent.ACTION_VIEW (e.g., https://wa.me/...) from an app running on an XOS-based device (Infinix/TECNO).
The app crashes with a SecurityException indicating a permission denial.
< /code>
Соответствующий код: < /p>
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://wa.me/..."));
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);
< /code>
Возможные причины: < /p>
The XOS-based system (Android Dolphin v7.6.0) may have additional permission restrictions or security policies that prevent certain types of Intent actions.
The crash could be related to missing permissions or restrictions on opening external URLs in WebView activities.
< /code>
Вопросы: < /p>
Is this a known issue with XOS devices or Android Dolphin v7.6.0?
Are there any specific permissions or configurations I need to set to handle this case?
Are there any workarounds or best practices for handling Intent-based URL opening on these devices?
< /code>
Дополнительная информация: < /p>
The issue only occurs on XOS (Android Dolphin v7.6.0) devices (like Infinix or TECNO). Other Android devices do not experience this issue.
I’ve already checked that all necessary permissions (like INTERNET) are declared in the manifest.
Подробнее здесь: [url]https://stackoverflow.com/questions/79625102/fatal-exception-securityexception-permission-denial-on-intent-starting-in-xos[/url]
Ответить
1 сообщение
• Страница 1 из 1
Перейти
- Кемерово-IT
- ↳ Javascript
- ↳ C#
- ↳ JAVA
- ↳ Elasticsearch aggregation
- ↳ Python
- ↳ Php
- ↳ Android
- ↳ Html
- ↳ Jquery
- ↳ C++
- ↳ IOS
- ↳ CSS
- ↳ Excel
- ↳ Linux
- ↳ Apache
- ↳ MySql
- Детский мир
- Для души
- ↳ Музыкальные инструменты даром
- ↳ Печатная продукция даром
- Внешняя красота и здоровье
- ↳ Одежда и обувь для взрослых даром
- ↳ Товары для здоровья
- ↳ Физкультура и спорт
- Техника - даром!
- ↳ Автомобилистам
- ↳ Компьютерная техника
- ↳ Плиты: газовые и электрические
- ↳ Холодильники
- ↳ Стиральные машины
- ↳ Телевизоры
- ↳ Телефоны, смартфоны, плашеты
- ↳ Швейные машинки
- ↳ Прочая электроника и техника
- ↳ Фототехника
- Ремонт и интерьер
- ↳ Стройматериалы, инструмент
- ↳ Мебель и предметы интерьера даром
- ↳ Cантехника
- Другие темы
- ↳ Разное даром
- ↳ Давай меняться!
- ↳ Отдам\возьму за копеечку
- ↳ Работа и подработка в Кемерове
- ↳ Давай с тобой поговорим...
Мобильная версия