linfox
V2EX  ›  问与答

授权一个 APP 访问相册,是否意味着该 APP 可以上传我相册的所有图片?

  •  
  •   linfox · Oct 26, 2019 · 3427 views
    This topic created in 2442 days ago, the information mentioned may be changed or developed.

    安卓端。

    例如一个图片识别文字的 APP。

    它是只能拿走我需要它识别的 2 张图片,还是说我相册 1000 张图片它都可以拿走?

    8 replies    2019-10-28 12:46:49 +08:00
    ByteRan
        1
    ByteRan  
       Oct 26, 2019   ❤️ 1
    1000 张图片它都可以拿走
    linfox
        2
    linfox  
    OP
       Oct 26, 2019
    这样也太危险了吧。

    一直以为它只能拿走需要它处理的那几张。
    linfox
        3
    linfox  
    OP
       Oct 26, 2019
    假设我截图保存了银行卡卡号密码。
    那我手机上有权限读取相册的那几十家公司,全知道 ?
    terence4444
        4
    terence4444  
       Oct 26, 2019 via iPhone
    iOS 和 Android 都有这样的问题
    delpo
        5
    delpo  
       Oct 26, 2019
    @terence4444 ios 和安卓都有调用系统图片选择器的 api,只是流氓不用罢了
    bagel
        6
    bagel  
       Oct 26, 2019
    val intent = Intent(Intent.ACTION_GET_CONTENT).apply {
    type = "image/*"
    putExtra(Intent.EXTRA_LOCAL_ONLY, true)
    }
    startActivityForResult(intent, 1)

    我写的 app 里是这样让用户选择图片的,不需要任何权限,app 只能获得用户选择的图片的 URI。
    mouyase
        7
    mouyase  
       Oct 28, 2019 via Android
    @bagel miui 崩溃不?
    bagel
        8
    bagel  
       Oct 28, 2019
    @mouyase 没发现
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2832 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 57ms · UTC 11:47 · PVG 19:47 · LAX 04:47 · JFK 07:47
    ♥ Do have faith in what you're doing.