[Q] HELP! How do i run an app via ADB? - Galaxy S I9000 Q&A, Help & Troubleshooting

Had launcherpro installed, and also visual task switcher.
Visual task switcher took over the home key to launch its process. I didn't like this, and wanted to uninstall it and get back to a the normal launcherpro setup (home key launches app drawer).
However, i didn't clear the defaults and set launcherpro to use the home button again - so when i uninstalled visual task switcher, the phone froze, and reset.
Now when i start up the phone, i just get the lock screen, and a rather unresponsive phone - NO LAUNCHER IS LOADING! And i can't use the home key to open a launcher because its still trying to open visual task switcher (now uninstalled).
It WILL though, connect to ADB, and i can open a shell.
My question is - how do i start launcherpro (or even touchwiz, so i can get into the settings and reset the defaults) from an adb shell?? What command do i need to use?
I am rooted, so busybox is installed, if that helps.

i think the easiest way would be to install another luncher and then press "home" -> then it will ask you to choose one.
Code:
adb install package
eg. adw luncher

well, i tried that - it did install, but the home key is still unresponsive.
when the phone starts up it shows the lock screen and thats it. no background, no notification bar, no cell service indicator, nothing. its not loading any sort of launcher/background.
i can get into clockwork to restore a backup, but its ten days old....i'd kind of like to save what i've done.
i need to be able to START a launcher.

hm okay. i guess you have also tried to reinstall "visual task switcher" just to "clear defaults"?

hah, got it:
Code:
adb shell am start -n com.fede.launcher/com.fede.launcher.Launcher

Bah.
Error type 2
android.util.AndroidException: Can't connect to activity manager; is the system running?
Guess its more than just the launcher that isn't running. Wonder what could have messed it up this bad.....
i'll try and reinstall the task switcher just to be sure...
jodue said:
hm okay. i guess you have also tried to reinstall "visual task switcher" just to "clear defaults"?
Click to expand...
Click to collapse
Tried this too, no result.
Getting a popup now, 'process System is not responding' force close/wait. Neither makes any difference. Guess its back to a Nandroid for me.....

hm, looks like it messed up some system-hooks/settings ... strange!
i guess the fastest solution now is to get back to your nandroid backup and redo all the stuff ... pain in the ass but you could probably waste days on getting this to work ...

That's what i'm thinking. Plus, if i do it over, i can always do things different/better.

The exaxt same thing happened to me... Plus I dont have recovery mode so I ended up returning the phone!
Stay away from LaucherPro imho.
Sent from my GT-I9000M using XDA App

I have my doubts that it was launcherpro - i think it was the combination of apps trying to grab the home button press. When i uninstalled the one, everything went straight to hell.
I'd more likely say stay away from using lots of different apps that take control of the hardware keys haha

Launching .prc ebook via adb commnad line
I've had success in launching apps on my Kindle Fire via the adb command line
These Worked....
adb shell am start -n com.example.test3/.MainActivity
adb shell am start -n com.facebook.katana/.LoginActivity
I was able to get the activity via catlog. somewhat simple.
I am really struggling in opening an ebook via the abd command line
and have not been successful in doing so.
I have a need to launch an ebook via the command line ie opening My test ebook is **test.prc**
I can launch **test.prc** by ES3 and by the Kindle its self and I've
catlogged and looked at the activity launcher results but it not as straight forward
(to me) as launching an apk.
I tried many combinations similar to theses with no success.
adb shell am start -n test/.com.amazon.kcp.reader.BookReaderActivity
adb shell am start -n com.amazon.kindle.test/com.amazon.kcp.reader.BookReaderActivy
adb shell am start -n com.amazon.kindle.test.prc/com.amazon.kcp.reader.BookReaderActivy
Any suggestion are helpful.
THX in advanced

Related

Apps That Run In Background

