[Q] adb pulling files - Atrix 4G Q&A, Help & Troubleshooting

Hi, i need to get this files pn stock 2.2.2 and 2.3.4 without root and with locked bootloader
i was trying to get them via adb, but permission denied. Which options can u propose?
adb pull /system/xbin/su C:/uas/su.txt
adb pull /proc/cmdline C:/uas/cmdline.txt
adb pull /sys/firmware/fuse/ReservedOdm C:/uas/ReservedOdm.txt
but build.prop copyes ok!
adb pull /system/build.prop C:/uas/build.prop

Did you run adb with su permission
sent from my Atrix via XDA premium

how can i do that?

agurzhiy said:
how can i do that?
Click to expand...
Click to collapse
in command prompt:
adb root

nothing changes...

Related

[GUIDE] Properly Setting Up Root for Your X10

Okay, so I've noticed that this rooting method is a little unconventional. It works through a compromised Fota.pkg which has setuid on /system/bin/sh as root. This is not a very safe, as any application that runs sh will gain root access to your system. Scary... :S Anyway, in order to fix this we need to take a few steps.
It is important that you do these in order, otherwise you may lose root access
Install a proper SU with whitelist
1. Download http://bit.ly/aWgALL
2. Unzip the system folder.
3.
Code:
adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system
adb push system/bin/su /sdcard/su
adb push system/app/Superuser.apk /sdcard/Superuser.apk
adb shell dd if=/sdcard/su of=/system/bin/su
adb shell dd if=/sdcard/Superuser.apk of=/system/app/Superuser.apk
adb shell chmod 6777 /system/bin/su
adb shell chmod 644 /system/app/Superuser.apk
4. Reboot your phone.
Fix sh to not setuid to root
1.
Code:
adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system
adb shell chmod 0755 /system/bin/sh
Properly install busybox
1. Here, it's easier to look for the busybox installer app from the market and then install from there. If you did everything correctly, then after you hit install in the busybox app a prompt will come up asking you to allow the app to have root. Hit allow.
You're done!
this might be stupid questions, i know. But where should I unzip the system folder that mentioned to? And where to type those command?
chai_archer said:
this might be stupid questions, i know. But where should I unzip the system folder that mentioned to? And where to type those command?
Click to expand...
Click to collapse
If you followed the root guide you can put it in the step 4 folder.
Then hit windows key + r and in the box type CMD
A console window comes up.
in the console window type cd <path.to.your.step.4.folder>
then go from there.
zephyrix said:
Properly install busybox
1. Here, it's easier to look for the busybox app from the market and then install from there. If you did everything correctly, then after you hit install in the busybox app a prompt will come up asking you to allow the app to have root. Hit allow.
You're done!
Click to expand...
Click to collapse
i did everything as mentioned but it dint ask me for permission wen installin busybox is it because i had it installed sometime before runnin this guide?
yea i knw im a noob after all
bcool15 said:
i did everything as mentioned but it dint ask me for permission wen installin busybox is it because i had it installed sometime before runnin this guide?
yea i knw im a noob after all
Click to expand...
Click to collapse
yep.
if you check the superuser app it should already be there.
zephyrix said:
yep.
if you check the superuser app it should already be there.
Click to expand...
Click to collapse
all i see in superuser app is titanium backup pro
that's strange. does busybox report that it's installed?
zephyrix said:
that's strange. does busybox report that it's installed?
Click to expand...
Click to collapse
nope it doesnt
well i tried all this and now i lost my root. Did EXACTLY what's written. Anyway to reverse this and get my root back?
unknown13x said:
well i tried all this and now i lost my root. Did EXACTLY what's written. Anyway to reverse this and get my root back?
Click to expand...
Click to collapse
i think i lost mine too but to reactivate there is command or prolly i just messed up summmwhere n redid my whole root with v3 update
bcool15 said:
i think i lost mine too but to reactivate there is command or prolly i just messed up summmwhere n redid my whole root with v3 update
Click to expand...
Click to collapse
use "su" to get root access... allow when the Superuser Whitelist notification pops up.
it worked for me....followed the steps, after i downloaded the busybox app i opened it and a box popped up "Superuser Request", it had discription of the busybox app and then asked whether to allow or deny the request....i then checked the superuser app and was able to see the busybox app in thr....
can anyone confirm if these steps were added in the new root method? please
bcool15 said:
can anyone confirm if these steps were added in the new root method? please
Click to expand...
Click to collapse
I'd like to know that too, I mean, in 2v2 do we still need to do the whitelist thing?
root in adb
I tried this on the last root (ROOT_F2v2) and I lost root in adb..
I still had regular root
I had to revert it back with "chmod 6777 /system/bin/sh" to get adb do admin task again.. (I use adb regularly)
Does anyone know how to secure sh and still have root in adb?
Regards.
th4r said:
I tried this on the last root (ROOT_F2v2) and I lost root in adb..
I still had regular root
I had to revert it back with "chmod 6777 /system/bin/sh" to get adb do admin task again.. (I use adb regularly)
Does anyone know how to secure sh and still have root in adb?
Regards.
Click to expand...
Click to collapse
adb shell su
And after superuser popup add "unknown application" to the whitelist.
Chillest said:
adb shell su
And after superuser popup add "unknown application" to the whitelist.
Click to expand...
Click to collapse
Yes that give me root in adb shell but adb is still running unprivileged.
I believe it's because we can't patch the bootloader yet, so we still have getprop ro.secure 1. :'(
I did a little script to toggle setuid on /system/bin/sh when I'm doing root stuff from adb
Sent from my rooted X10i
I have installed this to protect the system.
The only concern I have is i cannot run for example my cleaning script.
If i type into cmd ;
"adb shell su" it comes up with a # and freezes. If i type in
"adb shell<enter>
su" it works fine. and i can paste all the commands in line by line.
If i do either in a bat or cmd file it crashes. How do i run scripts as su
Here are the answers....
bcool15 said:
can anyone confirm if these steps were added in the new root method? please
Click to expand...
Click to collapse
No they were not. The reason is that many of the rooting steps rely on a setuid "sh"
gfgodoy said:
I'd like to know that too, I mean, in 2v2 do we still need to do the whitelist thing?
Click to expand...
Click to collapse
Yes
Chillest said:
adb shell su
And after superuser popup add "unknown application" to the whitelist.
Click to expand...
Click to collapse
So what? The uid for the shell application launched after invoking "adb shell" is not going to match any of the installed applications anyways. The thing is that Superuser.apk installs a mechanism by which the user (human) can detect when an application is requesting root access. Based upon the nature of the application you may or may not want to grant root access. That is the whole point.
th4r said:
Yes that give me root in adb shell but adb is still running unprivileged.
I believe it's because we can't patch the bootloader yet, so we still have getprop ro.secure 1. :'(
I did a little script to toggle setuid on /system/bin/sh when I'm doing root stuff from adb
Sent from my rooted X10i
Click to expand...
Click to collapse
Oh yeah? I just use "su" whenever I want root access... and I didnt have to write any scripts to enable/disable it.
k1ckn1ck said:
I have installed this to protect the system.
The only concern I have is i cannot run for example my cleaning script.
If i type into cmd ;
"adb shell su" it comes up with a # and freezes. If i type in
"adb shell<enter>
su" it works fine. and i can paste all the commands in line by line.
If i do either in a bat or cmd file it crashes. How do i run scripts as su
Click to expand...
Click to collapse
Then you shouldn't be rooting in the first place. Take my advice, lay off the rooting. It definitely doesn't have anything that will be of advantage to you.
j4mm3r said:
Then you shouldn't be rooting in the first place. Take my advice, lay off the rooting. It definitely doesn't have anything that will be of advantage to you.
Click to expand...
Click to collapse
easy now, it's a fair question, would be nice to be able to run cleaning scripts on a protected system. no need to be a prick
in answer to the question though, once the batch starts adb shell, it won't continue till that process ends
I did some googling for some comandline tools that might allow sending keystrokes to a process, but nothing easy appeared, looks like your only option is to use a linux friendly notepad to create some shell scripts you can execute from the sdcard. i.e. on device
su
chmod 755 /sdcard/myscript.sh
./sdcard/myscript.sh
easiest way to do scripts on a secured root IMO

