Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GoogleCodeExporter opened this issue Apr 5, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant