Hi! Same issue here, copying a SQLite file from assets to external storage.
Any tip or workaround to fix this?
Thanks in advance :)

El martes, 1 de marzo de 2016, 23:15:36 (UTC+1), Michael G escribió:
>
> This was a problem with chmod'ing external storage files once upzipped. 
> I'm not sure why this would have ever worked even on lower apis though. It 
> doesnt make sense that you can chmod something not in its own private user 
> space, i.e. public external storage. However, the python executables in 
> private space are okay to chmod the files. ( fyi: the chmod technique that 
> damon came up with for this was never google/android official ) 
>
> There does not need to be any modification of privileges on these files 
> once unzipped for the python interpreter to use for imports. 
>
> I fixed this bug by modifying the Utils and ScriptActivity java files. You 
> will no longer get the EPERM errors on install. I forked this project and 
> added the PIE executables too so this you can run python apks on api 5.0 or 
> greater now.  
>
> my repos is here : https://github.com/ainsophical/droid-python
>
> Cheers, 
>
> -Michael
>
> On Saturday, January 23, 2016 at 5:50:18 AM UTC-5, Polyvios Liosis wrote:
>>
>> Hello.
>> I tried to install an apk (from android-python27 project) which unzip and 
>> chmod some files in my storage, but I get the following Error (API 21):
>>
>>     Unzip extracted 
>> /storage/emulated/0/com.android.python27/extras/python/xml/etree/ElementPath.py
>>     01-18 17:08:54.403 20996-21039/com.android.python27 W/FileUtils: 
>> Failed to 
>> chmod(/storage/emulated/0/com.android.python27/extras/python/xml/etree/ElementTree.py):
>>  
>> android.system.ErrnoException: chmod failed: EPERM (Operation not permitted)
>>
>> This is happening for every file in folder extras. As a result I cannot 
>> run the python scripts. When I try to install the apk in my another android 
>> device (API 16) it chmod with success (and I really don't know why). 
>> I tried to change the permission via adb shell but it didn't work
>>
>> So is there a way to solve this matter? 
>> Thanks in advance.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/e010eacf-fe69-498c-a34a-4c13e32c919f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to