android update

pull/1/head
DiMartinoXBMC 2015-07-26 12:59:08 +03:00
parent bd8df8776a
commit 43b72172f7
2 changed files with 22 additions and 28 deletions

View File

@ -65,12 +65,6 @@ try:
log('CDLL = ' + str(liblibtorrent)) log('CDLL = ' + str(liblibtorrent))
import libtorrent import libtorrent
elif platform['system'] in ['android_armv7', 'android_x86']: elif platform['system'] in ['android_armv7', 'android_x86']:
try:
import libtorrent
log('Imported libtorrent v' + libtorrent.version + ' from system')
except Exception, e:
log('Error importing libtorrent from system. Exception: ' + str(e))
import imp import imp
from ctypes import CDLL from ctypes import CDLL
try: try:

View File

@ -76,7 +76,7 @@ class LibraryManager():
return True return True
def android_workaround(self): def android_workaround(self):
new_dest_path=os.path.join(xbmc.translatePath('special://xbmc'), self.platform['system']) new_dest_path='/data/data/org.xbmc.kodi/lib/'
for libname in get_libname(self.platform): for libname in get_libname(self.platform):
libpath=os.path.join(self.dest_path, libname) libpath=os.path.join(self.dest_path, libname)
size=str(os.path.getsize(libpath)) size=str(os.path.getsize(libpath))