为什么我需要android.permission.ACCESS_CHECKIN_PROPERTIES [英] why do I need android.permission.ACCESS_CHECKIN_PROPERTIES

查看:2244
本文介绍了为什么我需要android.permission.ACCESS_CHECKIN_PROPERTIES的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望有人能够帮助这一点,我一直在寻找,并没有发现一个解释。

我使用Eclipse编写我的应用程序,并在模拟器上测试了,它工作正常,没有错误。当我尝试安装我的手机上的应用程序,它失败抱怨许可android.permission.ACCESS_CHECKIN_PROPERTIES是必需的。

  [2014年1月21日9时02分44秒 -  ShoppingCalc] Android的推出!
[2014年1月21日9时02分44秒 - ShoppingCalc]亚洲开发银行运行正常。
[2014年1月21日9时02分44秒 - ShoppingCalc]执行com.jwg.shoppingcalc.MainActivity活动启动
[2014年1月21日9时02分48秒 - ShoppingCalc]上传ShoppingCalc.apk到设备42f7aa046c719f73
[2014年1月21日9时02分48秒 - ShoppingCalc]安装ShoppingCalc.apk ...
[2014年1月21日9时02分50秒 - ShoppingCalc]成功!
[2014年1月21日9时02分50秒 - ShoppingCalc]在设备42f7aa046c719f73开始活动com.jwg.shoppingcalc.MainActivity
[2014年1月21日9时02分50秒 - ShoppingCalc] ActivityManager:开始:意向{行动= android.intent.action.MAIN猫= [android.intent.category.LAUNCHER] CMP = com.jwg.shoppingcalc / .MainActivity }
[2014年1月21日9时02分50秒 - ShoppingCalc] ActivityManager:java.lang.SecurityException异常:权限拒绝:启动意向{行动= android.intent.action.MAIN猫= [android.intent.category.LAUNCHER] FLG = 0x10000000处CMP = com.jwg.shoppingcalc / .MainActivity}从空(PID = 21219,UID = 2000)要求android.permission.ACCESS_CHECKIN_PROPERTIES
[2014年1月21日9时02分50秒 - ShoppingCalc] ActivityManager:在android.os.Parcel.readException(Parcel.java:1425)
[2014年1月21日9时02分50秒 - ShoppingCalc] ActivityManager:在android.os.Parcel.readException(Parcel.java:1379)
[2014年1月21日9时02分50秒 - ShoppingCalc] ActivityManager:在android.app.ActivityManagerProxy.startActivity(ActivityManagerNative.java:1930)
[2014年1月21日9时02分50秒 - ShoppingCalc] ActivityManager:在com.android.commands.am.Am.runStart(Am.java:463)
[2014年1月21日9时02分50秒 - ShoppingCalc] ActivityManager:在com.android.commands.am.Am.run(Am.java:108)
[2014年1月21日9时02分50秒 - ShoppingCalc] ActivityManager:在com.android.commands.am.Am.main(Am.java:81)
[2014年1月21日9时02分50秒 - ShoppingCalc] ActivityManager:在com.android.internal.os.RuntimeInit.nativeFinishInit(本机方法)
[2014年1月21日9时02分50秒 - ShoppingCalc] ActivityManager:在com.android.internal.os.RuntimeInit.main(RuntimeInit.java:237)
[2014年1月21日9时02分50秒 - ShoppingCalc] ActivityManager:在dalvik.system.NativeStart.main(本机方法)
[2014年1月21日9时04分57秒 - ShoppingCalc]霉素

在模拟器,安装应用程序看起来是这样的。

  [2014年1月21日9时33分48秒 -  ShoppingCalc] Android的推出!
[2014年1月21日9时33分48秒 - ShoppingCalc]亚洲开发银行运行正常。
[2014年1月21日9时33分48秒 - ShoppingCalc]执行com.jwg.shoppingcalc.MainActivity活动启动
[2014年1月21日9时33分52秒 - ShoppingCalc]上传ShoppingCalc.apk到设备'模拟器-5554
[2014年1月21日9时33分52秒 - ShoppingCalc]安装ShoppingCalc.apk ...
[2014年1月21日9时34分08秒 - ShoppingCalc]成功!
[2014年1月21日9时34分08秒 - ShoppingCalc]在设备上启动活动com.jwg.shoppingcalc.MainActivity模拟器-5554
[2014年1月21日9时34分13秒 - ShoppingCalc] ActivityManager:开始:意向{行动= android.intent.action.MAIN猫= [android.intent.category.LAUNCHER] CMP = com.jwg.shoppingcalc / .MainActivity }

在我的研究,我发现,许可android.permission.ACCESS_CHECKIN_PROPERTIES仅用于系统应用,如果列入清单不能即使平时。

到java code我做了,因为它去年在手机上的工作是检查设备上的文件,如果它不存在,创建该文件的唯一变化。

为什么一个应用程序将需要该权限将是有益的任何详细资料,我发现迄今在行只规定最低。

谢谢!

这是14年1月22日添加清单

 <活动
        机器人:名字=com.jwg.shoppingcalc.MainActivity
        机器人:标签=@字符串/ APP_NAME>
        &所述;意图滤光器>
            <作用机器人:名字=android.intent.action.MAIN/>            <类机器人:名字=android.intent.category.LAUNCHER/>
        &所述; /意图滤光器>
    < /活性GT;
    <活动
        机器人:名字=com.jwg.shoppingcalc.EnterTaxActivity
        机器人:标签=@字符串/ APP_NAME>
    < /活性GT;
    <活动
        机器人:名字=com.jwg.shoppingcalc.EnterQuantity
        机器人:标签=@字符串/ APP_NAME>
    < /活性GT;


