android-manifest

How to add android:allowBackup=“false” via cordova plugin

旧街凉风 提交于 2020-05-25 10:44:11
问题 I am now developing a Cordova Plugin , I wanna add android:allowBackup="true" into AndroidManifest.xml , but I do not know how to specify it in plugin.xml . 回答1: The configuration edit that has worked for me was: <platform name="android"> <edit-config file="AndroidManifest.xml" target="/manifest/application" mode="merge"> <application android:allowBackup="false"/> </edit-config> </platform> EDIT Feb-2020: Please refer to answer from @Shashank Agrawal below for cordova-android >= 7 回答2: Answer

SecurityException: getSerial: The user 10134 does not meet the requirements to access device identifiers

﹥>﹥吖頭↗ 提交于 2020-05-16 03:53:12
问题 I want to get the Build.getSerial() from the Android phone. Up to Android O i needed the Manifest.permission.READ_PHONE_STATE permission. However in Android 10 i get the above exception. What i did is added this permission to the manifest <uses-permission android:name="android.permission.READ_PRIVILEGED_PHONE_STATE" tools:ignore="ProtectedPermissions"/> And in the activity i need to request for the permission but there is not such a permission ActivityCompat.requestPermissions(this

Android app icon name picked from activity label than from application label

て烟熏妆下的殇ゞ 提交于 2020-05-11 04:16:50
问题 Not sure if anyone else posted this question, didn't find any, though there are similar ones. This is my manifest xml: <application android:allowBackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme" > <activity android:name="com.listCalc.tutorial.simpleinappbillingv3.ui.StartUpActivity" android:label="@string/activity_startup_label" android:screenOrientation="portrait" > <intent-filter> <action android:name="android.intent.action

Android app icon name picked from activity label than from application label

久未见 提交于 2020-05-11 04:16:06
问题 Not sure if anyone else posted this question, didn't find any, though there are similar ones. This is my manifest xml: <application android:allowBackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme" > <activity android:name="com.listCalc.tutorial.simpleinappbillingv3.ui.StartUpActivity" android:label="@string/activity_startup_label" android:screenOrientation="portrait" > <intent-filter> <action android:name="android.intent.action

I am trying to test android deep link urls through adb to launch my app

眉间皱痕 提交于 2020-05-09 17:58:30
问题 When I type the command in adb: ./adb shell am start -W -a android.intent.action.VIEW -d "example:gizmos" com.myapp I get this error: Starting: Intent { act=android.intent.action.VIEW dat=example://gizmos pkg=com.myapp } Error: Activity not started, unable to resolve Intent { act=android.intent.action.VIEW dat=example://gizmos flg=0x10000000 pkg=com.myapp } But when I type the command in adb: ./adb shell am start -W -a android.intent.action.VIEW -d "example:gizmos" com.myapp.activity

Implementing Firebase GitHub Authentication in Flutter

。_饼干妹妹 提交于 2020-04-30 08:45:10
问题 I am trying to implement the Firebase GitHub Authentication in FLutter with the help of this article: https://medium.com/flutter-community/implementing-firebase-github-authentication-in-flutter-1c49a172c648 The problem is that after successfully logging into GitHub, I get redirected to the URL appname://auth/handler?code=AUTH_CODE . This redirection is not being caught by my app as I’ve set the deep link configuration in Step 4 & 5 of the article. I guess I am doing something wrong in the

What will be the alternative for repo sync command?

喜你入骨 提交于 2020-04-11 02:17:09
问题 I am new to git and I want to execute manifest file manually after doing repo init , instead of doing repo sync . To measure the time difference between normal git commands and repo sync in different cases. But I am not sure which git command to does repo uses. I know that repo is just an wrapper for git for large codebase. I just want to know what will be the exact command for git clone If I have the following Variables. - name - path - revision - upstream - remote I know how to form a url

How to get a reliable&valid manifest content of APK file, even using InputStream?

一世执手 提交于 2020-04-09 18:00:45
问题 Background I wanted to get information about APK files(including split APK files), even if they are inside compressed zip files (without de-compressing them). In my case, this include various things, such as package name, version-code, version-name, app-label, app-icon, and if it's a split APK file or not. Do note that I want to do it all inside an Android app, not using a PC, so some tools might not be possible to be used. The problem This means I can't use the getPackageArchiveInfo function

How to get a reliable&valid manifest content of APK file, even using InputStream?

隐身守侯 提交于 2020-04-09 18:00:33
问题 Background I wanted to get information about APK files(including split APK files), even if they are inside compressed zip files (without de-compressing them). In my case, this include various things, such as package name, version-code, version-name, app-label, app-icon, and if it's a split APK file or not. Do note that I want to do it all inside an Android app, not using a PC, so some tools might not be possible to be used. The problem This means I can't use the getPackageArchiveInfo function

Attribute application@allowBackup value=(false) from AndroidManifest.xml is also present at [:barcodescanner:] AndroidManifest.xml value=(true)

混江龙づ霸主 提交于 2020-02-27 04:34:12
问题 I’m trying to set the allowBackup attribute in my ionic 3 app manifest to false but gradle complains with the following error: Attribute application@allowBackup value=(false) from AndroidManifest.xml:4:18-45 is also present at [:barcodescanner:] AndroidManifest.xml:12:9-35 value=(true). Suggestion: add 'tools:replace="android:allowBackup"' to element at AndroidManifest.xml:4:5-11:19 to override. To Set allowBackup=false using below line in config.xml file <platform name="android"> <edit