I have tons of apps, but none should be running in background except a few,
Right now Bar control and Sim checker should be only ones running in background. But yet the phone is acting so slow, So I wonder if there's more apps running in background I cant see or something that slowing down the phone
So can someone post the name of any app that can see EVERY SINGLE thing running in background but easily enough someone noob as me at this phone can understand, I had one but was all codes and I could not make heads or tails, I just want to know whats running thats making it act so damn slow
second, does sim checker or bar control take up lot of cpu or memory? or anything? if they do, or does anyone know any other apps that take up a lot of resources from the system so I know to get rid of them or prevent me downloading them in the future
If you install Terminal Emulator you can run the linux command top to get a realtime list of running processes and their cpu usage.
Hi, I'm the dev of SIM Checker. Actually it just checks at boot if the sim card is the correct one, and if so it stops itself. So it's not using any cpu and the garbage collector will kill it when there's need of memory - if you want you can manually kill it.
Well thats good to hear...Sim checker is great app, ok so I did the command in the terminal but wont let me scroll up so I cant see everything
do it on the pc through adb shell
i just uninstalled
wertago phonebook and quickoffice.
they all ran in the background right from the startup which is gay. i would have kept them if they wouldn't restart them self after a reboot or after i close them trhough task manager
How do I run it from adb shell in my pc?
Also ya the advance task manager I have I close everything before I do anything else and the services have no apps running I downloaded so why is it so slow? is there something besides a service that can run in background from an app? even with that "top" command in terminal everything besides like 2 system things are 0% cpu..but does not show memory usage

Uninstalling stock home and replacing it with Launcher Pro

I REALLY like Launcher Pro (don't care about the extra home screens or the preview function, but I love the four shortcuts at the bottom to phone, contacts, messaging and browser - why Android just leaves that space empty and unfillable I shall never know, total waste of screen space). I know I can set is as my default Home app - but then the stock Home app is still there and no doubt resident in memory and using some of that memory up. Is there anyway of actually replacing the stock Home app with Launcher Pro so the stock Home app has been deleted?
To be clear, I am not talking about going into Application Settings and clicking Reset Defaults on the stock Home app, so Launcher Pro always launches, I am talking about actually removing the stock Home app altogether and replacing it with Launcher Pro....obviously I am already rooted and have ADB access.
Is this only possible if someone cooks up a ROM with the stock Home app replaced?
I think alot of things get messed up if you just remove the default launcher from a SenseUI ROM.
Maybe use it on a vanilla ROM instead pal?
oopsie, I should have mentioned, I am already using a vanilla 2.1 ROM (VanillaDroid) it is extra specially AWESOME by the way (comes with overclocking so it just screams along (as does the CPU no doubt!!)).
So, I am assuming it would be less trouble if I did try to remove stock home, since it is vanilla.
Yeh I assume it would be a much simpler process if your using a Vanilla ROM.
But you know,... Assumption is the mother of all f~#k ups.
Definitely time for advice from a developer,... Sorry pal.
No probs, just wondered if it was a common practice - clearly not - I'll prolly just leave it.
I can't imagine that you will free up very much space by removing it. sounds like alot of hassle for little award.
I should have been clearer. By space, I meant resident memory - i.e. I am assuming the stock Home app runs in the background and Launcher Pro runs alongside it. I am imagining Android's memory management would never kill the stock Home app, so it ends up sucking memory away from other apps....
I'm not a dev but i've removed Home without any problems.
Do a nandroid backup first!
Install Launcher Pro. Then
Code:
adb remount
adb shell
rm /system/app/Launcher.*
reboot
Do you notice more memory (as in available memory for running apps - not storage) after doing this?
I don't monitor memory usage. But I tend to remove ALL apps I don't use (and can be removed without problems). The lighter the better for me. Give it a shot
i did this without any issue i removed launcher.apk and launcher.odex
renamed the new launcher to Launcher.apk
pushed to /system/app (not /data/app)
remove any old launcher files from /data/app/
install new launcher.apk in /system/app
worked out great not a single issue so far
can switch to either launcher all on the fly and long as you leave default unchecked
pm me i will try my best to help
hi,thanx for the steps..
i found launcher.apk but i cudnt find launcher.oedx,
i am using 2.1 stock rom and rooted
please help..
Its easy to remove HTC Sense,but notice withouti Rosie launcher you wont be able to use stock sense apps,such as dialer or messagigng
harut56 said:
Its easy to remove HTC Sense,but notice withouti Rosie launcher you wont be able to use stock sense apps,such as dialer or messagigng
Click to expand...
Click to collapse
Rosie isnt tied into the phone.apk and the mms.apk.. So if you remove it and you set in LP that they both go to those apps then it should work just fine.
i think use titanium back up to delete stock home, before delete please install launcher pro
I do this all the time, because everytime i update from a nightlie the build reinstalls the launcher. After several times of doing it i've found root explorer to be the easieast way to go :
1 Go to /system/app and delete the laucher
2 go to /data/app long press the launcher you wish to copy select move then go to /system/app and paste it's as simple as that (you can even bookmark the folders for future use let's say you wanna replace the music app the sms app etc etc )
You may also use titanium to do it or mannualy trough adb.
Performance wise i use adw ex and i notice better screen response faster rendering and less laggy it is worth doing it
If you wanna try increase performance you may want to try this cmd through terminal cmd
su
echo ro.HOME_APP_ADJ=1 >> /data/local.prop
reboot
It locks homescreen in memory