[Q] System R/W Fail

Am I the only that cant write to the system? Ive done eveything to get root but when i type the adb remount command it says im not permitted to do that. When i try to push a file to the system it fails aslo..says not allowed...
lopez62 said:
Am I the only that cant write to the system? Ive done eveything to get root but when i type the adb remount command it says im not permitted to do that. When i try to push a file to the system it fails aslo..says not allowed...
Click to expand...
Click to collapse
Maybe try starting a new command line? Remember that adb remount must be done before adb shell.
#Winning# said:
Maybe try starting a new command line? Remember that adb remount must be done before adb shell.
Click to expand...
Click to collapse
i didnt even enter adb shell before i typed adb remount....i did one of the temp roots and was able to get R/W but when i rebooted it was R/O...still had root tho.

How to do this ADB command Will pay!

Willing to pay someone to show me how to do this command:
Step by step instructions and I'll give you $20.00
-------------------------------------------------------------
You will need modified libraries to take full advantage of this kernel as they override speeds at times, you can find these here.
You'll have to push them over adb for now after flashing the kernel, when CWM is up I will make a CWM zip for it.
From the directory with adb and the three .so files:
Code:
adb remount
adb push libhardware_legacy.so /system/lib/
adb push librpc.so /system/lib/
adb push libandroid_runtime.so /system/lib/
adb shell chmod 0644 /system/lib/libhardware_legacy.so
adb shell chmod 0644 /system/lib/librpc.so
adb shell chmod 0644 /system/lib/libandroid_runtime.so
adb reboot
What does it tell you when you try to run the first command?
You've got to have ADB installed first.
Download the modified files from that post and extract them to a folder lets say C:\
Hit start run CMD now type CD C:\
Now type those commands that you posted one by one with your phone in Dev Mode plugged into the computer.
& give the $ to the man who deserves it Da_G!
sent from AT&T Samsung Galaxy Note Dual Core 1.83 GHz
You,need ti set up adb first .. Click the chat libk in my sig i will help you live..
Sent from my GT-I9000 using xda premium
BrandonPrice31 said:
Willing to pay someone to show me how to do this command:
Step by step instructions and I'll give you $20.00
-------------------------------------------------------------
You will need modified libraries to take full advantage of this kernel as they override speeds at times, you can find these here.
You'll have to push them over adb for now after flashing the kernel, when CWM is up I will make a CWM zip for it.
From the directory with adb and the three .so files:
Code:
adb remount
adb push libhardware_legacy.so /system/lib/
adb push librpc.so /system/lib/
adb push libandroid_runtime.so /system/lib/
adb shell chmod 0644 /system/lib/libhardware_legacy.so
adb shell chmod 0644 /system/lib/librpc.so
adb shell chmod 0644 /system/lib/libandroid_runtime.so
adb reboot
Click to expand...
Click to collapse
enable USB debugging in settings on phone.
Connect phone to your pc.
run 'adb' on your PC from the command line.
If you do not have the USB drivers etc installed, see http://developer.android.com/sdk/index.html and http://developer.android.com/sdk/win-usb.html
once you have adb working (e.g. you can run 'adb devices' and see your phone) just type the command as above.
donbowman said:
enable USB debugging in settings on phone.
Connect phone to your pc.
run 'adb' on your PC from the command line.
If you do not have the USB drivers etc installed, see http://developer.android.com/sdk/index.html and http://developer.android.com/sdk/win-usb.html
once you have adb working (e.g. you can run 'adb devices' and see your phone) just type the command as above.
Click to expand...
Click to collapse
I have all of that but once I get to that part it doesnt work..
He only gives one file:
http://forum.xda-developers.com/showthread.php?t=1504920
maxjivi05 said:
You've got to have ADB installed first.
Download the modified files from that post and extract them to a folder lets say C:\
Hit start run CMD now type CD C:\
Now type those commands that you posted one by one with your phone in Dev Mode plugged into the computer.
& give the $ to the man who deserves it Da_G!
sent from AT&T Samsung Galaxy Note Dual Core 1.83 GHz
Click to expand...
Click to collapse
Problem is there is only one file given?
http://forum.xda-developers.com/showthread.php?t=1504920
BrandonPrice31 said:
I have all of that but once I get to that part it doesnt work..
He only gives one file:
http://forum.xda-developers.com/showthread.php?t=1504920
Click to expand...
Click to collapse
ah, the files are in a tar.gz file.
If you are on windows, open this with winzip and extract.
if u r on linux, do 'tar zxvf modded-libs.tar.gz'
You need to install the SDK for Windows to get ADB installed. That would be easiest
sent from AT&T Samsung Galaxy Note Dual Core 1.83 GHz
There are three files in there. it's a tar.gz file. You have to extract twice. Once to get a .tar file, then you extract the three files from the .tar.
DAGr8 said:
You,need ti set up adb first .. Click the chat libk in my sig i will help you live..
Sent from my GT-I9000 using xda premium
Click to expand...
Click to collapse
Waiting for your response
Okay so I have the three files unzipped, where do I place them so the commands will work?
uh, any old directory will do.
then 'cd' to that directory.
then run adb as above.
the 'adb push' will be copying them to the device.
For some reason the overclock freezes on me I don't get it.
try 1 notch above 1544 speed first.
BrandonPrice31 said:
For some reason the overclock freezes on me I don't get it.
Click to expand...
Click to collapse
Im sorry something came up im afk atm hang around ill help when i get home in about an hour
Sent from my GT-I9000 using xda premium

