Page 1 of 1
Run android apps on Porteus
Posted: 04 Feb 2022, 12:37
by Kulle
Run android apps on linux with shashlik.
Shashlik uses the Android emulator that Google includes in the Android Software Development Kit.
On this page is a guide (in German):
https://www.routech.ro/de/fuhren-sie-an ... shlik-aus/
I downloaded:
wget
http://static.davidedmundson.co.uk/shas ... _0.9.3.deb
And then I created a module using deb2xzm.
But the module doesn't work:
Code: Select all
guest@porteus:~/Downloads$ shashlik-run text-free-free-text-plus-call.apk
bash: shashlik-run: Command not found
Does somebody has any idea?
Thanks
Run android apps on Porteus
Posted: 04 Feb 2022, 12:43
by Kulle
Run android apps on Porteus
Posted: 04 Feb 2022, 15:25
by beny
hi Kulle the shashlik-run is into the shashlik bin directory in /opt try to use a terminal and run an apk,in my system the run do not work is like waydroid no way to use, and the android adb part is maybe too old 2016.
Run android apps on Porteus
Posted: 05 Feb 2022, 08:41
by Kulle
Many Thanks beny,
but error:
/usr/bin/env: "python3": File or directory not found
on me in Porteus 4.0 xfce is present python2.7 in /usr/bin/ ,
but python3 is required
I found several: python3_3.9.8-1_amd64.deb, python3-all_3.6.5-3_amd64.deb, Python-3.9.0a4.tgz, ......
But after activating they appear in /usr/lib64/
Very confusing.
What should I do.
Run android apps on Porteus
Posted: 05 Feb 2022, 17:12
by beny
hi kulle,well after a reboot the run have start to work but not well,yes you need the python3,take a look at the slackware 14.2 if you have the porteus v4,btw i have used an apk of the libreoffice too huge,and when you put the name of your virtual device the window of the software is on screen: you have to try with a small one
Code: Select all
guest@porteus:/opt/shashlik/bin$ '/opt/shashlik/bin/shashlik-run' '/home/guest/Downloads/collabora-office-mobile-6.4-snapshot-arm64-v8a-2022-01-28.apk' momo.app
starting emulator
emulator: WARNING: system partition size adjusted to match image file (750 MB > 200 MB)
emulator: ERROR: Invalid -datadir directory: /home/guest/.local/share/shashlik/system
emulator: WARNING: data partition size adjusted to match image file (750 MB > 200 MB)
setting icon3
WARNING: userdata image already in use, changes will not persist!
Creating filesystem with parameters:
Size: 786432000
Block size: 4096
Blocks per group: 32768
Inodes per group: 8000
Inode size: 256
Journal blocks: 3000
Label:
Blocks: 192000
Block groups: 6
Reserved block group size: 47
Created filesystem with 11/48000 inodes and 6211/192000 blocks
Creating filesystem with parameters:
Size: 69206016
Block size: 4096
Blocks per group: 32768
Inodes per group: 4224
Inode size: 256
Journal blocks: 1024
Label:
Blocks: 16896
Block groups: 1
Reserved block group size: 7
Created filesystem with 11/4224 inodes and 1302/16896 blocks
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib64/python3.9/threading.py", line 973, in _bootstrap_inner
self.run()
File "/usr/lib64/python3.9/threading.py", line 910, in run
self._target(*self._args, **self._kwargs)
File "/opt/shashlik/bin/shashlik-run", line 119, in send_icon
with open(icon_path, "rb") as icon:
FileNotFoundError: [Errno 2] No such file or directory: '/home/guest/.local/share/shashlik//home/guest/Downloads/collabora-office-mobile-6.4-snapshot-arm64-v8a-2022-01-28.apk.png'
ParseResult(scheme='', netloc='', path='/apk_file', params='', query='', fragment='')
Sending APK
127.0.0.1 - - [05/Feb/2022 17:52:10] "GET /apk_file HTTP/1.1" 403 -
ParseResult(scheme='', netloc='', path='/startup', params='', query='', fragment='')
127.0.0.1 - - [05/Feb/2022 17:52:10] "GET /startup HTTP/1.1" 200 -
guest@porteus:/opt/shashlik/bin$
Run android apps on Porteus
Posted: 05 Feb 2022, 19:39
by babam
It looks like this program is for 32bit, try running it on Porteus 32bit.
Code: Select all
guest@porteus:/tmp $ file '/opt/shashlik/bin/aapt'
/opt/shashlik/bin/aapt: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, BuildID[sha1]=bb3d694a8a9533f98ba4d1a3b5e3fb02b8be3bc5, not stripped
guest@porteus:/tmp $ file '/opt/shashlik/bin/adb'
/opt/shashlik/bin/adb: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, BuildID[sha1]=ef63f46b9ca4e04857d2cbdffad9615c8474a744, not stripped