android-permissions

Building an Android APK with same certificate as the system

僤鯓⒐⒋嵵緔 提交于 2019-12-01 01:54:26
I'm trying to make a system app work. Here's what I have: An OEM OMAP platform with full 4.4.2 source code. I've built the system and loaded on my platform using Ubuntu 14.04. That all works. Now, there is an app from the OEM which directly accesses the hardware (DSP, I2C, UART) etc. The original APK that came from the OEM works on my platform. I built the exact same app using make command (not using Eclipse); It builds and I can install on the platform. But when I try to launch the app, it gets stuck in an eternal wait state. I am not sure, but I suspect my locally built app tries to

Intent custom permission not working

跟風遠走 提交于 2019-12-01 00:41:10
UPDATE My immediate problem is solved as per my answer below. My environment (PC + devices) does not allow custom permissions in DEBUG builds. I'm convinced I was able to run DEBUG builds fine a few weeks ago - hence the description of an "intermittent" error. UPDATE 2 The code synced out on a different developer's machine, works fine on his device in DEBUG mode through Eclipse. On my devices, it does not work from his machine. Also the DEBUG build from my machine works fine on this other device. This leads me to question if something has gone wrong on my devices? I have an intermittent

How to fix “Issue: Violation of Families Policy Requirements”

最后都变了- 提交于 2019-12-01 00:27:39
I've tried to publish an app on Play store but it's rejected and I've received an email titled: "Issue: Violation of Families Policy Requirements" And it also followed by: "Apps that contain elements that appeal to children must comply with all Families Policy Requirements. We found the following issue(s) with your app: Eligibility Issue <> In order to review your app for “Designed for Families” eligibility, we will need you to provide a test login account. Please provide login credentials to the support team before you submit any updated version for another review (select “Test Login Needed”

Can I remove this permission? (It cause INSTALL_FAILED_DUPLICATE_PERMISSION in Android 5.0 device)

烈酒焚心 提交于 2019-12-01 00:22:04
My tester said that he couldn't install the app from Play Store to his Nexus 5 (Lollipop). He said he got this error Unknown error code during application install “-505” I took his phone and try to install the app via adb, I got this error Failure [INSTALL_FAILED_DUPLICATE_PERMISSION perm=com.example.gcm.permission.C2D_MESSAGE pkg=com.mailchimp.alterego] After some reading, I came across this writing from @Commonsware http://commonsware.com/blog/2014/08/04/custom-permission-vulnerability-l-developer-preview.html It's clearly that both my app and Mailchimp app (which installed on my tester's

Android app auto update on Google Play and permissions change

耗尽温柔 提交于 2019-12-01 00:10:53
问题 I know that when at least one new permission is added, the app will not be auto-updated. The user has to manually update it. You will have "Manual Update" when the app's permissions have changed. What about removing a permission ? My current app version N is released. In the next release, one permission is removed. Will the users of version N get an automatic update ? Edit : https://android.stackexchange.com/questions/2958/why-do-some-of-my-apps-show-update-and-some-show-update-manual 回答1:

How to add extra permission to a prebuilt application (no source code) in AOSP

流过昼夜 提交于 2019-11-30 23:39:02
I have an application that doesn't have a specific android permission(for example android.permission.CHANGE_CONFIGURATION ). I don't have its source code. I'm working on an AOSP. I prebuilt this application like: Put APK in /device/model/apps/HERE Add these snippet codes in Android.mk: define PREBUILT_templateByMe LOCAL_MODULE := $(1) LOCAL_MODULE_CLASS := APPS LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX) LOCAL_CERTIFICATE := PRESIGNED LOCAL_SRC_FILES := $$(LOCAL_MODULE).apk LOCAL_REQUIRED_MODULES := $(2) include $(BUILD_PREBUILT) endef define PREBUILT_APP_templateByMe include $$

Request permissions based on API level

二次信任 提交于 2019-11-30 23:06:18
Beginning in Android 6.0 (API level 23), we can ask permissions at run time. However, according to the docs, all permissions still need to be defined in AndroidManifest.xml so in APIs lower than 23, these permissions will be granted prior to installing the app. I want to request ACCESS_FINE_LOCATION permission only at runtime - since this is a sensitive permission, requesting it prior to installation without any context will cause a decrease in downloads. I am targeting my app to API levels 11+, so I wonder whether it is possible not to ask for the ACCESS_FINE_LOCATION permission in older APIs

Android M : Billing and GCM permissions

僤鯓⒐⒋嵵緔 提交于 2019-11-30 22:30:51
问题 I have an app which use GCM and Billing. In order to make it Android M-ready i'm trying to implement the new permission model. Unfortunately i can't find any informations about GCM and Billing permissions. They don't appear in the normal permission list and are obviously not available with Manifest.permission.* because they are not under android.permission namespace. Nevertheless , we still have to declare them in the manifest <uses-permission android:name="com.android.vending.BILLING"> <uses

External Storage Permission Issue with MediaProvider / Ring Tones

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-30 22:09:35
Some of my users have reported to Google Play the following error when trying to select a ringtone in my app. (there's more to it, but it's not relevant) java.lang.SecurityException: Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/audio/media from pid=5738, uid=10122 requires android.permission.READ_EXTERNAL_STORAGE I assume this issue is happening due to certain tones that are on external storage. I don't want to include the READ_EXTERNAL_STORAGE permission in my app unless I absolutely have to. Is there a way to circumvent the issue and just

Why is Content Provider without permissions and with exported=true accessible to any app?

元气小坏坏 提交于 2019-11-30 21:45:10
Here is a test I ran to understand Android Content Provider permissions: App ProviderApp manifest: <provider android:authorities="com.mycompany.myProviderApp" android:name="com.mycompany.myProviderApp.ContentProviderForMyOtherApps" android:exported="true"/> I also implemented a dummy ContentProvider ( ContentProviderForMyOtherApps ) with a basic query method returning a string in ProviderApp : public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) { String[] cols = {"column1"}; MatrixCursor cursor = new MatrixCursor(cols); MatrixCursor