[Q] xperia sola recovery mode

i need to pull and push some system files in my phone for that i need to enter recovery mode in my xperia sola.please help to enter recovery mode.my phone is rooted.thanks in advance :good:
dviraj00 said:
i need to pull and push some system files in my phone for that i need to enter recovery mode in my xperia sola.please help to enter recovery mode.my phone is rooted.thanks in advance :good:
Click to expand...
Click to collapse
I think you dont need to put your device to recovery mode. Just use adb shell
to pull: (no need superuser privileges)
ex: format: adb pull [location of the file in the device] [to where the file is save locally]
adb pull /system/xbin/su c:
Click to expand...
Click to collapse
to push: (need su) since you rooted then:
adb shell
su
mount -o remount,rw /dev/block/stl9 /system
chmod 777 /system/app
then exit from devices, go to your command prompt and type:
adb push <local> <remote>
Click to expand...
Click to collapse
Hope it helps
capsule46 said:
I think you dont need to put your device to recovery mode. Just use adb shell
to pull: (no need superuser privileges)
to push: (need su) since you rooted then:
Hope it helps
Click to expand...
Click to collapse
thank you mate bt i am just a noob and dont know how to use adb shell.can u tell me plzz.this will save my relationship,plz mate
Hi, sorry for late reply
I assume you have installed your device driver properly
Then install android sdk: go to developer.android.com/sdk
Follow the step to install it. If you done it properly,you will find adb command in folder installation name platform-tools
Use it in command prompt. You can type adb /? to learn its capability.
Or you just go frok my post earlier
Hope it helps
Sent from my GT-N7100 using Tapatalk 2

