Different Ring per Areacode? - Nexus One Q&A, Help & Troubleshooting

Is there an app that lets you set a certain ringtone for a certain area code coming in?

You should be able to craft a clever Tasker script to perform such a task if you need to.

Really?
(No. I am a real estate developer)

Yep. Took me a bit to fumble around to find the correct options. Assuming you wanted a specific ringtone to play for callers from area code 123:
New - event - phone - phone ringing - enter "123*" for the caller's number. Then click the + button, select media - ringtone. Click the magnifying glass and select the ringtone you want.
Be sure to add an exit task to reset the ringtone back to default.
You could repeat this for each area code you wanted to establish.

Thanks, but how do you get started? I don't know where these tools are.

Quantumstate said:
Thanks, but how do you get started? I don't know where these tools are.
Click to expand...
Click to collapse
You first need to install Tasker from the Market. It's not free, but is extremely powerful and one of the most useful applications I've found.

Quantumstate said:
Thanks, but how do you get started? I don't know where these tools are.
Click to expand...
Click to collapse
Check out these articles at LifeHacker.
http://lifehacker.com/5599116/how-to-turn-your-android-phone-into-a-fully+automated-superphone
http://lifehacker.com/5601133/push-...d-to-awesome-heights-with-these-tasker-setups
And this one here on the forums, [APP] Tasker: Share your setup
As mentioned, Tasker is a very powerful app.
Read the tutorials and skim over the 30+ pages here at XDA.
You'll be amazed at what you can do

Related

request - TTS ringtone.

