特定のファイルを削除して、攻撃に対してデバイスを少し強化するAndroid用のシェルスクリプトを作成しようとしています。このスクリプトは、froyo を実行している ubuntu の Android エミュレーターで動作したと思います。4.2 を実行している Windows ボックスで実行しようとすると、下部にエラーが表示されます。すべてのディレクトリを確認しましたが、それらは存在します。私はadbを使用してこれを実行しています。
echo ANDROID
echo HARDENING STARTED
#removing files in the /system/xbin directory
mount -o rw,remount /dev/block/mdblock0 /system
rm /system/xbin/tcpdump
rm /system/xbin/su
#removing files in the /system/bin directory
rm /system/bin/bootanimation
rm /system/bin/dumpstate
rm /system/bin/ping
rm /system/bin/ping6
mount -o ro,remount /dev/block/mdblock0 /system
echo ANDROID
echo HARDENING COMPLETE
このエラーが戻ってきます..何が起こっているのかわかりません。
ANDROID
HARDENING STARTED
mount:No such file or directory
, No such file or directorytcpdump
, No such file or directorysu
, No such file or directoryootanimation
, No such file or directoryumpstate
, No such file or directorying
, No such file or directorying6
mount:No such file or directory
ANDROID
HARDENING COMPLETE
助けてください
ライアン