[Q] ADB PUSH Permission denied

I need help with this ASAP, as my device is currently in a bootloop because a boot animation app didn't work as well as I thought it would and my Dell Streak 7 will not boot up.
The device does still respond to adb commands, so there's a chance at saving it.
Unfortunately, I cannot get adb push to work, it says no permission when I try to do:
adb push bootanimation.zip /system/media
It says permission denied. I either need to know how to get adb push working or how to COMPLETELY reset the tablet, including all the system files such as bootanimation.zip. I need help as soon as possible
HackAttack37 said:
I need help with this ASAP, as my device is currently in a bootloop because a boot animation app didn't work as well as I thought it would and my Dell Streak 7 will not boot up.
The device does still respond to adb commands, so there's a chance at saving it.
Unfortunately, I cannot get adb push to work, it says no permission when I try to do:
adb push bootanimation.zip /system/media
It says permission denied. I either need to know how to get adb push working or how to COMPLETELY reset the tablet, including all the system files such as bootanimation.zip. I need help as soon as possible
Click to expand...
Click to collapse
Ok, I can help.
First, you cannot adb push to a system partition. you would need to have unprotected adb running in su mode.
Also, you will have to remount the system partition to rw.
try this code:
Code:
adb push bootanimation.zip /data/local/tmp/bootanimation.zip
adb shell "su -c busybox mount -o remount,rw /system"
adb shell "su -c cat /data/local/tmp/bootanimation.zip > /system/media/bootanimation.zip"

Categories

Resources