[Open Source] [Requires Root] Nexus 6 tap to wake - Nexus 6 Themes and Apps

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.

Related

Updated [Dev][App] NoLitez 1.0.28 Dec 17 2008

UPDATE: Dec 17, 2008
older versions are no longer available here, the latest version is in the market under the developer name "snctln"
let me know if you have any problems with it
mpenguin14 said:
so I decided not to abandon development, competition is a good thing, right? and I am going to update the first post with a new build... in this new build there are a lot of improvements
- all 50 levels from the classic lights out, before it only had the first 5
- after level 50 new levels are randomly generated... I believe there are more than 8000 solvable
- added a hint engine... press the menu key and select the "Show Hints" and you will see a small red dot on the keys that you need to press in order to complete the puzzle, updates in real time, you can turn off this feature if you want by going back to the menu and selecting "Hide Hints"
- the state of the application is saved across instances... this way you can continue a game even if you restart your phone
any feedback would be greatly appreciated.
My main question is this: Does this app feel the like it is the sae quality as other apps on the Market? Or does it seem cheap and too simple?
Click to expand...
Click to collapse
(mods: if this is not the correct forum to post development of an android app please feel free to move the post or tell me where to move it to)
So I put up a thread a week or 2 ago requesting android app ideas and at first it seemed that games were in demand, so I started working on a simple game...
NoLitez is a simple game that take inspiration from the old simple handheld video game "Lights Out", (wikipedia link)
basically the idea of the game is that all spaces in the gird can either be turned on or off... the goal is to get all of the lights off. When you touch a light, you toggle the state of that light and the 4 lights immediately north, south, east and west of the light
I ran the apk using the latest android for titan build and it worked as I would expect.
So now I am curious if any G1 owners want to be a beta tester for me and tell me if this apk even works for them, and if so what they think of the game.
I only have very basic features implemented, and only the first 5 levels...
This would count as my first android application so please go easy on the criticism, but I am open to hearing all things good and bad
thanks for any feedback
i tried it out, good game. No crashes or hangs, works as described
neerhaj said:
i tried it out, good game. No crashes or hangs, works as described
Click to expand...
Click to collapse
cool, thanks for the feedback
Nice. Clean interface and classic gameplay. I remember when they advertised these things on television in the '90s.
On a side note, how's Android running on TyTN? There's not a week goes by that there isn't a new device Android is running on, but it seems that most of the devices still need some spit polish.
jashsu said:
Nice. Clean interface and classic gameplay. I remember when they advertised these things on television in the '90s.
On a side note, how's Android running on TyTN? There's not a week goes by that there isn't a new device Android is running on, but it seems that most of the devices still need some spit polish.
Click to expand...
Click to collapse
well I have a Titan rather than a TyTN (PPC6800, CDMA device, aka Sprint Mogul vs P4500 GSM aka AT&T 8525 here in the states) [but they do seem to be named the same]... and I have to say that android doesn't run too well on it, I have been able to get android up and running on it since July thanks to dzo's vogue releases but even with the latest editions the touchscreen doesn't work quite right and the button mappings aren't very intuitive to me... maybe I just need to give it more than 5 minutes, but my plan is to buy a Android Dev 1 or some unannounced 2009 android phone so I shouldn't have to rely on testing on an unsupported QVGA device... but I just got laid off last Friday, so it could be a while until I have a proper android device to develop with
Works like a charm, no bugs at all and a pretty fun game! Do you mind if i throw it in my g1 files in my sig?
stats555 said:
Works like a charm, no bugs at all and a pretty fun game! Do you mind if i throw it in my g1 files in my sig?
Click to expand...
Click to collapse
I am glad that you are enjoying it, it is not a problem to put the apk up in your directory, I have a few more things that I want to do before I make a proper release in the android market, but I have a few questions and I am not sure if this is the proper place to ask them
1.) Does this application behave as you would expect it to as far as saving and restoring its state? Like if you get a phone call or have to leave the app for some reason when you restore the app does it save the lights on/lights off state? Does it at least behave as you would expect it to when compared to other G1 apps?
2.) I am not fully sure if this application would be allowed in the market because Tiger electronics has the "Lights Out" game patented... does anyone know if any other game "clones" exist on the market like say a tetris clone?
thanks again for the feedback
There's an app on the Market called 'Lights Out" already...? Seems to be the same game? Not sure who developed it though.
(http://code.google.com/p/lights-out-android)
punkweakling said:
There's an app on the Market called 'Lights Out" already...? Seems to be the same game? Not sure who developed it though.
(http://code.google.com/p/lights-out-android)
Click to expand...
Click to collapse
wow... you are correct, this exact same game already exists for android and I had no idea. Looks like I am going to abandon development unless someone thinks it is good to have diversity in the market, since I don't have a G1 there really is no way for me to test to see the differences that may exist...
I enjoyed putting this together, but I wish there was some way to browse the titles available on the market other than directly from a G1, that way I would have known to work on something different. (and after a quick search my second game that I was planning on making "4NARow" (a connect 4 clone) is already on the market too...
maybe if I pay the $25 and register as an android developer I can see the different apps available in the market?
so I decided not to abandon development, competition is a good thing, right? and I am going to update the first post with a new build... in this new build there are a lot of improvements
- all 50 levels from the classic lights out, before it only had the first 5
- after level 50 new levels are randomly generated... I believe there are more than 8000 solvable
- added a hint engine... press the menu key and select the "Show Hints" and you will see a small red dot on the keys that you need to press in order to complete the puzzle, updates in real time, you can turn off this feature if you want by going back to the menu and selecting "Hide Hints"
- the state of the application is saved across instances... this way you can continue a game even if you restart your phone
any feedback would be greatly appreciated.
My main question is this: Does this app feel the like it is the sae quality as other apps on the Market? Or does it seem cheap and too simple?
posted version 1.0.28 in the market, developer name "snctln", let me know if you have problems getting it or using it.
any other feedback is appreciated
Of course I have problems. One big fat problem - I cannot run it.
Well... I'm using Android on my Titan. So..... I cannot even download and install it...
Magister2k7 said:
Of course I have problems. One big fat problem - I cannot run it.
Well... I'm using Android on my Titan. So..... I cannot even download and install it...
Click to expand...
Click to collapse
Magister, I am using your titan build of android, so I will go over to that thread and post the apk package for this (NoLitez) and my latest game (PingPong), if anyone else wants these apks go to the Titan Linux wip thread in the Titan Forum for the download
mpenguin14 said:
Magister, I am using your titan build of android, so I will go over to that thread and post the apk package for this (NoLitez) and my latest game (PingPong), if anyone else wants these apks go to the Titan Linux wip thread in the Titan Forum for the download
Click to expand...
Click to collapse
Ok, Thanks!

Different Ring per Areacode?

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

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.

[5/12] Advanced Feed Development

Alright everyone, I'm Trailblazer101, an Android Developer who likes to take advantage of, and make better, the unique features of the phones I purchase. I started off with the Samsung Continuum back in 2010, which had a ticker ahead of its time, and went from there. I work 2 jobs, so time is tight sometimes, but I still manage to work on these things, a fun passion/hobby.
Status Updates
Code:
5/12
--- I got my patch working, and tested it out with a simple demo that takes advantage of the new capabilities. I've posted a Guide below!
5/10
--- Now that Verizon users have root, I will begin testing this myself :) Thanks to those who helped me figure out what we'd have to do, so I can get started right off the bat! I'll keep you posted.
What is this?!!
Okay, so by default the Feeds that you can make are restricted to the capabilities of a RemoteView. This severely limits what you can do with the Feed. Take a look here to see what exactly is supported, by default: http://stackoverflow.com/a/16089389
However, any Samsung App (which includes a few signed by Samsung on the Galaxy Apps Exclusives page) has the ability to put whatever it wants on the screen, just like a regular App. I've now extended that invitation on over to you/us!
Guide
The steps to take advantage of this is a little convoluted, so let me break it down for you easy!
STEP 1:
You have to flash my patch to allow this development to actually work. You can download it here: View attachment Trailblazer101_S6Edge_Advanced_Feeds_Patch.zip. Then flash it using FlashFire, or extract the zip and put everything where it needs to go, making sure to set the permissions appropriately!
STEP 2:
Now you can start developing your new Custom Feed! I would suggest using my simple demo project as your base, and going from there! You can find that here: View attachment EdgeScreen-BACKUP.zip. Extract it and take a look at the source!
STEP 3:
From here on out is where things get tricky... Without changing a thing, if you build from source and try to debug, it won't work. Why? Because the API that Samsung gives developers, like us, is different than the one they use for themselves. So Here's what you gotta do-- without changing a thing, build the Project. The best way to do that without debugging within Android Studio is to go to Gradle Projects -> :app -> Tasks -> build -> assembleDebug. This'll make the built apk and put it within "..\.EdgeScreen-BACKUP\app\build\outputs\apk\app-debug.apk".
STEP 4:
I'm assuming you have the latest Java Development Kit, and Android SDK, installed and configured properly, with their paths in the PATH variable, accordingly. You should also know how to use apktool for decompilation, at least a little I've compiled a toolkit folder based off of the test Project I shared above, which includes apktool, the NEW Samsung API files, the original built apk, and the already modified decompiled source/apk. You can download that here: View attachment Decompilation_Data.zip. Then, open a Command Prompt window and "cd" to the extracted folder.
STEP 5:
Decompile the built apk, which should be the same as the one in the extracted folder, using apktool like this:
Code:
.\apktool\apktool d -f TestFeed_orig.apk
STEP 6:
Compare the decompiled folder "TestFeed_orig" with my already modified "TestFeed_modded" one. I suggest using WinMerge! You'll see that the 'TestFeed_orig\smali\com\samsung\android\sdk' folder is very different. That's what I was talking about before, how Samsung Feeds have more options in their API. So delete the 'TestFeed_orig\smali\com\samsung' folder, and replace with the one in the '---SAMSUNG API---' folder.
STEP 7:
Continue comparing the two folders. Basically the rest of the changes are just getting our application to call the new Samsung API properly, instead of the stubs I was using in the Project. There aren't many changes you have to make, but they're all important!
STEP 8:
Once the two folders are the same, recompile it using apktool, like so:
Code:
.\apktool\apktool b TestFeed_orig
STEP 9:
Sign the new compiled apk stored in 'TestFeed_orig\dist' using your signing key. You can make your own, then use it to sign the app, following the instructions here: Official Instructions for Manual Signing.
STEP 10:
Install the newly signed apk, and enable the Feed by going to: Settings-> Edge screen -> Information stream -> Manage Feeds -> *ENABLE* FeedsCocktailExample! You may have to restart, or just hit 'reorder' in the top left. That sometimes fast-triggers it. Now turn off the screen, do the Feed Gesture to get it to turn on, and you should see our Custom Feed! It doesn't look like much, but it's using a custom view, HorizontalTextView, that would not work otherwise.
From here the options are endless. You can follow these steps and my Sample Project to play a video for a feed, if you wanted! Whatever strikes your fancy!
If you followed these steps and appreciate the help, show this thread some love, and maybe. Well i'd say buy me a beer, but it'll probably go to textbooks instead
Developer/Advanced Information!
We can make our own Feeds no problem, without root, they are just forced to use a RemoteView directly, which for all intents and purposes, is a pain in the kiester. Instead, it would be a lot nicer/convenient, without even mentioning the more advanced functionality we could bring, to use our own Views. However the version of SlookCocktailManager.UpdateCocktail that allows this is only found within a more advanced API, one I/no typical user don't have access to directly. BUT, I can still access it by decompiling for example the Edge RSS app from the Samsung AppStore, and putting/replacing the "sdk" folder from that into my own decompiled app, and recompiling. Easy enough, with apktool! (Of course with the headache of adding in my own temporary shell classes, in the project, so that I can actually write the calls, and just change the reference within the smali code once that sdk is replaced) The problem is, even when you do this, and it builds fine, installs great, and even begins initializing properly, we get an error from within CocktailBarService, the file I'm having you replace. More specifically, I tracked down the actual problem, and it comes back to "CocktailWhiteList", a class within CocktailBarServices, then checks the signature of the calling application, our Custom Feed, and sees if it comes from Samsung. This none of my expertise can fix, without being rooted, but trust me I tried. Now that we are rooted I was able to patch said apk, and get my own apps to work! Hurray!
cocktailbar service crashes when going into 'edge screen' option in settings menu.
logcat attached
Edit: sorry didn't rename cocktail bar (cocktailbarservice_signed to cocktailbarservice)
now it doesn't visibly crash, it just wont let me go into 'edge screen' option in settings menu
new log cat uploaded
This man looks promising! You have my S6 edge as soon as I have an official TWRP with working backup and restore
ktetreault14 said:
This man looks promising! You have my S6 edge as soon as I have an official TWRP with working backup and restore
Click to expand...
Click to collapse
I will help as well, when these tools are out for us..
Thanks for bringing cool stuff like this to the phone at this early date!
ktetreault14 said:
This man looks promising! You have my S6 edge as soon as I have an official TWRP with working backup and restore
Click to expand...
Click to collapse
How deep are you willing to go? Because it would be awesome if you could clear dalvik-cache, since I see this, right off the bat:
Code:
: Failed to find OatDexFile for DexFile /system/priv-app/CocktailBarService/CocktailBarService.apk ( canonical path /system/priv-app/CocktailBarService/CocktailBarService.apk) with checksum 0xfbfcb9f7 in OatFile /data/dalvik-cache/arm64/[email protected]@[email protected]@classes.dex
EDIT: could you also make sure that you set the right permissions for the apk? I'm getting the impression that they might be off with:
Code:
msg=audit(1429397519.049:355): auid=4294967295 uid=10001 gid=10001 ses=4294967295 subj=u:r:untrusted_app:s0 pid=12605 comm="ktailbarservice" reason="memory violation" sig=11
EDIT2: We might have to disable SELinux... That's rather unfortunate/puts a rather large damper on things, until custom kernels come out at least... After starting a root shell, can you try:
Code:
setenforce 0
I don't know if it'll work, but if that goes through successfully try and launch the Edge Settings Screen again!
EDIT3: Do'h. It may have been something really simple *crosses fingers* Could you please re-download the CocktailBarService, and try doing the same thing you did last time, with right permissions, and maybe a dalvik-cache wipe if it doesn't work!?
Tried the new apk you uploaded. Getting a force close still when trying to open. I changed SELINUX to permissive, wiped dalvik, even tried deleting arm64 folder as well. No luck.
04-19 00:25:09.907 E/AndroidRuntime(15867): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.samsung.android.app.cocktailbarservice/com.samsung.android.app.cocktailbarservice.settings.EdgeScreenSettingsMain}: java.lang.SecurityException: Permission Denial: get/set setting for user asks to run as user -2 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL
Was searching through logcat and found this. May this have something to do with the issue?
wase4711 said:
I will help as well, when these tools are out for us..
Thanks for bringing cool stuff like this to the phone at this early date!
Click to expand...
Click to collapse
Don't mean to hijack thread, but "Tool" is already available here:
NB: Chrome and IE don't translate into "Save file" - Use Mozilla which does > copy to phone and flash.
https://blck.io/twrp-2.8.6.0-zeroltetmo.img
Perfectly working on T-Mobile S6 Edge
Will
RoM_Addict said:
Don't mean to hijack thread, but "Tool" is already available here:
NB: Chrome and IE don't translate into "Save file" - Use Mozilla which does > copy to phone and flash.
https://blck.io/twrp-2.8.6.0-zeroltetmo.img
Perfectly working on T-Mobile S6 Edge
Will
Click to expand...
Click to collapse
that version doesn't work properly for me and many others; waiting for an "official" version from the TWRP folks..
trailblazer101 said:
How deep are you willing to go? Because it would be awesome if you could clear dalvik-cache, since I see this, right off the bat:
Code:
: Failed to find OatDexFile for DexFile /system/priv-app/CocktailBarService/CocktailBarService.apk ( canonical path /system/priv-app/CocktailBarService/CocktailBarService.apk) with checksum 0xfbfcb9f7 in OatFile /data/dalvik-cache/arm64/[email protected]@[email protected]@classes.dex
EDIT: could you also make sure that you set the right permissions for the apk? I'm getting the impression that they might be off with:
Code:
msg=audit(1429397519.049:355): auid=4294967295 uid=10001 gid=10001 ses=4294967295 subj=u:r:untrusted_app:s0 pid=12605 comm="ktailbarservice" reason="memory violation" sig=11
EDIT2: We might have to disable SELinux... That's rather unfortunate/puts a rather large damper on things, until custom kernels come out at least... After starting a root shell, can you try:
Code:
setenforce 0
I don't know if it'll work, but if that goes through successfully try and launch the Edge Settings Screen again!
EDIT3: Do'h. It may have been something really simple *crosses fingers* Could you please re-download the CocktailBarService, and try doing the same thing you did last time, with right permissions, and maybe a dalvik-cache wipe if it doesn't work!?
Click to expand...
Click to collapse
Hi trailblazer, I set the permissions the same as the original apk ,
right lets try again: I've downloaded the new version and set permissions, wiped dalvik-cache but when trying to disable SELinux i get
tmp-mksh: 0 : not found.
and when going into 'edge screen' settings i get unfortunsatly cocktailbar service has stopped.
Catlog attached:
I used this to modify SELINUX. For anyone else who is helping out, try this.
[4/19] QuickLaunch Demo And Advanced Feed Development Request For Rooted Users
b-reezy said:
I used this to modify SELINUX. For anyone else who is helping out, try this.
Click to expand...
Click to collapse
I sent you a PM! I explicitly declared that permission for each activity, so let's see how it goes now! I put the same apk I sent you now on the OP, so the other testers can try it! In the mean-time, I do have something real for you guys to play with! It's the QuickLaunch window, customizable and all (from hitting the Feeds Settings Icon). I'll put that in the OP with the tag "WORKS(Kinda)"!
One thing, which is a big reason why I'm trying to do it this way-- clicking the icons launches the app, it just doesn't turn the screen back on! I've tracked it down, and it seems as if when the Feed Screen is on, it has the SCover flag set to on, manually, but when a user clicks a button from another Feed, it turns that flag back off, thus turning the screen back on. The easiest/cleanest way for us to do that too would be our Custom Feed Panel implementing the same OnClickHandler that the others do, just can't without doingwhat we're trying to do!
EDIT: Please still use the QuickLaunch apk with the tag "Signed" though for testing the replacement of CocktailBarService! My new one just does it the bad way, and had to get rid of the code for trying the good.
(There's other ways to turn the screen on, but the way I'm trying to do it does it easily, and allows for more advanced functionality!)
FOR DEVELOPERS:
If you are interested in taking what I have and running with it/collaborating, I am more than willing to send all sources of what I have so far, my resources that I've been using, along with all information gathered so far. Just ask!
Hopefully this will become available for non-rooted. I am DIEING to get more functionality out of the Edge API for this phone. The feed is an awesome option, but having to swiping finger is a pain in the @$$. A double tap on the edge or an automatic turn on would be AWESOME when Texts or missed calls are there.
b-reezy said:
I used this to modify SELINUX. For anyone else who is helping out, try this.
Click to expand...
Click to collapse
BTW.. can be disabled in the kernel source also.. I did that in m8 times
trailblazer101 said:
I sent you a PM! I explicitly declared that permission for each activity, so let's see how it goes now! I put the same apk I sent you now on the OP, so the other testers can try it! In the mean-time, I do have something real for you guys to play with! It's the QuickLaunch window, customizable and all (from hitting the Feeds Settings Icon). I'll put that in the OP with the tag "WORKS(Kinda)"!
One thing, which is a big reason why I'm trying to do it this way-- clicking the icons launches the app, it just doesn't turn the screen back on! I've tracked it down, and it seems as if when the Feed Screen is on, it has the SCover flag set to on, manually, but when a user clicks a button from another Feed, it turns that flag back off, thus turning the screen back on. The easiest/cleanest way for us to do that too would be our Custom Feed Panel implementing the same OnClickHandler that the others do, just can't without doingwhat we're trying to do!
EDIT: Please still use the QuickLaunch apk with the tag "Signed" though for testing the replacement of CocktailBarService! My new one just does it the bad way, and had to get rid of the code for trying the good.
(There's other ways to turn the screen on, but the way I'm trying to do it does it easily, and allows for more advanced functionality!)
FOR DEVELOPERS:
If you are interested in taking what I have and running with it/collaborating, I am more than willing to send all sources of what I have so far, my resources that I've been using, along with all information gathered so far. Just ask!
Click to expand...
Click to collapse
Liking the Quicklaunch app , are you still needing testers? or have you got all the info you need?
Alex-V said:
BTW.. can be disabled in the kernel source also.. I did that in m8 times
Click to expand...
Click to collapse
Exactly and imo its better if its done this way..
for anyone interested
you need to edit the security/selinux/selinuxfs.c file from source
FIND:
Code:
selinux_status_update_setenforce(new_value);
#else
ADD RIGHT BELOW "#else":
Code:
new_value = 0;
So it becomes:
Code:
selinux_status_update_setenforce(new_value);
#else
new_value = 0;
or use this one (from the G925F source)
friedrich420 said:
Exactly and imo its better if its done this way..
for anyone interested
you need to edit the security/selinux/selinuxfs.c file from source
FIND:
Code:
selinux_status_update_setenforce(new_value);
#else
ADD RIGHT BELOW "#else":
Code:
new_value = 0;
So it becomes:
Code:
selinux_status_update_setenforce(new_value);
#else
new_value = 0;
or use this one (from the G925F source)
Click to expand...
Click to collapse
yeah.. that's the one I used.. I'm still for and back to root or not..means for me.. develop roms and kernels ..or use it as it is.. lol..
friedrich420 said:
Exactly and imo its better if its done this way..
for anyone interested
you need to edit the security/selinux/selinuxfs.c file from source
FIND:
Code:
selinux_status_update_setenforce(new_value);
#else
ADD RIGHT BELOW "#else":
Code:
new_value = 0;
So it becomes:
Code:
selinux_status_update_setenforce(new_value);
#else
new_value = 0;
or use this one (from the G925F source)
Click to expand...
Click to collapse
Hii my friend, i also still , have a non rooted S6 Edge :thumbup:
Hey guys, I finished the QuickLaunch Feed and posted it in the Apps Folder here:
Click Me!
I did manage to get it to turn the screen on, then, with the clicking of the shortcuts, and it still launches it once unlocked (if you have a lockscreen). I am going to begin work on a music player Feed, now
I will continue development on more advanced Feeds, and also delve into enhancing the edge in other ways, once we Verizon users get root (or until I win the lottery and get a Sprint version ). I see all these great opportunities to make it better, I just can't do anything with it until I'm rooted, since this didn't go as well as I planned. Where we are stuck at now is this, and where it would be too much of a pain for me to do without a phone of my own to test one:
We need to re-sign the system with a signature key we have access to. This includes framework, apps, and the priv-apps signed with the samsung key. Then I can go about doing what I wanted to do, but otherwise, it's a no go.
A developer who does have a Sprint or T-Mobile version with root, I can tell you the information I gathered so far. I have seen where the 'turn screen on gesture' is stored, and all these other great things, I just can't right now
trailblazer101 said:
Hey guys, I finished the QuickLaunch Feed and posted it in the Apps Folder here:
Click Me!
I did manage to get it to turn the screen on, then, with the clicking of the shortcuts, and it still launches it once unlocked (if you have a lockscreen). I am going to begin work on a music player Feed, now
I will continue development on more advanced Feeds, and also delve into enhancing the edge in other ways, once we Verizon users get root (or until I win the lottery and get a Sprint version ). I see all these great opportunities to make it better, I just can't do anything with it until I'm rooted, since this didn't go as well as I planned. Where we are stuck at now is this, and where it would be too much of a pain for me to do without a phone of my own to test one:
We need to re-sign the system with a signature key we have access to. This includes framework, apps, and the priv-apps signed with the samsung key. Then I can go about doing what I wanted to do, but otherwise, it's a no go.
A developer who does have a Sprint or T-Mobile version with root, I can tell you the information I gathered so far. I have seen where the 'turn screen on gesture' is stored, and all these other great things, I just can't right now
Click to expand...
Click to collapse
very nice.. thanks my friend ?
This is just sounding AWESOME! I am on AT&T so will have to wait as well for Root. I was wondering if there is a possability for the edge to just turn on, on its own without the need to swipe the screen? Like when a new notification comes in it will just scroll across the edge (or maybe the icon will blink on and off until you see it and swipe).
I still feel the swipe is to hard to do consistantly and would rather use a double tap or something if the auto on isn't possible.

[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