Skip to content

Commit

Permalink
去掉多余的权限
Browse files Browse the repository at this point in the history
  • Loading branch information
maning committed Jul 28, 2016
1 parent 85b56f8 commit 94d43e6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
6 changes: 5 additions & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.maning.zxingcodedemo">

<!--权限添加-->
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.FLASHLIGHT" />

<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
Expand All @@ -15,7 +19,7 @@
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".HistoryActivity"></activity>
<activity android:name=".HistoryActivity"/>
</application>

</manifest>
7 changes: 0 additions & 7 deletions libraryzxing/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,6 @@
<uses-feature android:name="android.hardware.camera" />
<uses-feature android:name="android.hardware.camera.autofocus" />

<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.FLASHLIGHT" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<!-- 闪光灯 -->
<uses-permission android:name="android.permission.FLASHLIGHT" />

<application
android:allowBackup="true"
android:label="@string/app_name"
Expand Down

0 comments on commit 94d43e6

Please sign in to comment.