Quote:
Originally Posted by ondoho
please show us the commands you entered and the output you received.
use code tags for code.
|
Thank for your kind attention and would appreciate your help.
Regards.
====The input======
@pause
@echo --- STARTING ----
@echo --- Starting ADB ---
@files\adb wait-for-device
@echo --- Generating /tmp ---
@files\adb shell "cd /data/local && mkdir tmp"
@echo --- Cleaning ---
@files\adb shell "cd /data/local/tmp/ && rm *"
@files\adb wait-for-device
@echo --- DEVICE FOUND
@echo --- Installing Busybox 1.22.1 ---
@files\adb push files\busybox /data/local/tmp/.
@echo --- Correcting Permissions
@files\adb shell "chmod 755 /data/local/tmp/busybox"
@echo --- Re-Mounting /system
@files\adb shell "/data/local/tmp/busybox mount -o remount,rw /system"
@echo --- Checking Free Space /system
@files\adb push files\makespace /data/local/tmp/.
@files\adb shell "chmod 777 /data/local/tmp/makespace"
@files\adb shell "./data/local/tmp/makespace"
@echo --- Copying Files ---
@files\adb shell "dd if=/data/local/tmp/busybox of=/system/xbin/busybox"
@echo --- Correcting Ownership
@files\adb shell "chown root.shell /system/xbin/busybox"
@echo --- Correcting Permissions
@files\adb shell "chmod 04755 /system/xbin/busybox"
@echo --- Installing
@files\adb shell "/system/xbin/busybox --install -s /system/xbin"
@files\adb shell "rm -r /data/local/tmp/busybox"
@echo --- SU Binary ---
@files\adb push files\su /system/bin/su
@echo --- Correcting Ownership ---
@files\adb shell "chown root.shell /system/bin/su"
@echo --- Correcting Permissions ---
@files\adb shell "chmod 06755 /system/bin/su"
@echo --- Correcting Symlinks ---
@files\adb shell "rm /system/xbin/su"
@files\adb shell "ln -s /system/bin/su /system/xbin/su"
@echo --- Superuser.apk
@files\adb push files\Superuser.apk /system/app/.
@echo --- Cleaning ---
@files\adb shell "cd /data/local/tmp/; rm *"
@echo --- Rebooting ---
@files\adb reboot
@echo ALL DONE
============The Output========
--- STARTING ----
Starting ADB
--- Generating /tmp ---
mkdir: 'tmp': File exists
--- Cleaning /data/local/tmp/
rm: zzz: Is a directory
--- Installing Busybox 1.22.1 Bionic ---
2685 KB/s (538200 bytes in 0.195s)
--- Fixing Permissions ---
--- Re-mounting /system
mount: mounting /dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/system on /system failed: Permission denied
--- Checking free space /system
--- Pushing Makespace to Device ---
9 KB/s (396 bytes in 0.042s)
--- Fixing Permissions ---
--- Executing ---
df: /mnt/runtime/default/emulated: Permission denied
df: /mnt/runtime/read/emulated: Permission denied
df: /mnt/runtime/write/emulated: Permission denied
df: /mnt/media_rw/0677-1F14: Permission denied
df: /mnt/runtime/default/0677-1F14: Permission denied
df: /mnt/runtime/read/0677-1F14: Permission denied
df: /mnt/runtime/write/0677-1F14: Permission denied
--- Free space on /system :
97% bytes
test: 97%: bad number
--- NOT enough free space on /system!!!
--- making free space by removing Google Maps
--- Copying Necessary Files
dd: /system/xbin/busybox: Read-only file system
--- Fixing Ownership ---
chown: /system/xbin/busybox: No such file or directory
--- Finishing Up ---
chmod: /system/xbin/busybox: No such file or directory
--- Installing ---
/system/bin/sh: /system/xbin/busybox: not found
--- Pushing SU binary ---
failed to copy './files/su' to '/system/bin/su': Read-only file system
--- Fixing Ownership ---
chown: /system/bin/su: No such file or directory
--- Fixing Permissions ---
chmod: /system/bin/su: No such file or directory
--- Correcting Symlink ---
rm: /system/xbin/su: No such file or directory
ln: cannot create symbolic link from '/system/bin/su' to '/system/xbin/su': Read-only file system
--- Superuser.apk ---
failed to copy './files/Superuser.apk' to '/system/app/./Superuser.apk': Read-only file system
--- Cleaning /data/local/tmp/
rm: zzz: Is a directory
--- Rebooting ---
Done