How to Exit app before Return Home

I'm using MileStone, but when I run apps, they always suspend, not exit => so mine works more and more slows when I run many apps
I check out in Settings, but I still dont know to exit apps then return home every time I click back
Please tell me how to do it
Thank you very much
anyone help me please
download advanced task manager or task killer
I recommend Auto Mem Manager on the Market, a freeware, just choose the "aggressive" profile.
AND, as for how to exit app, I suggest you try to press "back" button when you wanna exit this app, not directly press "home" button.
reply to the OP
Let me explain to you the logic behind this, simply your application is not closed but it enter what is called hibernate mode where it will not consume too much memory and at the same time when you will open the application again you can resume what you was doing.
I belive that this is a smart action form Android OS where you will not find in WM or Symbian (maybe Apple OS).
if you want to get rid of it, please install Advanced Task Manager and from the setting use what ever setting that might suite you.
For me i use the following setting:
Auto Kill Level --> Safe
Auto Kill Frequecny --> Every One Hour
Security Level --> Meduim
With the above setting, i didn't face any performance problem and reduced reboot frequency (General Problem in the Android).
Feel free to ask any question and I will be ready for you
Has anyone come accross a way to make for example a long press of the back button always close (exit) a program....and the Home button would leave it suspended or hibernated. I completely understand what they are trying to achieve by going the 'no exit/close' route, but it is really annoying that it isn't even an option for me. I think it totally defeats the idea of a homepage on your internet browser now. Every time I open the browser, I have to mess around with 10 back button presses or manually open a bookmark. Would be nice to be able to hit back or home if you plan on returning...or just long press back to fully exit whatever you are doing. I've installed a few task manager programs, but haven't found anything that is that easy, or that works on the Atrix.
I have been searching for exactly the same thing myself, mainly because I want to shutdown a crashed or frozen app in one foul swoop!
In the froyo days I used 'Quick Exit Froyo' by long pressing search. This would take me to Android Application Manager where you can hit 'Force Close'
2 presses wasn't good enough for me so I then found 'EXIT - task killer' which creates an 'x' at the top right corner of the screen. Just tap it and the current app shuts down. However, this doesn't work on Gingerbread 2.3.
I'm now searching for one that will work with 2.3, but I will probably have to root my Desire.
links Below:
EXIT - Task Killer - http://tinyurl.com/44gknpy
Quick Exit Froyo - http://tinyurl.com/3jgyd27
Warm regards.

