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

Root ADB experts: any way to remove startup items via the shell?

Hey guys,

I know there are apps like Autostarts that do this, but I'm looking for a way to do it via the shell. Is there a directory or file within Android that stores startup stuff? For example in Windows, I'd look in All Programs/Startup or something. Anyone know? :thinking:

Thanks in advance!
 
You must have root setup then...

1) c:\<adb path>\adb shell
2) $ su (then click approve from 'Superuser' app on phone)
3) # mkdir /system/app.disabled
4) # busybox mv /system/app/Browser.apk /system/app.disabled/Browser.apk


Yea I do this for items I want to permanently remove, but I'm just hoping to remove some from startup, not remove them altogether. For example, I have an IP camera app that I like to use, but it runs every time I boot the phone even if I don't need to use it that day :eek:
 
Upvote 0
Upvote 0
Not trying to hijack this thread but I could write an app that does this.
I could make use of gscript, how it would work is something like this-
files get renamed temporarily to say ".apb" then a menu is populated with
little icons of which apps are temporarily disabled, so you would pick them
out of a menu, when you touch the icon it would run a gscript renamer script
which would rename it back to .apk then launch the program.

It would obviously add some launch delays, and there would be the added
memory cost of the launcher menu app, those are givens, but I could try
and make it as resource friendly as possible. Let me know if you think this is
something that would be in demand.

Im "sono***litch" by the way, I am the first person to make a flash player for
the iphone (mine ran on all arm processors unlike others) so I dabble in programming
a bit

Thanks.

Please don't flame me, but if you have any constructive criticism please feel free to include your thoughts as a reply any input would be much welcomed and appreciated
 
Upvote 0
Not trying to hijack this thread but I could write an app that does this.
I could make use of gscript, how it would work is something like this-
files get renamed temporarily to say ".apb" then a menu is populated with
little icons of which apps are temporarily disabled, so you would pick them
out of a menu, when you touch the icon it would run a gscript renamer script
which would rename it back to .apk then launch the program.

It would obviously add some launch delays, and there would be the added
memory cost of the launcher menu app, those are givens, but I could try
and make it as resource friendly as possible. Let me know if you think this is
something that would be in demand.

I would definitely be interested in an app like this and would be happy to test. Obviously, a way to accomplish this without an app would be preferable.
 
Upvote 0
I've disabled my launcher and some other apps using startup manager and my device doesn't boot anymore. It's rooted and I can connect it in recovery mode. how can I restore and enable apps using adb?
Please help me. I don't want to delete and reset factory my device. It's too important. Thanks .
Easiest thing to do is just flash a stock rom overtop....
[ROM] &#9668; Stock Plus &#9658; v3.01 11/22/2011 Based off of New OTA - xda-developers

Or
Restore your nandroid backup if you created one.
 
  • Like
Reactions: scotty85
Upvote 0
I don't have a nandroid backup. Unfortunately I don't have any backups. If I can backup contacts, SMS and applications data (like saved games and scores!) I will reflash my rom. But I don't now how to backup these items in recovery mode.
I shoudl mention that I have access to all of my phone internal memory too using recovery and adb shell.
 
Upvote 0
I don't have a nandroid backup. Unfortunately I don't have any backups. If I can backup contacts, SMS and applications data (like saved games and scores!) I will reflash my rom. But I don't now how to backup these items in recovery mode.
I shoudl mention that I have access to all of my phone internal memory too using recovery and adb shell.
Just flash the rom without wiping anything, you won't lose any data.
 
Upvote 0
Does it fully boot or stuck in a boot loop?

Try safe mode:
Safe Mode - DROID INCREDIBLE by HTC

It completly boots and when I plug the usb cable the default pc connectivity mode works. Mine is "Internet through PC" and I even install apps directly from market, but there is no home screen and just a status bar above the screen.
Safe mode doesn't work either. :( Look attachments.

After installing ziped rom the default connectivity mode has been changed to "Charging". But I need to have "HTC Sync" to be abale make a backup.

------
update: the default pc connectivity mode is still "Internet pass-through" not "Charging"
 

Attachments

  • dhd_no_hs.jpg
    dhd_no_hs.jpg
    252.9 KB · Views: 145
  • dhd_safemode.jpg
    dhd_safemode.jpg
    291.6 KB · Views: 225
Upvote 0
Try installing an alternate launcher from the market like zeam or launcher pro so you can at least get to some settings

Did you delete your launcher or is startup manager disabling it on boot? If you can get another launcher onto your phone you can then get into the app and change everything back.

If your launcher was uninstalled, flashing the rom should of restored it. Did you get any errors when you installed it?
 
Upvote 0
I tried before. I installed ADW Launcher and Launcher Pro. they install but doesn't start. My default launcher is Go luancher and it's installed too. startup manager (optimize toolbox app) has blocked it. some months ago I'd also disabled HTC Sense with titanium backup.
I have access to "data/app" , "System/app" , "Data/data" too via adb and qtadb. installed launchers are there in "data/app" so it means they are installed. I also removed all launchers except one from from "data/app" I mean I deleted their files. (I read this method somewhere to uninstall apps using adb).
No error were found during restoring rom zip file.
 
Upvote 0
My main concern is backing up data. Contacts, Messages, App data. I've downloader some other rom but I think if I install them I can't access to my data anymore. What do you think?
As long as you don't do a factory reset, all your data will be there no matter what rom you install. But I think since you used titanium to freeze the sense launcher, flashing another sense rom won't work, (unless you do a factory reset) so I'm thinking flashing an AOSP rom will at least give you back a launcher.... But you may lose your text messages, so I'd do a nandroid backup first.
 
  • Like
Reactions: armin3000
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones