[Q] How to autorun an app on startup? - XPERIA X10 Q&A, Help & Troubleshooting

Okay so I'm trying to get an app to autorun whenever my phone boots. More specifically the app "Screen Filter".
So far I've found the app "autostart.apk" that claims it will autorun the file /data/opt/autostart.sh
Basically I'm asking how do I make this autostart.sh file and place it in that directory?
If it helps, here is the 'receiver' info about Screen Filter
- com.haxor.ScreenFilterWidget
--> android.appwidget.action.APPWIDGET_UPDATE
--> com.haxor.ScreenFilter.ACTION_FILTER_TOGGLED
- com.haxor.LocaleReceiver
--> com.twofortyfouram.locale.intent.action.FIRE_SETTING
Any help is appreciated! Thanks!

dew1989 said:
Okay so I'm trying to get an app to autorun whenever my phone boots.
Click to expand...
Click to collapse
I believe you would have to edit the AndroidManifest.xml for the app and use the BOOT_COMPLETED intent.
I'm not sure if there's an easier way to autorun apps after booting.

Are you able to guide me to the details on this? I understand what you're saying I just am clueless on how and what to do

I've never done it before. However, you might want to try this link as a guide:
http://stackoverflow.com/questions/1056570/how-to-autostart-an-android-application​

Wow that is thoroughly confusing. Where do I get these files that I need to edit? I am rooted by the way

