How do I find out which I have? I am trying to install a kernel and I need to know
please and thanks
In terminal emulator or adb run " cat /proc/cmdline" without quotes and you'll find it in the string thats returned.
If your doing it on your phone dont forget to use root access "su"
Sent from my MB860 using XDA App
Related
Hey guys, I was wondering if anyone could tell me somewhere I could go to learn command prompts for the terminal emulator on our phone... I've googled it, but there's nothing there that im looking for... I wanna start to learn.. any help would be appreciated! Thanks in advance!
Sent from my SGH-T959 using XDA App
Learn some basic Linux commands.
Sent from my GT-I9000 using XDA App
Our phones are stripped versions of linux basically as stated previously
first type in "su" without "", so then you can edit your system files etc..
google some
some are
reboot
reboot download
reboot recovery
etc
xriderx66 said:
first type in "su" without "", so then you can edit your system files etc..
google some
some are
reboot
reboot download
reboot recovery
etc
Click to expand...
Click to collapse
Right, regardless of the two posts stating that Android is basically Linux being technically correct, you will find very few shell commands that actually work. Of the ones you do find, most of the switches and options will not work. The commands mentioned by xriderx66 are ADB commands, and you may have better luck concentrating on those. The phone does not have a full shell, it only has busybox, which is a stripped down version of a shell with most popular shell programs built in. The busybox on the phones are highly stripped down even for busybox. In fact this phone is the only shell I have ever used that does not even recognize the command switches for ls.
Here is an ADB tutorial.
Looking for a little advice on swap. Just making sure I did it correct and didn't miss anything. Typed "su" enter. "speedtweak.sh" enter. Chose from the list and pressed enter. If this post is annoying or unnecessary than feel free to let me know.I'm just looking for a little light.
Sent from my SCH-I800 using XDA App
Type:
"su"
"free"
without the quotes. It will show if swap is being used or not.
Beastclaw said:
Type:
"su"
"free"
without the quotes. It will show if swap is being used or not.
Click to expand...
Click to collapse
"free" does not require root privileges, so just typing "free" by itself will work fine.
mar5hal said:
Looking for a little advice on swap. Just making sure I did it correct and didn't miss anything. Typed "su" enter. "speedtweak.sh" enter. Chose from the list and pressed enter. If this post is annoying or unnecessary than feel free to let me know.I'm just looking for a little light.
Sent from my SCH-I800 using XDA App
Click to expand...
Click to collapse
What you did was change the speed settings of your kernel. As stated above, check if swap is enabled by typing "free" if it shows 000000s, then you can enable it (if you've flashed the enable zips), by typing:
sh data/imoseyon/swap.sh create
After that, if you reboot and type "free", you should have some values for swap instead of 00000s.
You can remove it with:
sh data/imoseyon/swap.sh create
oh and if you flash a new kernel you have to re-enable it
joshnichols189 said:
What you did was change the speed settings of your kernel. As stated above, check if swap is enabled by typing "free" if it shows 000000s, then you can enable it (if you've flashed the enable zips), by typing:
sh data/imoseyon/swap.sh create
After that, if you reboot and type "free", you should have some values for swap instead of 00000s.
You can remove it with:
sh data/imoseyon/swap.sh create
oh and if you flash a new kernel you have to re-enable it
Click to expand...
Click to collapse
Thanks a bunch, this is exactly what I was looking for.
Sent from my ADR6400L using XDA Premium App
Here is the method I discovered for root access that doesn't require a dock.
Please donate with the "Donate to me" button on the top left of this post, if you are willing. I don't promise anything new in the future. It would just be a thank you for this hack.
Old thread, if you have problems with this
Instructions:
Use your favorite method to get photon-torpedo.tar into /data/tmp
Install Superuser from the Market
Install Android Terminal Emulator from the Market
Run Android Terminal Emulator
Run cd /data/tmp
Run /bin/tar xf /data/tmp/photon-torpedo.tar
Run /data/tmp/photon-torpedo.sh
Run /data/tmp/install-su.sh
Download:
Photon Torpedo
Thank you dgood!
Thank you Yay!
Now everyone can get in on this action. Works well on my Photon.
Wooot
Sent from my MB855 using XDA Premium App
Hey, you finally published it! Glad I was able to help out with testing.
Yay! Thank you
Sent from my PG86100 using XDA Premium App
congrats! Too bad i rooted mine at the local sprint store already with their dock. Im impatient.
Hell yes this plus the willingness of help by the people in this forum I'm one happy phone owner
Sent from my PHOTON blaster!
something tells me this is going to be a very very big weekend for the photon...
not working what im getting
$ ./photon-torpedo.sh
./photon-torpedo.sh
ERROR: ld.so: object 'libpcprofile.so' cannot be loaded as audit interface: unde
fined symbol: la_version; ignored.
Fatal server error:
Server is already active for display 0
If this server is no longer running, remove /tmp/.X0-lock
and start again.
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
ddxSigGiveUp: Closing log
I hate to be that guy but I wont get anywhere without asking questions...
which data folder do I put the zip in? the emulator says it can't run
Yay 4 Juggs said:
something tells me this is going to be a very very big weekend for the photon...
Click to expand...
Click to collapse
Dude your killing me with the cryptic messages lol
Sent from my PHOTON blaster!
edgan said:
...
Use your favorite method to get photon-torpedo.tar into /data/tmp.....
Click to expand...
Click to collapse
What are our options here?
never mind got it :/ big thanks!!!
edgan said:
Here is the method I discovered for root access that doesn't require a dock.
Please donate with the "Donate to me" button on the top left of this post, if you are willing. I don't promise anything new in the future. It would just be a thank you for this hack.
Old thread, if you have problems with this
Instructions:
Use your favorite method to get photon-torpedo.tar into /data/tmp
Install Superuser from the Market
Install Android Terminal Emulator from the Market
Run Android Terminal Emulator
Run cd /data/tmp
Run /bin/tar xf /data/tmp/photon-torpedo.tar
Run /data/tmp/photon-torpedo.sh
Run /data/tmp/install-su.sh
Download:
Photon Torpedo
Click to expand...
Click to collapse
I wonder whether I need to extract the torpedo.tar file into data/tmp. When I am at /bin/tar xf /data/tmp/photon-torpedo.tar, it gives me error: CANNOT OPEN: no such files. What did I do wrong here?
criptix said:
never mind got it :/ big thanks!!!
Click to expand...
Click to collapse
Could you please share what all you did please
I did it through adb
Im assuming you already ran the tar command
Open cmd type adb shell
Cd /data/tmp
Type ./photon-torpedo.sh
It should say [email protected]:/data/tmp#
Then type ./install-su.sh
Done
Sent from my MB855 using XDA Premium App
criptix said:
I did it through adb and after you run
./photon-torpedo.sh
It should say [email protected]:/data/tmp#
Then type ./install-su.sh
Done
Sent from my MB855 using XDA Premium App
Click to expand...
Click to collapse
How do you get photon-torpedo to specified location? through ADB? copying the file to a piece of paper and setting it on the photon for a few minutes? lol sorry just tired.
Djspinister said:
How do you get photon-torpedo to specified location? through ADB? copying the file to a piece of paper and setting it on the photon for a few minutes? lol sorry just tired.
Click to expand...
Click to collapse
Do you have adb installed?
Sent from my MB855 using XDA Premium App
Yes, just not very good at it.. But I can hang if I see commands.
Yea crap I thank you very much edgan for this.
I suck at this ADB stuff :/
Ok so some background, I am running the newest molten and enjoying it thouroughly but just noticed that when i open terminal emulator and type SU to get root access in the terminal it says permission denied and most other commands return same error, i downloaded a differant terminal emulator that checks for the su.bin and it shows no su binary is installed yet when i goto the directory system/bin/ in es file explorer su is indeed there?
Could someone please tell me why none of the terminal emulators are finding the superuser binary? I ve already tried opening superuser app and updating the su binary (it did update and i rebooted after) but it hasnt helped, I also read on other forums that there are multiple su binaries on some phones? could this be the problem and if so where would i find the right binaries?
It just seams odd that terminal emulator would be included in the build if it is completly unusable
su then hit enter
lol, thanks, im not the smartest with linux commands but i know to hit enter.
I tried typing su and hitting enter in 3 differant terminal emulators but keep getting permission denied in all of them
You should get a super user request once you hit enter. Maybe permission was already denied. Try clearing defaults for su.
Sent from my DROID X2 using xda premium
Did you recent apply the 2.3.5 update? When I went from rooted 234 to 235 I lost root privileges even though the superuser app was still there.
Could be your root isnt quite right. What setup do you have. Also try going into your superuser application and see if they are on the not allowed list.
Also should go from a "$" to a "#" sign after you hit enter if su took.
thanks for the ideas, that really narrowed it down, i cleared data for superuser and terminal, reinstalled terminal, still didnt work.....then i realised im a idiot, my keyboards autocap was on and su has to be "su" not "SU"
lol well thanks again for all the help
brilock42 said:
thanks for the ideas, that really narrowed it down, i cleared data for superuser and terminal, reinstalled terminal, still didnt work.....then i realised im a idiot, my keyboards autocap was on and su has to be "su" not "SU"
lol well thanks again for all the help
Click to expand...
Click to collapse
If it is solved then put (solved) in the OP subject line and list what fixed it for you. It can help future users
Pesky case sensitive terminal
Sent from my DROID X2 using xda premium
No SU in SSH
su did not work here as I did use a bad SSH-app.
I now use sshdroid
Im trying to open a text file from within a terminal window emulator but not so it opens in the actual terminal but more like ive just clicked on it. so my question is? What command can i use to open /mnt/sdcard/textfile.txt from a terminal window emulator from ROM Toolbox Lite within the android gui so that it will open with any one of my text editing applications? Will i need to run 'su' before i can run what ever command ppl suggest id prefer not to. but im rooted so i can run su I hope that is enough information. Im using android version 4.0.4
Why u dnt use root explorer to view/edit files.
Sent from my GT-I9100 using xda premium
If you switch to su from the command line, you can then use Vi to open/edit text files. But be warned, it is very tedious/time consuming & fiddly to use. Do a Google search for the Vi commands if you're still keen (And as Stopro said, there are easier ways to do it as well).
Edit - Actually, you don't even need to switch into su to do it.
MistahBungle said:
If you switch to su from the command line, you can then use Vi to open/edit text files. But be warned, it is very tedious/time consuming & fiddly to use. Do a Google search for the Vi commands if you're still keen (And as Stopro said, there are easier ways to do it as well).
Edit - Actually, you don't even need to switch into su to do it.
Click to expand...
Click to collapse
Thank you for your input but i am looking for something simpler than that... I realized last night all i want to know is how to do this like in windows if you type in C:\text.txt from command prompt it will load the default text editor (what ever that may be) so how do i do it using bash terminal emulator from ROM Toolbox Lite?