- Joined
- Sep 4, 2023
- Messages
- 19
- Awards
- 2
Offline
I am trying to create two binary files written in bash. One file is to cause an intended bootloop of the target device and the other binary will be used to undo the "soft bootloop" basically.
There are two surefire ways I know how to make this happen on a rooted device that is extremely easy to fix.
1) chmod the build.prop file to different permission then required
OR
2) Uninstall the Setting App
I would really like to go the build.prop route if possible, I think it is better.
Here is an example of what I wrote that won't run:
#!/system/bin/sh
mount -o remount,rw /data;
mount -o remount,rw /system;
mount -o remount,rw /;
cp /system/build.prop /data/local/tmp;
chmod 444 /system/build.prop;
sleep 3;
su -c reboot;
Then to fix it via ADB:
#!/system/bin/sh
mount -o remount,rw /data;
mount -o remount,rw /system;
mount -o remount,rw /;
cp /data/local/tmp/build.prop /system/build.prop;
chmod 644 /system/build.prop;
sleep 3;
reboot;
Any ideas or help will be much appreciated!
P.S. I have created (8) of these files in total, 6 of them work perfectly! The only ones that don't work are the DV_kmydevice and DV_fixmydevice, I keep getting an error message:
The@300:/ $su
Spartan@ROOT:/ #DV_kmydevice
sh: /system/bin/DV_kmydevice: No such file or directory
1|Spartan@ROOT:/ #
No matter what I do, they refuse to run! See attached photo for error message.
-SB
There are two surefire ways I know how to make this happen on a rooted device that is extremely easy to fix.
1) chmod the build.prop file to different permission then required
OR
2) Uninstall the Setting App
I would really like to go the build.prop route if possible, I think it is better.
Here is an example of what I wrote that won't run:
#!/system/bin/sh
mount -o remount,rw /data;
mount -o remount,rw /system;
mount -o remount,rw /;
cp /system/build.prop /data/local/tmp;
chmod 444 /system/build.prop;
sleep 3;
su -c reboot;
Then to fix it via ADB:
#!/system/bin/sh
mount -o remount,rw /data;
mount -o remount,rw /system;
mount -o remount,rw /;
cp /data/local/tmp/build.prop /system/build.prop;
chmod 644 /system/build.prop;
sleep 3;
reboot;
Any ideas or help will be much appreciated!
P.S. I have created (8) of these files in total, 6 of them work perfectly! The only ones that don't work are the DV_kmydevice and DV_fixmydevice, I keep getting an error message:
The@300:/ $su
Spartan@ROOT:/ #DV_kmydevice
sh: /system/bin/DV_kmydevice: No such file or directory
1|Spartan@ROOT:/ #
No matter what I do, they refuse to run! See attached photo for error message.
-SB
Attachments
Last edited: