P terminal tutorial - G1 General

Hey guys,I really don't know how to use P terminal but i read in some threads that u can kill apps with it and do other things so i though i would start this htread for everyone to post all the tips and trick they learned using this program. Thanks in advance to anyone who posts.

found this in battery thread
jkiller122 said:
Hey guys,I really don't know how to use P terminal but i read in some threads that u can kill apps with it and do other things so i though i would start this htread for everyone to post all the tips and trick they learned using this program. Thanks in advance to anyone who posts.
Click to expand...
Click to collapse
--------------------------------------------------------------------------------
Quote:
Originally Posted by neoobs
when in iSafe hit the menu button and hit exit... BAM the program is not running in background mode and isn't using the GPS and 3G to find out if the area is safe. I have to play around some more because other programs are similar. I think Joyity is similar too. Anything that would run in the background for me had a way to exit and turn off the program. I am not saying it isn't loaded but it can't use the GPS, 3G or anything else on the phone.
To check which programs are running in the background use pTerminal.
Run "ps" for a list of processes
Run "kill <pid>" to terminate a process

timace said:
--------------------------------------------------------------------------------
Quote:
Originally Posted by neoobs
when in iSafe hit the menu button and hit exit... BAM the program is not running in background mode and isn't using the GPS and 3G to find out if the area is safe. I have to play around some more because other programs are similar. I think Joyity is similar too. Anything that would run in the background for me had a way to exit and turn off the program. I am not saying it isn't loaded but it can't use the GPS, 3G or anything else on the phone.
To check which programs are running in the background use pTerminal.
Run "ps" for a list of processes
Run "kill <pid>" to terminate a process
Click to expand...
Click to collapse
Lol silly that wasn't neoobs, that was me.

syrusfrost said:
Lol silly that wasn't neoobs, that was me.
Click to expand...
Click to collapse
That was you quoting me LOL funny LOL... I give you all credit syrusfrost.

neoobs said:
That was you quoting me LOL funny LOL... I give you all credit syrusfrost.
Click to expand...
Click to collapse
You know when you put them together it does seem like a coherent thought... haha, I'm lacking in that department sometimes...

syrusfrost said:
You know when you put them together it does seem like a coherent thought... haha, I'm lacking in that department sometimes...
Click to expand...
Click to collapse
We do make a good team LOL... I was thinking the same thing when I saw it... but I couldn't remember where I posted how to use pTerminal since everytime I try to kill a process it tells me I am not allowed LOL

What kind of processes you trying to kill? I didn't have any problems with the apps I launched... hrm
That's ODD, I just tried it and it threw an error, and it killed the app too. Wow interesting, i could have sworn it didn't throw that error before, but it killed the app. What about for you, does it kill the app anyway?

syrusfrost said:
What kind of processes you trying to kill? I didn't have any problems with the apps I launched... hrm
That's ODD, I just tried it and it threw an error, and it killed the app too. Wow interesting, i could have sworn it didn't throw that error before, but it killed the app. What about for you, does it kill the app anyway?
Click to expand...
Click to collapse
well I have tried to kill apps I have started and some I haven't Both give errors... both still run. I just wish I could kill away the myfaves LOL

I just wish I could kill away the myfaves LOL[/QUOTE]
Do you use myfaves cuz if you don't then you can just uninstall it.

When I type in Run "ps" it doesn't show nothing.

jkiller122 said:
Do you use myfaves cuz if you don't then you can just uninstall it.
Click to expand...
Click to collapse
You can't uninstall it

your right,you can only clear data. My fault.

jkiller122 said:
your right,you can only clear data. My fault.
Click to expand...
Click to collapse
It is ok... I thought the same thing and even cleared the data and still have issues.

Can anyone give an example of what the <pid>'s look like ?? Thanx

