1. Download our Official Android App: Forums for Android!

Root in need of a file

Discussion in 'Android Devices' started by 1mouse3, Jan 29, 2014.

  1. 1mouse3

    1mouse3 Member
    Thread Starter
    Rank:
    None
    Points:
    18
    Posts:
    65
    Joined:
    Jul 28, 2013

    Jul 28, 2013
    65
    15
    18
    Male
    on the moon
    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
     

    Advertisement

  2. stevestone

    stevestone Well-Known Member
    Rank:
    None
    Points:
    43
    Posts:
    226
    Joined:
    Sep 29, 2011

    Sep 29, 2011
    226
    39
    43
  3. 1mouse3

    1mouse3 Member
    Thread Starter
    Rank:
    None
    Points:
    18
    Posts:
    65
    Joined:
    Jul 28, 2013

    Jul 28, 2013
    65
    15
    18
    Male
    on the moon
    that is odd, that it comes out blank. this is what it should end looking like

    https://www.dropbox.com/s/oh53ykcbscvq4io/kallsyms

    let see what I can figer out about this, I am getting this issue when booting this kernel and trying to find out what c010b22c ties to.

    [c010b22c] *pgd=8021140e(bad)
    Internal error: Oops: 80d [#1] PREEMPT SMP
     
  4. 1mouse3

    1mouse3 Member
    Thread Starter
    Rank:
    None
    Points:
    18
    Posts:
    65
    Joined:
    Jul 28, 2013

    Jul 28, 2013
    65
    15
    18
    Male
    on the moon
    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
     
  5. junkie2100

    junkie2100 Android Expert
    Rank:
    None
    Points:
    313
    Posts:
    3,311
    Joined:
    Mar 11, 2012

    Mar 11, 2012
    3,311
    695
    313
    Male
    no & before the > im pretty sure
     
  6. SuperR

    SuperR Android Expert
    Recognized Developer
    Rank:
     #61
    Points:
    433
    Posts:
    3,980
    Joined:
    Aug 23, 2010

    Aug 23, 2010
    3,980
    1,995
    433
    Male
    Invisible
    correct :)
     
  7. 1mouse3

    1mouse3 Member
    Thread Starter
    Rank:
    None
    Points:
    18
    Posts:
    65
    Joined:
    Jul 28, 2013

    Jul 28, 2013
    65
    15
    18
    Male
    on the moon
    &> is correct, it states "and list output in"
     
  8. SuperR

    SuperR Android Expert
    Recognized Developer
    Rank:
     #61
    Points:
    433
    Posts:
    3,980
    Joined:
    Aug 23, 2010

    Aug 23, 2010
    3,980
    1,995
    433
    Male
    Invisible
    it might work like that, but the & is not necessary. the > alone tells the output to go to the file listed after it.
     
  9. junkie2100

    junkie2100 Android Expert
    Rank:
    None
    Points:
    313
    Posts:
    3,311
    Joined:
    Mar 11, 2012

    Mar 11, 2012
    3,311
    695
    313
    Male
    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 (Text):
    1.  
    2. cat /proc/kallsyms && grep "c010b22c" > /mnt/sdcard/kallsyms
    3.  
    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
     
  10. SuperR

    SuperR Android Expert
    Recognized Developer
    Rank:
     #61
    Points:
    433
    Posts:
    3,980
    Joined:
    Aug 23, 2010

    Aug 23, 2010
    3,980
    1,995
    433
    Male
    Invisible
    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 (Text):
    1. cat /proc/kallsyms | grep "c010b22c" > /mnt/sdcard/kallsyms
    edit: Regardless of all that, after further reading 1mouse3's original command should work fine :)
     
  11. stevestone

    stevestone Well-Known Member
    Rank:
    None
    Points:
    43
    Posts:
    226
    Joined:
    Sep 29, 2011

    Sep 29, 2011
    226
    39
    43
  12. junkie2100

    junkie2100 Android Expert
    Rank:
    None
    Points:
    313
    Posts:
    3,311
    Joined:
    Mar 11, 2012

    Mar 11, 2012
    3,311
    695
    313
    Male
    ah, yea... i get && and | confused sometimes lol. ah well. as long as it got done
     
  13. stevestone

    stevestone Well-Known Member
    Rank:
    None
    Points:
    43
    Posts:
    226
    Joined:
    Sep 29, 2011

    Sep 29, 2011
    226
    39
    43
    lol yesh..............
     
Tags:

Share This Page

Loading...