How do I delete Tetris ?

I've installed an uninstaller, but it keeps failing every time I try to uninstall Tetris. I know the uninstaller works because I've used it successfully to uninstall other apps.
Also, while I was mucking around, I accidentally replaced one of the shortcuts on the home screen, (I think it used to be the contacts shortcut IIRC(between the phone shortcut and the messaging one)), with the Tetris shortcut. How do I remove this, and replace it with the original shortcut (I did try holding down on the shortcut, but it doesnt allow me to remove it, like it does with other shortcuts in the screen) ?
most likely the game is still running
make sure it has taskilled the apps
some times the build in App Killer doesn't show it
install some other Task Killer that shows hidden running apps like SystemInfo
end task it, then you can uninstall without the error messages
I killed it using Task Killer, and Android System Info showed that it wasnt running, and I still get "uninstall unsuccessful"
Still not sorted

Always Keep Application Running

Friends,
I would like to figure out how to keep an application always running in the background, regardless of the memory situation on the device. The application I never want to close in the background is the Terminal Emulator (the Linux command prompt).
Does anyone have any thoughts on how to keep an application from closing in the background? Thank you!
mail_e60 said:
Friends,
I would like to figure out how to keep an application always running in the background, regardless of the memory situation on the device. The application I never want to close in the background is the Terminal Emulator (the Linux command prompt).
Does anyone have any thoughts on how to keep an application from closing in the background? Thank you!
Click to expand...
Click to collapse
Just dont close the app with the backbutton. Just leave the app as it is. It will always be running in the background. By holding the 'home-button' you can quicly acces the terminal again. The taskmanager will pop-up
Unfortunately not closing the app only works in the short term, meaning that once memory usage gets high enough Android will start closing background tasks on its on. This is what I would like to avoid.
For background information, I do have root on by Tab.
Heppieboeddah said:
Just dont close the app with the backbutton. Just leave the app as it is. It will always be running in the background. By holding the 'home-button' you can quicly acces the terminal again. The taskmanager will pop-up
Click to expand...
Click to collapse
What do you want to keep running? Give a hint please
The application I would like to keep running in the background at all times is the Terminal Emulator (the paid version which is called Better Terminal Emulator).
Any thoughts are welcome.
UPDATE
This has been addressed in the latest version of Better Terminal Emulator... this app now runs as a service, and does not quit unless you specifically ask it to quit, making the Tab most like a true linux box. This is wonderful news!
Not to take over this thread, but how do you STOP from some applications from running in the background.
I always have ebook and google maps running in the background and cant stop them from running in the background.
any help?
Push and hold the home button, then choose task manager, then on the running applications tab, tap exit all.
There are apps in the market, called task killers, that close a program when you exit it. The upside is free memory, the downside is it eats some battery time (i don't know why).
It's ok to start a new thread, especially if your question is away from the title. Your question would have been a perfect new thread.
Hi guys, did someone find a solution for this? I have a linux loopfile running on my device, but I can't keep my session (on linux) open because android closes terminal emulator each time I open vnc for acces my linux.
Please if anyone find a solution mp me.
(excuse my english, I'm argentinian)
FIXED
mail_e60 said:
Friends,
I would like to figure out how to keep an application always running in the background, regardless of the memory situation on the device. The application I never want to close in the background is the Terminal Emulator (the Linux command prompt).
Does anyone have any thoughts on how to keep an application from closing in the background? Thank you!
Click to expand...
Click to collapse
If you install Xposed installer (you must root your phone)
then in xposed go to download and search for app settings and install it go to modules and enable it then reboot once booted go to the app settings app
and search for the app and turn the setting switch on and enable (Stay resident in memory) and force show in recants max notification priority and force ongoing notifications
Add this to your build.prop sys.keep_app_1=(app package name here)

Categories

Resources