The PID is the number after the user that is running the file or service.
The first one in the line should look like this.
root 1 0 264 136 c00a5cd0 0000c36c S /Init
So root is the user and the PID is 1, they go in numeric order and on my phone go up to 3716
so if i wanted to kill /Init(which you can't) i would type in kill 1
which right now will throw me an Operation not permitted.

damnitpud said:
The PID is the number after the user that is running the file or service.
The first one in the line should look like this.
root 1 0 264 136 c00a5cd0 0000c36c S /Init
So root is the user and the PID is 1, they go in numeric order and on my phone go up to 3716
so if i wanted to kill /Init(which you can't) i would type in kill 1
which right now will throw me an Operation not permitted.
Click to expand...
Click to collapse
Thank u. U were very helpful and didn't take the "know it all" approach I am a technician more on the harware aspect of things so software sometimes gets tricky for me . Thanks alot

Related

YAY!! Real task management!

So, downloaded pTerminal from the market.
YAY! ps and kill aren't blocked!
If you want to manage tasks enter command "ps" view the tasks.
If you want to kill a task type "kill <pid>"
Fun times... Finally, I can kill the tasks that are syncing and using gps etc in the background.
Edit: If you are interested in killing tasks to preserve memory, you should know by now that the memory management is automatic. There is no need to kill tasks to free up memory. If a task is doing something you don't want it to do though (i.e. eating up battery by doing unnecessary **** in the background) then by all means use this method to kill it for now.
I would like to see a comprehensive task manager in the future with not memory usage, but awake time for the app listed, network usage and a combined "Battery Usage" figure using all the other data...
That's good news. I wonder if "killall <appname>" works as well?
Har, looking at the process list there's a few on here running as root... buffers? Yes I do think so.
Good find! I'm sure a real task manager is in the works.
i can`t find it in Market
felicita said:
i can`t find it in Market
Click to expand...
Click to collapse
I think your phone is defective... please box it and return it.
--M
(hehe)
felicita said:
i can`t find it in Market
Click to expand...
Click to collapse
In the market, hit menu->search and then type the name "pterminal"
xavier6303 said:
In the market, hit menu->search and then type the name "pterminal"
Click to expand...
Click to collapse
There is no pterminal in market on my g1
felicita said:
There is no pterminal in market on my g1
Click to expand...
Click to collapse
I just downloaded the application... It is there...
Other pTerminal finds..
Not sure if this has been posted in the forum before but if you're connected via wifi (at least...?) you can run system/bin/telnetd in pTerminal then telnet to the IP of the phone... It'll drop you to what appears to be a root shell...
felicita said:
There is no pterminal in market on my g1
Click to expand...
Click to collapse
If they are working on it or updating it, the app will dissapear from the store for a short time. At the moment I cant even connect to the market.
Wait a few hours and check back
im using wireless and market is working with full acces
GlobalM3 said:
If they are working on it or updating it, the app will dissapear from the store for a short time. At the moment I cant even connect to the market.
Wait a few hours and check back
Click to expand...
Click to collapse
satru said:
im using wireless and market is working with full acces
Click to expand...
Click to collapse
I had to restart my device and it worked. tnx
SplasPood said:
Not sure if this has been posted in the forum before but if you're connected via wifi (at least...?) you can run system/bin/telnetd in pTerminal then telnet to the IP of the phone... It'll drop you to what appears to be a root shell...
Click to expand...
Click to collapse
Thank you for the tip. It doesn't appear to be a root shell, BUT the process runs as root, which should be just as good as soon as I drop my own sshd in there... just have to compile for the right processor hehe...
telnet?
SplasPood said:
Not sure if this has been posted in the forum before but if you're connected via wifi (at least...?) you can run system/bin/telnetd in pTerminal then telnet to the IP of the phone... It'll drop you to what appears to be a root shell...
Click to expand...
Click to collapse
What did you type in exactly to get telnetd to run? Any flags you passed?
I'm trying /system/bin/telnetd from pterminal, but it never runs.
satadru said:
What did you type in exactly to get telnetd to run? Any flags you passed?
I'm trying /system/bin/telnetd from pterminal, but it never runs.
Click to expand...
Click to collapse
I had to run it twice before it ran, then once it started it's like a watchdog process killed it after a few minutes.
do...
Code:
# cd system
# cd bin
# telnetd
# ps
Then scroll to the bottom to see if it's running. THEN connect really quick, because it seems to die off fast .
It seems that unless you first cd to system/bin running telnetd doesn't work. It also seems t-mobile does inbound filtering so I cannot root my phone remotely... :-/
SplasPood said:
It also seems t-mobile does inbound filtering so I cannot root my phone remotely... :-/
Click to expand...
Click to collapse
What if... you recompiled a VPN client for ARM and ran it on the phone, having it connected to your home network?
It would be a battery drainer for sure... Perhaps activate it with an SMS message? Or maybe a flag it checks for on a static html page every 10 minutes?
W00t. I figured everyone gave up on trying to root this thing. Now it seems the excitement has just begun.
That's reeeealy great!
Does anybody know how one can copy the files there? Regular 'cp' does not work there.

Close program??

How do i close a program in the magic, i dont want it running in the background. Is there a prog like a taskmanager or something..??
Hi ,
Download "advance task manager lite" off the Market. This is a very very helpful app which can close all your programs running and very simple to use. And it is Free.
If you need anymore help feel free to post back
CLLC
There is no such app in my market. Can anyone share a free version? Thanks
parrot5 said:
There is no such app in my market. Can anyone share a free version? Thanks
Click to expand...
Click to collapse
It's a free version. The actual name is "Advanced Task Manager Lite" so do a search on "Advanced".
I did do a search and can't find it. Anyone else managed to find it under Rogers in Canada?
I can easy find it. I use it every day, but i find it a bit strange that you cant close apps in any other way! And alot of programs doesnt have a "Quit/Exit" function.
Does anyone have any explanation to why its not possible to close programs without download extra programs?
you know,
I think i heard Something about when you leave the app , it does actually sort of close.
It saves the state you left it in (freezes) and unfreezes when you enter it again. So really the App is not running or using any comsumption at all until you are in the app.
CLLC said:
you know,
I think i heard Something about when you leave the app , it does actually sort of close.
It saves the state you left it in (freezes) and unfreezes when you enter it again. So really the App is not running or using any comsumption at all until you are in the app.
Click to expand...
Click to collapse
This is true.
It is because android is awesome at app management. There is no real need for closing apps. It leaves apps kinda open (saves their state in ram) but not running. That`s why most apps open so fast. And even though more ram is "in use" it doesn`t cost you battery life.
Thanks for confirming ,
What a fantatic way , The OS is fantastic and I can guarantee that Android has alot of potential and Can only get better and come up with more technological breaking idea's!!
CLLC
CLLC said:
you know,
I think i heard Something about when you leave the app , it does actually sort of close.
It saves the state you left it in (freezes) and unfreezes when you enter it again. So really the App is not running or using any comsumption at all until you are in the app.
Click to expand...
Click to collapse
Oh i didnt know that!! Sounds really fantastic. I have to get used to a whole new way of thinking then, i think im too used to windows
Anyway. I love Android more and more. But i was shocked when i found out that you cant send or receive files via bluetooth. I hope this is their number 1. priority in the next released. I mean, comon .. phones have been able to do this for 10 years now!
parrot5 said:
I did do a search and can't find it. Anyone else managed to find it under Rogers in Canada?
Click to expand...
Click to collapse
i did not find it either. i m using rogers too
but you can download Close Everything at Market for free.
i think those apps are similar. the only difference is you have to close EVERYTHING instead of choosing an app to end it.
anyway, the system is not getting slower even i open lots apps.
maybe, the "freeze" thing is true
yesterday I had my phone fully charged before i got to sleep, in the morning 8 hours later the battery was almost empty. GPS and WIFI was disabeld, so I think all the programs in the "background" ( a lot ) killed the battery.
Or what do you think killed the batt?
nevil said:
i did not find it either. i m using rogers too
but you can download Close Everything at Market for free.
i think those apps are similar. the only difference is you have to close EVERYTHING instead of choosing an app to end it.
anyway, the system is not getting slower even i open lots apps.
maybe, the "freeze" thing is true
Click to expand...
Click to collapse
But I thought if you close EVERYTHING the alarm will not work?
foxman01 said:
yesterday I had my phone fully charged before i got to sleep, in the morning 8 hours later the battery was almost empty. GPS and WIFI was disabeld, so I think all the programs in the "background" ( a lot ) killed the battery.
Or what do you think killed the batt?
Click to expand...
Click to collapse
that did not happen to me yet
if you disable background data usage in data sync that will save batt life and lower data usage too.
do not know if that helps at all
parrot5 said:
But I thought if you close EVERYTHING the alarm will not work?
Click to expand...
Click to collapse
alarms still work (tested just now)
i do not know how that app works ~oops~
maybe it does not work at all hahaha
not all programs stop running. some are designed to run in the background
the only real way to check what is running is to use a task manager
I paid $0.99 for advanced task manager. Its a good, but basic app. And hardly breaks the bank at that price!
The other issue I get is "go slows" sometimes on the phone. It doesn't seem to crash, just response times go into the seconds. I switch off and on to soft reset and its fine.
nevil said:
that did not happen to me yet
if you disable background data usage in data sync that will save batt life and lower data usage too.
do not know if that helps at all
Click to expand...
Click to collapse
Why should I disable data usage? If i have an app that use data, then I only need to close the app. Please correct me if I´m wrong.

What is com.htc.provider's purpose?

I tried to find an answer on the forums, but haven't been able to.
What is the purpose of com.htc.provider?
In TasKiller, a lot of the time it's yellow (meaning actively running from what I read in the TasKiller FAQ), although other times it's acting as a background service (italicized and faded gray text).
Should it be running a lot of the time?
Thanks!
Hey, i just uninstalled com.htc and now the phone wont work haha i am now assuming it is vital for the phone to function
Holy thread resurrection... yeah, com.htc.provider is necessary.
slyydrr said:
Holy thread resurrection...
Click to expand...
Click to collapse
lol ;D
BTW somebody know what that process really does?
I think it's something to do with backend for the web browser and internet connectivity.

Is there anyway to keep progrms from auto starting?

I was wondering if there is a way to keep all of these damn stock programs from auto starting and running in the background? I downloaded Advance task killer and I always seem tons of crap running I did not start.
Would the only fix be to flash a new ROM on it?
I dont mess too much with task killers, but I believe some can autokill apps that you specify when they start running. You can also remove apps completely via command line if you don't use them at all.
autostarts. it's .99 in the market.
Alright. But nothing free huh? haha. Even after I kill it, some of the programs will still start up in an hour or so.
mroneeyedboh said:
Alright. But nothing free huh? haha. Even after I kill it, some of the programs will still start up in an hour or so.
Click to expand...
Click to collapse
are the programs that keep popping up necessary?
If not, remove via command line or be willing to taskkill it, if it bothers you.
also, autostarts has different environment variables (start up, connection changed, usb plugged in, etc.) to specify when to kill what apps (I'm not pimpin it, I'm just sayin its a good program)
Oh. Maybe I'll get it, I mean its only 99 cents I have to figure out how to buy apps. Thanks though.
autostarts I can not find
obededom said:
autostarts. it's .99 in the market.
Click to expand...
Click to collapse
I looked on the net, but I can not find the program. Can you link it?
I now use "ProcessKiller alias HTCDlg_killer" on my HTC TP2, but I do not see any killing.
Thanx in advance.
mroneeyedboh said:
I was wondering if there is a way to keep all of these damn stock programs from auto starting and running in the background?
Click to expand...
Click to collapse
Some applications are SUPPOSED to be running all the time. Others the phone starts up so that their response time is better.
Arbitrarily killing applications is a sure-fire way to crash the phone. If you can be bothered to provide a list of what you see, someone can advise you what to leave alone.
Jamboman said:
I looked on the net, but I can not find the program. Can you link it?
I now use "ProcessKiller alias HTCDlg_killer" on my HTC TP2, but I do not see any killing.
Thanx in advance.
Click to expand...
Click to collapse
http://www.androlib.com/android.application.com-elsdoerfer-android-autostarts-jppi.aspx
no prob

[Q] trojan?

My A500 seems to be infected with something. Every google search done from the default search on the tablet goes to some creepy website supposedly about jokes. I'm hoping someone here can help me fix it. I have anti virus running but it didn't catch this.
I'm not tech savvy, and my tablet is not rooted. Thx for any help!
Do you have a windows based tablet?
Sent from my A500 using xda premium
MetaMs said:
My A500 seems to be infected with something. Every google search done from the default search on the tablet goes to some creepy website supposedly about jokes. I'm hoping someone here can help me fix it. I have anti virus running but it didn't catch this.
I'm not tech savvy, and my tablet is not rooted. Thx for any help!
Click to expand...
Click to collapse
It's not a virus. You probably installed an app that changed the settings for your search.
Open your search, then select the "settings" in the upper right corner. You can adjust your defaults search settings from there. Also might just see the app that changed it as well
Sorry. I thought the "A" in A500 indicated an Android tablet. It is Android, not Windows.
Funny...the concept of buying a Windows tablet is so unthinkable to me that it never occurred to me to consider that someone would think it was other than Android. LOL
THANK YOU Moscow Desire! That's exactly what it was. Now to find the offending app....grrrrrr. I didn't see anything in the settings to clue me in to what app did this nefarious act. I will find out though...and post a "review" on the Market.
Thanks again!
MetaMs said:
THANK YOU Moscow Desire! That's exactly what it was. Now to find the offending app....grrrrrr. I didn't see anything in the settings to clue me in to what app did this nefarious act. I will find out though...and post a "review" on the Market.
Thanks again!
Click to expand...
Click to collapse
Great!
Another thing you might try if you see some strange apps suddenly appear, or you get strange notifications, is go to the Market and install an "air push detector" app. Not neccessary to run it all the time, but on occassion.
Thanks for the tip! I will do that now. Still haven't found the offending app. Nasty little buggers.
MetaMs said:
Thanks for the tip! I will do that now. Still haven't found the offending app. Nasty little buggers.
Click to expand...
Click to collapse
Have you installed lookout or avast to see if it could detect it?
Sent from my SPH-D710 using XDA
Avast did not catch it. I use Avast on my desktop and my tablet. In any case, the problem is gone now that I fixed the search settings. Thanks!
Use AirPush Detector from market. It's free,light and looks for apps that for example put ads on your lower bar (the one with clock, wifi icon etc).
Sent from my A501 using Alexandra III
Yep...have done that. Thanks!
My Comment is late in this thread.. And im sure you have it resolved..
But here is what i do to catch crap..
go to the market get advanced task manager app. Its tiny app and can be turned off to not Run in the background.. Once you do that it will not take up cpu or memory .
once in a while start it up and look at the apps that are running in the background. In the apps settings you can tell it to auto kill certain apps. This feature can be good to trouble shoot and find apps that have evil programming attached to it.
I will add be careful what you kill with it. If you open a app like the above and keep killing or set apps that you DO USE to be killed you will be fighting the built in management in android. IF Apps are in there that you know your running.If those apps you are sure is not the issue . DO NOT KILL Them they are just setting static for the most part. Killing them will cause cpu spikes as they will just come right back . Use the above mentioned app ONLY AS A TOOL To find rogue apps. not as memory manager app. Android does a great job with doing that if the apps will play by the rules..
Just wanted to add this to the other GREAT Replies you received in this thread. I believe most of the others who have applied use this or a similar app to week at ROGUE APPS.
Good Luck..
Thanks erica_renee...I'll take a look at it. If it's too complicated though, I probably won't be able to figure out how to use it. LOL Many of these apps have no instructions. The devs assume we all know how to figure them out. Not so true. I see "reviews" all the time from people asking how to use these things.

Categories

Resources