I understand that there is a class in Android called FileObserver which allows you to monitor changes to any particular file. Yet I havent seen an app that implements this function. Does anyone know of any? or better still could anyone make such an app? Im trying to troubleshoot a kernel problem I have and figure out when (and why) a system file is being overwritten.
I dont have any app making experience so I dont know how to go about it, but I wouldve thought that its not too difficult to achieve since the app only needs to call one class.
Any advice/suggestions would be greatly appreciated.
Related
I can confirm on Insert Coin, and on Virtuous (so I know it's not a 2.3.4 issue) that Tasker's app detection doesn't work....
can anyone confirm this... and if so, is it a big deal for you? Don't know why more people aren't saying anything.... mainly, I would love to be able to control display timeout if Im coming into a particular app, but now I just control it via orientation....
Any thoughts?
(Why everytime I make a thread, I get no replies...)
bump
I love you guys.
I've had this problem. Seems to disappear after a wipe and reflash. The problem does reappear randomly after flashing a different rom.
Don't take it so personally that people dont respond within hours of you posting. You ate assuming a large proportion of sensation users use Tasker and that they also use the app detection feature. I for one do not use that feature so have no idea if it works. Regardless, the best place to get app specific help is to contact the developer of the app rather than posting in a general forum.
I thought it was more popular... I contacted the developer and he told me that custom ROMs change the way Android works...
What I want: I want to access my camera without unlocking my phones security. Occasionally you want to take a quick camera shot but this is easy to do quick when there's a telephone security in place. I think iPhones have this feature, but I also think I've seen it on the Xperia S.
What I have: My telephone is an HTC Sensation, rooted s-off and the like. I'm currently on a Sense based ROM (though Sense is stripped and the experience is basic Android ICS like): HyperNonSense. I own WidgetLocker, and I can place a shortcut to the camera but then I'm still bugged with the security in place.
What I don't want: I don't want to disable my phones security.
What I have done: I've searched a lot, seriously a lot, but have not find a satisfying solution. I did find two solutions I did not like or could not test:
Solution 1: This solution says it is possible to achieve this using a (1*1) widget acting as the camera. I, however, have not found such a widget.
Solution 2: Soution 2 requires Tasker, however I don't feel like buying this solution 1) for only this purpose and 2) when I'm not even sure this solution still works.
So the question: Does anyone know if and how I can achieve what I want: access to my camera to take a quick pic without unlocking my android device's security?
Edit: argh... not sure if this is the right subforum
Not sure if it will work have u tried using desktop Visualizer to make a widget/icon to link to camera ?
Sent from my SGH-I777 using xda premium
Although I kinda hate myself for not finding that application myself to test this, it also did not work as I had hoped it would. I doubt whether the "widget approach" even would work. Thanks for the input though.
Arie- said:
Although I kinda hate myself for not finding that application myself to test this, it also did not work as I had hoped it would. I doubt whether the "widget approach" even would work. Thanks for the input though.
Click to expand...
Click to collapse
I know this is an old post, but has anyone been able to achieve this?
I came across Solution 2 mentioned in the original post (using Tasker and Widget Locker), but have not been able to import the profile at all.. and the scripting is a lil too complicated for me to understand.
http://tasker.wikidot.com/bypass-pattern-from-lockscreen-with-camera
fLEkz said:
I know this is an old post, but has anyone been able to achieve this?
I came across Solution 2 mentioned in the original post (using Tasker and Widget Locker), but have not been able to import the profile at all.. and the scripting is a lil too complicated for me to understand.
http://tasker.wikidot.com/bypass-pattern-from-lockscreen-with-camera
Click to expand...
Click to collapse
I was able to import the profile, but it seems it still needs a task which is not defined on the profile.
Hi.
I'm experimenting to write a personal app to help me get to know more songs. I want to catch the spotify intent that indicates when the track changes and use the data on my app.
I have been investigating how to do it and tried multiple lines of code like this (iF.addAction("com.android.music.metachanged"); ), but no luck yet. Everybody (stackoverflow) says there is no way to get that info. But the fact is that there is one app that is able to catch that info: musiXmatch. It is able to detect when the track on the spotify free radio changes and deliver the corresponding lyric.
So, I tried decompiling both the musicXmatch and spotify apks using apktool but wasn't able to find the way the apps comunicate with one another. I have yet to get deeper on smali but by what I see this far, the answer isn't there.
So, the next thing I was thinking I'd try was to make an AOSP rom with some extra logging habilities so that i can listen to the communication between the apps (namely, the broadcastreceiver).
My question: ¿Is there such an aosp distro? One that has extra sniffing/logging capabilities. Also, Anyone has an extra idea on how to accomplish my goal, or maybe some reason for which it will be impossible for me to do it (like for example the intent from spotify being explicit).
Thank you very much in advance for your time.
I solved it. I got the intent.
In case anyone wonders how I did it, here it is:
Rooted my phone (I have a Nexus 4 which lost root with one OTA update and never bothered to recover it)
Installed CydiaSubstrate. A wonderful piece of software by @saurik that allows you to literally modify any java or native C/C++ class during runtime seamlessly. It also does lots of other stuff I don't really understand.
Had to put SELinux to permissive on KitKat because it is on enforced by default since 4.3, in order for the Substrate to work
Got IntroSpy from git and wrote a Custom Hook for IntentReceiver startActivity() method
Enabled IntroSpy for musicXmatch app and it dumped all the app's intents to logcat
ztrange said:
I solved it. I got the intent.
In case anyone wonders how I did it, here it is:
Rooted my phone (I have a Nexus 4 which lost root with one OTA update and never bothered to recover it)
Installed CydiaSubstrate. A wonderful piece of software by @saurik that allows you to literally modify any java or native C/C++ class during runtime seamlessly. It also does lots of other stuff I don't really understand.
Had to put SELinux to permissive on KitKat because it is on enforced by default since 4.3, in order for the Substrate to work
Got IntroSpy from git and wrote a Custom Hook for IntentReceiver startActivity() method
Enabled IntroSpy for musicXmatch app and it dumped all the app's intents to logcat
Click to expand...
Click to collapse
Thanks, are you going to share said intents?
Nice work, but it would have been great with some more details...
Hi, please we need a follow up.
Hey, sorry if this is the wrong section for this.
I've not rooted an Android before. I used to jailbreak my iPhones but since switching to android I've been fairly happy as it is until now.
I've become really fed up with the google music player so I made a reddit post and someone suggested I use an app called "Play Music Exporter" to easily export my play music to MP3 so that I can locate it with another app. Problem is that app requires superuser access which lead me here. He recommended that I use Magisk if I can but I'm not sure If I can use that with my phone and I need help with the proper procedure. Ideally I'm looking for as straightforward process as possible. The apps look very simple but if I have to use my PC that's not a problem. I've been reading through posts here and I will continue to do so but some of the information conflicts. Some of the requirements of some of the apps and software is that the phone must already be rooted .. well obviously its not. And some say you must create a backup whilst others completely brush over that point so I don't know if that because they assume you already have or because the installed creates some kind of recovery file for you?
I read that you need to know your CPU: Mine is "arm64-v8a".
Any help would be appreciated. If I've missed an obvious post then please feel free to link it and I'll read it. Until then i'll continue to scan the forums.
(Don't worry I'm going to rush into anything without knowing exactly what I'm doing, that's precisely why I'm here).
Thanks
Hi all,
I think I speak for more people when I say the battery optimization issue is really annoying.
I've looked for many ways to stop apps being optimized, now I found this simple script that's supposed to turn it off just for Gmail?
https://github.com/Magisk-Modules-Repo/OnePlusGmailBatteryFix
My idea is to use this script to create something which could be used more widely to do this to more apps.
However, when I'm trying to understand that script it seems a bit of a mess, as this would be my first module I am going to try to create I would appreciate just a little help.
Could someone tell me which of those files are needed at least and why? Some of them, or most of them seem completely useless to me, I guess it would be done with one xml file and one script?
I'm not sure, I hope someone could explain me a bit.
Thanks