Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lib_base
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sikang
lib_base
Commits
29bcf76b
Commit
29bcf76b
authored
Oct 01, 2019
by
sikang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove SD and location
parent
04933891
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
13 deletions
+16
-13
src/main/AndroidManifest.xml
+12
-6
src/main/java/com/common/Collector.java
+4
-7
No files found.
src/main/AndroidManifest.xml
View file @
29bcf76b
...
...
@@ -4,11 +4,11 @@
<uses-permission
android:name=
"android.permission.FOREGROUND_SERVICE"
/>
<!--写入SD卡-->
<
uses-permission
android:name=
"android.permission.WRITE_EXTERNAL_STORAGE"
/
>
<
!--<uses-permission-->
<!--android:name="android.permission.WRITE_EXTERNAL_STORAGE" />--
>
<!--读取SD卡-->
<
uses-permission
android:name=
"android.permission.READ_EXTERNAL_STORAGE"
/
>
<
!--<uses-permission-->
<!--android:name="android.permission.READ_EXTERNAL_STORAGE" />--
>
<uses-permission
android:name=
"android.permission.ACCESS_NETWORK_STATE"
/>
<!--相机-->
<uses-permission
android:name=
"android.permission.CAMERA"
/>
...
...
@@ -37,8 +37,14 @@
<!--<uses-permission android:name="android.permission.READ_PHONE_STATE" />-->
<!--<uses-permission android:name="android.permission.WAKE_LOCK" />-->
<application
android:networkSecurityConfig=
"@xml/network_security_config"
>
<uses-permission
android:name=
"android.permission.ACCESS_FINE_LOCATION"
tools:node=
"remove"
/>
<uses-permission
android:name=
"android.permission.ACCESS_COARSE_LOCATION"
tools:node=
"remove"
/>
<application
android:networkSecurityConfig=
"@xml/network_security_config"
>
<!--适应全面屏-->
<meta-data
android:name=
"android.max_aspect"
...
...
src/main/java/com/common/Collector.java
View file @
29bcf76b
...
...
@@ -157,15 +157,12 @@ public class Collector {
infos1
.
addAll
(
infos2
);
//SDK-CONTACT-END
CollectInfoEntity
location
=
Collector
.
getStoreEntity
(
InfoType
.
LOCATION
,
context
,
null
);
// if (location == null) {
// location = LitePal.where("type='LOCATION'").findFirst(CollectInfoEntity.class);
// CollectInfoEntity location = Collector.getStoreEntity(InfoType.LOCATION, context, null);
//
// if (location != null) {
// infos1.add(location);
// }
if
(
location
!=
null
)
{
infos1
.
add
(
location
);
}
return
infos1
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment