CheckSymbols_Android.cmd
898 Bytes
@echo off
readelf -Ws output_libmanomotion.so > data.txt
set list_of_forbidden_words=manomotion mano detect AdapterBase CreateImage classifier skeleton squeezenet
(for %%b in (%list_of_forbidden_words%) do (
findstr /R "%%b" data.txt>list_of_forbidden_words.dat
IF NOT ERRORLEVEL 1 (
CALL:ECHORED "bad!, function with name %%b found!"
)
))
set list_of_entry_points=setFrameArray init processFrame setResolution setMRFrameArray
(for %%a in (%list_of_entry_points%) do (
findstr /R "%%a"* data.txt>list_of_entry_points.dat
IF NOT ERRORLEVEL 1 CALL:ECHOGREEN "good!, Entry-point %%a found!"
IF ERRORLEVEL 1 (
CALL:ECHORED "bad!,entrypoint %%a not found!"
)
))
:ECHORED
%Windir%\System32\WindowsPowerShell\v1.0\Powershell.exe write-host -foregroundcolor Red %1
goto :eof
:ECHOGREEN
%Windir%\System32\WindowsPowerShell\v1.0\Powershell.exe write-host -foregroundcolor Green %1
goto :eof