You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+68Lines changed: 68 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -141,6 +141,74 @@ Array
141
141
)
142
142
```
143
143
144
+
### Obtaining app permissions
145
+
Using `$google->parsePerms($packageName)` you can obtain permissions for a given app. As with the structures returned for apps, the keys `success` and `message` are used to indicate the status. For data itself, you'll find a list by permission groups behind the `grouped` key – and "unified permissions" behind the `perms` key. Example output:
146
+
147
+
```
148
+
Array
149
+
(
150
+
[success] => 1
151
+
[grouped] => Array
152
+
(
153
+
[storage] => Array
154
+
(
155
+
[group_name] => Storage
156
+
[perms] => Array
157
+
(
158
+
[0] => Array
159
+
(
160
+
[0] =>
161
+
[1] => modify or delete the contents of your USB storage
162
+
)
163
+
[1] => Array
164
+
(
165
+
[0] =>
166
+
[1] => read the contents of your USB storage
167
+
)
168
+
)
169
+
)
170
+
[perm_media] => Array
171
+
(
172
+
[group_name] => Photos/Media/Files
173
+
[perms] => Array
174
+
(
175
+
[0] => Array
176
+
(
177
+
[0] =>
178
+
[1] => modify or delete the contents of your USB storage
179
+
)
180
+
[1] => Array
181
+
(
182
+
[0] =>
183
+
[1] => read the contents of your USB storage
184
+
)
185
+
)
186
+
)
187
+
[perm_camera_mic] => Array
188
+
(
189
+
[group_name] => Microphone
190
+
[perms] => Array
191
+
(
192
+
[0] => Array
193
+
(
194
+
[0] =>
195
+
[1] => record audio
196
+
)
197
+
)
198
+
)
199
+
)
200
+
[perms] => Array
201
+
(
202
+
[0] => modify or delete the contents of your USB storage
203
+
[1] => read the contents of your USB storage
204
+
[4] => record audio
205
+
)
206
+
)
207
+
```
208
+
209
+
The `grouped` keys are the IDs given to the permission groups by Google. The empty `[0]` key for permissions in the `grouped` tree is as shipped by Google; no idea what it is reserved for until some values show up here.
if ( $proto = @file_get_contents('https://play.google.com/_/PlayStoreUi/data/batchexecute?rpcids=xdSrCf&bl=boq_playuiserver_20201201.06_p0&hl=en&authuser&soc-app=121&soc-platform=1&soc-device=1&rt=c&f.sid=-8792622157958052111&_reqid=257685', false, $context) ) { // raw proto_buf data
0 commit comments