Re: pilbox file sharing

2021-01-21 Thread Shaughan Lavine
Nope. 👿 Thanks fo trying!

Sent from ProtonMail mobile

 Original Message 
On Jan 21, 2021, 12:15 AM, Alexander Burger wrote:

> On Wed, Jan 20, 2021 at 07:28:18AM +0100, Alexander Burger wrote:
>> Strange. So for a first fix, I will set the requestLegacyExternalStorage 
>> flag in
>> AndroidManifest.xml, as suggested by Wilhelm, and releaes a new PilBox.
>
> Done. PilBox 20210121 is now in Play Store.
>
> Can you check if this solves the problem for now?
>
> ☺/ A!ex
>
> --
> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: pilbox file sharing

2021-01-21 Thread Alexander Burger
On Wed, Jan 20, 2021 at 07:28:18AM +0100, Alexander Burger wrote:
> Strange. So for a first fix, I will set the requestLegacyExternalStorage flag 
> in
> AndroidManifest.xml, as suggested by Wilhelm, and releaes a new PilBox.

Done. PilBox 20210121 is now in Play Store.

Can you check if this solves the problem for now?

☺/ A!ex

-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe



Re: pilbox file sharing

2021-01-19 Thread Alexander Burger
Hi Shaughan,

> Yes, I set the storage permission. This is odd, since it works for you. Termux
> still works for me, but not pilbox. I'm using a Samsung Galaxy Tab S5e. 
> Samsung
> always locks everything down—maybe that's it.

Strange. So for a first fix, I will set the requestLegacyExternalStorage flag in
AndroidManifest.xml, as suggested by Wilhelm, and releaes a new PilBox.

In the long range, we must find out how to support Scoped Storage. I have the
same problem in PentiKeyboard btw.

☺/ A!ex


-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: pilbox file sharing

2021-01-19 Thread Shaughan Lavine
Yes, I set the storage permission. This is odd, since it works for you. Termux 
still works for me, but not pilbox. I'm using a Samsung Galaxy Tab S5e. Samsung 
always locks everything down—maybe that's it.

Sent from ProtonMail mobile

 Original Message 
On Jan 18, 2021, 11:21 PM, Alexander Burger wrote:

> Hi Shaughan, Wilhelm,
>
> Hi On Tue, Jan 19, 2021 at 03:49:45AM +, Shaughan Lavine wrote:
>> Yes: Android 10 vs 9. So, how do I get files out of pilbox on Android 10?
>
> Hmm, I do have Android 10 here, and I can access files on external storage 
> with
> PilBox Version 20201231 without problems. (Perhaps a stupid question, but you
> did enable the permission in Settings/Apps/PilBox, right?)
>
> On Mon, Jan 18, 2021 at 08:22:13PM -0800, Wilhelm Fitzpatrick wrote:
>> If you are using the Play Store version, that
>> we might have to lobby Alex to make an update
>> that sets this flag, which he should be able
>
> This would not be a problem.
>
>> to do as long as he has not already set the
>> the target API version of the published app to
>> 30. If a version with target API 30 has
>> already been published then we are past the
>> point of no return.
>
> In the long range, I will not be able te avoid API 30. I cannot bring my
> customers to install from F-Droid, sadly.
>
>> To cooperate with the storage access framework
>> past API 29 is very tricky. Termux recently
>> abandoned their Play Store distributed version
>
> I have not looked at the Scoped Storage API yet. Is it really a problem? The
> PilBox core runtime does not depend on external storage, so the API should be
> accessible from Lisp (with perhaps a slight modification of
> AndroidManifest.xml), no?
>
> ☺/ A!ex
>
> --
> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: pilbox file sharing

2021-01-19 Thread Wilhelm Fitzpatrick

On 1/18/21 11:21 PM, Alexander Burger wrote:


I have not looked at the Scoped Storage API yet. Is it really a problem? The
PilBox core runtime does not depend on external storage, so the API should be
accessible from Lisp (with perhaps a slight modification of
AndroidManifest.xml), no?

☺/ A!ex


I confess I've not dug into it myself either, as I've not had the need 
to do external file access in any of my apps. As you say, since Pilbox 
allows calls to be made to the Android framework, it should be possible 
to cobble something together. The general approach as I understand it is 
that the app makes a request that causes a system UI to appear that 
allows the user to select a file to operate on, or (I believe) a 
directory tree. There is definitely some approach that the various file 
manager apps are using to adapt to this new world.


What I'm not clear on myself is if this is a permission grant that then 
allows normal file IO operations to be done, or if the access has to 
take place through a new API path.


-wilhelm


--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe



Re: pilbox file sharing

2021-01-18 Thread Alexander Burger
Hi Shaughan, Wilhelm,

Hi On Tue, Jan 19, 2021 at 03:49:45AM +, Shaughan Lavine wrote:
> Yes: Android 10 vs 9. So, how do I get files out of pilbox on Android 10?

Hmm, I do have Android 10 here, and I can access files on external storage with
PilBox Version 20201231 without problems. (Perhaps a stupid question, but you
did enable the permission in Settings/Apps/PilBox, right?)


