Android app incompability with Galaxy Pocket - android

I'm making an app which have been working with all devices that we tried, but then a user (who wanted our app) had the "Samsung Galaxy Pocket"-phone, and he couldn't find it in Google Play, and when I looked for supported devices in "Android Developer Console" it wasn't supported.
The question is how do I add support for "Samsung Galaxy Pocket".
I removed some of the permissions in android manifest (and a lot of other devices was now on the "white list"), and can't seem to find the problem...
I tried to remove the permissions "ACCESS_NETWORK_STATE" and "WRITE_EXTERNAL_STORAGE" with no success, I also tried to set "android:hardwareAccelerated" to false with no success.
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:windowSoftInputMode="adjustPan"
package="xxx" android:versionName="xxx" android:versionCode="xxx"
android:hardwareAccelerated="true">
<supports-screens
android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:xlargeScreens="true"
android:resizeable="true"
android:anyDensity="true"
/>
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application android:icon="#drawable/icon" android:label="#string/app_name"
android:hardwareAccelerated="true"
android:debuggable="false">
<activity android:name="xxx" android:label="#string/app_name"
android:theme="#android:style/Theme.Black.NoTitleBar"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
<uses-sdk android:minSdkVersion="7" android:targetSdkVersion="17"/>
</manifest>

I have the same problem with the same device.
My app require the following functions:
android.hardware.CAMERA
android.hardware.camera.AUTOFOCUS
android.hardware.location.GPS
android.hardware.location.NETWORK
android.hardware.TOUCHSCREEN
and needs the following permissions:
android.permission.ACCESS_COARSE_LOCATION
android.permission.ACCESS_FINE_LOCATION
android.permission.CAMERA
android.permission.INTERNET
android.permission.READ_EXTERNAL_STORAGE
android.permission.RECEIVE_BOOT_COMPLETED
android.permission.VIBRATE
android.permission.WAKE_LOCK
android.permission.WRITE_EXTERNAL_STORAGE
in an old app i didn't use vibrate that could be the point!

Related

Cordova SMS sending on Mashmallow: not asking for permissions any more

I use the cordova 6.4 with that plugin:
cordova-plugin-sms 1.0.5 "SMS"
When I do install it, on Android 4.3 it asks for sms sending permissions and works great.
On Marshmallow however, the APK installs WITHOUT asking any permissions (and of course cannot send SMS until I go manually to application, parameters and allow manually SMS sending)
In my /plateforms/android/AndroidManifest.xml I have that
<?xml version='1.0' encoding='utf-8'?>
<manifest android:hardwareAccelerated="true" android:versionCode="10000" android:versionName="1.0.0" package="com.proxymis.sendSMS" xmlns:android="http://schemas.android.com/apk/res/android">
<supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true" />
<uses-permission android:name="android.permission.INTERNET" />
<application android:hardwareAccelerated="true" android:icon="#mipmap/icon" android:label="#string/app_name" android:supportsRtl="true">
<activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" android:label="#string/activity_name" android:launchMode="singleTop" android:name="MainActivity" android:theme="#android:style/Theme.DeviceDefault.NoActionBar" android:windowSoftInputMode="adjustResize">
<intent-filter android:label="#string/launcher_name">
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
<uses-sdk android:minSdkVersion="16" android:targetSdkVersion="24" />
<uses-feature android:name="android.hardware.telephony" android:required="false" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.RECEIVE_SMS" />
<uses-permission android:name="android.permission.RECEIVE_WAP_PUSH" />
<uses-permission android:name="android.permission.RECEIVE_MMS" />
<uses-permission android:name="android.permission.READ_SMS" />
<uses-permission android:name="android.permission.WRITE_SMS" />
<uses-permission android:name="android.permission.SEND_SMS" />
</manifest>
Question: How to set permissions or config so I can send SMS with Marshmallow ?
Below Android 6.0, you ask for them in the manifest (like you did), and you always have access to them.
On Android 6.0 or higher, permissions have to be asked for at runtime.
Google "Android runtime permissions" and you will find loads and loads of guides and posts about it.
I've never worked with Cordova before, so i don't know how that will work, i've only worked with native Android applications. But my best guess is that there is a plugin that can help you.

