Hey all, so I own a Galaxy Tab 2 and a developer there was kind enough to show me the Terminal Emulator commands for backing up the EFS into an .img file. The commands were:
su
busybox dd if=/dev/block/mmcblk0p1 of=/sdcard/efs.img bs=4096
exit
And to restore:
su
busybox dd if=/sdcard/efs.img of=/dev/block/mmcblk0p1 bs=4096"
exit
I'm pretty sure the commands aren't the same for our G2 and was wondering if anyone knows the proper commands (or if they are same)? I have a VS980 running stock KK (24A) with Simple Kernel (newest version). I also have Xposed and V4A installed if that matters.
This would benefit A LOT of members on here if anyone knows for sure!
(I have a TWRP backup of EFS as well, but having more than one type is a good thing, right?)
Nevermind! @dr87 was kind enough to direct me to this thread!
http://forum.xda-developers.com/showthread.php?t=2451390
Take advantage those who haven't!!
Sent from my VS980 4G using XDA Premium 4 mobile app
Related
So, I just got this phone.
Not having permanent root is killing me, but I think this should solve the issue of disappearing su and busybox.
The general idea is to move all our root binaries to /data/local/bin, and remount /data to accept suid binaries (the 'su' binary requires sticky bit, aka chmod 4755). After you set that, you bind mount /system/xbin to /data/local/bin. Bind mounts stay in memory, and aren't cleared like mods to /system are.
This won't solve the issue of stuff in /system going away, but it will solve the issue of having your root utilities go away after a short amount of time.
This section would be run from the desktop PC on the first time of 'rooting' the phone:
Code:
adb install superuser.apk
adb push zergRush /data/local/tmp/zergRush
adb shell "chmod 755 /data/local/tmp/zergRush;/data/local/tmp/zergRush"
adb shell "mkdir /data/local/bin"
adb push su /data/local/bin/su
adb push busybox /data/local/bin/busybox
adb push temproot.sh /data/local/tmp/temproot.sh
adb shell "chmod 755 /data/local/tmp/temproot.sh;/data/local/tmp/temproot.sh"
and the 'temproot.sh' file would contain:
Code:
#!/system/bin/sh
mount -o remount,suid /dev/block/mmcblk0p34 /data
chmod 4755 /data/local/bin/su
chmod 755 /data/local/bin/busybox
cat /system/xbin/dexdump > /data/local/bin/dexdump
cat /system/xbin/wireless_modem > /data/local/bin/wireless_modem
/data/local/bin/busybox mount --bind /data/local/bin /system/xbin
on a reboot, all you'd have to run from the desktop PC would be:
Code:
adb push zergRush /data/local/tmp/zergRush
adb shell "chmod 755 /data/local/tmp/zergRush;/data/local/tmp/zergRush"
adb shell "mount -o remount,suid /dev/block/mmcblk0p34 /data"
adb shell "/data/local/bin/busybox mount --bind /data/local/bin /system/xbin"
and you'd be back to working.
let me know what y'all think, hopefully this solves something or isn't something already been done before
Thanks for looking!
EDIT:
upon discussing some other possibilities with a friend, he suggested "why not have this all happen on-device?"
it appears there may be a way to temproot/do the above all on the device without the need for a PC!
(dev details: adbd listens on localhost:5037, run zergrush then take adb client on phone connect to adbd on phone and run the temproot scripts)
exciting stuff here, folks!
This should work. If the device is killing any mods in the system folder just move it to the data folder. Just install superuser in the data/app.
Sent from my Sensation using XDA App
Sounds like an interesting idea. I've played around with moving su to different places with no luck, but I hadn't tried moving everything to /data. I'll try it and see if it helps!
Sent from my HTC PH39100 using XDA App
This works for my phone-- I've rooted it with this method, and rebooted then ran my 'on reboot' script, and the phone is good to go again.
Right now I'm working on a method to do all this on-device and at boot.
The process should work, since the zergRush exploit restarts the adb server as root, so in theory connecting to the adb server from the phone itself should give it root privileges.
Once you've got root privileges, the app can decide whether it's been 'rooted' before or not, and apply the proper script (either install busybox and su, or just re-mount the necessary partitions).
Hopefully this all makes sense, I'll try to make a proof of concept sometime soon... but I'll probably make a windows GUI first.
What about running a script that gives root on each boot
Sent from my Sensation using XDA App
you might talk to the guys that wrote the visionary root app that we used on the G2/desire z. i think it was paul obrien. it was an app that would do this on reboot for you.
Script Manager by devwom
Pirateghost said:
you might talk to the guys that wrote the visionary root app that we used on the G2/desire z. i think it was paul obrien. it was an app that would do this on reboot for you.
Click to expand...
Click to collapse
Sent from my Sensation using XDA App
Pirateghost said:
you might talk to the guys that wrote the visionary root app that we used on the G2/desire z. i think it was paul obrien. it was an app that would do this on reboot for you.
Click to expand...
Click to collapse
Speaking of visionary, has anyone tried that route yet?
malickie said:
Speaking of visionary, has anyone tried that route yet?
Click to expand...
Click to collapse
Tried Visonary no go.
So nice of thecubed to up and leave the revo community and not say anything. Great job thecubed!
I've been Supercharged and Gingervolted!
RootedUser said:
So nice of thecubed to up and leave the revo community and not say anything. Great job thecubed!
I've been Supercharged and Gingervolted!
Click to expand...
Click to collapse
Why you mad 4 bro?
Sent from my HTC PH39100 using xda premium
Not mad at all! "Bro"
I've been Supercharged and Gingervolted!
Clockworkmod just released touch recovery 6.0.1.5. I know you can download it from their site but I can't find a way to do so(when I click download I just see a page with lots of characters). Can anyone zip it so that we can get this awesome recovery love for p990?
Thx in advance
Sent from my LG-P990 using xda premium
If you use another browser you can download the recovery image but I don't know how to flash it
Via ROM manager
Sent from my LG-P999
emanuele95 said:
but I don't know how to flash it
Click to expand...
Click to collapse
As already mentioned, you can do it using ROM Manager. Otherwise, flash IMG file via cmd line, either from a PC:
Code:
adb push XXX.img /data/local/
adb shell "su -c 'dd if=/data/local/XXX.img of=/dev/block/mmcblk0p7'"
adb shell rm /data/local/XXX.img
...or in terminal on the phone itself under su, once you copy the file somewhere on an SD card:
Code:
dd if=/path_to_file/XXX.img of=/dev/block/mmcblk0p7
Just replace "path_to_file" and "XXX" with the actual path and filename.
How to flash the .IMG through ROM manager?
Sent from my LG-P990 using xda premium
kt-Froggy said:
As already mentioned, you can do it using ROM Manager. Otherwise, flash IMG file via cmd line, either from a PC:
Code:
adb push XXX.img /data/local/
adb shell "su -c 'dd if=/data/local/XXX.img of=/dev/block/mmcblk0p7'"
adb shell rm /data/local/XXX.img
...or in terminal on the phone itself under su, once you copy the file somewhere on an SD card:
Code:
dd if=/path_to_file/XXX.img of=/dev/block/mmcblk0p7
Just replace "path_to_file" and "XXX" with the actual path and filename.
Click to expand...
Click to collapse
Thanks..installed with terminal emulator
So the O2X has official CWM Touch?
Uh... the o2x was the 2nd phone to get it. It was one of the models it was worked on.
What would it take to port it to g2x?
Sent from my LG-P999 using xda app-developers app
Thanks armcee you are the best! Also I have flashed the recovery through terminal emulator and it is the best recov!
Sent from my LG-P990 using xda premium
aremcee said:
Uh... the o2x was the 2nd phone to get it. It was one of the models it was worked on.
Click to expand...
Click to collapse
I thought it didn't purely because of this http://forum.xda-developers.com/showthread.php?t=1825510
Andy HOT said:
How to flash the .IMG through ROM manager?
Sent from my LG-P990 using xda premium
Click to expand...
Click to collapse
Not possible.
Install rom manager from gplay, open it buy rom manager primium it will then give u option for installing cwm touch
Sent from my Galaxy Nexus using xda premium
Reply to the recovery.img treath in dev section but can't post upthere. Maybe a moderator can make the move or copy paste it inthere. thx
You don't need Ubuntu to pull the recovery from yr device. Just connect,
adb shell
su
dd if=/dev/block/mmcblk0p21 of=/storage/extSdCard/recovery.img bs=4096
exit
adb pull /storage/recovery.img C:\recovery.img
extract/edit possible in kitchen or whatever you use
gummygum said:
Reply to the recovery.img treath in dev section but can't post upthere. Maybe a moderator can make the move or copy paste it inthere. thx
You don't need Ubuntu to pull the recovery from yr device. Just connect,
adb shell
su
dd if=/dev/block/mmcblk0p21 of=/storage/extSdCard/recovery.img bs=4096
exit
adb pull /storage/recovery.img C:\recovery.img
extract/edit possible in kitchen or whatever you use
Click to expand...
Click to collapse
Thank you for this.
With your permission (as i'm not a mod) i will upload this to the recovery thread.
quendil said:
Thank you for this.
With your permission (as i'm not a mod) i will upload this to the recovery thread.
Click to expand...
Click to collapse
sure, no problem, also extracted the pit & about all else there is to the device so if need something just ask away.
Im about done with a modified flashfile with tweaked kernel, framework, su, busybox, deodexed, init-d support, ....
gummygum said:
Reply to the recovery.img treath in dev section but can't post upthere. Maybe a moderator can make the move or copy paste it inthere. thx
You don't need Ubuntu to pull the recovery from yr device. Just connect,
adb shell
su
dd if=/dev/block/mmcblk0p21 of=/storage/extSdCard/recovery.img bs=4096
exit
adb pull /storage/recovery.img C:\recovery.img
extract/edit possible in kitchen or whatever you use
Click to expand...
Click to collapse
Will something change if I omit the bs option? Sorry, I don't know much about Unix commands.
aureljared said:
Will something change if I omit the bs option? Sorry, I don't know much about Unix commands.
Click to expand...
Click to collapse
same, you can ignore it
it is related to size
samersh72 said:
same, you can ignore it
it is related to size
Click to expand...
Click to collapse
Good to know. I already pulled before I read this post, so I was kinda scared
Sent from my rooted GT-I8730 using xda-developers
gummygum said:
Reply to the recovery.img treath in dev section but can't post upthere. Maybe a moderator can make the move or copy paste it inthere. thx
You don't need Ubuntu to pull the recovery from yr device. Just connect,
adb shell
su
dd if=/dev/block/mmcblk0p21 of=/storage/extSdCard/recovery.img bs=4096
exit
adb pull /storage/recovery.img C:\recovery.img
extract/edit possible in kitchen or whatever you use
Click to expand...
Click to collapse
I'm attempting to do this same type of process with a different phone yet I run into problems such as "cannot open for write: read only file system"
Hi everyone, I searched but didn't found but if any thread out there about installing a recovery without a pc(rooted with towelroot and installed super su and busybox and recovery-less). I know it's irrelevant but if there is a way to do it, it'll be super-awesome!!
As far as I know a PC is needed. This because we cant flash anything without a PC or a recovery..
Perhaps a developer can create a script that can be used with a script thing on the phone?
~~ Regards
This might be a revolutionary idea, @MrSteve555 introduced flash tool on the go and if this also happens, we might not need pc every time.
pranavthombare said:
This might be a revolutionary idea, @MrSteve555 introduced flash tool on the go and if this also happens, we might not need pc every time.
Click to expand...
Click to collapse
It's easy .
Download the latest recovery-flashable recovery package from dssmex.
Extract /data/local/tmp from the zip to same path on your phone.
Then run these commands from terminal:
Code:
chmod 755 data/local/tmp/step1.sh
sh /data/local/tmp/step1.sh
This way you can do pretty much everything without PC
You are awesome buddy. Thanks
Help
MrSteve555 said:
It's easy .
Download the latest recovery-flashable recovery package from dssmex.
Extract /data/local/tmp from the zip to same path on your phone.
Then run these commands from terminal:
Code:
chmod 755 data/local/tmp/step1.sh
sh /data/local/tmp/step1.sh
This way you can do pretty much everything without PC
Click to expand...
Click to collapse
Can you plz elaborate extraction step..
i m confused,which file to be extracted to the phone at which path!
You can use terminal emulator. .or mobile uncle tool to install recovery without pc
Press thanks
pradip.108 said:
You can use terminal emulator. .or mobile uncle tool to install recovery without pc
Press thanks
Click to expand...
Click to collapse
Actually the recovery partition is missing (I think so.).
How to use terminal emulator for installation ??
Then, download a terminal emulator onto your
and fire it up.
Once in the terminal emulator, type the following
commands one line at a time, waiting after each
line for the appropriate prompt:
$ su
# dd if=/sdcard/recovery.img of=/dev/block/
mmcblk0p18
# reboot recovery
Your device should then boot into the custom
recovery, which serves as immediate confirmation
that you did things correctly.
Sent from my GT-I8262 using XDA Free mobile app
No need to type commands just use root browser and just click on step1.sh and execute script as root and its done.
Hit " Thanks " if helpful.. :good:
Ok done?
Sent from my GT-I8262 using XDA Free mobile app
MrSteve555 said:
It's easy .
Download the latest recovery-flashable recovery package from dssmex.
Extract /data/local/tmp from the zip to same path on your phone.
Then run these commands from terminal:
Code:
chmod 755 data/local/tmp/step1.sh
sh /data/local/tmp/step1.sh
This way you can do pretty much everything without PC
Click to expand...
Click to collapse
After executing the script in the logs i have :
installation : OK
Model Number : C5303
Version : Unknow --> (ERROR: NOT COMPATIBLE)
Hi all,
Have had an issue with my auto brightness and proximity amongst other sensors for a while now.
Could someone upload theirs please?
There's no info in there anyone could use against you so it's safe and it's simple a copy, not the actually partition.
Feel free to remove any fingerprints first.
Pop this into termux with root.
Su
dd if=/dev/block/bootdevice/by-name/persist of=/sdcard/persist.img
Or this into ADB with root
adb shell
su
dd if=/dev/block/bootdevice/by-name/persist of=/sdcard/persist.img
It'll copy it to the root of your storage in /sdcard as per the above is command.
Appreciate it, thanks.
PS: if this doesn't work then I'll send the device back.
Don't think anyone else has this issue but I've seen that this has worked on the OnePlus 5 and 8 so thought I'd give it a shot..