Why do I get an MobSF Error during setup? - android
installing (run.bat) MobSF I have this error during installation on a Win10. I have c++ insalled. Do you have any idea why this breaks?
run.bat of MobSF
Thanks.
I have tried running "clean.bat", installing C++ and insstalling SDK
Microsoft Windows [Versión 10.0.19044.2604]
(c) Microsoft Corporation. Todos los derechos reservados.
C:\Users\DAS>cd C:\Users\DAS\Desktop\K\Pentesting Android\Mobile-Security-Framework-MobSF
C:\Users\DAS\Desktop\K\Pentesting Android\Mobile-Security-Framework-MobSF>./setup.bat
"." no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.
C:\Users\DAS\Desktop\K\Pentesting Android\Mobile-Security-Framework-MobSF>setup.bat
[INSTALL] Checking for Python version 3.8+
[INSTALL] Found Python 3.10.4
[INSTALL] Found pip
Requirement already satisfied: pip in c:\users\das\appdata\local\programs\python\python310\lib\site-packages (23.0.1)
[INSTALL] Found OpenSSL executable
[INSTALL] Found Visual Studio Build Tools
[INSTALL] Creating venv
Requirement already satisfied: pip in c:\users\das\desktop\k\pentesting android\mobile-security-framework-mobsf\venv\lib\site-packages (22.0.4)
Collecting pip
Using cached pip-23.0.1-py3-none-any.whl (2.1 MB)
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 22.0.4
Uninstalling pip-22.0.4:
Successfully uninstalled pip-22.0.4
Successfully installed pip-23.0.1
[INSTALL] Installing Requirements
Collecting wheel
Downloading wheel-0.38.4-py3-none-any.whl (36 kB)
Installing collected packages: wheel
Successfully installed wheel-0.38.4
Ignoring gunicorn: markers 'platform_system != "Windows"' don't match your environment
Collecting Django>=3.1.5
Downloading Django-4.1.7-py3-none-any.whl (8.1 MB)
---------------------------------------- 8.1/8.1 MB 12.0 MB/s eta 0:00:00
Collecting lxml>=4.6.2
Downloading lxml-4.9.2-cp310-cp310-win_amd64.whl (3.8 MB)
---------------------------------------- 3.8/3.8 MB 12.7 MB/s eta 0:00:00
Collecting rsa>=4.7
Downloading rsa-4.9-py3-none-any.whl (34 kB)
Collecting biplist>=1.0.3
Downloading biplist-1.0.3.tar.gz (21 kB)
Preparing metadata (setup.py) ... done
Collecting requests>=2.25.1
Downloading requests-2.28.2-py3-none-any.whl (62 kB)
---------------------------------------- 62.8/62.8 kB ? eta 0:00:00
Collecting bs4>=0.0.1
Downloading bs4-0.0.1.tar.gz (1.1 kB)
Preparing metadata (setup.py) ... done
Collecting colorlog>=4.7.2
Downloading colorlog-6.7.0-py2.py3-none-any.whl (11 kB)
Collecting macholib>=1.14
Downloading macholib-1.16.2-py2.py3-none-any.whl (38 kB)
Collecting whitenoise>=5.2.0
Downloading whitenoise-6.3.0-py3-none-any.whl (19 kB)
Collecting waitress>=1.4.4
Downloading waitress-2.1.2-py3-none-any.whl (57 kB)
---------------------------------------- 57.7/57.7 kB ? eta 0:00:00
Collecting psutil>=5.8.0
Downloading psutil-5.9.4-cp36-abi3-win_amd64.whl (252 kB)
---------------------------------------- 252.5/252.5 kB 15.1 MB/s eta 0:00:00
Collecting shelljob>=0.6.2
Downloading shelljob-0.6.3-py3-none-any.whl (9.9 kB)
Collecting asn1crypto>=1.4.0
Downloading asn1crypto-1.5.1-py2.py3-none-any.whl (105 kB)
---------------------------------------- 105.0/105.0 kB ? eta 0:00:00
Collecting oscrypto>=1.2.1
Downloading oscrypto-1.3.0-py2.py3-none-any.whl (194 kB)
---------------------------------------- 194.6/194.6 kB 11.5 MB/s eta 0:00:00
Collecting distro>=1.5.0
Downloading distro-1.8.0-py3-none-any.whl (20 kB)
Collecting IP2Location==8.9.0
Downloading IP2Location-8.9.0-py3-none-any.whl (16 kB)
Collecting lief>=0.12.1
Downloading lief-0.12.3-cp310-cp310-win_amd64.whl (4.9 MB)
---------------------------------------- 4.9/4.9 MB 12.9 MB/s eta 0:00:00
Collecting http-tools>=2.1.0
Downloading http-tools-2.1.1.tar.gz (550 kB)
---------------------------------------- 550.3/550.3 kB 17.4 MB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Collecting libsast>=1.5.1
Downloading libsast-1.5.2.tar.gz (36 kB)
Preparing metadata (setup.py) ... done
Collecting pdfkit>=0.6.1
Downloading pdfkit-1.0.0-py3-none-any.whl (12 kB)
Collecting google-play-scraper>=0.1.2
Downloading google_play_scraper-1.2.3-py3-none-any.whl (28 kB)
Collecting androguard==3.4.0a1
Downloading androguard-3.4.0a1-py3-none-any.whl (918 kB)
---------------------------------------- 918.1/918.1 kB 14.6 MB/s eta 0:00:00
Collecting apkid==2.1.4
Downloading apkid-2.1.4-py2.py3-none-any.whl (116 kB)
---------------------------------------- 116.6/116.6 kB ? eta 0:00:00
Collecting quark-engine==22.10.1
Downloading quark_engine-22.10.1-py3-none-any.whl (97 kB)
---------------------------------------- 97.6/97.6 kB ? eta 0:00:00
Collecting frida==15.2.2
Downloading frida-15.2.2.tar.gz (11 kB)
Preparing metadata (setup.py) ... done
Collecting tldextract==3.4.0
Downloading tldextract-3.4.0-py3-none-any.whl (93 kB)
---------------------------------------- 93.9/93.9 kB 5.2 MB/s eta 0:00:00
Collecting openstep-parser==1.5.4
Downloading openstep_parser-1.5.4-py3-none-any.whl (4.5 kB)
Collecting svgutils==0.3.4
Downloading svgutils-0.3.4-py3-none-any.whl (10 kB)
Collecting ruamel.yaml==0.16.13
Downloading ruamel.yaml-0.16.13-py2.py3-none-any.whl (111 kB)
---------------------------------------- 111.9/111.9 kB ? eta 0:00:00
Collecting click==8.0.1
Downloading click-8.0.1-py3-none-any.whl (97 kB)
---------------------------------------- 97.4/97.4 kB ? eta 0:00:00
Collecting decorator==4.4.2
Downloading decorator-4.4.2-py2.py3-none-any.whl (9.2 kB)
Collecting asgiref<4,>=3.5.2
Downloading asgiref-3.6.0-py3-none-any.whl (23 kB)
Collecting tzdata; sys_platform == "win32"
Downloading tzdata-2022.7-py2.py3-none-any.whl (340 kB)
---------------------------------------- 340.1/340.1 kB 10.6 MB/s eta 0:00:00
Collecting sqlparse>=0.2.2
Downloading sqlparse-0.4.3-py3-none-any.whl (42 kB)
---------------------------------------- 42.8/42.8 kB ? eta 0:00:00
Collecting pyasn1>=0.1.3
Downloading pyasn1-0.4.8-py2.py3-none-any.whl (77 kB)
---------------------------------------- 77.1/77.1 kB ? eta 0:00:00
Collecting urllib3<1.27,>=1.21.1
Downloading urllib3-1.26.14-py2.py3-none-any.whl (140 kB)
---------------------------------------- 140.6/140.6 kB ? eta 0:00:00
Collecting charset-normalizer<4,>=2
Downloading charset_normalizer-3.0.1-cp310-cp310-win_amd64.whl (96 kB)
---------------------------------------- 96.5/96.5 kB 5.7 MB/s eta 0:00:00
Collecting certifi>=2017.4.17
Downloading certifi-2022.12.7-py3-none-any.whl (155 kB)
---------------------------------------- 155.3/155.3 kB 9.7 MB/s eta 0:00:00
Collecting idna<4,>=2.5
Downloading idna-3.4-py3-none-any.whl (61 kB)
---------------------------------------- 61.5/61.5 kB ? eta 0:00:00
Collecting beautifulsoup4
Downloading beautifulsoup4-4.11.2-py3-none-any.whl (129 kB)
---------------------------------------- 129.4/129.4 kB ? eta 0:00:00
Collecting colorama; sys_platform == "win32"
Downloading colorama-0.4.6-py2.py3-none-any.whl (25 kB)
Collecting altgraph>=0.17
Downloading altgraph-0.17.3-py2.py3-none-any.whl (21 kB)
Collecting mitmproxy==6.0.2
Downloading mitmproxy-6.0.2-py3-none-any.whl (1.1 MB)
---------------------------------------- 1.1/1.1 MB 14.3 MB/s eta 0:00:00
Collecting markupsafe==2.0.1
Downloading MarkupSafe-2.0.1-cp310-cp310-win_amd64.whl (15 kB)
Collecting pyyaml>=6.0
Downloading PyYAML-6.0-cp310-cp310-win_amd64.whl (151 kB)
---------------------------------------- 151.7/151.7 kB 8.8 MB/s eta 0:00:00
Collecting networkx>=2.2
Downloading networkx-3.0-py3-none-any.whl (2.0 MB)
---------------------------------------- 2.0/2.0 MB 13.0 MB/s eta 0:00:00
Collecting matplotlib>=3.0.2
Downloading matplotlib-3.7.0-cp310-cp310-win_amd64.whl (7.6 MB)
---------------------------------------- 7.6/7.6 MB 12.5 MB/s eta 0:00:00
Collecting pygments>=2.3.1
Downloading Pygments-2.14.0-py3-none-any.whl (1.1 MB)
---------------------------------------- 1.1/1.1 MB 11.8 MB/s eta 0:00:00
Collecting pydot>=1.4.1
Downloading pydot-1.4.2-py2.py3-none-any.whl (21 kB)
Collecting ipython>=5.0.0
Downloading ipython-8.10.0-py3-none-any.whl (784 kB)
---------------------------------------- 784.3/784.3 kB 12.5 MB/s eta 0:00:00
Collecting yara-python-dex>=1.0.1
Downloading yara_python_dex-1.0.4-cp310-cp310-win_amd64.whl (130 kB)
---------------------------------------- 130.2/130.2 kB ? eta 0:00:00
Collecting kaleido
Downloading kaleido-0.2.1-py2.py3-none-win_amd64.whl (65.9 MB)
---------------------------------------- 65.9/65.9 MB 12.6 MB/s eta 0:00:00
Collecting prettytable>=1.0.0
Downloading prettytable-3.6.0-py3-none-any.whl (27 kB)
Collecting tqdm
Downloading tqdm-4.64.1-py2.py3-none-any.whl (78 kB)
---------------------------------------- 78.5/78.5 kB ? eta 0:00:00
Collecting plotly
Downloading plotly-5.13.0-py2.py3-none-any.whl (15.2 MB)
---------------------------------------- 15.2/15.2 MB 12.8 MB/s eta 0:00:00
Collecting prompt-toolkit==3.0.19
Downloading prompt_toolkit-3.0.19-py3-none-any.whl (368 kB)
---------------------------------------- 368.4/368.4 kB 23.9 MB/s eta 0:00:00
Collecting pandas
Downloading pandas-1.5.3-cp310-cp310-win_amd64.whl (10.4 MB)
---------------------------------------- 10.4/10.4 MB 12.6 MB/s eta 0:00:00
Collecting rzpipe
Downloading rzpipe-0.4.0-py3-none-any.whl (11 kB)
Collecting graphviz
Downloading graphviz-0.20.1-py3-none-any.whl (47 kB)
---------------------------------------- 47.0/47.0 kB ? eta 0:00:00
Requirement already satisfied: setuptools in c:\users\das\desktop\k\pentesting android\mobile-security-framework-mobsf\venv\lib\site-packages (from frida==15.2.2->-r requirements.txt (line 26)) (58.1.0)
Collecting requests-file>=1.4
Downloading requests_file-1.5.1-py2.py3-none-any.whl (3.7 kB)
Collecting filelock>=3.0.8
Downloading filelock-3.9.0-py3-none-any.whl (9.7 kB)
Collecting soupsieve>1.2
Downloading soupsieve-2.4-py3-none-any.whl (37 kB)
Collecting tornado<7,>=4.3
Downloading tornado-6.2-cp37-abi3-win_amd64.whl (425 kB)
---------------------------------------- 425.3/425.3 kB 13.4 MB/s eta 0:00:00
Collecting pyparsing<2.5,>=2.4.2
Downloading pyparsing-2.4.7-py2.py3-none-any.whl (67 kB)
---------------------------------------- 67.8/67.8 kB ? eta 0:00:00
Collecting passlib<1.8,>=1.6.5
Downloading passlib-1.7.4-py2.py3-none-any.whl (525 kB)
---------------------------------------- 525.6/525.6 kB 16.6 MB/s eta 0:00:00
Collecting pydivert<2.2,>=2.0.3; sys_platform == "win32"
Downloading pydivert-2.1.0-py2.py3-none-any.whl (104 kB)
---------------------------------------- 104.7/104.7 kB ? eta 0:00:00
Collecting protobuf<3.15,>=3.14
Downloading protobuf-3.14.0-py2.py3-none-any.whl (173 kB)
---------------------------------------- 173.5/173.5 kB 10.2 MB/s eta 0:00:00
Collecting sortedcontainers<2.4,>=2.3
Downloading sortedcontainers-2.3.0-py2.py3-none-any.whl (29 kB)
Collecting zstandard<0.15,>=0.11
Downloading zstandard-0.14.1.tar.gz (676 kB)
---------------------------------------- 676.8/676.8 kB 14.2 MB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [25 lines of output]
Traceback (most recent call last):
File "C:\Users\DAS\Desktop\K\Pentesting Android\Mobile-Security-Framework-MobSF\venv\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
main()
File "C:\Users\DAS\Desktop\K\Pentesting Android\Mobile-Security-Framework-MobSF\venv\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "C:\Users\DAS\Desktop\K\Pentesting Android\Mobile-Security-Framework-MobSF\venv\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
File "C:\Users\DAS\AppData\Local\Temp\pip-build-env-dh4tf_vd\overlay\Lib\site-packages\setuptools\build_meta.py", line 338, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
File "C:\Users\DAS\AppData\Local\Temp\pip-build-env-dh4tf_vd\overlay\Lib\site-packages\setuptools\build_meta.py", line 320, in _get_build_requires
self.run_setup()
File "C:\Users\DAS\AppData\Local\Temp\pip-build-env-dh4tf_vd\overlay\Lib\site-packages\setuptools\build_meta.py", line 484, in run_setup
super(_BuildMetaLegacyBackend,
File "C:\Users\DAS\AppData\Local\Temp\pip-build-env-dh4tf_vd\overlay\Lib\site-packages\setuptools\build_meta.py", line 335, in run_setup
exec(code, locals())
File "<string>", line 63, in <module>
File "C:\Users\DAS\AppData\Local\Temp\pip-install-suw_x1ii\zstandard\setup_zstd.py", line 164, in get_c_extension
compiler.initialize()
File "C:\Users\DAS\AppData\Local\Temp\pip-build-env-dh4tf_vd\overlay\Lib\site-packages\setuptools\_distutils\_msvccompiler.py", line 253, in initialize
vc_env = _get_vc_env(plat_spec)
File "C:\Users\DAS\AppData\Local\Temp\pip-build-env-dh4tf_vd\overlay\Lib\site-packages\setuptools\msvc.py", line 210, in msvc14_get_vc_env
return _msvc14_get_vc_env(plat_spec)
File "C:\Users\DAS\AppData\Local\Temp\pip-build-env-dh4tf_vd\overlay\Lib\site-packages\setuptools\msvc.py", line 164, in _msvc14_get_vc_env
raise distutils.errors.DistutilsPlatformError(
distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [25 lines of output]
Traceback (most recent call last):
File "C:\Users\DAS\Desktop\K\Pentesting Android\Mobile-Security-Framework-MobSF\venv\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
main()
File "C:\Users\DAS\Desktop\K\Pentesting Android\Mobile-Security-Framework-MobSF\venv\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "C:\Users\DAS\Desktop\K\Pentesting Android\Mobile-Security-Framework-MobSF\venv\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
File "C:\Users\DAS\AppData\Local\Temp\pip-build-env-dh4tf_vd\overlay\Lib\site-packages\setuptools\build_meta.py", line 338, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
File "C:\Users\DAS\AppData\Local\Temp\pip-build-env-dh4tf_vd\overlay\Lib\site-packages\setuptools\build_meta.py", line 320, in _get_build_requires
self.run_setup()
File "C:\Users\DAS\AppData\Local\Temp\pip-build-env-dh4tf_vd\overlay\Lib\site-packages\setuptools\build_meta.py", line 484, in run_setup
super(_BuildMetaLegacyBackend,
File "C:\Users\DAS\AppData\Local\Temp\pip-build-env-dh4tf_vd\overlay\Lib\site-packages\setuptools\build_meta.py", line 335, in run_setup
exec(code, locals())
File "<string>", line 63, in <module>
File "C:\Users\DAS\AppData\Local\Temp\pip-install-suw_x1ii\zstandard\setup_zstd.py", line 164, in get_c_extension
compiler.initialize()
File "C:\Users\DAS\AppData\Local\Temp\pip-build-env-dh4tf_vd\overlay\Lib\site-packages\setuptools\_distutils\_msvccompiler.py", line 253, in initialize
vc_env = _get_vc_env(plat_spec)
File "C:\Users\DAS\AppData\Local\Temp\pip-build-env-dh4tf_vd\overlay\Lib\site-packages\setuptools\msvc.py", line 210, in msvc14_get_vc_env
return _msvc14_get_vc_env(plat_spec)
File "C:\Users\DAS\AppData\Local\Temp\pip-build-env-dh4tf_vd\overlay\Lib\site-packages\setuptools\msvc.py", line 164, in _msvc14_get_vc_env
raise distutils.errors.DistutilsPlatformError(
distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
[INSTALL] Clean Up
=======================MobSF Clean Script for Windows=======================
Running this script will delete the Scan database, all files uploaded and generated.
C:\Users\DAS\Desktop\K\Pentesting Android\Mobile-Security-Framework-MobSF\scripts
Deleting all uploads
Deleting all downloads
Deleting Static Analyzer migrations
Deleting Dynamic Analyzer migrations
Deleting MobSF migrations
Deleting temp and log files
Deleting Scan database
Deleting Secret file
Deleting Previous setup files
Deleting MobSF data directory: "C:\Users\DAS\.MobSF"
Done
[INSTALL] Migrating Database
Traceback (most recent call last):
File "C:\Users\DAS\Desktop\K\Pentesting Android\Mobile-Security-Framework-MobSF\manage.py", line 12, in <module>
from django.core.management import execute_from_command_line
ModuleNotFoundError: No module named 'django'
Traceback (most recent call last):
File "C:\Users\DAS\Desktop\K\Pentesting Android\Mobile-Security-Framework-MobSF\manage.py", line 12, in <module>
from django.core.management import execute_from_command_line
ModuleNotFoundError: No module named 'django'
Traceback (most recent call last):
File "C:\Users\DAS\Desktop\K\Pentesting Android\Mobile-Security-Framework-MobSF\manage.py", line 12, in <module>
from django.core.management import execute_from_command_line
ModuleNotFoundError: No module named 'django'
Download and Install wkhtmltopdf for PDF Report Generation - https://wkhtmltopdf.org/downloads.html
[INSTALL] Installation Complete
[ERROR] Installation Failed!
Please ensure that all the requirements mentioned in documentation are installed before you run setup script.
Scroll up to see any installation errors.
The 'decorator==4.4.2' distribution was not found and is required by the application
C:\Users\DAS\Desktop\K\Pentesting Android\Mobile-Security-Framework-MobSF>
..........................................................................................................................................................................................................................................................................................................................................................................................................................
Related
Images and fonts not loading in react-app-rewired start
I have a React Native application that works perfectly in Android (with fonts and images). When I run the command yarn web (which is a shortcut for react-app-rewired start) then it builds a web application accessible by http://localhost:3000/ but it won't render images or fonts. C:\Users\firstname lastname\Desktop\app\react_frontend>yarn web (node:14440) [DEP_WEBPACK_DEV_SERVER_ON_AFTER_SETUP_MIDDLEWARE] DeprecationWarning: 'onAfterSetupMiddleware' option is deprecated. Please use the 'setupMiddlewares' option. (Use `node --trace-deprecation ...` to show where the warning was created) (node:14440) [DEP_WEBPACK_DEV_SERVER_ON_BEFORE_SETUP_MIDDLEWARE] DeprecationWarning: 'onBeforeSetupMiddleware' option is deprecated. Please use the 'setupMiddlewares' option. Starting the development server... Compiled successfully! You can now view appName in the browser. Local: http://localhost:3000 On Your Network: http://***.***.**.*:3000 Note that the development build is not optimized. To create a production build, use yarn build. assets by path static/ 8 MiB assets by path static/media/*.png 98.9 KiB asset static/media/logo.6544c416aa5d553bcd11.png 83.3 KiB [emitted] [immutable] [from: src/assets/logo/logo.png] (auxiliary name: main) asset static/media/appIcon.d2692da871f086d863a0.png 15.6 KiB [emitted] [immutable] [from: src/assets/logo/appIcon.png] (auxiliary name: main) asset static/js/bundle.js 6.54 MiB [emitted] (name: main) 1 related asset asset static/media/MaterialCommunityIcons.5d42b4e60858731e7b65.ttf 1.09 MiB [emitted] [immutable] [from: node_modules/react-native-vector-icons/Fonts/MaterialCommunityIcons.ttf] (auxiliary name: main) asset static/media/walking.4e665c3c25af9a98c447.jpg 271 KiB [emitted] [immutable] [from: src/assets/backgrounds/walking.jpg] (auxiliary name: main) asset index.html 1.8 KiB [emitted] asset asset-manifest.json 542 bytes [emitted] cached modules 15 MiB (javascript) 1.46 MiB (asset) 28.3 KiB (runtime) [cached] 2682 modules webpack 5.70.0 compiled successfully in 4099 ms Files successfully emitted, waiting for typecheck results... Issues checking in progress... No issues found.
Dumpsys meminfo: kB or KB?
Is the memory returned by adb shell dumsys meminfo in kB or KB? where: kB = 1000 bytes KB = 1024 bytes
It's KB (1024 bytes), or kibibytes (KiB), contrary to the kB notation in their printfs which is supposed to mean 1000 bytes as you noted. Here's how I know. On my Linux box, if I do free -b, total used free shared buffers cached Mem: 67459153920 60865880064 6593273856 307834880 1373028352 40107618304 So look at the total value of 67459153920. That's in bytes (-b). Now if I look at meminfo, MemTotal: 65878080 kB and 67459153920 / 1024 = 65878080, so that value is in KB or aka KiB (1024 bytes). https://en.wikipedia.org/wiki/Kilobyte Note that I tested this on my Linux desktop because Android Linux doesn't happen to include the free command, but dumpsys meminfo is just reporting the results of cat /proc/meminfo which is implemented at the Linux kernel level of Android fs/proc/meminfo.c.
Android JOBB don't dump good
I tried create an OBB file and then, dump this file to see all works fine. I have a folder called "HOLA" in C:\Users\abreu20011\Desktop\HOLA with the next distribution: HOLA \_>hola.txt (i wrote "hello world" inside) \_>emulator-arm.exe \_>emulator-mips.exe \_>emulator-x86.exe I put emulators file, because when I trying to compress with the text file only, I received the next error when I write the sentence: jobb -pn es.test.test -pv 1 -d C:\Users\abreu20011\Desktop\HOLA -o hola.obb Slop:0 Directory Overhead: 0 Slop:289 Directory Overhead: 224 java.io.IOException: no data clusters at de.waldheinz.fs.fat.Fat.<init>(Fat.java:129) at de.waldheinz.fs.fat.Fat.create(Fat.java:96) at de.waldheinz.fs.fat.Fat.SuperFloppyFormatter.format(SuperFloppyFormatter.java:236) at com.android.jobb.Main.main(Main.java:414) So, I fattened the directory with this emulators, and the jobb tool worked fine: Slop:0 Directory Overhead: 0 Slop:2453 Directory Overhead: 608 But the real problems arise when I try to dump the obb file. Since the jobb tool creates the obb file in the same directory of the tool, I wrote the dump sentence: jobb -dump hola.obb -d C:\Users\abreu20011\Desktop The program extracts a partial file of emulator-arm.exe and wrote the next error: Package Name: es.test.test Package Version: 1 LFN = emulator-arm.exe / SFN = ShortName [/☺[←►▬←☺ifl -- 2f 1 5b 1b 10 16 1b 1 6 9 66 6c ] Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 2335 at de.waldheinz.fs.fat.ClusterChain.readData(ClusterChain.java:225) at de.waldheinz.fs.fat.FatFile.read(FatFile.java:126) at com.android.jobb.Main.dumpDirectory(Main.java:137) at com.android.jobb.Main.main(Main.java:315) Why I can't create an obb file of his size is smaller? and why I can't dump the original file? Thanks for your help and for your time! :)
Failed to write core dump after removing class
All off a sudden I started to get a JavaThread crash. I created a class in my project and then I deleted it, the class was SoundPlayer. Think thats the problem because at the end of the log it tries "java command com.qwerty.testapp.SoundPlayer". I've tried to do clean project, remove debug.keystore and now im all out of ideas. Any suggestions on how to fix this? BR # # A fatal error has been detected by the Java Runtime Environment: # # Internal Error (javaClasses.cpp:136), pid=3420, tid=4012 # fatal error: Invalid layout of preloaded class # # JRE version: (7.0_51-b13) (build ) # Java VM: Java HotSpot(TM) 64-Bit Server VM (24.51-b03 mixed mode windows-amd64 compressed oops) # Failed to write core dump. Minidumps are not enabled by default on client versions of Windows # # If you would like to submit a bug report, please visit: # http://bugreport.sun.com/bugreport/crash.jsp # --------------- T H R E A D --------------- Current thread (0x0000000002de0800): JavaThread "Unknown thread" [_thread_in_vm, id=4012, stack(0x0000000002ce0000,0x0000000002de0000)] Stack: [0x0000000002ce0000,0x0000000002de0000] --------------- P R O C E S S --------------- Java Threads: ( => current thread ) Other Threads: =>0x0000000002de0800 (exited) JavaThread "Unknown thread" [_thread_in_vm, id=4012, stack(0x0000000002ce0000,0x0000000002de0000)] VM state:not at safepoint (not fully initialized) VM Mutex/Monitor currently owned by a thread: None GC Heap History (0 events): No events Deoptimization events (0 events): No events Internal exceptions (0 events): No events Events (10 events): Event: 0.010 loading class 0x0000000002e24600 done Event: 0.011 loading class 0x0000000002e24020 done Event: 0.011 loading class 0x0000000002e24000 Event: 0.011 loading class 0x0000000002e2c100 Event: 0.011 loading class 0x0000000002e2c100 done Event: 0.011 loading class 0x0000000002e2c130 Event: 0.011 loading class 0x0000000002e2c130 done Event: 0.011 loading class 0x0000000002e2c160 Event: 0.011 loading class 0x0000000002e2c160 done Event: 0.011 loading class 0x0000000002e24000 done Dynamic libraries: 0x00007ff7b4e60000 - 0x00007ff7b4e93000 C:\Program Files\Java\jre7\bin\javaw.exe 0x00007ffd77f60000 - 0x00007ffd78109000 C:\WINDOWS\SYSTEM32\ntdll.dll 0x00007ffd76d30000 - 0x00007ffd76e69000 C:\WINDOWS\system32\KERNEL32.DLL 0x00007ffd753b0000 - 0x00007ffd754bf000 C:\WINDOWS\system32\KERNELBASE.dll 0x00007ffd73d70000 - 0x00007ffd73dfb000 C:\WINDOWS\system32\apphelp.dll 0x00007ffd6f800000 - 0x00007ffd6f84f000 C:\WINDOWS\AppPatch\AppPatch64\AcGenral.DLL 0x00007ffd772d0000 - 0x00007ffd77377000 C:\WINDOWS\system32\msvcrt.dll 0x00007ffd75190000 - 0x00007ffd751bb000 C:\WINDOWS\SYSTEM32\SspiCli.dll 0x00007ffd773e0000 - 0x00007ffd77431000 C:\WINDOWS\system32\SHLWAPI.dll 0x00007ffd77de0000 - 0x00007ffd77f51000 C:\WINDOWS\system32\USER32.dll 0x00007ffd77c60000 - 0x00007ffd77dd6000 C:\WINDOWS\system32\ole32.dll 0x00007ffd758b0000 - 0x00007ffd76cbf000 C:\WINDOWS\system32\SHELL32.dll 0x00007ffd74970000 - 0x00007ffd7498f000 C:\WINDOWS\SYSTEM32\USERENV.dll 0x00007ffd75800000 - 0x00007ffd758a5000 C:\WINDOWS\system32\ADVAPI32.dll 0x00007ffd6d130000 - 0x00007ffd6d14b000 C:\WINDOWS\SYSTEM32\MPR.dll 0x00007ffd76e70000 - 0x00007ffd76fa6000 C:\WINDOWS\system32\RPCRT4.dll 0x00007ffd77380000 - 0x00007ffd773d7000 C:\WINDOWS\SYSTEM32\sechost.dll 0x00007ffd77640000 - 0x00007ffd77817000 C:\WINDOWS\SYSTEM32\combase.dll 0x00007ffd76fb0000 - 0x00007ffd770f5000 C:\WINDOWS\system32\GDI32.dll 0x00007ffd752e0000 - 0x00007ffd752f4000 C:\WINDOWS\SYSTEM32\profapi.dll 0x00007ffd73510000 - 0x00007ffd735b1000 C:\WINDOWS\SYSTEM32\SHCORE.dll 0x00007ffd77290000 - 0x00007ffd772c4000 C:\WINDOWS\system32\IMM32.DLL 0x00007ffd77b10000 - 0x00007ffd77c48000 C:\WINDOWS\system32\MSCTF.dll 0x00007ffd6cd00000 - 0x00007ffd6cd34000 C:\Windows\system32\nvinitx.dll 0x000000000f000000 - 0x000000000f006000 C:\Program Files\NVIDIA Corporation\CoProcManager\_etoured.dll 0x00007ffd6cc70000 - 0x00007ffd6cc9d000 C:\Program Files\NVIDIA Corporation\CoProcManager\nvd3d9wrapx.dll 0x00007ffd77880000 - 0x00007ffd77a56000 C:\WINDOWS\system32\SETUPAPI.dll 0x00007ffd756f0000 - 0x00007ffd7573a000 C:\WINDOWS\system32\CFGMGR32.dll 0x00007ffd6cc10000 - 0x00007ffd6cc32000 C:\Program Files\NVIDIA Corporation\CoProcManager\nvdxgiwrapx.dll 0x00007ffd72f70000 - 0x00007ffd731ca000 C:\WINDOWS\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.9600.16384_none_62475f7becb72503\COMCTL32.dll 0x0000000069d20000 - 0x0000000069df2000 C:\Program Files\Java\jre7\bin\msvcr100.dll 0x0000000069550000 - 0x0000000069d19000 C:\Program Files\Java\jre7\bin\server\jvm.dll 0x00007ffd62500000 - 0x00007ffd62509000 C:\WINDOWS\SYSTEM32\WSOCK32.dll 0x00007ffd6dc20000 - 0x00007ffd6dc3f000 C:\WINDOWS\SYSTEM32\WINMM.dll 0x00007ffd77c50000 - 0x00007ffd77c57000 C:\WINDOWS\system32\PSAPI.DLL 0x00007ffd77440000 - 0x00007ffd77498000 C:\WINDOWS\system32\WS2_32.dll 0x00007ffd6dbf0000 - 0x00007ffd6dc1a000 C:\WINDOWS\SYSTEM32\WINMMBASE.dll 0x00007ffd77280000 - 0x00007ffd77289000 C:\WINDOWS\system32\NSI.dll 0x00007ffd74190000 - 0x00007ffd741b6000 C:\WINDOWS\SYSTEM32\DEVOBJ.dll 0x000000006aba0000 - 0x000000006abaf000 C:\Program Files\Java\jre7\bin\verify.dll 0x0000000069520000 - 0x0000000069548000 C:\Program Files\Java\jre7\bin\java.dll 0x000000006ab80000 - 0x000000006ab95000 C:\Program Files\Java\jre7\bin\zip.dll VM Arguments: jvm_args: -Dfile.encoding=Cp1252 -Xbootclasspath:C:\Android\sdk\platforms\android-19\android.jar java_command: com.qwerty.testapp.SoundPlayer Launcher Type: SUN_STANDARD Environment Variables: PATH=C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Android\sdk\platform-tools USERNAME=qwerty OS=Windows_NT PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 69 Stepping 1, GenuineIntel --------------- S Y S T E M --------------- OS: Windows 8 , 64 bit Build 9200 CPU:total 4 (2 cores per cpu, 2 threads per core) family 6 model 69 stepping 1, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, avx2, aes, erms, ht, tsc, tscinvbit Memory: 4k page, physical 8270188k(5215628k free), swap 9580908k(5853552k free) vm_info: Java HotSpot(TM) 64-Bit Server VM (24.51-b03) for windows-amd64 JRE (1.7.0_51-b13), built on Dec 18 2013 18:40:56 by "java_re" with unknown MS VC++:1600 time: Wed Feb 19 21:16:26 2014 elapsed time: 0 seconds
I solved it thanks to #Chris Stratton. Went under "run as configuration" and there the deleted class was selected under "java application". Deleted the settings for that class and voilá, now the error went away.
android - BufferOverflowException when trying to unzip obb file
when I try to unzip a encrypted obb file using the jobb tool jumps me the following error: jobb -dump /temp/obb-output/ -o my-app-assets.obb -k secret-key Package Name: com.example.sample Package Version: 1 SALT: -63dddd10f3a63bb 29eb26a5c9227f6efeab677fc53a7348 [LFN = video.avi / SFN = ShortName [/> ifl -- 5 2f 1d 10 3 3e c 1d 69 66 6c ]] Alignment off reading from sector: 2433 Partial read from sector: 2433 Exception in thread "main" java.nio.BufferOverflowException at java.nio.HeapByteBuffer.put(HeapByteBuffer.java:183) at java.nio.ByteBuffer.put(ByteBuffer.java:832) at com.android.jobb.EncryptedBlockFile$EncryptedBlockFileChannel.readDecryptedSector(EncryptedBlockFile.java:292) at com.android.jobb.EncryptedBlockFile$EncryptedBlockFileChannel.read(EncryptedBlockFile.java:142) at de.waldheinz.fs.util.FileDisk.read(FileDisk.java:118) at de.waldheinz.fs.fat.ClusterChain.readData(ClusterChain.java:214) at de.waldheinz.fs.fat.FatFile.read(FatFile.java:126) at com.android.jobb.Main.dumpDirectory(Main.java:137) at com.android.jobb.Main.dumpDirectory(Main.java:112) at com.android.jobb.Main.main(Main.java:315) Can anyone help me?
It is to do with expansion file version numbers. I just needed to increment versionCode in my manifest and in the obb file. Android doesn't seem to like you updating with a new obb file with the same version number, Hope it helps.