解决方案

再次感谢,我是能够解决的问题。这是在清单上,但在活动部分。

在应用程序部分有一个行补充说,我不知道如何到达那里,因为我没有添加它,安卓权限=android.permission.ACCESS_CHECKIN_PROPERTIES

 <应用
    机器人:allowBackup =真
    机器人:图标=@绘制/ ic_launcher
    机器人:标签=@字符串/ APP_NAME
    机器人:主题=@风格/ AppTheme
    机器人:执着=假
    机器人:权限=android.permission.ACCESS_CHECKIN_PROPERTIES>

在谈到此行所允许的应用程序安装并在手机上再次运行。

I hope someone can help with this, I've been searching and have not found an explanation.

I written my application using Eclipse and tested in on the emulator and it works fine with no errors. When I attempt to install the app on my phone, it fails complaining that the permission android.permission.ACCESS_CHECKIN_PROPERTIES is required.

[2014-01-21 09:02:44 - ShoppingCalc] Android Launch!
[2014-01-21 09:02:44 - ShoppingCalc] adb is running normally.
[2014-01-21 09:02:44 - ShoppingCalc] Performing com.jwg.shoppingcalc.MainActivity activity launch
[2014-01-21 09:02:48 - ShoppingCalc] Uploading ShoppingCalc.apk onto device '42f7aa046c719f73'
[2014-01-21 09:02:48 - ShoppingCalc] Installing ShoppingCalc.apk...
[2014-01-21 09:02:50 - ShoppingCalc] Success!
[2014-01-21 09:02:50 - ShoppingCalc] Starting activity com.jwg.shoppingcalc.MainActivity on device 42f7aa046c719f73
[2014-01-21 09:02:50 - ShoppingCalc] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.jwg.shoppingcalc/.MainActivity }
[2014-01-21 09:02:50 - ShoppingCalc] ActivityManager: java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.jwg.shoppingcalc/.MainActivity } from null (pid=21219, uid=2000) requires android.permission.ACCESS_CHECKIN_PROPERTIES
[2014-01-21 09:02:50 - ShoppingCalc] ActivityManager: at android.os.Parcel.readException(Parcel.java:1425)
[2014-01-21 09:02:50 - ShoppingCalc] ActivityManager: at android.os.Parcel.readException(Parcel.java:1379)
[2014-01-21 09:02:50 - ShoppingCalc] ActivityManager: at android.app.ActivityManagerProxy.startActivity(ActivityManagerNative.java:1930)
[2014-01-21 09:02:50 - ShoppingCalc] ActivityManager: at com.android.commands.am.Am.runStart(Am.java:463)
[2014-01-21 09:02:50 - ShoppingCalc] ActivityManager: at com.android.commands.am.Am.run(Am.java:108)
[2014-01-21 09:02:50 - ShoppingCalc] ActivityManager: at com.android.commands.am.Am.main(Am.java:81)
[2014-01-21 09:02:50 - ShoppingCalc] ActivityManager: at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
[2014-01-21 09:02:50 - ShoppingCalc] ActivityManager: at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:237)
[2014-01-21 09:02:50 - ShoppingCalc] ActivityManager: at dalvik.system.NativeStart.main(Native Method)
[2014-01-21 09:04:57 - ShoppingCalc] Dx 

On the emulator, installing the app looks like this.

[2014-01-21 09:33:48 - ShoppingCalc] Android Launch!
[2014-01-21 09:33:48 - ShoppingCalc] adb is running normally.
[2014-01-21 09:33:48 - ShoppingCalc] Performing com.jwg.shoppingcalc.MainActivity activity launch
[2014-01-21 09:33:52 - ShoppingCalc] Uploading ShoppingCalc.apk onto device 'emulator-5554'
[2014-01-21 09:33:52 - ShoppingCalc] Installing ShoppingCalc.apk...
[2014-01-21 09:34:08 - ShoppingCalc] Success!
[2014-01-21 09:34:08 - ShoppingCalc] Starting activity com.jwg.shoppingcalc.MainActivity on device emulator-5554
[2014-01-21 09:34:13 - ShoppingCalc] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.jwg.shoppingcalc/.MainActivity }

In my research I found that the permission android.permission.ACCESS_CHECKIN_PROPERTIES is for system apps only and cannot be granted even if included in the manifest.

The only change to the java code I made since it last worked on the phone was checking for a file on the device and if it does not exist, create the file.

Any detailed information about why an app would need this permission would be useful, what I found so far on line only states the minimum.

Thanks!

Adding manifest on 1/22/14

    <activity
        android:name="com.jwg.shoppingcalc.MainActivity"
        android:label="@string/app_name" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>  
    </activity>
    <activity
        android:name="com.jwg.shoppingcalc.EnterTaxActivity"
        android:label="@string/app_name" >
    </activity>
    <activity
        android:name="com.jwg.shoppingcalc.EnterQuantity"
        android:label="@string/app_name" >
    </activity>

解决方案

Thanks again, I was able to solve the problem. It was in the manifest but on in the activity section.

In the application section there was a line added that I'm not sure how it got there as I did not add it, android:permission="android.permission.ACCESS_CHECKIN_PROPERTIES"

<application
    android:allowBackup="true"
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/AppTheme" 
    android:persistent="false"
    android:permission="android.permission.ACCESS_CHECKIN_PROPERTIES">

Commenting this line allowed the app to install and run again on the phone.

这篇关于为什么我需要android.permission.ACCESS_CHECKIN_PROPERTIES的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