all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Making default permissions on Android more restrictive
@ 2023-09-13 12:07 Stefan Kangas
  2023-09-13 12:34 ` Po Lu
  2023-09-14  7:21 ` Jean Louis
  0 siblings, 2 replies; 10+ messages in thread
From: Stefan Kangas @ 2023-09-13 12:07 UTC (permalink / raw)
  To: emacs-devel; +Cc: Po Lu, Eli Zaretskii

[I couldn't find any previous discussion about this.]

1.

a) I don't see why Emacs should be asking for these permissions on
   Android 5.1 and earlier:

    RECORD_AUDIO
    CAMERA
    ACCESS_COARSE_LOCATION

b) These permissions also make me rather uneasy:

    REQUEST_INSTALL_PACKAGES
    REQUEST_DELETE_PACKAGES

c) Finally, these seem rather dubious to me:

    READ_SMS
    RECEIVE_SMS
    SEND_SMS
    WRITE_SMS
    RECEIVE_MMS
    READ_CONTACTS
    WRITE_CONTACTS

Are there any technical reasons why we need the above permissions?  If
not, can we remove them, at least the ones in category (a) and (b)?

2.

The justification for asking for the above permissions in (info "(emacs)
Android Environment") is:

    While most of these permissions are left unused by Emacs itself,
    they are declared by Emacs as they could be useful for other
    programs; for example, the permission to access contacts may be
    useful for EUDC.

I think this criteria should be changed.  Instead of saying "one can
imagine something like EUDC to be using this", we should decide which
permissions to ask for based on criteria like "package <foo> supports
feature <bar> on Android, and it is highly useful".

3.

I don't understand why we ask for the following permissions, AFAIU on
all versions of Android:

    NFC
    TRANSMIT_IR

Are there any technical reasons to ask for them?  If not, could they be
removed as well?



^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: Making default permissions on Android more restrictive
@ 2023-09-15 17:40 Ant
  2023-09-16  0:53 ` Po Lu
  0 siblings, 1 reply; 10+ messages in thread
From: Ant @ 2023-09-15 17:40 UTC (permalink / raw)
  To: luangruo; +Cc: emacs-devel

 > I think that is too high a bar, given that Emacs must be recompiled
 > before it is capable of requesting permissions outside the set of
 > permissions enumerated within its manifest.  Which is to say, unless we
 > declare these permissions from the outset, such packages will _never_
 > have a fighting chance of supporting Android.

Is any of these permissions already usable without modifying the Emacs 
C/Java core?





^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2023-09-16  0:53 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-13 12:07 Making default permissions on Android more restrictive Stefan Kangas
2023-09-13 12:34 ` Po Lu
2023-09-13 13:29   ` Stefan Kangas
2023-09-13 13:35     ` Po Lu
2023-09-13 13:31   ` Stefan Kangas
2023-09-13 13:36     ` Po Lu
2023-09-13 13:52       ` Stefan Kangas
2023-09-14  7:21 ` Jean Louis
  -- strict thread matches above, loose matches on Subject: below --
2023-09-15 17:40 Ant
2023-09-16  0:53 ` Po Lu

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.