Hopefully this is ok to post here since it is a request for dream development. Sorry in advance if this belongs in Q/A or something.
The #1 thing I miss from my old Sanyo dumb-phone was the TTS ringer. When ever I received a call, my phone would:
"beeeep, incoming call from ([name] or "unknown-caller")"
I found this very handy as if my phone was out-of-pocket in my home, I could decide to get off the couch and get it or not without moving a muscle.
I have searched all over for the same basic TTS functionality in both WinMo and now Android but have not found anything.
Is it even possible within the Android system to use the TTS service to speak the contact name on incoming call instead of a ringer?
EDIT: And while I'm posting development requests, I would also like to see an app that lets you re-assign buttons (like vol+/- could page up and down unless there is sound playing, and the camera button which does nothing in Hero could be assigned to launch an app [HTC Camera] or even bring up a menu of apps to select from). They have lots of button programs for WinMo, but I've seen none for android.
I know winmo has this feature as my friend's old tilt had it.
There were a couple apps in the market that announced the name that called but they were not very good. IMO the current TTS in the market sucks, can't even understand it half the time.
I imagine someone could cobble together an application that could sense the ringtone call and hijack the audio, and then just use the TTS library to speak out the name / phone number, with "Incoming call from" prepended. I don't know if that's what the apps are doing. I don't see any apps like that on the market, either.
Search market for:
NameRinger
TalkingCallerID
voicecallerid
who is it
All have their problems. I think only voicecallerid is actually free.
What I did
This is what I did, its a hassle but works. went to
http://www.research.att.com/~ttsweb/tts/demo.php
typed the name of my contact downloaded and insert to sd and set as contact ring tone. yeah it suck but u can tweak it with different spelling to make it sound like the actual name. hope it helps
Here you go!
I tought I could do something back for the community so I started a new project =)
The only problem is that I have no visa to pay the registration fee to get this on the market.
I uploaded the apk to http://wilma.vub.ac.be/~lhoste/TTSNotifier.php (!UPDATED)
Based on the open source design of SMSPopup (thx!)
Speaks:
"Incoming call from <NAME>"
name = "unknown" if the number is not found in the contacts
can you start a google code page for this? im sure you can get some support and bug fixes from the community. maybe even one of the devs might upload to their account for you
upload the apk to somewhere else cause we cant access it
rpmccormick said:
Hopefully this is ok to post here since it is a request for dream development. Sorry in advance if this belongs in Q/A or something.
The #1 thing I miss from my old Sanyo dumb-phone was the TTS ringer. When ever I received a call, my phone would:
"beeeep, incoming call from ([name] or "unknown-caller")"
I found this very handy as if my phone was out-of-pocket in my home, I could decide to get off the couch and get it or not without moving a muscle.
I have searched all over for the same basic TTS functionality in both WinMo and now Android but have not found anything.
Is it even possible within the Android system to use the TTS service to speak the contact name on incoming call instead of a ringer?
EDIT: And while I'm posting development requests, I would also like to see an app that lets you re-assign buttons (like vol+/- could page up and down unless there is sound playing, and the camera button which does nothing in Hero could be assigned to launch an app [HTC Camera] or even bring up a menu of apps to select from). They have lots of button programs for WinMo, but I've seen none for android.
Click to expand...
Click to collapse
My question to you is.. Why stop there?
My teacher once told me... "Why hope to make bridges made of sticks when you can dream of making bridges in the sky?"
Meaning... lets raise the bar.. lets dream bigger... So "Why stop there?"
You want TTS ringer... well I want TTS Notifications linked to any notification I enable.
ex. "Open home download completed", "you have 30 tweets", "USB connected", "You have a text message from XXX, Dictate?"
It may not have artificial intelligence.. but after how many years we have had technology and computers... couldn't we train it to be intelligent for us? You can train a dog to sit... so how come we can't program our phones to verbally say "Plug me in! Battery LOW!", "Open Wifi Signal in range", "So-n-So's birthday is today, bought them a gift?"
That does not require artificial intelligence right?
Why not bring Android toward "Fruition"
Damn... If I had the programming knowledge... I think I'd try this myself...
Sorry, link is fixed now
gho0o5t said:
My question to you is.. Why stop there?
My teacher once told me... "Why hope to make bridges made of sticks when you can dream of making bridges in the sky?"
Meaning... lets raise the bar.. lets dream bigger... So "Why stop there?"
You want TTS ringer... well I want TTS Notifications linked to any notification I enable.
ex. "Open home download completed", "you have 30 tweets", "USB connected", "You have a text message from XXX, Dictate?"
It may not have artificial intelligence.. but after how many years we have had technology and computers... couldn't we train it to be intelligent for us? You can train a dog to sit... so how come we can't program our phones to verbally say "Plug me in! Battery LOW!", "Open Wifi Signal in range", "So-n-So's birthday is today, bought them a gift?"
That does not require artificial intelligence right?
Why not bring Android toward "Fruition"
Damn... If I had the programming knowledge... I think I'd try this myself...
Click to expand...
Click to collapse
Keep posting your great ideas. Everyone has a different view on how to make this easier so if we all combine that we can make something great.
I think the usb connected, sms, battery, wifi, birthday is possible. Ill try to extend the app today and open a github.
You can also start making up sentences the phone has to speak because hearing the same stuff all the time makes it boring.
Zillode said:
I tought I could do something back for the community so I started a new project =)
The only problem is that I have no visa to pay the registration fee to get this on the market.
I uploaded the apk to http://wilma.vub.ac.be/~lhoste/TTSRingtone.php
Based on the open source design of SMSPopup (thx!)
Speaks:
"Incoming call from <NAME>"
name = "unknown" if the number is not found in the contacts
Click to expand...
Click to collapse
It's probably down to stupidity on my part, but how does the app work?
it installs fine but then it doesn't seem to do anything when someone rings, it just plays my ringtone.
also, does this work on Hero? that could be my problem.
cheers for making this app btw, been looking for something like this for a long time
Meltus said:
It's probably down to stupidity on my part, but how does the app work?
it installs fine but then it doesn't seem to do anything when someone rings, it just plays my ringtone.
also, does this work on Hero? that could be my problem.
cheers for making this app btw, been looking for something like this for a long time
Click to expand...
Click to collapse
You should have the TTS Service installed (search for it in the market). When receiving a change in ACTION_PHONE_STATE, it starts a services that takes care of the speech.
Do mind that your 'Media' volume is about equally high as your ringtone volume.
Zillode said:
You should have the TTS Service installed (search for it in the market). When receiving a change in ACTION_PHONE_STATE, it starts a services that takes care of the speech.
Do mind that your 'Media' volume is about equally high as your ringtone volume.
Click to expand...
Click to collapse
yeah i've got that. Do i need to mess with the settings in it or anything? still just getting my normal ringtone playing.
I had a similar problem. I had to uninstall the TTSRingtone.apk (system/sd/vub.lhoste.ttsringtone.apk), re-install the TTS library (Text To Speech Service on the market) and then re-install the TTSRingtone.apk. After all of this was done, it started working on its own.
Nifty.
new build (and projectname)
Ok, I started to make the TTS notification more global. This means we will try to support more and more.
You can find the new build at:
http://wilma.vub.ac.be/~lhoste/TTSNotifier.php
NOTE: UNINSTALL THE OLD (TTSRingtone!) BEFORE INSTALLING THIS ONE.
I started a new thread so the intrested ppl can follow the changes
-> http://forum.xda-developers.com/showthread.php?p=4376431
rpmccormick said:
EDIT: And while I'm posting development requests, I would also like to see an app that lets you re-assign buttons (like vol+/- could page up and down unless there is sound playing, and the camera button which does nothing in Hero could be assigned to launch an app [HTC Camera] or even bring up a menu of apps to select from). They have lots of button programs for WinMo, but I've seen none for android.
Click to expand...
Click to collapse
I don't know if it's possible to 'unbind' the vol +/- key.. any1 has an idea?
It is possible to use the same structure as TTSNotifier or SMSPopup to capture the cam button press, but since I'm running the cyanogenmod it is occupied and useless to start a 2nd app

Serious effort to reverse engineer and change the "OK Google Now" activation phrase

