kawasaki2013 / android-python27

Automatically exported from code.google.com/p/android-python27
0 stars 0 forks source link

android-python27 - Permission issues after bundling Python 3 into my app #25

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Import python27 into Eclipse
2. Make adjustments to source for Python 3 (see changes.txt)
3. Clean/Build/Run

What is the expected output? What do you see instead?

The title bar appears for a couple of seconds then disappears. The GUI itself 
does not appear at all. Logcat shows no errors besides one that appears with 
all builds and has no ill-effect:

"E/PhonePolicy(19924): Could not preload class for phone policy: 
com.android.internal.policy.impl.PhoneWindow$ContextMenuCallback"

What version of the product are you using? On what operating system?

Version: 3.2.2
OS: Windows 7 Home 64-bit

Please provide any additional information below.

Manually ran app within the data folder using DroidEdit and found permission 
issues when accessing the xml files stored in 
"data/data/com.android.python32/files/layout/layout.xml". Manually changed 
permissions and the app ran perfectly. App still fails when run from the apk 
installation.

I've attached a copy of the most recent Logcat log along with a list of changes 
that were made to the source to implement Python 3. Please note that I am 
currently creating a little app to convert between the builds and I would be 
happy to share if I can get this issue sorted out. So far switching between 2.6 
& 2.7 is working and I will get a gui slapped on once I have 3.2 working as 
well.

*UPDATE* Used your suggestion from 
https://groups.google.com/forum/?fromgroups=#!topic/python-for-android/S0RGtH7Uz
9A and that appears to solve the permission issue but the application itself 
still fails to boot. Tested with the hello app as well, same result. *UPDATE*

Original issue reported on code.google.com by AWa...@gmail.com on 12 Apr 2013 at 3:02

Attachments:

GoogleCodeExporter commented 9 years ago
I got it working, there is a problem with how the python3_extras_32.zip is 
build, to fix the zip, extract it with 7zip and rezip it, this should work then.

Original comment by anthony....@gmail.com on 12 Apr 2013 at 4:29

GoogleCodeExporter commented 9 years ago
Added template for Python 3.2, see: 
http://code.google.com/p/android-python27/source/browse/#hg%2Fapk_python32

Original comment by anthony....@gmail.com on 12 Apr 2013 at 5:29

GoogleCodeExporter commented 9 years ago
Thanks for the prompt response, and result, I will check it out once I get 
home. :) Out of curiosity, did any of my modifications need tweaking or were 
the changes spot on? If the changes were fine then for now I will follow the 
7zip instructions only, otherwise I'll grab the whole template and take a look 
see.

cheers!

Original comment by AWa...@gmail.com on 12 Apr 2013 at 6:38

GoogleCodeExporter commented 9 years ago
I did not check your modifs, but should be working if same stuff was working 
for Python 2.6.

Original comment by anthony....@gmail.com on 12 Apr 2013 at 6:41