Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
abook_check
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
abook_android
abook_check
Commits
e956a479
Commit
e956a479
authored
Sep 05, 2022
by
Kim Jinsung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Task #49686 GooglePlayアプリ削除対応
parent
fcb590d1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
30 deletions
+0
-30
ABVJE_Launcher_Android/AndroidManifest.xml
+0
-5
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/util/SystemServiceUtil.java
+0
-25
No files found.
ABVJE_Launcher_Android/AndroidManifest.xml
View file @
e956a479
...
...
@@ -26,11 +26,6 @@
<uses-permission
android:name=
"android.permission.FOREGROUND_SERVICE"
/>
<uses-permission
android:name=
"android.permission.REQUEST_INSTALL_PACKAGES"
/>
<!-- GCM -->
<uses-permission
android:name=
"android.permission.GET_ACCOUNTS"
/>
<uses-permission
android:name=
"com.google.android.c2dm.permission.RECEIVE"
/>
<uses-permission
android:name=
"${applicationId}.permission.C2D_MESSAGE"
/>
<!-- QRCode -->
<uses-permission
android:name=
"android.permission.CAMERA"
/>
<uses-permission
android:name=
"android.permission.FLASHLIGHT"
/>
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/util/SystemServiceUtil.java
deleted
100644 → 0
View file @
fcb590d1
package
jp
.
agentec
.
abook
.
abv
.
ui
.
common
.
util
;
import
android.accounts.Account
;
import
android.accounts.AccountManager
;
import
android.app.Activity
;
import
android.content.Context
;
public
class
SystemServiceUtil
{
/**
* Deviceに関連付けられているアカウント(Gmailアドレス)を返す
* (最初のものをそれとみなす)
* ※マニフェストにPermissionが必要
*
* @return
*/
public
static
final
String
getPrimaryAccount
(
Activity
activity
)
{
Account
[]
accounts
=
((
AccountManager
)
activity
.
getSystemService
(
Context
.
ACCOUNT_SERVICE
)).
getAccountsByType
(
"com.google"
);
if
(
accounts
.
length
>
0
)
{
return
accounts
[
0
].
name
;
}
return
null
;
}
}
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