Serious effort to reverse engineer and change the "OK Google Now" activation phrase
I just got my Moto X dev edition today, and I plan to try and reverse engineer the activation phrase code in order to change it. I'm going to start by decompiling the touchless application, but I think it will be far more difficult and deeper in the system than that.
Does anyone know where the activation phrase is actually stored? Does anyone know anything about the internal structure of the touchless stuff? And finally, is anyone aware of any other attempts to do this so I can collaborate with them?
Thanks!
glitch003 said:
I just got my Moto X dev edition today, and I plan to try and reverse engineer the activation phrase code in order to change it. I'm going to start by decompiling the touchless application, but I think it will be far more difficult and deeper in the system than that.
Does anyone know where the activation phrase is actually stored? Does anyone know anything about the internal structure of the touchless stuff? And finally, is anyone aware of any other attempts to do this so I can collaborate with them?
Thanks!
Click to expand...
Click to collapse
I got no idea about any of your questions. I wanted to say that doing what your doing would be a very cool feature so thanks for the effort if you get anything going.
I also wanted to mention that I know the OK Google Now phrase is processed on the phone. The voice commands first get processed through Motorola's touchless control app or processes then if it is not recognized as a command it can deal with it then uploads it to google owned google now app. This is why you sometimes get different looking dialers or screens when sending texts depending on if Moto touchless controls handled the action or if google now handled the action.
Just thought of this but I bet it is extremely hard to do what you are doing because no one has created apps to use the low power processor so i presume its locked up somewhere in the phone.
a small start
So, I decompiled the Touchless APK and opened it in Eclipse. I found some interesting stuff in strings.xml, but I think it's just the strings that are displayed to prompt the user This one stood out to me though:
Code:
<string name="hello_moto">OK Google Now</string>
Could it be that the phrase was originally going to be "hello moto" but when Google bought Motorola they changed it for branding purposes?
I think these other string names indicate that could be the case:
Code:
<string name="training_say_hello_moto">Say OK Google Now…</string>
<string name="training_second_hello_moto">Say OK Google Now a second time…</string>
<string name="training_third_hello_moto">Say OK Google Now a third time…</string>
<string name="training_final_hello_moto">Say OK Google Now a final time…</string>
Anyway, if someone wants to change that hello_moto string in the strings.xml file to something else, it might be worth a shot. I can't test any of this yet, because I can't root my phone because it has a spec of dirt under the lens and I'm mailing it back to Motorola to get fixed. But if somebody out there with the knowledge to change this setting in the strings.xml file of the apk wants to try it, I think it's a promising lead.
Hello moto would be cool.. Much better than the OK Moto Magic that was also on the cards... That would just be embarrassing! Good luck man
Sent from my XT1058 using Tapatalk 4
That application is an almighty mess. It has a tremendous amount of classes named things like "a", "aa", "ab", and so forth. Right now, I'm trying to make an Xposed module to send an intent to Tasker rather then start Motorola's interface when the key phase is said. This has been a nightmare of its own. I'm going to start digging for the start phase in earnest once I get this part done.
Sent from my Galaxy Nexus using XDA Premium 4 mobile app
hawkjm73 said:
That application is an almighty mess. It has a tremendous amount of classes named things like "a", "aa", "ab", and so forth. Right now, I'm trying to make an Xposed module to send an intent to Tasker rather then start Motorola's interface when the key phase is said. This has been a nightmare of its own. I'm going to start digging for the start phase in earnest once I get this part done.
Sent from my Galaxy Nexus using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Names like that usually indicate that the code was obfuscated . I would be stunned if they coded it that way!
@glitch003 any luck with this?
Sent from non rooted motoX :'(
I'd totally change "Ok Google Now" to "Jarvis" if I ever had the chance.
hawkjm73 said:
That application is an almighty mess. It has a tremendous amount of classes named things like "a", "aa", "ab", and so forth. Right now, I'm trying to make an Xposed module to send an intent to Tasker rather then start Motorola's interface when the key phase is said. This has been a nightmare of its own. I'm going to start digging for the start phase in earnest once I get this part done.
Sent from my Galaxy Nexus using XDA Premium 4 mobile app
Click to expand...
Click to collapse
It's meant to be an almighty mess, so people like us struggle for months to figure out what the code actually does and to prevent copying of their code
While I haven't been able to change the wakeup phrase, I have changed what happens when you say it. With Tasker, I am able to launch AutoVoice and/or !utter instead of Google Now.
This essentially allows you to control your entire phone with voice, while it's still in your pocket.
Kev1000000 said:
While I haven't been able to change the wakeup phrase, I have changed what happens when you say it. With Tasker, I am able to launch AutoVoice and/or !utter instead of Google Now.
This essentially allows you to control your entire phone with voice, while it's still in your pocket.
Click to expand...
Click to collapse
what exactly are you not launching? From my understanding Moto's runs their own voice recognition stuff, then when it can't recognize the command it then sends it to google now. (even though it looks like it is just running googlw now the entire time it is not. So at what point in the process are you hijacking the code? Also, how easily can you use it? Does it take a long time or does it start just as quick as touchless controls/google now was.
jayboyyyy said:
what exactly are you not launching? From my understanding Moto's runs their own voice recognition stuff, then when it can't recognize the command it then sends it to google now. (even though it looks like it is just running googlw now the entire time it is not. So at what point in the process are you hijacking the code? Also, how easily can you use it? Does it take a long time or does it start just as quick as touchless controls/google now was.
Click to expand...
Click to collapse
It's pretty easy. I simply use Tasker to detect when the Touchless Controls app becomes the foreground app, then immediately kill its process. After that, I launch AutoVoice. With AutoVoice, I can then say "Search" to bring me to Google Now, or "utter" to launch !utter. I can also say any of my home automation commands like, "Turn off the lights" or "Watch TV."
I essentially use the Touchless Controls app as simply a detection of when the phrase was said, and then launch my own processes that I want to launch once it's detected, and kill the app immediately before it sends any data to Google Now.
It's seamless, and extremely quick.
Kev1000000 said:
It's pretty easy. I simply use Tasker to detect when the Touchless Controls app becomes the foreground app, then immediately kill its process. After that, I launch AutoVoice. With AutoVoice, I can then say "Search" to bring me to Google Now, or "utter" to launch !utter. I can also say any of my home automation commands like, "Turn off the lights" or "Watch TV."
I essentially use the Touchless Controls app as simply a detection of when the phrase was said, and then launch my own processes that I want to launch once it's detected, and kill the app immediately before it sends any data to Google Now.
It's seamless, and extremely quick.
Click to expand...
Click to collapse
you want to run a test with a lock on your phone? I'm interested to know if touchless control bypasses the lock or not. I know it can do certain things with the phone in lock. I would assume the few options we have has to do with the fact that once touchless controls pushes the command to google now because it doesn't recognize it they can no longer keep the phone in a locked state. Anyway, if you could run some tests on that and report back I'm interested. Thanks in advance.
I'd like to help
Hey could you upload the apk?
Although I haven't done any reverse engineering before but I have a lot of spare time right now and I'd like to try and help. I just got a developer edition of the Moto X and annoyingly it doesn't seem like there's any easy way to root it right now, since it came with the newest update(at least as far as I can tell).
The only reason that matters to this is that I can't get the apk off of the device, as I don't have the sufficient permissions for data/app. If there's another way to do this then please let me know too!
Thanks
EDIT: nevermind, I realized there's a way to root it if I just unlock the device.
Recompiling with signature
I'm not sure if there is still any interest in this, but I've been trying to work on it nonetheless as a personal project.
This is my first time doing any sort of reverse engineering, and my worry is that we won't be able to sign the app after modifying it.
From what I've read of using apktool, it seems that if you want to keep the signatures you have to move the modified files you have back into the original apk.
Problem is, on OS X there doesn't seem to be a good way to open apks and modify them. Can someone else try and see if it can be recompiled and reinstalled?
Thanks
I messed with this for a short while. I found you can do it just by training. I was able to say "OK f$%& Wad", "OK Moto" and "OK Siri" (joke for my wife). I thought it was due to hex editing some files but that was only a coincidence. Train a phrase using "OK [your word] Now". Sometimes it is tough. Now most of the time you can start it with only "OK [your word]". They use some of the Nuance sdk. Nuance app looks for syllables if I read correctly. I will dig into the files again to see if it can be done more easily. All we need is one guy shouting the phrase and 10 phones want to react. ?
Good luck.
DroidJunk said:
I messed with this for a short while. I found you can do it just by training. I was able to say "OK f$%& Wad", "OK Moto" and "OK Siri" (joke for my wife). I thought it was due to hex editing some files but that was only a coincidence. Train a phrase using "OK [your word] Now". Sometimes it is tough. Now most of the time you can start it with only "OK [your word]". They use some of the Nuance sdk. Nuance app looks for syllables if I read correctly. I will dig into the files again to see if it can be done more easily. All we need is one guy shouting the phrase and 10 phones want to react. ?
Good luck.
Click to expand...
Click to collapse
Well the idea is that we want this to work even if you don't say OK, and you should be able to just say anything you want. Also, it should work without having to try many times.
On a side note, I've run into the issue where basically I can not install on top of the app because it's installed as a system app. I'm not too sure if there's any way to get around this besides removing the permissions check from the device which would be a huge security hole. I also don't even know if that itself will work..
It is probably a signature issue. I have a complete deodex of the original KK dump. If you sign with the same key that might help. You can verify by looking at your logcat when trying to install. Check out data/data/blabla audiomonitor. In the files Dir there is a file svsid_trigger. This is recreated each time you train. I would believe it to be a voice sample if you want to call it that. There are other files in there that when opened show the phrase OK Google now. This is where I hex edited but it did nothing. It will even run without some of these files. My theory is one of these files contains a sample of what it should look like. Decompiling the apk is about as messy as you described. When you check the prefs you see the phrase is set to custom phrase which appears to be a function/class. This also gets rewritten when the phone is booted. Curious to see what happens. I really expect Google or moto to change this. It just does not make sense to have all the phones responding to the same thing. Even with training others can activate it. I was watching a video on the phone and that activated it. LOL
DroidJunk said:
It is probably a signature issue. I have a complete deodex of the original KK dump. If you sign with the same key that might help. You can verify by looking at your logcat when trying to install. Check out data/data/blabla audiomonitor. In the files Dir there is a file svsid_trigger. This is recreated each time you train. I would believe it to be a voice sample if you want to call it that. There are other files in there that when opened show the phrase OK Google now. This is where I hex edited but it did nothing. It will even run without some of these files. My theory is one of these files contains a sample of what it should look like. Decompiling the apk is about as messy as you described. When you check the prefs you see the phrase is set to custom phrase which appears to be a function/class. This also gets rewritten when the phone is booted. Curious to see what happens. I really expect Google or moto to change this. It just does not make sense to have all the phones responding to the same thing. Even with training others can activate it. I was watching a video on the phone and that activated it. LOL
Click to expand...
Click to collapse
I know it's a signature issue when I am trying to install it, but even when I uninstall and install again, I get a permissions issue because it's not installed as a system app.
Also, changing the value of the audio file is interesting, but the problem is that unless we know the algorithms to generate the audio files, I don't know how we can adjust that. It seems cleaner to just go into the code and remove the checks altogether. On the other hand, it takes more investigating, and right now I am completely blocked on this. I don't have much time to mess with this anymore unfortunately, but I do want to try to remove the permissions altogether and see if it will let me install the app as a user app.
Synderesis said:
I know it's a signature issue when I am trying to install it, but even when I uninstall and install again, I get a permissions issue because it's not installed as a system app.
Also, changing the value of the audio file is interesting, but the problem is that unless we know the algorithms to generate the audio files, I don't know how we can adjust that. It seems cleaner to just go into the code and remove the checks altogether. On the other hand, it takes more investigating, and right now I am completely blocked on this. I don't have much time to mess with this anymore unfortunately, but I do want to try to remove the permissions altogether and see if it will let me install the app as a user app.
Click to expand...
Click to collapse
Check here when you get around to decompiling audiomonitor.apk. \AudioMonitor.apk\smali\com\motorola\audiomonitor\uis\training. It might be a good start. I use to be good at smali, but it has been a couple of years.

[Open Source] [Requires Root] Nexus 6 tap to wake

Decided to make an open source tap to wake app since implementations will need root to write to the /sys folder. The way tap to wake works is modifying a file to tell the system if it's on or off.
See this commit to see google's original implementation:
https://android.googlesource.com/device/moto/shamu/+/2084f7d0cf50baf394759d175bc28ad80cf7cace^!/#F0
The app is very rudimentary as it's really a simple toggle. It's a completely no frills UI and implementation.
It works by writing "AUTO" or "OFF" to /sys/bus/i2c/devices/1-004a/tsp
By default the file is restored each boot which is why the app asks to be ran on boot.
The full source code can be viewed on github: https://github.com/chrisj951/Tap-To-Wake-Nexus-6
Now we just need it to detect the proximity sensor. Thanks!
Is this any different than the other tap to wake app posted in this same forum?
VTEChump said:
Is this any different than the other tap to wake app posted in this same forum?
Click to expand...
Click to collapse
Apart from little differences, both do essentially the same thing. I mean no offense to ChrisJ941, but I think mine is slightly more polished.
naxir said:
Apart from little differences, both do essentially the same thing. I mean no offense to ChrisJ941, but I think mine is slightly more polished.
Click to expand...
Click to collapse
You two should work together if you ask me.
Also in the source code, are the red lines, the lines that begin with the dashes, mean those were removed from the source code?
If anyone uses tasker and wants to replicate this:
1. Make a new task
2. Select "Scripts," then "Run Shell"
3. Put this in as the command: echo "AUTO" > /sys/bus/i2c/devices/1-004a/tsp
4. Check the box that says "Use root"
5. Set up a profile that runs on device boot which runs the new task that you just made.
Also, try running the task once to make sure that it works and to grant Tasker root privileges if you haven't already.
VTEChump said:
Is this any different than the other tap to wake app posted in this same forum?
Click to expand...
Click to collapse
At the time of making it was the only one to auto-restart through reboot
It is open source (you can compile it to know nothing more than needed is going on in the background)
I dislike allowing root to apps which I can't verify aren't doing something else behind the scenes. (Not implying the other author is, but I don't like taking the risk)
stuff said:
You two should work together if you ask me.
Also in the source code, are the red lines, the lines that begin with the dashes, mean those were removed from the source code?
Click to expand...
Click to collapse
Yes, the red lines are what google removed from the source code (with the commit message being "shamu: disable double tap in power HAL")
Thank you for releasing an open source version, I got a bad taste in my mouth when naxir was talking about monetizing his and didn't want to talk about the technical details until you revealed in the thread. We need more openness/communication in the community so we can have awesome things.
Not that I blame naxir for looking out for his best interests but withholding the technical details didn't sit well with me.
privatekey said:
Thank you for releasing an open source version, I got a bad taste in my mouth when naxir was talking about monetizing his and didn't want to talk about the technical details until you revealed in the thread. We need more openness/communication in the community so we can have awesome things.
Not that I blame naxir for looking out for his best interests but withholding the technical details didn't sit well with me.
Click to expand...
Click to collapse
That is the primary reason I made this, since it does require root.
privatekey said:
Thank you for releasing an open source version, I got a bad taste in my mouth when naxir was talking about monetizing his and didn't want to talk about the technical details until you revealed in the thread. We need more openness/communication in the community so we can have awesome things.
Not that I blame naxir for looking out for his best interests but withholding the technical details didn't sit well with me.
Click to expand...
Click to collapse
ChrisJ951 said:
That is the primary reason I made this, since it does require root.
Click to expand...
Click to collapse
That's a fair point. I have now published my implementation on Github as well.
Great app! Better than Naxirs. Is it possible for you to have it on the Play Store?
Thanks for this app! I've been waiting for something like this, too cool.
monkey hung said:
Great app! Better than Naxirs. Is it possible for you to have it on the Play Store?
Click to expand...
Click to collapse
Just out of curiosity, how I'd this better than Naxirs app? Debating on which one to use.
stacio88 said:
Just out of curiosity, how I'd this better than Naxirs app? Debating on which one to use.
Click to expand...
Click to collapse
They both do they same thing one member just asked for donations if you wanted to by buying it on the play store. I've used both of them and they both work just fine.
Mr. Steve said:
If anyone uses tasker and wants to replicate this:
1. Make a new task
2. Select "Scripts," then "Run Shell"
3. Put this in as the command: echo "AUTO" > /sys/bus/i2c/devices/1-004a/tsp
4. Check the box that says "Use root"
5. Set up a profile that runs on device boot which runs the new task that you just made.
Also, try running the task once to make sure that it works and to grant Tasker root privileges if you haven't already.
Click to expand...
Click to collapse
As a Nexus 5 owner and soon-to-be a Nexus 6 owner, I'd use this instead of an app - no offense intended here, I'm just a DIY guy.
I'd add a little delay in the first line of the task, as the Tasker suggests: search for 'Wait' on 'Select Action Category' and put a delay of 5 ~ 8 seconds, this will give a little time to Android to start all the things and then run the script.
I have a script for another purpose on my N5 and I put a delay of 7 seconds.
Grushteniak said:
As a Nexus 5 owner and soon-to-be a Nexus 6 owner, I'd use this instead of an app - no offense intended here, I'm just a DIY guy.
I'd add a little delay in the first line of the task, as the Tasker suggests: search for 'Wait' on 'Select Action Category' and put a delay of 5 ~ 8 seconds, this will give a little time to Android to start all the things and then run the script.
I have a script for another purpose on my N5 and I put a delay of 7 seconds.
Click to expand...
Click to collapse
I went the Tasker route too. The delay is a good idea - thanks.
Are people seeing sporadic results using this? For me, it will work well sometimes, and other times will require up to 10 taps to wake the device.
When I turn on ambient display (which does nothing, as I have lock screen set to "none") I seem to get more consistent results, but still doesn't work 100% of the time.
Mr. Steve said:
If anyone uses tasker and wants to replicate this:
1. Make a new task
2. Select "Scripts," then "Run Shell"
3. Put this in as the command: echo "AUTO" > /sys/bus/i2c/devices/1-004a/tsp
4. Check the box that says "Use root"
5. Set up a profile that runs on device boot which runs the new task that you just made.
Also, try running the task once to make sure that it works and to grant Tasker root privileges if you haven't already.
Click to expand...
Click to collapse
I got this error-
tmp-mksh: <stdin>[2]: can't create /sys/bus/i2c/devices/1-004a/tsp: No such file or directory?
Click to expand...
Click to collapse
yashgumaste said:
I got this error-
Click to expand...
Click to collapse
I don't have a Nexus 6 anymore so I'm not sure how helpful I'm going to be with this one. From what I can tell from some quick researching, it looks like Google changed something when Marshmallow was rolled out so this method of enabling double tap to wake will no longer work. The easiest way I can find to enable d2tw appears to now be to just use a custom kernel. My recommendation from back when I still had my N6 would be to use either Leankernel or Franco Kernel, but I haven't kept up with the N6 dev scene since I got my 6P in November.

Can anyone tell me if my idea is crazy or already exist?

Hi guys, so we all know that there's alot of auto click app that works by record your click on the screen and repeat it. Click 1 to click 2 is separate by seconds between it. But what i want to find here is an auto click app that from click 1 to click 2 is separate by a task or an action of the character between it.
For example, in a game i play, it has a mission that i have to kill an amount of monsters to complete. When i'm done killing the amount of monsters needed, a board will appear and i have to click "OK" to receive the reward and move to the next mission, which is also killing an amount of monsters in a different map. The amount of seconds from Mission 1 "OK" button to mission 2 "OK" button is different from mission 2 to mission 3. That's why the common auto click app won't work.
Please tell me that there's this kind of app.
If there is not, i think i have to do more advanced stuff.
So in this game there are that kind of auto "OK" which is coded inside the game, but only for a few missions, where can i find these kind of code so i can replicate it to other missions. And yes, i am talking about modding an apk file.
Sorry for my bad english.
if what you are talking about is bypassing an in-game notification window by auto clicking ok on it, then you will have to be able to find either:
- if its intent is broadcast or
- if its 'window' has a name
Tasker can react to those.
But I think this is not likely to happen.
If you are willing to mod the apk file and have the skill, I'm sure you can find a way to just dismiss the notification internally, like by sending itself an ok action after 2 display seconds.
I'm not a modder, so I can't say anything else about this.

[APP][NST/G] Reading Now button menu

See post #50 for a new user-customizable version, RN Menu 2.0!
*Updated to v. 1.1.1--more accurate placement of menu in landscape*
Version 1.2.1 substitutes FastMode2 for NoRefresh.
This app is a toggle which places a small menu directly below the status bar "reading now" button and extends the function of that button. While the app can be used as a stand-alone toggle, it is best used by reassigning the "reading now" button with Nook Touch ModManager to the app. No function is lost, as the first item on the short menu is "reading now". As currently configured, the menu options are:
1. Reading Now (same as original stock button function)
2. Orientation (a landscape/portrait toggle using Rotation Locker)
3. No Refresh
4. Set Cover (which potentially sets the screensaver image to the current book cover)
See screenshot below.
While the app is not user-configurable (maybe some day, probably not) now that I have produced a template to work with it is reasonably easy to customize and I would entertain requests for specific items--assuming I can figure out how to implement them! There have been other approaches to setting a menu in this position, but they have involved modding jars and have been limited to specific firmwares. This app should run on all firmwares and does not require modification of any jar files. If you don't like it, you just uninstall it and it's over and done with. For me, this project has been a proof of concept and I've learned a lot. Maybe an extended power menu is next?
Requirements
--Rotation Locker (attached below) (required for Orientation option)
--No Refresh Toggle (I am running NoRefreshToggle-debug2, but it may not matter--someone can let me know?)
--Root (required for Set Cover option and for menu itself as of v.1.1.1)
--sqlite3 (available in this post where the screensaver option setup is explained in detail)
--As this is a Tasker-generated app (but does not require Tasker to run!) there is a dependency on two library files normally installed with GApps. If you do not have GApps installed on your device, you can still use this app by copying the two attached files into the locations shown below (the xml file is zipped so you can download it rather than view it):
/system/etc/permissions/com.google.android.maps.xml
/system/framework/com.google.android.maps.jar
Set permissions for both files to rw-r--r-- and reboot. Without these files resident, the app will not install.
---------------------------------------------------
How to use
The best implementation is to reassign the "reading now" button to this app using Nook Touch ModManager. When that is done, tapping on the "reading now" icon will produce the menu and you can make your selection from there. If you inadvertently tap the icon, you can dismiss the menu by tapping again. It's a toggle. Starting with v. 1.1.1, root is required to allow the app to query the current screen orientation. This enables a more accurate placement of the menu in landscape mode.
The screen orientation by default is, of course, Portrait, so the toggle goes immediately to Landscape. Landscape runs as a background service (notification) to lock in the feature since some apps resist the change. Selecting orientation again returns you to Portrait and ends the background service until the next selection. It's also possible to exit Landscape by tapping on the notification. This brings up the three-line menu (invisible text unless you have altered your background image colors). The top option is Portrait.
The first time you select Set Cover you will be asked to allow root access. This part of the app includes shell commands and thus needs root access.
That's it! I'd appreciate bug reports and/or suggestions and welcome requests for customized menus (at least for now!). Enjoy!
@nmyshkin I really appreciate you continuing to develop this wonderful device. Thank you for everything you've done on the NST.
I have a request, if you have time and it's not too much trouble.
1. Reading Now
2. Renate's Temblast Library (which I use as a quick list of what I'm currently reading)
3. Fastmode2
4. Your new USB Audio Toggle
ALinkToTao said:
I have a request, if you have time and it's not too much trouble.
1. Reading Now
2. Renate's Temblast Library (which I use as a quick list of what I'm currently reading)
3. Fastmode2
4. Your new USB Audio Toggle
Click to expand...
Click to collapse
I can do that easily if I know how the library is supposed to work. Is it just sending an intent, starting an app or....?
Also, there's nothing magic about 4 items, so if you want fewer or more, that's doable.
Edit: I've looked at the Library app. Very straightforward tap-and-go. So just let me know if you want any more (or fewer) items and I'll get on it.
nmyshkin said:
I can do that easily if I know how the library is supposed to work. Is it just sending an intent, starting an app or....?
Also, there's nothing magic about 4 items, so if you want fewer or more, that's doable.
Edit: I've looked at the Library app. Very straightforward tap-and-go. So just let me know if you want any more (or fewer) items and I'll get on it.
Click to expand...
Click to collapse
Wow! That's awesome! Yeah, I think those four would be awesome!
Could you also make one with
1. Reading Now
2. Renate's Temblast Library
I have bought and rooted many NST's for friends and having just those two options will be very convenient for them... They aren't really techy, so too many options would just confuse them.
That would be useful for them when I make other NST's. I'm planning on making 3 more, so I think that would be great! The one with 4 options on it, I'd be using personally.
ALinkToTao said:
Wow! That's awesome! Yeah, I think those four would be awesome!
Could you also make one with
1. Reading Now
2. Renate's Temblast Library
I have bought and rooted many NST's for friends and having just those two options will be very convenient for them... They aren't really techy, so too many options would just confuse them.
That would be useful for them when I make other NST's. I'm planning on making 3 more, so I think that would be great! The one with 4 options on it, I'd be using personally.
Click to expand...
Click to collapse
These are the apps you're looking for {waves hand vaguely}.
Thanks so much! I'll put it to use and see how it runs. I'm sure it will be great.
It runs great! I have noticed that this theoretically could be used to have a second quicknav menu. You can activate it also by programming one of the side buttons to show/hide it. Great job!
If someone didn't want to run the launcher, this could save them from using it with their most used apps on this.
@nmyshkin ... thanks ... I would be interested in this app, I wanted to have the default 'reading now' on nook reader ... and a customizable option so i can probable configure some other reading apps and their last read book directly opening when the option is invoked ...
Update
_____________
I tried installing your app from OP for 1.2.1 ... but it did not install ... If its not too much trouble can you make one that runs on 1.2.2 and share the same ?
thank.s
aiamuzz said:
@nmyshkin ... thanks ... I would be interested in this app, I wanted to have the default 'reading now' on nook reader ... and a customizable option so i can probable configure some other reading apps and their last read book directly opening when the option is invoked ...
Update
_____________
I tried installing your app from OP for 1.2.1 ... but it did not install ... If its not too much trouble can you make one that runs on 1.2.2 and share the same ?
thank.s
Click to expand...
Click to collapse
The app should run on FW 1.2.2. If you can't install maybe you forgot to copy the two small dependency files?
nmyshkin said:
/system/etc/permissions/com.google.android.maps.xml
/system/framework/com.google.android.maps.jar
Set permissions for both files to rw-r--r-- and reboot. Without these files resident, the app will not install.
Click to expand...
Click to collapse
Edit: or, did you forget to install Rotation Locker first? Because that app is one of the menu options, it's seen as a dependency and my app will not install if it doesn't see it there.
As I made it, however, the app will not do what you want. It is not programmable by the user. At the time I made it I was just starting out with making apps with Tasker. I suppose it would be possible now to produce an app that is more flexible, but it would not be very user friendly because there is no way to predict what someone might want to do and therefore code would almost certainly need to be sussed out and written in by the user. That doesn't sound like something people would really want. In any case I'm still bogged down in my Dictionary project so.....
If you have a static set of wishes, that would be easier.
In any case I'm still bogged down in my Dictionary project so.....
If you have a static set of wishes, that would be easier.
Click to expand...
Click to collapse
Oh Dictionary project for our Nook Simple Touch and Glowlight ?
Is it interesting ? If so pleas share the link to ...
Static set of wishes ... It has a limitation of 4 buttons only ?
1. Nook continue to the Last read book and position.
2. Amazon app so that will direct the user to the amazon app with the last book open.
3. App Drawer
4. Nook Clear Screen
these would be my 4 if 4 is the limitation ... however if more were to be accommodated then ...
5. File Manager(Root Browser)
6. Statusbar - Glowlight
Would a cleaner implementation for the 5th & 6th options and others separately as an app that can be mapped with NTMM to the Statusbar - Glowlight button(primarily because this part is accessible directly from the book you are reading in the default nook reader, some ting of a quickaccess tiles/lists with the below ...
1. Glowligh & Wifi
2. File Manager(Root Browser)
3.
4.
5.
aiamuzz said:
Oh Dictionary project for our Nook Simple Touch and Glowlight ?
Is it interesting ? If so pleas share the link to ...
Click to expand...
Click to collapse
Not ready yet, but slowly getting there. The app is complete. Still testing to be sure it won't destroy the NST/G. I have a few more dictionaries to complete.
aiamuzz said:
Static set of wishes ... It has a limitation of 4 buttons only ?
Click to expand...
Click to collapse
That's how it is now, but any number of buttons can be added. Do you really want a laundry list?
aiamuzz said:
1. Nook continue to the Last read book and position.
2. Amazon app so that will direct the user to the amazon app with the last book open.
3. App Drawer
4. Nook Clear Screen
these would be my 4 if 4 is the limitation ... however if more were to be accommodated then ...
5. File Manager(Root Browser)
6. Statusbar - Glowlight
Click to expand...
Click to collapse
Mmmm.... See below.
aiamuzz said:
Would a cleaner implementation for the 5th & 6th options and others separately as an app that can be mapped with NTMM to the Statusbar - Glowlight button(primarily because this part is accessible directly from the book you are reading in the default nook reader, some ting of a quickaccess tiles/lists with the below ...
1. Glowligh & Wifi
2. File Manager(Root Browser)
3.
4.
5.
Click to expand...
Click to collapse
So you seem to be describing (kinda) my QuickTiles app. Have you looked at it?
Take a look at that (which includes the Nook Clear Screen option and the Glowlight and WiFi controls, but not a file manager option) and see if that would meet your needs. Modules could be added but I did sort of want to keep it to display/mode functions, rather than turning it into a sort of launcher.
After that, confirm your choices for the ReadingNow menu and I'll see what I can come up with. Not sure about the Kindle app opening to the last book, but the info must be somewhere that could be poked at.
Not ready yet, but slowly getting there. The app is complete. Still testing to be sure it won't destroy the NST/G. I have a few more dictionaries to complete.
Click to expand...
Click to collapse
that's good to know ... its for NST/NSTG ... I just can't seem to part with this device myself ... and you are developing things for it ... can't get any better than that !
After that, confirm your choices for the ReadingNow menu and I'll see what I can come up with. Not sure about the Kindle app opening to the last book, but the info must be somewhere that could be poked at.
Click to expand...
Click to collapse
as far as the kindle app and its last read book is concerned, you don't have to dig deep ... when i read a book on kindle and exit out of the app without hitting the back button ... the app will start with the last book open.
The following sequence/order should be good enough for 4 entries ...
1. App Drawer
2. Nook continue to the Last read book and position.
3. Amazon app so that it will direct the user to the amazon app with the last book open.
4. Nook Clear Screen
thanks for all the help ...
(the xml file is zipped so you can download it rather than view it):
Click to expand...
Click to collapse
I can't seem to extract the xml file from this zip file ... or ... should i just rename the extension to .xml ?
aiamuzz said:
I can't seem to extract the xml file from this zip file ... or ... should i just rename the extension to .xml ?
Click to expand...
Click to collapse
Huh. Wonder how/when that happened? Try it again. I uploaded a new copy and downloaded it to test. Worked fine this time.
nmyshkin said:
Huh. Wonder how/when that happened? Try it again. I uploaded a new copy and downloaded it to test. Worked fine this time
Click to expand...
Click to collapse
No problem ... i was able to download that xml file from one of your other threads whose pre-requisite too was to have these very same 2 files to be present on the device.
I opened your RN app and the drop down did open on the top left book icon ... but this opens only one time ... Does one have to reconfigure using NTMM so it opens every time ?
aiamuzz said:
No problem ... i was able to download that xml file from one of your other threads whose pre-requisite too was to have these very same 2 files to be present on the device.
I opened your RN app and the drop down did open on the top left book icon ... but this opens only one time ... Does one have to reconfigure using NTMM so it opens every time ?
Click to expand...
Click to collapse
I downloaded and installed the apk (1.1.1) from the first post. It runs fine for me. Did you get and approve the SU prompt?
There's nothing special to be done with NTMM other than assign the app to the "reading now" soft button.
Did you by any chance reinstall over a previous installation when you were having trouble? If so, you need to do a complete uninstall before reinstalling on apps like this with toggles. If the toggle variable has been messed up it will stay that way unless you do a fresh install since installing over an existing app of the same version preserves the data (like the state of the toggle variable).
@nmyshkin ... thanks i figured ... Is it just me or the Nook Book Button app seems to be a little quicker(about 2-3 seconds) quicker than your RN app to show the drop down menu on invocation.
Not sure if its just me and my device or its across the board.
Cheers.
aiamuzz said:
@nmyshkin ... thanks i figured ... Is it just me or the Nook Book Button app seems to be a little quicker(about 2-3 seconds) quicker than your RN app to show the drop down menu on invocation.
Not sure if its just me and my device or its across the board.
Cheers.
Click to expand...
Click to collapse
No, it's not just you. I could change it like I did QuickTiles so that it responds more quickly but as I don't use it any longer, I have never revisited it. It would involve an "always on" overlay of the button.
The following sequence/order should be good enough for 4 entries ...
Click to expand...
Click to collapse
1. App Drawer
Click to expand...
Click to collapse
2. Nook continue to the Last read book and position.
Click to expand...
Click to collapse
3. Amazon app so that it will direct the user to the amazon app with the last book open.
Click to expand...
Click to collapse
4. Nook Clear Screen
Click to expand...
Click to collapse
Oh you can make it snappy ? Thanks whenever you find time to work on this request, please do remember to make it fast and responsive ...

Categories

Resources