• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root in need of a file

1mouse3

Member
i need someone to pull me a file from cwm, boot into cwm an run this in a terminal

adb pull /proc/kallsyms

an upload it, thanks
 
this should work when in a rom

in terminal on the phone or through adb shell
$ su
$ # echo 1 > /proc/sys/kernel/kptr_restrict
$ # cat /proc/kallsyms &> /mnt/sdcard/kallsyms

now exit an its on your sd so..
$ # adb pull /mnt/sdcard/kallsyms
 
might, might not, really dont know

I/O Redirection

but i know that the standard for redirecting output is just >

ampersand doesnt really mean and in that context
if you want something that actually means and in code its && as in

Code:
cat /proc/kallsyms && grep "c010b22c" > /mnt/sdcard/kallsyms
which has another inherent issue anyway... zte jellybean roms dont use mnt anymore they use storage, so youll wanna just do a simple redirect to /sdcard/kallsyms
 
A single & actually sends the process to the background, and && waits for the first command to complete before moving on to the next. In junkie2100's example, it would actually be better to do

Code:
cat /proc/kallsyms | grep "c010b22c" > /mnt/sdcard/kallsyms

edit: Regardless of all that, after further reading 1mouse3's original command should work fine :)
 
Back
Top Bottom