User permissions

I am new to android, I want to know whether android.permission.READ_EXTERNAL_STORAGE and android.permission.WRITE_EXTERNAL_STORAGE have default permissions ???
This is my manifest.xml file
<?xml version='1.0' encoding='utf-8'?>
<manifest android:hardwareAccelerated="true" android:versionCode="1" android:versionName="0.0.1" package="com.sample.test" xmlns:android="http://schemas.android.com/apk/res/android">
<supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true" />
<uses-permission android:name="android.permission.INTERNET" />
<application android:hardwareAccelerated="true" android:icon="#drawable/icon" android:label="#string/app_name" android:supportsRtl="true">
<activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" android:label="#string/activity_name" android:launchMode="singleTop" android:name="MainActivity" android:screenOrientation="portrait" android:theme="#android:style/Theme.DeviceDefault.NoActionBar" android:windowSoftInputMode="adjustResize">
<intent-filter android:label="#string/launcher_name">
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="23" />
</manifest>
But it still show <user-permission> as
Uses Permissions:
android.permission.INTERNET
android.permission.READ_EXTERNAL_STORAGE
android.permission.WRITE_EXTERNAL_STORAGE
Defines Permissions:
None
Is there any other way to define such permissions
I am using drozer to check vulnerability in my app
Thanks.
Apps didn't need WRITE_EXTERNAL_STORAGE and WRITE_EXTERNAL_STORAGE in the past to access external storage. But that will change in the near future (see 'Caution' section in the referenced guide). So, previously apps were able to write to external storage by default. Also, WRITE_EXTERNAL_STORAGE includes READ_EXTERNAL_STORAGE so you don't need to obtain both.
Here's the relevant user guide: https://developer.android.com/training/basics/data-storage/files.html#GetWritePermission
So, for devices with API level 23 and later add the respective permission to your manifest:
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
According to the documentation: A basic Android application has no permissions associated with it by default. See the section labeled Using Permissions.

Ionic App On Android Tablet

I've just publish my app to the Google Play store for beta testing, but I can't install it on my Android tablet. The app will not install on my Samsung Galaxy Tab 10 tablet Model number GT-P5113 Android version 4.2.2, but it installs on my Samsung S5 mobile phone with no problem.
When I try to install the app from the Google Play Store it says that its designed for phones and the message is "Your device isn't compatible with this version'. I've checked the 'DEVICE COMPATIBILITY' section and my tablet version is checked.
I have this in my AndroidManifest.xml file:
<supports-screens android:anyDensity="true" android:largeScreens="true"
android:normalScreens="true" android:resizeable="true"
android:smallScreens="true" android:xlargeScreens="true" />
Can someone tell me how to make my app compatible with Android and iOS tablets? Thanks in advance
UPDATE
Here's the complete AndroidManifest.xml.
<?xml version='1.0' encoding='utf-8'?>
<manifest android:hardwareAccelerated="true" android:versionCode="6" android:versionName="0.0.0.0" package="com.myapp.app" xmlns:android="http://schemas.android.com/apk/res/android">
<supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-feature android:name="android.hardware.camera" />
<uses-feature android:name="android.hardware.camera.autofocus" />
<application android:hardwareAccelerated="true" android:icon="#drawable/icon" android:label="#string/app_name">
<activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" android:label="#string/activity_name" android:launchMode="singleTop" android:name="RsgApp" android:screenOrientation="portrait" android:theme="#android:style/Theme.Black.NoTitleBar" android:windowSoftInputMode="adjustResize">
<intent-filter android:label="#string/launcher_name">
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<meta-data android:name="com.google.android.gms.version" android:value="#integer/google_play_services_version" />
<activity android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" android:name="com.google.android.gms.ads.AdActivity" android:theme="#android:style/Theme.Translucent" />
</application>
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="19" />
It is probably your min-sdk attribute. If it is set to 21 (android 5.0), then it will only work on devices with Android v5.0. Your min-sdk needs to be set to API level 17. It could also be an issue with compatibility libraries (if you used widgets only available in later versions of android) and/or themes. This page has more information about the tag, and a little bit about Google Play Filtering.
It's the camera auto focus feature:
uses-feature android:name="android.hardware.camera.autofocus"
I have the same issue with Samsung SM-T110 (Tab 3 Lite);
it does not have camera autofocus so gets excluded from compatible devices.
Still trying to figure out how to remove this from the auto-generated manifest file tho, but hope this sets you in the right direction...

