Is there a way to make the current app persistent? - Android Q&A, Help & Troubleshooting

I plan to turn an old Samsung tablet into a jukebox and allow guests to add songs to the playlist. I still use the tablet for other stuff so I need to prevent people from doing anything else except play music. All of the app locks I see require me to set up a lock for all of the other apps.
Additional information: I will using bluetooth and Wifi to connect to the home's media server..

What about using tasker? I'd wager that you could create a few profiles that would achieve your goal. Ie.. Pressing back, home or recents launches juke box. And/or bulk add password to launch all other apps except juke box(and presumably tasker)(probably would want a way to disable from any screen with a password) Also a repetitive profile to launch juke box every 15 seconds (or less or more) as long as it's not already in the foreground.
I'm personally not one of those guys that's super proficient with it, but a lot of people do some amazing stuff.

Related

[Q] Location-aware lock screen?

Is anyone aware of a location-aware app to enable and disable the lock screen? I'd actually prefer to trigger it based on WiFi availability, but I'd consider other location schemes.
Via e-mail, I have potentially sensitive business information on my phone.
However, I primarily work from a home office which makes the code-based lock screen a minor hassle. (I don't use the pattern, the finger marks on the screen make it too easy to guess.)
So obviously I'd love it if my lock would kick-in when I head to lunch or need to physically visit the "real" office or whatever -- but not when I'm at home.
Any ideas?
I've no suggestions but I've thought of the exact same thing. I'd love for it pattern lock when I'm anywhere but my home.
I would even pay for that app.
I would recommend looking into Tasker. I haven't personally used it, but I have heard many great things about it. On their website it lists some examples of what you can use it for, one of them is changing phone settings based on location. You can download a free 7 day trial from their website. It costs 3.49 GBP direct from their website or 3.99 GBP in the market.
tasker. dinglisch. net (I can't post links to outside websites, remove the spaces)
Forgot all about Tasker. Good idea.
I've used Setting Profiles to do the same.
When I'm at work the pattern gets set, but when I'm at home, it's not on.
I just downloaded Settings Profiles, but none of the security settings can be adjusted in a profile (at least, not in the Lite version). I'd prefer something more straightforward like that, but none of the profile apps I checked have that setting available.
It appears Tasker can do this with the aid of a plugin:
http://groups.google.com/group/tasker/browse_thread/thread/35f0c3d6dcf4a644/964318b8f77810fc
Haven't tried it yet, though.
Ah. Apparently this is never going to be possible as of 2.2 and higher.
Google blocked programmatic access to the Secure Settings provider as of Froyo.
<sigh>
First we lose GPS control. Now this. Hell, by the time Android 4.0 is out, we'll probably have to check with the Google front desk just to place a call.
(Yes I understand why... but it seems like they could provide some kind of authorization mechanism in case, you know, we pesky old users consciously decided to give access to those settings to a particular application...)
It wouldn't be difficult to add a way for a service or application to communicate
with the lock screen, like Settings can choose which lock screen to display.
the application would at least have to be installed to /system/app but may
have to be signed with the same key as the ROM, if that is the case then
files could be used instead of the system settings db.
this would only protect from a casual attack like some nosy person picking up the phone
and browsing through your stuff, Odin is the ultimate root kit, so a prepared attacker could
probably get what they want in 5-10 min.
Yeah, but vulnerability to ODIN is going to be the case no matter what. I'm a lot more worried about "Some Random Idiot in a Bar" than I am about the several hundred people across the country who can actually use ODIN well enough to go all Wargames on my phone.

New to NFC

Like a lot of people here I'm new to NFC. Other than Google Wallet (which I am not overly interested in at this point) I'd like to know what the capabilities of NFC are. I've seen a few android beam demonstrations and it seems like more of a novelty than of practical use.
I'd like to be able to use NFC to switch on bluetooth when in my car and to set my alarm when going to bed. Automation of simple tasks that I do every single day would be greatly beneficial.
Would I need a special app to do this? What kind of tags do I have to buy? Can I buy any tag and tell my phone what to do when I scan it? Do I have to program tags myself?
Thanks in advance to everyone who helps and I hope I'm not the only one who benefits from answers to these questions.
There's a thread here that discusses everything from where to get tags to how to program them using different apps. I posted some guides in there too.
To get you started:
Buy tags here, comes with an awesome NFC keyring.
Program the tags with this.
Use Tasker to make the above application more powerful.
If you need help with anything specific post in that thread and I'll help you out or PM me.
https://play.google.com/store/apps/details?id=com.jwsoft.nfcactionlauncher&hl=en
Here's the app I use, it's fantastic. You can make simple tags, complicated ones, or even switches(a tag that does 2 different things).
For example, I have a switch configured for when i get to/leave work. It toggles wifi, Bluetooth, ring volume, ring tone, media volume, and notification tone, all in one tag, all in one touch. Watch the video in the link, it's pretty helpful too!
There is a mod in the EVO 4g LTE and HTC one x forums that let's you choose when NFC can be read.
Screen on and unlocked,
Screen on and locked, or
Screed off (obviously locked)
I modded the phone to read tags when the screen is on and even if the phone is still locked. Allowing it to read while the screen is off may be a security risk for some.
Anyway,
On my keychain:
Switcher:
WiFi off, Bluetooth on, volume up, brightness up, latitude check in, plays media player.
This is great because it automatically connects to my car Bluetooth headset and the HTC aux stereoclip so music starts playing through my car speakers wirelessly via swipe of the keychain.
Tap again to disable all these and check in again w latitude.
I also have a separate tag in my car low on the dash to enable GPS and open maps so I don't have to fiddle w my phone througg the settings and open the app drawer to open maps. Makes driving that much safer. Also, I don't always use GPS, so having a separate tag for it from my keychain saves battery by using it only when needed.
Trying to set up a tag to enable WiFi tether for root users and stick it to my laptop/pc for quick swiping and enabling. But that has been tricky as you either have to use tasker or a custom activity in NFC task launcher.
Can't think of any others relevant to my interests. I don't see the need in making 38583983 tags. I definitely use the ones in the car tho.
I may order a wristband and think up something creative for it. Assigning a "sync all" activity would rock for it as I keep auto-syncing on my phone off and only sync email and such when I see fit.
Sent from my EVO using XDA
Great info. I think I'll pick up a handful of tags.
1 - At work to set phone to vibrate, turn on Wi-Fi.
1 - In Car to turn on GPS, Bluetooth, Disable Wifi, Open Music App.
1 - At home that turns Alarm on before going to bed.
There are so many possibilities...I can't wait to get this going.
Racer Of All said:
To get you started:
Buy tags here, comes with an awesome NFC keyring.
Click to expand...
Click to collapse
Yeah, unfortunately they are all sold out. I was about to checkout with a kit from them a little while ago when stupid work distracted me and I forgot to come back to it. Really does look like a nice set.

[Q] Father of special needs kid needs help with android setup

Hi,
This is a pretty special use case, and I hope you guys can help me put together a solution, that will help my family.
My daughter is severely autistic, but loves music. We have worked with CD's for years, but they get destroyed by herself, and are a constant source for conflict for a variety of reasons - because we need to control her access to them (music-time vs. sleep-time for instance) and control the volume. I have to think, I could come up with a technical solution, so we could avoid physical media altogether.
Here is what I would like:
Take our Nexus 7, fill it up with music (maybe google music), mount it on the wall in her room, hook speakers up to it and let her control it as she likes. However, we need to be able to override, ie. lock her out of it if necessary, control the volume etc. I also do not want her to be able to screw up the Nexus by doing other stuff on it, so I would like to be able to lock it to just the music app, unless myself or my wife unlock it to do some sort of maintenance.
To sum up:
- Nexus 7
- Control volume / lock remotely - from pc or another android phone
- Music software
- Access restricted to limited list of apps (music app first and foremost)
How could this be done on Android? What software should I use?
I hope you guys have some good suggestions, so I can get a nice solution to this. Thanks in advance.
Hi
Never really tried to do anything like this but maybe you could create another user profile that has limited functions, I don't know how limited you can be with this but any nexus seven model should allow for a second profile, only allow her to use this one
And in this profile use a launcher that allows you to hide apps if Google won't remove enough for you.
On this profile and the one you create for yourself have a lockscreen password of sorts as well
There may even be an app or launcher in the market to do something this similar.
As for remotely controlling it, I've never tried this, I know you can if it is wired... Actually if you have an adb shell opened on a PC and connect wirelessly to that PC with adb then you could use the PC to turn it off but it would disconnect at this point
Hope you find a working solution, feel free to bounce ideas or questions off me, best of luck!
Sent from my Nexus 4 using XDA Premium 4 mobile app
peanutsy said:
Hi,
This is a pretty special use case, and I hope you guys can help me put together a solution, that will help my family.
My daughter is severely autistic, but loves music. We have worked with CD's for years, but they get destroyed by herself, and are a constant source for conflict for a variety of reasons - because we need to control her access to them (music-time vs. sleep-time for instance) and control the volume. I have to think, I could come up with a technical solution, so we could avoid physical media altogether.
Here is what I would like:
Take our Nexus 7, fill it up with music (maybe google music), mount it on the wall in her room, hook speakers up to it and let her control it as she likes. However, we need to be able to override, ie. lock her out of it if necessary, control the volume etc. I also do not want her to be able to screw up the Nexus by doing other stuff on it, so I would like to be able to lock it to just the music app, unless myself or my wife unlock it to do some sort of maintenance.
To sum up:
- Nexus 7
- Control volume / lock remotely - from pc or another android phone
- Music software
- Access restricted to limited list of apps (music app first and foremost)
How could this be done on Android? What software should I use?
I hope you guys have some good suggestions, so I can get a nice solution to this. Thanks in advance.
Click to expand...
Click to collapse
I may have a working solution for you, But just bare with me whilst i gather it together to make sure it works like i think it will, I'm heading off to sleep now for work but when i get out i'll be right back at it again and hopefully will be able to deliver a working solution for you tomorrow.
Thanks, look forward to what you have come up with.
peanutsy said:
Hi,
This is a pretty special use case, and I hope you guys can help me put together a solution, that will help my family.
My daughter is severely autistic, but loves music. We have worked with CD's for years, but they get destroyed by herself, and are a constant source for conflict for a variety of reasons - because we need to control her access to them (music-time vs. sleep-time for instance) and control the volume. I have to think, I could come up with a technical solution, so we could avoid physical media altogether.
Here is what I would like:
Take our Nexus 7, fill it up with music (maybe google music), mount it on the wall in her room, hook speakers up to it and let her control it as she likes. However, we need to be able to override, ie. lock her out of it if necessary, control the volume etc. I also do not want her to be able to screw up the Nexus by doing other stuff on it, so I would like to be able to lock it to just the music app, unless myself or my wife unlock it to do some sort of maintenance.
To sum up:
- Nexus 7
- Control volume / lock remotely - from pc or another android phone
- Music software
- Access restricted to limited list of apps (music app first and foremost)
How could this be done on Android? What software should I use?
I hope you guys have some good suggestions, so I can get a nice solution to this. Thanks in advance.
Click to expand...
Click to collapse
Well i hope you can bascially connect the nexus to the speakers and use a app locker just sure u wont lock the music app then it would lock other apps and through it you can allow or deny access to other apps and check these links to remotely use the nexus via ur pc http://drippler.com/google/nexus_7#!766313
http://www.yumapk.com/how-to-control-your-nexus-7-on-pc-with-airdroid.html
Hope it might help!
Best of luck
Hit thanks button if i helped
After finally getting root on the device, I hours trying to get a VNC server to work - with no luck at all.
Airdroid works, and while it is pretty damn clever piece of software, it does not really allow me meet any of my requirements. Yes, I can lock the device, but I cannot turn off the sound or exit a running application.
Limiting a profile to just a few apps seems doable, but if we cannot control volume and access to the device remotely, I cannot wall-mount it and prevent her taking it and damaging or losing it. Having a connected to a PC permanently becomes to complicated.
I am considering maybe just putting all her music on a mediaserver, installing an app for it on the nexus (like Plex) - and then creating a kill-switch for the mediaserver. That way there is no local music on the device, and I am able to cut the connection to the music, which I think eliminates the requirement to remote control the device itself.
Did you try setting up adb wirelessly? This would at least allow you to kill the app or turn off device, I don't know if you could change volume though.
Looking through the app store their are many child lock apps, maybe dig around there a bit and see if there is something that has more controls that can be done remotely
Sent from my Nexus 4 using XDA Premium 4 mobile app
If I may, the style of music makes a difference too. Easy listening gospel being the best and the Lord being the very top, He listens and His yoke is light.
peanutsy said:
I am considering maybe just putting all her music on a mediaserver, installing an app for it on the nexus (like Plex) - and then creating a kill-switch for the mediaserver. That way there is no local music on the device, and I am able to cut the connection to the music, which I think eliminates the requirement to remote control the device itself.
Click to expand...
Click to collapse
I have now set up plex with a specific section for her music, shared that folder with a user account I logged in with on the Android Plex App - and she can now see her music collection and play it. I have not yet found an elegant (read: wife friendly) way to "unshare" her music library - without taking down all plex server sharing. But I will figure something out.
I have also managed to limit the user profile on her nexus 7 to just the plex media player. However, there are many options for her to mess with in the player itself, that I am unable to lock down. I am also unable to let her use the youtube app, as it does not run on "restricted profiles" - but that was just a "nice to have", not a "need to have".
Input and ideas are still welcome.
peanutsy said:
I have now set up plex with a specific section for her music, shared that folder with a user account I logged in with on the Android Plex App - and she can now see her music collection and play it. I have not yet found an elegant (read: wife friendly) way to "unshare" her music library - without taking down all plex server sharing. But I will figure something out.
I have also managed to limit the user profile on her nexus 7 to just the plex media player. However, there are many options for her to mess with in the player itself, that I am unable to lock down. I am also unable to let her use the youtube app, as it does not run on "restricted profiles" - but that was just a "nice to have", not a "need to have".
Input and ideas are still welcome.
Click to expand...
Click to collapse
try applocker it might let you active apps you need and deactive apps you dont and i dont have a solution for the music app thingy which has less settings.. Still working on it.. Ill let you know as soon as i find something. Till then try this one "Songbird Music App"
Please hit thanks if i helped!
Good Luck!

Accessing Android device that has no physical buttons and executes custom app.

I have recently purchased an IQ Panel 2 (Android 5.1.1) home/office/etc. Alarm system.
I assumed I would have access to the full Android OS, not root access, just basic access like all phones and tablets. (this is NOT the case)
The Tablet/device starts with the power button and from there goes directly to the custom alarm software app.
There are NO physical buttons (other than the power button) that I can see on the board inside the case.
There is a USB port but apparently it is only for charging.
The device supports Bluetooth but only via the app and not the actual 'Bluetooth Settings' screen on Android and therefore I am unable to pair a Bluetooth keyboard or mouse.
I have the desire to add Tasker and a custom launcher such as NOVA launcher so that I can have even greater control over my Z-wave and Bluetooth devices as well as additional custom notifications etc.
A port scanner shows port 8883 open but I believe that might be for z-wave communication?
The device has expansion slots on the board. 2 are in use and a 3rd is open for a secondary image sensor and a 4th is for future expansion.
Any suggestions on how to proceed would be of immense help.
I hate the idea of returning this device because of this limitation.
I have spoke with the manufacturer Qolsys and they informed me the end-user is blocked from these features for obvious reasons.
There is a youtube video detailing everything about the device: Qolsys: IQ Panel 2 Technical Webinar (Can't post links yet)
Thanks in advance for any help.
26 views but no responses?
anyone have any ideas?
IIIHomieIII said:
26 views but no responses?
anyone have any ideas?
Click to expand...
Click to collapse
contact me i have same device
Contact..
Wondering?
I just got a Qolsys IQ Panel 2. I feel the same way. Were you able to root the Panel? Using the full Andriod opens the door for a better IQ Panel.
melmel1989 said:
contact me i have same device
Click to expand...
Click to collapse
Could you also help me with this iq panel I recently got it and want full features
Update
No, unfortunately I was never able to get basic access or root access but I did accomplish the original features I wanted via an older Android phone on wifi only that I use in conjunction with the IQ Panel 2.
The secondary phone runs a few apps and sits in a separate room with the screen dimmed to near black/hardly visible screen brightness.
It performs the following functions:
Custom voice commands including disarming the IQ Panel on a weekday morning schedule at 7am and/or by talking to the Google Assistant via my personal phone or a family member's phone or a Google Assistant speaker of which we have several throughout the home.
Turning on the smart thermostat when the temperature in the home is above or below a certain temperature.
Opening the garage door via voice command and being alerted when it is open or left open as if it were a window or door sensor.
Setting voice profiles so when opening the garage door or disarming the IQ Panel only that person's voice works. My voice or my wife's but not guests or the kids voices control these functions.
Being able to have the alarm disarmed by my children's phone via Bluetooth but having the alarm disarmed notification go to email instead of text.
(Necessary because through the Alarm.com website limited settings.. my kids would be notified everytime we get home and since they don't live with us anymore that would be annoying to them daily to get texts but they still need to know the alarm had been disabled by the their Bluetooth phone proximity to the IQ Panel and email only when their phones are in proximity and disarm the alarm. Email solves this.
All of this could have been done with just the IQ Panel if we had basic access not even root but one older Android phone from the past that stays plugged in at all times solves the dilemma.
I do this by running the Autovoice app on the extra phone. Autovoice integrates with Google Assistant and between those two apps, Tasker app, the Alarm.com app, smart thermostat app, Auto-input app, and Autonotification app, Tasker send mail add-on plus a little time and setup it works flawlessly.
I believe this was less then $20 total for all apps.
Basically you can have the Autovoice app set predefined voice specific commands interact with the IQ Panel alarm.com app notifications and respond to those notifications with a predefined event.
My service is not monitored but to use the Bluetooth proximity alarm disarm feature built in to the IQ Panel 2 system you have to at least have basic service which I pay $14 a month to Geoarm.com. This also gives me the Alarm.com website service where I can set other rules that the alarm follows and the spare Android phone interacts with.
The Apps have widgets on the screen of the spare Android phone. If the IQ Panel 2 sends a notification via the app, the Autonotification app sees this and launches the Auto-input app which presses one of several widgets on the spare Android phone (as if I opened the Alarm.com app and pressed buttons/widgets myself)
It would have been nice to integrate this into just the IQ Panel 2 but about an hour of setup and configuration with an old phone on wifi only, the right apps and $40 ($20 for apps and $20 for a Google Assistant speaker) works too.
Hopefully this breakdown will help anyone with an IQ Panel 2.
Final thoughts:
I have 2 of these systems, one in my office and one at home. Since the office environment is not a family enviroment and a much more set schedule (closed at night etc.) None of this is necessary and the IQ Panel 2 works fine right out the box. With today's smart homes like mine with smart cameras, smart lighting, kids and pets with doors and windows opening at random times I think they should give us basic app installation rights on the IQ Panel 2 but..
I love this thing either way ?
I have tons of these alarm panels. I haven't tried to flash them, but assuredly it can be done.
My thoughts.
*The open port you have noticed is definitely not zwave, zwave doesn't use tcp/ip nor its ports of comm. That open port is likely a ssh or vpn to alarm.com or qolsys server for updates (tftp?)
*USB port. Have you tried using a OTG atapter? Doubt you will be able to put into debug mode for adb, but might see if you can connect with adb. Also think JTAG. But you could likely flash its firmwars the same way updates are pushed. Dust off your *nix box, run wireshark, may have to do a mitm to strip ssl, sniff out the server, intercept the update file, md5 checksums, spoof server on airgapped network, etc. But if they can update it, you can break into it.
I have been working on trying to figure out the Qolsis IQ panel. I found that it listens on two ports, 8883 and 12345.
8883 is MQTT however it requires a valid client certificate to connect which I'm trying to see if I can find.
12345 is a TCP websocket, you can connect to it with curl like curl -k https : / / 192.168.x.x:12345 and you will get a json stream of alarm events.
If you'd like, we have a thread on the Home Assistant forum where we are trying to figure this out too.
If you go to the home assistant community and search for qolsys you will find our post (I can't post links yet)

Using Android intents for automation

I'm working on doing some automation on my phone, and I want to perform some actions that I'm hoping I can perform using Android intents. I'm not very knowledgeable about how they work or how to find them, but I'm trying to hack some stuff together.
Here's my main question: how do I go about figuring out if I can use intents for a particular task or see what I can do with intents?
For example, I would like to be able to trigger the "Share trip progress" feature within Google Maps automatically (using Flic buttons, which allow me to use Android intents). I don't know if I can set up an intent myself to trigger this action in the Google Maps app, and I don't really know where to start in order to try to find out how to do it.
Another example is that I would like to trigger Google Assistant with my Flic button, but I want to use my Anker Roav Bolt in my car to respond to the action. Flic has a function built in to trigger Google Assistant, but it's a lot more invasive in that it opens the prompt on the phone and disrupts my Google Maps navigation as opposed to if I long-pressed the button on my Roav Bolt and it just listens for instructions without disruption. I have no clue if this is something I could trigger using Android intents, but I'd like to find a way to make this smoother.
If you have solutions to these two problems, that would be great. But as I said, I would also like to have a better general understanding of how I could find this stuff myself for future stuff I want to set up on my phone.
Thank you.

Categories

Resources