Related
Here is an easy way to run commands after each boot.
In the init.rc file, the file /system/bin/clrbootcount.sh always gets run after a successful boot. Since it isn't trivial to change the init.rc file, we will use clrbootcount.sh to run commands after a boot. Since people are having issues with modifying clrbootcount.sh, we will choose a safer method.
clrbootcount.sh will always attempt to call /data/boot_complete_hook.sh, which doesn't exit. We are going to create this file and use that to run commands.
Create a file named boot_complete_hook.sh with the following contents (On Windows, use Notepad++):
Code:
#!/system/bin/sh
##################################################################################
#
# File boot_complete_hook.sh
# Description Run any commands that you want to be run after boot
#
##
setprop persist.service.mount.umsauto 0
echo 68000,1024/70/200/40,600/10/11/10 > /sys/devices/omapdss/display0/timings
Save and close.
Now, execute the following commands to put the file on your nook:
Code:
adb push boot_complete_hook.sh /data/boot_complete_hook.sh
adb shell chmod 755 /data/boot_complete_hook.sh
Note:
Before you reboot verify that the file will run properly. Open up a shell via adb shell. Inside that run the following:
Code:
setprop persist.service.mount.umsauto 1
getprop persist.service.mount.umsauto
You should see 1 as the output. Now run:
Code:
sh /system/bin/clrbootcount.sh
You should see an output similar to:
Code:
4+0 records in
4+0 records out
4 bytes transferred in 0.010 secs (400 bytes/sec)
Now run:
Code:
getprop persist.service.mount.umsauto
If 0 is printed out, exit the shell.
If 0 is not printed out, something went wrong and the file will not be run properly on the next boot. If you do reboot in this state 8 times, the boot count won't be reset and you will hit the factory reset. While you are trying to get the script working, you could always manually reset the boot count by executing (from a shell):
Code:
dd if=/dev/zero of=/rom/devconf/BootCnt bs=1 count=4
Now reboot:
Code:
adb shell reboot
As you are rebooting, run:
Code:
adb shell getprop persist.service.mount.umsauto
It will return 1 since the init.rc file sets it to 1 explicitly. However, once you are fully booted it will return 0.
Didn't work for me.
JoshMiers said:
Here is an easy way to run commands after each boot.
In the init.rc file, the file /system/bin/clrbootcount.sh will always gets run after a successful boot. Since it isn't trivial to change the init.rc file, we will use clrbootcount.sh to run commands after a boot.
Do:
Code:
adb pull /system/bin/clrbootcount.sh .
Open the file (on Windows, don't use Notepad) and you should see:
Code:
#!/system/bin/sh
##################################################################################
#
# File clrbootcount.sh
# Description Clear the bootcount variable to 0 on successful boot
#
##
# Run potential hook first.
/data/boot_complete_hook.sh
# Zero the boot count
dd if=/dev/zero of=/rom/devconf/BootCnt bs=1 count=4
Add the following to the end of the file:
Code:
#run other commands
setprop persist.service.mount.umsauto 0
Save and close.
Now, execute the following commands to put the file back on your nook:
Code:
adb shell mount -o rw,remount -t ext2 /dev/block/mmcblk0p5 /system
adb push clrbootcount.sh /system/bin/clrbootcount.sh
adb shell chmod 755 /system/bin/clrbootcount.sh
adb shell mount -o ro,remount -t ext2 /dev/block/mmcblk0p5 /system
adb shell reboot
As you are rebooting, run:
Code:
adb shell getprop persist.service.mount.umsauto
It will return 1 since the init.rc file sets it to 1 explicitly. However, once you are fully booted it will return 0.
Click to expand...
Click to collapse
Wouldn't this screw up the 8X "back to stock firmware" sequence since that depends on having the boot counter increment up to 8?
docfreed said:
Wouldn't this screw up the 8X "back to stock firmware" sequence since that depends on having the boot counter increment up to 8?
Click to expand...
Click to collapse
The script file is already there and already being called after each successful boot. The 8x boot counter logic happens with 8 failed boots. Regardless, the instructions just show you how to append a custom command to be run after the stock commands run, no other booting logic is affected.
>DARKMAN< said:
Didn't work for me.
Click to expand...
Click to collapse
What didn't work? Run the following and paste your output:
Code:
adb shell cat /system/bin/clrbootcount.sh
Code:
adb shell ls -l /system/bin/clrbootcount.sh
Awesome, thanks for the tip! Been wondering how to put in my own stuff into the init, I'd love to modify the path but I suspect this won't be the way, but regardless it's good info.
BTW, I have found that disabling this USM property seems to disable the SD card automounting but the Nook itself might still automount... But that's for another thread I suppose
Worked perfectly
This is exactly what I was looking for.
Thanks
Sent from my LogicPD Zoom2
There seems to be a little confusion over at the refresh rate thread http://forum.xda-developers.com/showthread.php?t=901294.
To be explicit, if you want to disable auto-mounting as well as change the refresh rate, you would edit clrbootcount.sh to have the following contents:
Code:
#!/system/bin/sh
##################################################################################
#
# File clrbootcount.sh
# Description Clear the bootcount variable to 0 on successful boot
#
##
# Run potential hook first.
/data/boot_complete_hook.sh
# Zero the boot count
dd if=/dev/zero of=/rom/devconf/BootCnt bs=1 count=4
#run other commands
setprop persist.service.mount.umsauto 0
echo 68000,1024/70/200/40,600/10/11/10 > /sys/devices/omapdss/display0/timings
If you don't want to disable auto-mounting, just remove the line with
Code:
setprop persist.service.mount.umsauto 0
I ran what was posted and it still returns 1.
Sent from my HAXSUNG Moment
JoshMiers said:
What didn't work? Run the following and paste your output:
Code:
adb shell cat /system/bin/clrbootcount.sh
Code:
adb shell ls -l /system/bin/clrbootcount.sh
Click to expand...
Click to collapse
Screen shot attached (1.0.1 Auto-Nooter 2.12.25).
# cat /system/bin/clrbootcount.sh
cat /system/bin/clrbootcount.sh
#!/system/bin/sh
################################################################################
##
#
# File clrbootcount.sh
# Description Clear the bootcount variable to 0 on successful boot
#
##
# Run potential hook first.
/data/boot_complete_hook.sh
# Zero the boot count
dd if=/dev/zero of=/rom/devconf/BootCnt bs=1 count=4
#
# ls -l /system/bin/clrbootcount.sh
ls -l /system/bin/clrbootcount.sh
-rwxr-xr-x root root 338 2011-01-06 19:50 clrbootcount.sh
#
edit double post oops
I lost my backup of clrbootcount.sh
and now it won't reset the boot count.
any help would be greatly appreciated.
adb shell getprop persist.service.mount.umsauto
Click to expand...
Click to collapse
always returns 1 during and after complete reboot. The echo command for screen does not persist. Have followed your instructions super letter by letter multiple times and leading up to the reboot everything is exactly as you say.
Right now, I am most concerned that whatever I have done will not reset the boot count since it stays at 1 and does not go to 0. I've already lost my entire setup twice and had to start from scratch trying to make this work. At least I know how to reset to 0 with the line command script but how do I ensure i don't need to worry about it?
I think this process may be a bust.
I am on 1.0.0 and have been using this since I posted it and both the refresh rate and automount values are sticking between reboots.
>DARKMAN< said:
# cat /system/bin/clrbootcount.sh
cat /system/bin/clrbootcount.sh
#!/system/bin/sh
################################################################################
##
#
# File clrbootcount.sh
# Description Clear the bootcount variable to 0 on successful boot
#
##
# Run potential hook first.
/data/boot_complete_hook.sh
# Zero the boot count
dd if=/dev/zero of=/rom/devconf/BootCnt bs=1 count=4
#
# ls -l /system/bin/clrbootcount.sh
ls -l /system/bin/clrbootcount.sh
-rwxr-xr-x root root 338 2011-01-06 19:50 clrbootcount.sh
#
Click to expand...
Click to collapse
I am assuming you are using the new method, which would mean you need to post your /data/boot_complete_hook.sh
>DARKMAN< said:
I lost my backup of clrbootcount.sh
and now it won't reset the boot count.
any help would be greatly appreciated.
Click to expand...
Click to collapse
The clrbootcount.sh file that you posted is the default file. I will post it again:
Code:
#!/system/bin/sh
##################################################################################
#
# File clrbootcount.sh
# Description Clear the bootcount variable to 0 on successful boot
#
##
# Run potential hook first.
/data/boot_complete_hook.sh
# Zero the boot count
dd if=/dev/zero of=/rom/devconf/BootCnt bs=1 count=4
Also, the original post explains how to manually reset the boot count. Here it is:
If 0 is not printed out, something went wrong and the file will not be run properly on the next boot. If you do reboot in this state 8 times, the boot count won't be reset and you will hit the factory reset. While you are trying to get the script working, you could always manually reset the boot count by executing (from a shell):
Code:
dd if=/dev/zero of=/rom/devconf/BootCnt bs=1 count=4
jleecong said:
Screen shot attached (1.0.1 Auto-Nooter 2.12.25).
Click to expand...
Click to collapse
It appears you are running Windows, so I am hoping that you did not use Notepad to edit this file.
Since you are running 1.0.1, post your /init.rc file.
Thought I may have been doing something wrong since I used notepad but downloaded Notepad++ and created the new .sh file. Still no go. Screen still flickers and USB still automounts. Maybe 1.0.1 just is not commpatible with this process. Only difference I can see.
The getprop persist.service.mount.umsauto also indicates 1 after full boot and not 0. Pretty sure this will wipe everything out after 8 boots, going to wipe it all out now and proactively prevent it.
Hey, I wonder if anyone is good with BASH is around here, what I want is simple, but for some reason it didn't work for me
So here is what I want, a .sh (or any other linux executable) file that executes the following code if the user input was the character 'm'
Code:
sudo mkdir /media/mp3
sudo chmod 775 /media/mp3
sudo mtpfs -o allow_other /media/mp3
and this if the input was 'u'
Code:
sudo umount /media/mp3
sudo rmdir /media/mp3
anything else: exit
thanks in advance
are you looking for something like this?
Code:
#!/bin/bash
if [ `whoami` != "root" ]; then
echo "you must execute this script with root priveleges!"
exit
fi
clear
echo
echo "enter m to mount /media/mp3 or enter u to unmount it"
echo
read moru
if [ "$moru" = "m" ]; then
mkdir -p /media/mp3
chmod 775 /media/mp3
mtpfs -o allow_other /media/mp3
elif [ "$moru" = "u" ]; then
umount /media/mp3
rmdir /media/mp3
fi
exit
HTH
the code seems ok, but still not working, the is the output in kate when I pipe it to terminal
(not that I was root when before I pipe it using su)
Code:
Dash-Netbook Desktop # #!/bin/bash
Dash-Netbook Desktop #
Dash-Netbook Desktop # if [ `whoami` != "root" ]; then
> echo "you must execute this script with root priveleges!"
echo "you must execute this script with root priveleges"]; then
bash: syntax error near unexpected token `then'
Dash-Netbook Desktop # exit
exit
[email protected] ~/Desktop $ fi
bash: syntax error near unexpected token `fi'
[email protected] ~/Desktop $
[email protected] ~/Desktop $ clear
[email protected] ~/Desktop $ echo
[email protected] ~/Desktop $ echo "enter m to mount /media/mp3 or enter u to unmount it"
enter m to mount /media/mp3 or enter u to unmount it
[email protected] ~/Desktop $ echo
[email protected] ~/Desktop $ read moru
[email protected] ~/Desktop $
[email protected] ~/Desktop $ if [ "$moru" = "m" ]; then
> mkdir -p /media/mp3
> chmod 775 /media/mp3
> mtpfs -o allow_other /media/mp3
> elif [ "$moru" = "u" ]; then
> umount /media/mp3
> rmdir /media/mp3
> fi
[email protected] ~/Desktop $
[email protected] ~/Desktop $ exit
husam666 said:
Hey, I wonder if anyone is good with BASH is around here, what I want is simple, but for some reason it didn't work for me
So here is what I want, a .sh (or any other linux executable) file that executes the following code if the user input was the character 'm'
Code:
sudo mkdir /media/mp3
sudo chmod 775 /media/mp3
sudo mtpfs -o allow_other /media/mp3
and this if the input was 'u'
Code:
sudo umount /media/mp3
sudo rmdir /media/mp3
anything else: exit
thanks in advance
Click to expand...
Click to collapse
I know it sounds stuff, but I don't know my way around Linux. What does that script actually do?
Sent from my HTC Wildfire S A510e using XDA
Bad-Wolf said:
I know it sounds stuff, but I don't know my way around Linux. What does that script actually do?
Sent from my HTC Wildfire S A510e using XDA
Click to expand...
Click to collapse
the first part mounts my mp3 player (MTP device) on the /media/mp3 directory
The other part unmounts it and deletes the directory
Sent from the brick
What distribution are you using?
Also, what errors do you get when you save that text to a text file (do this in linux, not windows), e.g. mountmp3.sh, make it executable (chmod +x mountmp3.sh) and run it (./mountmp3.sh)?
It seems to run the commands fine here (running Porteus, which is based on Slackware) but I don't have mtpfs installed, so I'm not testing every element...
use this one Husam!
on a terminal:
Code:
sudo -s
chmod +x husam.sh
sh husam.sh
I tweaked the code a bit and added extra functionality
You might wanna try that script without root...
.Ahau said:
What distribution are you using?
Also, what errors do you get when you save that text to a text file (do this in linux, not windows), e.g. mountmp3.sh, make it executable (chmod +x mountmp3.sh) and run it (./mountmp3.sh)?
It seems to run the commands fine here (running Porteus, which is based on Slackware) but I don't have mtpfs installed, so I'm not testing every element...
Click to expand...
Click to collapse
ok, I'm using linux mint kde 12.1, and I use kate for a text editor, I didn't do the chmod thing, I only used sh file.sh
@dex, ok..
.Ahau said:
What distribution are you using?
Also, what errors do you get when you save that text to a text file (do this in linux, not windows), e.g. mountmp3.sh, make it executable (chmod +x mountmp3.sh) and run it (./mountmp3.sh)?
It seems to run the commands fine here (running Porteus, which is based on Slackware) but I don't have mtpfs installed, so I'm not testing every element...
Click to expand...
Click to collapse
ok, it worked
thx
@dex, what kind of idiot do you think I am -_-
I always check executables before executing
husam666 said:
ok, it worked
thx
@dex, what kind of idiot do you think I am -_-
I always check executables before executing
Click to expand...
Click to collapse
oh come on
I know you liked my modifications
dexter93 said:
oh come on
I know you liked my modifications
Click to expand...
Click to collapse
btw, should I check the link you gave me?
husam666 said:
btw, should I check the link you gave me?
Click to expand...
Click to collapse
the "surprise" one? depends.. if you are brave enough
(you already know what it is though)
but the download link in my post is legit, it works
dexter93 said:
the "surprise" one? depends.. if you are brave enough
(you already know what it is though)
but the download link in my post is legit, it works
Click to expand...
Click to collapse
lmao, check my latest fb status then
husam666 said:
lmao, check my latest fb status then
Click to expand...
Click to collapse
that's where i got the idea from
glad it's working for you!
Hey Everyone,
When I get to the last step of the SlapMyMoto rooting process, I get the following error message:
Code:
/system/bin/sh: can't create /sys/kernel/uevent_helper: Permission denied
I was running into exactly the same problem yesterday, so today I started the entire process from scratch and manually typed everything in. I even ran the entire process from my Macbook (rather than a Windows VM) since several people said that the process worked on the first shot via Mac.
@jcase
If anyone can help, I'd really appreciate it. Thanks!
bobo-the-drunk said:
Hey Everyone,
When I get to the last step of the SlapMyMoto rooting process, I get the following error message:
Code:
/system/bin/sh: can't create /sys/kernel/uevent_helper: Permission denied
I was running into exactly the same problem yesterday, so today I started the entire process from scratch and manually typed everything in. I even ran the entire process from my Macbook (rather than a Windows VM) since several people said that the process worked on the first shot via Mac.
@jcase
If anyone can help, I'd really appreciate it. Thanks!
Click to expand...
Click to collapse
paste the command and full output here please
Thanks for the speedy reply @jcase! I accidentally closed the telnet terminal after I finished that part of the process, but here's all the ADB content.
Code:
supermacbook:~ Bobo$ adb shell getprop ro.boot.write_protect
0
supermacbook:~ Bobo$ adb push /Users/Bobo/Downloads/SlapMyMoto-1.0/SlapMyMoto.jar /sdcard/SlapMyMoto.jar
3848 KB/s (67653 bytes in 0.017s)
supermacbook:~ Bobo$ adb reboot
supermacbook:~ Bobo$ adb reboot
supermacbook:~ Bobo$ adb shell
[email protected]:/ $ cp /sdcard/install.sh /data/local/tmp/install.sh
[email protected]:/ $ chmod 755 /data/local/tmp/install.sh
[email protected]:/ $ echo "/data/local/tmp/install.sh" > /sys/kernel/uvent_helper
/system/bin/sh: can't create /sys/kernel/uevent_helper: Permission denied
Code:
[email protected]:/ $ echo "/data/local/tmp/install.sh" > /sys/kernel/uvent_helper
Typo, it is uevent_helper not uvent_helper
bobo-the-drunk said:
Thanks for the speedy reply @jcase! I accidentally closed the telnet terminal after I finished that part of the process, but here's all the ADB content.
Code:
supermacbook:~ Bobo$ adb shell getprop ro.boot.write_protect
0
supermacbook:~ Bobo$ adb push /Users/Bobo/Downloads/SlapMyMoto-1.0/SlapMyMoto.jar /sdcard/SlapMyMoto.jar
3848 KB/s (67653 bytes in 0.017s)
supermacbook:~ Bobo$ adb reboot
supermacbook:~ Bobo$ adb reboot
supermacbook:~ Bobo$ adb shell
[email protected]:/ $ cp /sdcard/install.sh /data/local/tmp/install.sh
[email protected]:/ $ chmod 755 /data/local/tmp/install.sh
[email protected]:/ $ echo "/data/local/tmp/install.sh" > /sys/kernel/uvent_helper
/system/bin/sh: can't create /sys/kernel/uevent_helper: Permission denied
Click to expand...
Click to collapse
You're right, but I actually already caught that (actually adb shell told me...)
Here's the unabridged version:
Code:
supermacbook:~ Bobo$ adb shell
[email protected]:/ $ cp /sdcard/install.sh /data/local/tmp/install.sh
[email protected]:/ $ chmod 755 /data/local/tmp/install.sh
sh[email protected]:/ $ echo "/data/local/tmp/install.sh" > /sys/kernel/uvent_helper
/system/bin/sh: can't create /sys/kernel/uvent_helper: No such file or directory
sh" > /sys/kernel/uvent_helper <
/system/bin/sh: can't create /sys/kernel/uvent_helper: No such file or directory
sh" > /sys/kernel/uevent_helper <
/system/bin/sh: can't create /sys/kernel/uevent_helper: Permission denied
1|[email protected]:/ $
sh" > /sys/kernel/uevent_helper <
/system/bin/sh: can't create /sys/kernel/uevent_helper: Permission denied
1|[email protected]:/ $
sh" > /sys/kernel/uevent_helper <
/system/bin/sh: can't create /sys/kernel/uevent_helper: Permission denied
1|[email protected]:/ $
sh" > /sys/kernel/uevent_helper <
/system/bin/sh: can't create /sys/kernel/uevent_helper: Permission denied
I'm having the same error
Has anyone had any success? I've tried on ubuntu and windoze 7. Both come back with this error:
/system/bin/sh: can't create /sys/kernel/uevent_helper: Permission denied
I'm so close, I can almost smell the root. Any additional help would be greatly appreciated.
Same here
acupunk said:
Has anyone had any success? I've tried on ubuntu and windoze 7. Both come back with this error:
/system/bin/sh: can't create /sys/kernel/uevent_helper: Permission denied
I'm so close, I can almost smell the root. Any additional help would be greatly appreciated.
Click to expand...
Click to collapse
Also getting this when trying to root. Im on windows 7
i think i know what your issue is. i did it last night when i was trying to root 4.4
your skipping a step.
after you type in cwgin
dalvikvm -cp /sdcard/SlapMyMoto.jar SlapMyMoto
then you reboot your device
but then you have to run the command again in cwgin but this time it should reboot it self.
then continue with the rest of the commands
i missed it the first time threw. and it gave me the same issue. hope that helps
Thanks
dray_jr said:
i think i know what your issue is. i did it last night when i was trying to root 4.4
your skipping a step.
after you type in cwgin
dalvikvm -cp /sdcard/SlapMyMoto.jar SlapMyMoto
then you reboot your device
but then you have to run the command again in cwgin but this time it should reboot it self.
then continue with the rest of the commands
i missed it the first time threw. and it gave me the same issue. hope that helps
Click to expand...
Click to collapse
Thank you, but that's not the problem. I did run slapmymoto twice. Any other ideas? I'm actually on a Droid Maxx so I can't downgrade and start over.
acupunk said:
Thank you, but that's not the problem. I did run slapmymoto twice. Any other ideas? I'm actually on a Droid Maxx so I can't downgrade and start over.
Click to expand...
Click to collapse
''
if you are allready on 4.4 i think your stuck for now untill they find a way to root 4.4 without downgrading
sounds like you missed something before you ran the OTA
bobo-the-drunk said:
Thanks for the speedy reply @jcase! I accidentally closed the telnet terminal after I finished that part of the process, but here's all the ADB content.
Code:
supermacbook:~ Bobo$ adb shell getprop ro.boot.write_protect
0
supermacbook:~ Bobo$ adb push /Users/Bobo/Downloads/SlapMyMoto-1.0/SlapMyMoto.jar /sdcard/SlapMyMoto.jar
3848 KB/s (67653 bytes in 0.017s)
supermacbook:~ Bobo$ adb reboot
supermacbook:~ Bobo$ adb reboot
supermacbook:~ Bobo$ adb shell
[email protected]:/ $ cp /sdcard/install.sh /data/local/tmp/install.sh
[email protected]:/ $ chmod 755 /data/local/tmp/install.sh
[email protected]:/ $ echo "/data/local/tmp/install.sh" > /sys/kernel/uvent_helper
/system/bin/sh: can't create /sys/kernel/uevent_helper: Permission denied
Click to expand...
Click to collapse
I was stuck here too until I realized that I was not su by default on the shell.
Type su and hit enter
once you have a # at the prompt then type the rest.
This fixed it for me right away.
n0-0ne said:
I was stuck here too until I realized that I was not su by default on the shell.
Type su and hit enter
once you have a # at the prompt then type the rest.
This fixed it for me right away.
Click to expand...
Click to collapse
Thanks, but su is not installed without root.
acupunk said:
Thanks, but su is not installed without root.
Click to expand...
Click to collapse
Ok, maybe I'm wrong but thats what worked for me, try it or not it's no skin off my back.
Root on Windows 7 wont work
I have tried about 5 times to get my Moto X rooted with SlapMyMoto and i have had no luck. Any help would be greatly appreciated.
supertrav1980 said:
I have tried about 5 times to get my Moto X rooted with SlapMyMoto and i have had no luck. Any help would be greatly appreciated.
Click to expand...
Click to collapse
make your own thread and make sure you paste your CMD with the error your gettings or the issues your having.
Root on Windows 7 wont work
dray_jr said:
make your own thread and make sure you paste your CMD with the error your gettings or the issues your having.
Click to expand...
Click to collapse
will do. thanks.
Dears maybe now I can make double post but I hang on that step from guide from this site.
Phone is after wipe data and I need rescue data from it for that I want to make RAW image to recover data.
What I do until now:
adb forward tcp:5555 tcp:5555
adb shell
su
/system/xbin/busybox nc -l -p 5555 -e /system/xbin/busybox dd if=/dev/block/mmcblk0
but in results get:
1|ASUS_I001_1:/ # /system/xbin/busybox nc -1 -p 5555 -e /system/xbin/busybox dd
5555 -e /system/xbin/busybox dd if=/dev/block/mmcblk0 <
nc: invalid option -- 1
BusyBox v1.32.0-Stericson (2020-07-18 18:33:24 EDT) multi-call binary.
Usage: nc [OPTIONS] HOST PORT - connect
nc [OPTIONS] -l -p PORT [HOST] [PORT] - listen
-e PROG Run PROG after connect (must be last)
-l Listen mode, for inbound connects
-lk With -e, provides persistent server
-p PORT Local port
-s ADDR Local address
-w SEC Timeout for connects and final net reads
-i SEC Delay interval for lines sent
-n Don't do DNS resolution
-u UDP mode
-v Verbose
-o FILE Hex dump traffic
-z Zero-I/O mode (scanning)
1|ASUS_I001_1:/ #
Why I get that this parameter is invalid:
nc: invalid option -- 1
And to the end, if that don't work to me, next step also don't work.
Open another Cygwin terminal and type:
Code:
adb forward tcp:5555 tcp:5555
cd /path/to/store/the/backup ---> this is correct, should I creat some folder on HHD and insert here his name?
nc 127.0.0.1 5555 | pv -i 0.5 > mmcblk0.raw --> that means I should have ftp serwer?
Mod edit: @Vergiliusz Thread closed as duplicate of
Ho to back up of the whole memory block (via adb)
Dears maybe now I can make double post but I hang on that step from guide from this site. Phone is after wipe data and I need rescue data from it for that I want to make RAW image to recover data. What I do until now: adb forward tcp:5555...
forum.xda-developers.com
Please review the XDA Forum Rules with special emphasis on rule no. 5 and post only once - and such a subject not in development!
Regards
Oswald Boelcke
Dears maybe now I can make double post but I hang on that step from guide from this site.
Phone is after wipe data and I need rescue data from it for that I want to make RAW image to recover data.
What I do until now:
adb forward tcp:5555 tcp:5555
adb shell
su
/system/xbin/busybox nc -l -p 5555 -e /system/xbin/busybox dd if=/dev/block/mmcblk0
but in results get:
1|ASUS_I001_1:/ # /system/xbin/busybox nc -1 -p 5555 -e /system/xbin/busybox dd
5555 -e /system/xbin/busybox dd if=/dev/block/mmcblk0 <
nc: invalid option -- 1
BusyBox v1.32.0-Stericson (2020-07-18 18:33:24 EDT) multi-call binary.
Usage: nc [OPTIONS] HOST PORT - connect
nc [OPTIONS] -l -p PORT [HOST] [PORT] - listen
-e PROG Run PROG after connect (must be last)
-l Listen mode, for inbound connects
-lk With -e, provides persistent server
-p PORT Local port
-s ADDR Local address
-w SEC Timeout for connects and final net reads
-i SEC Delay interval for lines sent
-n Don't do DNS resolution
-u UDP mode
-v Verbose
-o FILE Hex dump traffic
-z Zero-I/O mode (scanning)
1|ASUS_I001_1:/ #
Why I get that this parameter is invalid:
nc: invalid option -- 1
And to