Google Play - Your device isn't compatible with this version - ASUS Transformer TF101

When viewing my app in Google Play on my ASUS Transformer tablet I see the following message
Your device isn't compatible with this version
Here is my manifest file.
<?xml version='1.0' encoding='utf-8'?>
<manifest android:hardwareAccelerated="true"
android:versionCode="3"
android:versionName="1.0.2"
android:windowSoftInputMode="adjustPan"
package="com.sheffieldlentinepc.sentenceestimator"
xmlns:android="http://schemas.android.com/apk/res/android">
<supports-screens
android:anyDensity="true"
android:largeScreens="true"
android:normalScreens="true"
android:resizeable="true"
android:smallScreens="true"
android:xlargeScreens="true" />
<uses-permission android:name="android.permission.INTERNET" />
<!-- Required permission to check licensing. -->
<uses-permission android:name="com.android.vending.CHECK_LICENSE" />
<uses-sdk android:minSdkVersion="10" android:targetSdkVersion="18" />
<application
android:hardwareAccelerated="true"
android:icon="#drawable/icon"
android:label="#string/app_name">
<activity
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale"
android:label="#string/app_name"
android:name="SentenceEstimator"
android:theme="#android:style/Theme.Black.NoTitleBar"
android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
Is there anything in my manifest that would cause this device to be incompatible?
OK I got it! My situation:
Originally a phone only app
re-designed for tablet optimization
I thought marking this permission to required="false" was all I needed since tablets don't have phones. <uses-permission android:name="android.permission.CALL_PHONE"
**android:required="false"** />
My confusion was the <uses-permission/> and <uses-feature/> after reading this over for the 10th time I finally caught it. http://developer.android.com/distribute/googleplay/quality/tablet.html#hardware-requirements
I needed to explicitly add <uses-feature android:name="android.hardware.telephony" android:required="false" /> to my manifest.
upload to to developer console and you should see the number of "supported devices" jump, 541 devices in my case.
Of course if you have features that require phone use you need to handle it appropriately at run-time for devices that don't have phone.
Adding <uses-feature android:name="android.hardware.telephony" android:required="false" /> to the manifest added support for your AsusTransformer TF101G too!
I hope this helps someone else!

Google Play shows - Your device isn't compatible with this version for Samsung Galaxy tab 2 and Google Nexus 7

When I published my app to Google play store and I tried downloading it on my Google Nexus 7 , I get the message "Your device isn't compatible with this version".
My Manifest file is declared like this:-
<uses-sdk
android:minSdkVersion="9"
android:targetSdkVersion="16" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.CAMERA" />
<supports-screens
android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:xlargeScreens="true" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application
android:icon="#drawable/ic_icon"
android:label="#string/app_name"
android:theme="#style/ApplicationTheme" >
<uses-library android:name="com.google.android.maps" />
<activity
android:name=".SplashScreenActivity"
android:label="#string/app_name"
android:screenOrientation="portrait" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".HomeActivity"
android:launchMode="singleTop"
android:screenOrientation="portrait" >
</activity>
<activity
android:name=".MyFormsTabActivity"
android:screenOrientation="portrait" >
</activity>
</application>
This is the problem :
<uses-permission android:name="android.permission.CAMERA" />
This implies using the camera feature, which is different from the front-facing camera, as the N7 has. Make the camera feature explicit and optional. Details: http://developer.android.com/guide/google/play/filters.html
Got it..!!
http://developer.android.com/guide/google/play/filters.html
Well android permissions normally are not used as filters if you have specified attribute. In above case what happened was that I had declared the CAMERA permission , but Google Nexus 7 didn't had a camera( only has front camera). so Google Play filtered out the device.
So In order to solve this problem the best practice would be,
**
If in our application manifest we have asked the permission to use any hardware feature then We should also declare the uses-feature attribute for that with android:required="false".
**

Categories

Resources