jakev / pyxamstore Goto Github PK
View Code? Open in Web Editor NEWPython utility for parsing Xamarin AssemblyStore blob files
Python utility for parsing Xamarin AssemblyStore blob files
hello I am on a m1 macbook pro and running MacOS Sonoma and I tried to install this app but I keep failing:
I tried creating a virtual env but I get the same error trying to instal it with the --user extra command param:
(venv3.9) myuser@mbp-m1 pyxamstore % python setup.py install
running install
running bdist_egg
running egg_info
writing pyxamstore.egg-info/PKG-INFO
writing dependency_links to pyxamstore.egg-info/dependency_links.txt
writing entry points to pyxamstore.egg-info/entry_points.txt
writing requirements to pyxamstore.egg-info/requires.txt
writing top-level names to pyxamstore.egg-info/top_level.txt
reading manifest file 'pyxamstore.egg-info/SOURCES.txt'
writing manifest file 'pyxamstore.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-10.9-universal2/egg
running install_lib
running build_py
creating build/bdist.macosx-10.9-universal2/egg
creating build/bdist.macosx-10.9-universal2/egg/pyxamstore
copying build/lib/pyxamstore/constants.py -> build/bdist.macosx-10.9-universal2/egg/pyxamstore
copying build/lib/pyxamstore/__init__.py -> build/bdist.macosx-10.9-universal2/egg/pyxamstore
copying build/lib/pyxamstore/explorer.py -> build/bdist.macosx-10.9-universal2/egg/pyxamstore
creating build/bdist.macosx-10.9-universal2/egg/EGG-INFO
copying pyxamstore.egg-info/PKG-INFO -> build/bdist.macosx-10.9-universal2/egg/EGG-INFO
copying pyxamstore.egg-info/SOURCES.txt -> build/bdist.macosx-10.9-universal2/egg/EGG-INFO
copying pyxamstore.egg-info/dependency_links.txt -> build/bdist.macosx-10.9-universal2/egg/EGG-INFO
copying pyxamstore.egg-info/entry_points.txt -> build/bdist.macosx-10.9-universal2/egg/EGG-INFO
copying pyxamstore.egg-info/requires.txt -> build/bdist.macosx-10.9-universal2/egg/EGG-INFO
copying pyxamstore.egg-info/top_level.txt -> build/bdist.macosx-10.9-universal2/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating 'dist/pyxamstore-1.0.0-py3.9.egg' and adding 'build/bdist.macosx-10.9-universal2/egg' to it
removing 'build/bdist.macosx-10.9-universal2/egg' (and everything under it)
Processing pyxamstore-1.0.0-py3.9.egg
Removing /Users/myuser/Tools/pyxamstore/venv3.9/lib/python3.9/site-packages/pyxamstore-1.0.0-py3.9.egg
Copying pyxamstore-1.0.0-py3.9.egg to /Users/myuser/Tools/pyxamstore/venv3.9/lib/python3.9/site-packages
pyxamstore 1.0.0 is already the active version in easy-install.pth
Installing pyxamstore script to /Users/myuser/Tools/pyxamstore/venv3.9/bin
Installed /Users/myuser/Tools/pyxamstore/venv3.9/lib/python3.9/site-packages/pyxamstore-1.0.0-py3.9.egg
Processing dependencies for pyxamstore==1.0.0
Searching for xxhash==3.2.0
Reading https://pypi.org/simple/xxhash/
Downloading https://files.pythonhosted.org/packages/24/90/666a4d4d96a93ddaaaa0142ef8c1bd20f7135a7f1114a894f4d6efac16c5/xxhash-3.2.0.tar.gz#sha256=1afd47af8955c5db730f630ad53ae798cf7fae0acb64cebb3cf94d35c47dd088
Best match: xxhash 3.2.0
Processing xxhash-3.2.0.tar.gz
Writing /var/folders/41/ffcfs6zj3s1_9g1tfvq3vq2m0000gn/T/easy_install-ghlkusgn/xxhash-3.2.0/setup.cfg
Running xxhash-3.2.0/setup.py -q bdist_egg --dist-dir /var/folders/41/ffcfs6zj3s1_9g1tfvq3vq2m0000gn/T/easy_install-ghlkusgn/xxhash-3.2.0/egg-dist-tmp-obe0e1mr
warning: no previously-included files matching '__pycache__' found anywhere in distribution
warning: no previously-included files matching '*.py[co]' found anywhere in distribution
no previously-included directories found matching '.github'
warning: no previously-included files found matching '.gitignore'
warning: no previously-included files found matching '.gitmodules'
error: Setup script exited with error: SandboxViolation: mkdir('/Users/myuser/Library/Caches/com.apple.python/private', 511) {}
The package setup script has attempted to modify files on your system
that are not within the EasyInstall build area, and has been aborted.
This package cannot be safely installed by EasyInstall, and may not
support alternate installation locations even if you run its setup
script by hand. Please inform the package's author and the EasyInstall
maintainers to find out if a fix or workaround is available.
any help appreciated, thx
I've installed the requitment for pyxamstore, and it's installed successfully in python.
but when i call tool. always appears failed to create process.
Hello, thanks for the awesome tool, helps a lot. I'm interested in converting it back to LZ4 and repacking the modified dll into assemblies.blob
Can you please add this feature?
An interesting read here:
https://stackoverflow.com/questions/72689284/compress-xamarin-android-apk-assemblies
I am trying to reverse engineering my Xamarin Forms project built APK,
I followed the below initial installing script in my Windows machine
python setup.py install
C:\Users\syed\reverse engg\pyxamstore-master\pyxamstore-master>python setup.py install
Traceback (most recent call last):
File "setup.py", line 4, in <module>
from setuptools import setup
ImportError: No module named setuptools
even I tried with my MAC machine which I have python 3.12.0
installed
syed@MY-MAC pyxamstore-master % python3 setup.py install
Traceback (most recent call last):
File "/Users/syed/Documents/reverse engineer/pyxamstore-master/setup.py", line 4, in <module>
from setuptools import setup
ModuleNotFoundError: No module named 'setuptools'
Trying to unpack an assembly on Ubuntu 22.04 with Python3 gives me the following error:
Traceback (most recent call last):
File "/usr/local/bin/pyxamstore", line 33, in
sys.exit(load_entry_point('pyxamstore==1.0.0', 'console_scripts', 'pyxamstore')())
File "/usr/local/bin/pyxamstore", line 22, in importlib_load_entry_point
for entry_point in distribution(dist_name).entry_points
File "/usr/lib/python3.10/importlib/metadata/init.py", line 957, in distribution
return Distribution.from_name(distribution_name)
File "/usr/lib/python3.10/importlib/metadata/init.py", line 548, in from_name
raise PackageNotFoundError(name)
importlib.metadata.PackageNotFoundError: No package metadata was found for pyxamstore
Unfortunaly this a private apk, so I can not share it.
Any ideas on where I should start to look?
Thanks.
Script crashed when extracted file has subdir in path.
Im solved this by adding makedirs command:
print("Extracting %s..." % entry.name)
os.makedirs(os.path.dirname(out_file), exist_ok=True)
wfile = open(out_file, "wb")
Don't tried repack feature )
i follow the step to update my app(one of it's dll,i lost the file),but the app crash when i click the app,is there some possibly reason for my problem?
First off, thanks for the great tool.
Second, would it be possible to uncompress, edit, and compress a single Xamarin dll with this? And if not, what would be needed to do so? I have an apk I need to do some minor edits to, but the apk contains no .blob -- I think it was generated just before that change was made to Xamarin. All I need to do is edit a few strings, but so far I haven't been able to figure out how to compress the relevant dll after I've uncompressed it and made my edits, so I'm hoping this tool can get me over that finish line, with or without a modification. I've tried modding it myself but I think I'm missing a key bit of info.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.