dew1989 said:
Wow that is thoroughly confusing.
Click to expand...
Click to collapse
Oh wait. The example I linked to earlier is more development-level information. To use that with an existing application, you'd have to decompile, edit, and then rebuild, sign, blah, blah.... Sorry about that.
Not too sure on how to use 'Autostart (Root),' though. If I can figure it out later, I'll add to this thread.
Have you tried emailing the creator of 'Screen Filter' (https://profiles.google.com/bslatkin/about) to see if maybe he'd consider adding a launch-on-boot option to his app? It appears he works at Google, and the app is small, so he might be persuaded to do a quick update.

Related

Pic of the message I get when I press search key

Here a screenshot of the message I get when I press the search key. I am trying to assign a function to it...but it is not working...
I guess I am missing something.....not that much of a big deal...but I would like to find out what the message is all about...
Please let me know how to assign a "function" to the key
Thanks
hogowner said:
Here a screenshot of the message I get when I press the search key. I am trying to assign a function to it...but it is not working...
I guess I am missing something.....not that much of a big deal...but I would like to find out what the message is all about...
Please let me know how to assign a "function" to the key
Thanks
Click to expand...
Click to collapse
I'm no expert. But I suspect that this issue could be caused by a bloatware app that is necessary for that action but was moved. Did you manually remove your bloat or did you use a ROM to do it for you?
Killershade said:
I'm no expert. But I suspect that this issue could be caused by a bloatware app that is necessary for that action but was moved. Did you manually remove your bloat or did you use a ROM to do it for you?
Click to expand...
Click to collapse
that is possible.....I really didn't delete bloatware apps...just renamed a few.....do you know which bloatware app controls this function so I can check?
hogowner said:
that is possible.....I really didn't delete bloatware apps...just renamed a few.....do you know which bloatware app controls this function so I can check?
Click to expand...
Click to collapse
I would THINK the safest bet for you is to back up your current apps with titanium and then back up your current ROM in nandroid and re-flash. I mean its a simple solution and requires a bit of time but unless you know exactly what you are looking for (and I am sure someone could tell you on this website) then you are more likely to cause more harm to your phone.
Sorry I can't be more help.
edit: also renamed, deleted, moved the apps. Pretty much all the same thing. The phone is looking for something and is not finding it where it should be. At least this is what I assume gleaning off the error you posted.
Killershade said:
I would THINK the safest bet for you is to back up your current apps with titanium and then back up your current ROM in nandroid and re-flash. I mean its a simple solution and requires a bit of time but unless you know exactly what you are looking for (and I am sure someone could tell you on this website) then you are more likely to cause more harm to your phone.
Sorry I can't be more help.
edit: also renamed, deleted, moved the apps. Pretty much all the same thing. The phone is looking for something and is not finding it where it should be. At least this is what I assume gleaning off the error you posted.
Click to expand...
Click to collapse
I can do all that......but..even if I backup my current rom and apps with titanium.....the program that I renamed will still be there......don't think a fresh download of Perfect Storm will help..
thank you very much for helping!!
Voice search. Doesn't that control it?
I pretty much deleted everything
Im,news,wheather,stocks,Widgets(that are unnecessary)
I think the probably is. The fact that renamed them. And the system cannot find the name. System tells the user basically I cannot find the other file. Thats my hypothesis.
-Monky_1

Backup over USB Host OTD

I'm searching and searching Android market for a program that can backup my files from selected directories to my USB flash drive. Has anyone discovered a program that has this functionality?
Yes... its called a PC.....
Sent from my GT-I9100 using XDA App
If I can get this to work I won't need a PC anymore. That's where I'm coming from with this.
A file manager seems to be the most obvious idea.
Sounds a bit manual to me. I want to select the directories/files just once and get it to backup those directories/files on demand.
rsync backup for Android
Anyone worked out how to set it up?
airwater9 said:
Anyone worked out how to set it up?
Click to expand...
Click to collapse
So you asked for an application with a very specific function, now you found it, and cant figure out how to use it? Come on...
peachpuff said:
So you asked for an application with a very specific function, now you found it, and cant figure out how to use it? Come on...
Click to expand...
Click to collapse
I know, I don't know how to use it. That's why I asked. Your reply did not fill in the blanks and just made the string 1 message longer that people now have to read through and take up more time from their day.
Has anyone had any luck configuring rsync?

[Q] complete action using

Can someone tell me step by step how to add apps to the complete action using list? I have searched and it says add the intent to the manifest or something, but that isn't helpful when I do not even know what that is or how to get there.
DTre909 said:
Can someone tell me step by step how to add apps to the complete action using list? I have searched and it says add the intent to the manifest or something, but that isn't helpful when I do not even know what that is or how to get there.
Click to expand...
Click to collapse
Unless you are coding the app, you don't have to worry about that stuff. Apps should just show up as an available option after they're installed.
illogic6 said:
Unless you are coding the app, you don't have to worry about that stuff. Apps should just show up as an available option after they're installed.
Click to expand...
Click to collapse
Sounds good, but didn't work like that for some reason. I have Notepad Pro by laoye. I uninstalled and redownloaded it. When I tap on my text file to open it, the app isn't listed there. On my Note 1 it was. Any ideas?
Shows up for me when I try to open a text file in Solid Explorer. Solid Explorer also gives you the option to open with other apps as you can see in the screen shot
illogic6 said:
Shows up for me when I try to open a text file in Solid Explorer. Solid Explorer also gives you the option to open with other apps as you can see in the screen shot
Click to expand...
Click to collapse
I had created a shortcut of the .txt file on my homescreen using ES File Explorer. It used to work, but not now. Maybe I will uninstall both and try again. Thanks for trying.

[MOD] Enable Camera Shutter Sound Menu

Since the Note 3 is new, and so far, there is only one custom Rom, I've seen the "how do I disable camera sounds" question asked a few times.
I'm sure your favorite developer will incorporate this feature, into future Roms, like they have in the past, for previous devices. This is mainly for us impatient noobs.
You must be rooted. Using a root explorer, navigate to /system/csc. Backup your feature.xml. Navigate to /system/csc/SPR/system/csc. Copy feature.xml. Navigate back to /system/csc. Paste the new file, over writing the old one. Open the new feature.xml, scroll to the camera section, and change:
<CscFeature_Camera_ShutterSoundMenu>false</
CscFeature_Camera_ShutterSoundMenu>
to:
<CscFeature_Camera_ShutterSoundMenu>true</
CscFeature_Camera_ShutterSoundMenu>
Save, exit,
Set permissions to rw-r--r--
Reboot
Note: I used 'Root Explorer'. ES File Explorer may also work.
Here is a list of potential csc parameters, gathered from other phones. I didn't create this list. I found it about a year ago, and thought it might be interesting, to play around with.
Edit: the text file came from @kkoolpatz
http://forum.xda-developers.com/showthread.php?t=2033894
I followed this exactly I'm still not getting that option to silence the shutter. Is there a detail you left out or am I just missing something? I tried twice
Sent from my SM-N900P using XDA Premium 4 mobile app
SantinoInc said:
I followed this exactly I'm still not getting that option to silence the shutter. Is there a detail you left out or am I just missing something? I tried twice
Sent from my SM-N900P using XDA Premium 4 mobile app
Click to expand...
Click to collapse
I edited the OP, to make it clearer, and modified the method, slightly.
One other possibility. Backup your feature.xml. Navigate to /system/csc/SPR/system/csc. Copy feature.xml. Navigate back to /system/csc. Paste the new file, over writing the old one. Open the new feature.xml, and change:
<CscFeature_Camera_ShutterSoundMenu>false</
CscFeature_Camera_ShutterSoundMenu>
to:
<CscFeature_Camera_ShutterSoundMenu>true</
CscFeature_Camera_ShutterSoundMenu>
(You're changing 'false' to 'true,)
Save, exit,
Set permissions to rw-r--r--
Reboot
Very useful. Thank you.
Thanks for the clarification in the OP. I now got it to work. Problem I had before was that I did not realize that I was simply changing false to true. Super simple.
Sent from my SM-N900P using XDA Premium 4 mobile app
12MaNy said:
Very useful. Thank you.
Click to expand...
Click to collapse
I'm glad it worked for you. Thanks for the feedback.
SantinoInc said:
Thanks for the clarification in the OP. I now got it to work. Problem I had before was that I did not realize that I was simply changing false to true. Super simple.
Sent from my SM-N900P using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Great! It's good to hear that the instructions where clear enough to be followed. There's a lot more that can be enabled, such as using the camera during calls. It's the same principle, just a matter of searching through the feature.xml, and flipping or changing the variables.
Something to add to the first post. Make a backup of the original in case you ever screw up.
Compusmurf said:
Something to add to the first post. Make a backup of the original in case you ever screw up.
Click to expand...
Click to collapse
Always good advice, but it's already there. Unless you're talking about a nandroid...
Must have missed it. I was going to post the same thing since that was one of the first things I did when rooted but never got around to it. Glad someone posted it for others. Always good to share info. However you should have done it in the DEV section with a [MOD] Tag. Post some of the other tweaks too. It'll disappear here in General.
Compusmurf said:
Must have missed it. I was going to post the same thing since that was one of the first things I did when rooted but never got around to it. Glad someone posted it for others. Always good to share info. However you should have done it in the DEV section with a [MOD] Tag. Post some of the other tweaks too. It'll disappear here in General.
Click to expand...
Click to collapse
Yeah, maybe so. I went back and forth in my mind, and decided that this really isn't development, so here we are in 'General'.
I had a bunch of these edits, when I had my Note 2. I'll have to dig through, and see what additional features we can enable on the Note 3. Any help is definitely appreciated.
Geez, i wonder why Sprint wont include this option by default. On the at&t Note 3, the option to silence is already baked in.
optimummind said:
Geez, i wonder why Sprint wont include this option by default. On the at&t Note 3, the option to silence is already baked in.
Click to expand...
Click to collapse
Sprint can't afford a lawsuit when some idiot takes a silent upskirt photo and someone decides to sue them for not having it make noise.
I'm on stock rooted and es explorer gives me a permission denied error when I try to overwrite features.xml from the SPR folder to system/csc, also unable to rename or edit directly from system/csc but I can copy and paste elsewhere to back up.
Tavo_7 said:
I'm on stock rooted and es explorer gives me a permission denied error when I try to overwrite features.xml from the SPR folder to system/csc, also unable to rename or edit directly from system/csc but I can copy and paste elsewhere to back up.
Click to expand...
Click to collapse
Open ES File Explorer and tap the phone menu button. A pane should open on the left side of the screen. Scroll to the bottom, and turn "Root Explorer" on. When the Super User prompt pops up, be sure to allow it.
Root explorer was already on, but I toogled on off just in case and it still fails. See screenshots
Tavo_7 said:
Root explorer was already on, but I toogled on off just in case and it still fails. See screenshots
Click to expand...
Click to collapse
I'm not sure what the problem is. ES File had some problems with root, about a year ago, but I thought they got that fixed. I use it everyday, but not the root functions. Maybe you can try going into SuperSU, selecting ES File, and tapping "forget", then go back into ES, and accept the SU prompt.
LMMT said:
I'm not sure what the problem is. ES File had some problems with root, about a year ago, but I thought they got that fixed. I use it everyday, but not the root functions. Maybe you can try going into SuperSU, selecting ES File, and tapping "forget", then go back into ES, and accept the SU prompt.
Click to expand...
Click to collapse
Still failing after forgetting, I also reinstalled both ES and SU and no good. Any other free root explorers I can test? Or can anyone else using es verify if it's working for them?
Tavo_7 said:
Still failing after forgetting, I also reinstalled both ES and SU and no good. Any other free root explorers I can test? Or can anyone else using es verify if it's working for them?
Click to expand...
Click to collapse
There are several free in the Play Store. Maybe try a few?
LMMT said:
There are several free in the Play Store. Maybe try a few?
Click to expand...
Click to collapse
I downloaded 'Root Browser' from the play store and this did the trick, ES Explorer is having root issues with the Note 3, well at least on my phone since no one else confirmed. I added the shutter menu (working) , enabled camera during calls (working), and tried to add a call button from the logs list but this didn't appear to work.
Thanks again!
Tavo_7 said:
I downloaded 'Root Browser' from the play store and this did the trick, ES Explorer is having root issues with the Note 3, well at least on my phone since no one else confirmed. I added the shutter menu (working) , enabled camera during calls (working), and tried to add a call button from the logs list but this didn't appear to work.
Thanks again!
Click to expand...
Click to collapse
Good. I'm glad you got it working.

Changing app that starts when I open up my flip case

Would this be a tasker script or is there something that I can do without it? I want to open up my flip case and it start me off at Google Now but it is at a calendar now. Thanks in advance.
I wonder if replacing the daynote.apk app with another app renamed daynote.apk would work...
Sent from my SCH-I535 using Tapatalk
On a related note, is it possible to call daynote from a shortcut, without closing, opening the case?
I was able to figure it out, it is done with a tasker script. I have it so that with the display is unlocked, voice search is the app to open. Works like a charm now. I just need to get it to say opening ________ when it opens. I'll figure it out. :good:
icebergisonfire said:
I was able to figure it out, it is done with a tasker script. I have it so that with the display is unlocked, voice search is the app to open. Works like a charm now. I just need to get it to say opening ________ when it opens. I'll figure it out. :good:
Click to expand...
Click to collapse
I have Tasker, but have never done anything like you have done. Would you be willing to share your script, or online at a high level the steps you setup in Tasker?
Thanks!
dragon57 said:
I have Tasker, but have never done anything like you have done. Would you be willing to share your script, or online at a high level the steps you setup in Tasker?
Thanks!
Click to expand...
Click to collapse
I have autolaunch and autovoice as well. Reason why I wanted this was so that when I opened the case, I just open the case and to say the app that I wanted open and it works. But for this particular case, to open up the app as I have Google Now opening up
Tasker instructions.
Under Profiles
Go to Event -> Display -> Display Unlocked
Under Tasks
Go to App -> Load App then just select the app you want to open
That is what I have and that should work.
Wow, how simple! Thanks!

Categories

Resources