On Mon, Jan 18, 2021 at 08:22:13PM -0800, Wilhelm Fitzpatrick wrote:
> If you are using the Play Store version, that
> we might have to lobby Alex to make an update
> that sets this flag, which he should be able

This would not be a problem.

> to do as long as he has not already set the
> the target API version of the published app to
> 30. If a version with target API 30 has
> already been published then we are past the
> point of no return.

In the long range, I will not be able te avoid API 30. I cannot bring my
customers to install from F-Droid, sadly.


> To cooperate with the storage access framework
> past API 29 is very tricky. Termux recently
> abandoned their Play Store distributed version

I have not looked at the Scoped Storage API yet. Is it really a problem? The
PilBox core runtime does not depend on external storage, so the API should be
accessible from Lisp (with perhaps a slight modification of
AndroidManifest.xml), no?

☺/ A!ex

-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: pilbox file sharing

2021-01-18 Thread Wilhelm Fitzpatrick
If you are building your own pilboxes, it seems like the easiest way for 
now would be to add the requestLegacyExternalStorage flag to the app 
manifest, or bump the target API version down to 28:


https://developer.android.com/training/data-storage/use-cases#opt-out-scoped-storage

If you are using the Play Store version, that we might have to lobby 
Alex to make an update that sets this flag, which he should be able to 
do as long as he has not already set the the target API version of the 
published app to 30. If a version with target API 30 has already been 
published then we are past the point of no return.


To cooperate with the storage access framework past API 29 is very 
tricky. Termux recently abandoned their Play Store distributed version 
and is only distributing through F-Droid in the future for just this 
reason (so they can continue targeting an older API version that does 
not yet enforce these restrictions). Pilbox may need to consider such a 
course for the future, if Alex isn't already doing it.


-wilhelm

On 1/18/21 7:49 PM, Shaughan Lavine wrote:

Wilhelm–
Yes: Android 10 vs 9. So, how do I get files out of pilbox on Android 10?
Thanks!
Shaughan
Sent from ProtonMail mobile



 Original Message 
On Jan 18, 2021, 7:32 PM, Wilhelm Fitzpatrick < raf...@well.com> wrote:


Is the one having issues a newer version of Android perhaps
(Android 10
or 11?)

Android has been locking thing down to require use of the Storage
Access
Framework in the most recent version of the OS, I believe.

-wilhelm

On 1/18/21 12:47 PM, Shaughan Lavine wrote:
> I have two Android devices running pilbox 20201231. On one,
access to
> /storage/emulated/0 works perfectly, but on the other, any
attempt to
> access /storage/emulated/0 (ls, mkdir cat, …) yields "permission
> denied." Storage permission has been granted. Any ideas?
> Thanks,
> Shaughan
>
>
> Sent from ProtonMail mobile
>
>

--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe



Re: pilbox file sharing

2021-01-18 Thread Shaughan Lavine
Wilhelm–
Yes: Android 10 vs 9. So, how do I get files out of pilbox on Android 10?
Thanks!
Shaughan
Sent from ProtonMail mobile

 Original Message 
On Jan 18, 2021, 7:32 PM, Wilhelm Fitzpatrick wrote:

> Is the one having issues a newer version of Android perhaps (Android 10
> or 11?)
>
> Android has been locking thing down to require use of the Storage Access
> Framework in the most recent version of the OS, I believe.
>
> -wilhelm
>
> On 1/18/21 12:47 PM, Shaughan Lavine wrote:
>> I have two Android devices running pilbox 20201231. On one, access to
>> /storage/emulated/0 works perfectly, but on the other, any attempt to
>> access /storage/emulated/0 (ls, mkdir cat, …) yields "permission
>> denied." Storage permission has been granted. Any ideas?
>> Thanks,
>> Shaughan
>>
>>
>> Sent from ProtonMail mobile
>>
>>
>
> --
> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: pilbox file sharing

2021-01-18 Thread Wilhelm Fitzpatrick
Is the one having issues a newer version of Android perhaps (Android 10 
or 11?)


Android has been locking thing down to require use of the Storage Access 
Framework in the most recent version of the OS, I believe.


-wilhelm

On 1/18/21 12:47 PM, Shaughan Lavine wrote:
I have two Android devices running pilbox 20201231. On one, access to 
/storage/emulated/0 works perfectly, but on the other, any attempt to 
access /storage/emulated/0 (ls, mkdir cat, …) yields "permission 
denied." Storage permission has been granted. Any ideas?

Thanks,
Shaughan


Sent from ProtonMail mobile




--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


pilbox file sharing

2021-01-18 Thread Shaughan Lavine
I have two Android devices running pilbox 20201231. On one, access to 
/storage/emulated/0 works perfectly, but on the other, any attempt to access 
/storage/emulated/0 (ls, mkdir cat, …) yields "permission denied." Storage 
permission has been granted. Any ideas?
Thanks,
Shaughan

Sent from ProtonMail mobile