Little known feature on Jelly Bean ROMS : Multiuser profiles - Eee Pad Transformer General

Little known feature built into any 4.1.1 codebase and beyond, Multi User Profiles.
Easy to enable on rooted devices:
Open a terminal emulator and type the following:
Code:
su
pm create-user <new-user-name>
(replace <new-user-name> with your desired username)
That's it! Then hold down power button until you see the power menu, there will be an option for the new username you added! This user can have it's own Google account, Apps, etc. Great when a device is used by spouses, kids, friends, etc.
Cheers!

Found an app that manages users without having to use the Terminal. HERE

AWESOME !!! This works great! Thank you!
Do you happen to know how to change the name/label of the "Primary" account? I found the help for "pm" and didn't see anything. Actually, the "create-user" option isn't even listed.
Thanks again!

sttovo said:
AWESOME !!! This works great! Thank you!
Do you happen to know how to change the name/label of the "Primary" account? I found the help for "pm" and didn't see anything. Actually, the "create-user" option isn't even listed.
Thanks again!
Click to expand...
Click to collapse
Found the answer, credit goes to mandian, I'm just referencing another post, so please don't give me any credit for this:
In case someone hasnĀ“t figured out how to rename/change any username, it's pretty easy.
You only have to go to /data/system/users and edit the "userX.xml" file, where X is the user number(0,1,2,...). Then change the name between <name> and </name> to any other you like. For example, from guest to invitado. Save the file and reboot. It work well for me.
P.S: If you don't know which user number has the one you wanna change, check out the userlist.xml file, which has the same path above.
Click to expand...
Click to collapse
For me, it was a little different. My file names were "X.xml", not the "userX.xml" convention.
One other note: Some apps in the new profile do not run. Most do though. Not sure what's causing that.

Already heard of it, but I've never tried.
Next time I flash JB I'm going to test it.
Thanks for the command line.

Tried it last night but was very disappointed.
All profiles I created could see my google account.
This is not what I want.
The reason for having this option is for me to have real separate accounts so the kids are not buying games on my credit card.
So either I have not understood it or the implementation in 4.1.2 is not fully ready for multi user accounts.
I hope in 4.2 it will be better.

sweet thanks ^_^

Related

nombCrypt - beta

Hello Everyone,
I just got my 8525 in the mail yesterday and upgraded the boot loader, radio, and WM6. I had a little trouble but in the end, all that I can't get working right is the internet for Cingular. I really appreciate all the hard work everyone puts into this. Here is my thank you, this is my first app so go easy on me.
nomb
nombCrypt
nombCrypt is an encryption program I originally made for the desktop but then decide to port it over. It uses a password you provide and encrypts either a block of text or files using 256bit Rijndael (AES). This level of encryption was given the ok to encrypt Top Secret documents. It can of course decrypt as well. This is for Windows Mobile 6. Please enjoy and every developer of course likes to get back feedback.
Planned/Requested Improvements
Truecrypt like encrypted containers
Implement Encrypted Backups (P)
Get File Encrypt Status Bar Working (P/R) <-- I'm dreading writing the working class :'(
Use Device ID As Salt Option (P)
Randomize Salt More (P)
Add More Encryption Algorithms (P)
Change File Open Dialog To Open Less (R) completed - now initially looks for *.nen (nombCrypt Enc. Files)
Encryption Password Confirmation (R) completed
Clipboard Paste Button (R) completed
Clipboard Clear Button (R) completed
Take Off Start Menu Icon (R) completed
Change Icon (R) completed
Add Exit To The Menu (R) completed
Add Time Out Feature (R) completed - (see page two for details)
Integrate nombCrypt Into WM6 More (P)
I. Encrypt MS Certificate Store (R)
Other Fixes
Improved Text Encryption So The End TextBox Is Opened Less
Added file error checking to the file decryption process
Two screenshots and the cab file are attached.
I hope you guys enjoy...
nomb
Hey! I wanted to do the same thing too! Just that I use my own XOR method (One Time Pad-like) instead. Of all the thing, it works alright, except that I can't get it to do a Copy-Paste. (see here http://forum.xda-developers.com/showthread.php?t=321014)
Also, from what it seems, I would presume that (since you uses AES), the end result would be in 'relatively' binary format (right?), which may not be very program friendly.
I was going to do about the same thing, except that I'll have my end result Base64 encoded, such that I can have them pasted to Notes and have it sycned to outlook. And I have my PC based software to do the job there (if required).
Previously, I used a software called Ccrryyppttoo, which did quite alright, but it seems that my PC is doing some coding, when synced, that makes it goes funny (i.e. cannot be decrypted anymore).
I'll PM you a demo of what I did (in Java web), of which I intended to do it in PPC
With Rijnael the resulting encrypted string/file gets encoded into base64 as well because if it didn't, all the characters wouldn't be represented. You can paste this into notes just fine.
Mine is programmed in c# so there is a clipboard function which works relatively well. If you'd like to help with this your more than welcome to. Or if you want to join your project with mine that would be cool too. I plan to support all major and a lot of minor encryption algorithms that I can find. Plus people were complaining about how the encrypted backup on the ppc should use the device id to encrypt instead of the randomly generated key so I plan to implement that as well.
I'm looking forward to seeing your demo.
nomb
Hmm.. so it is b64 encoded.. niicceee. Hmmm. . I should try out C# soon.
Anyway, there is a suggestion, I'm not sure if you have the library for it. After my symmetric cipher program, I'm in thinking about a asymmetric-public-private key cipher, which people can exchange short messages in secret (e.g. via email, IM, SMS) without the need to exchange the key/password. It is relatively done now, I'll show you the web base version once it is done. It runs on the Java security class, which I'm not sure if C# has those library or not.
The idea is, Alice go to my page, generate a pair of keys. Alice then send Bob her pub key. Bob use pub key, go to my page, encrypt the message. Send it to Alice. Alice decrypt message at my page. No software to install, no secret key exchanged.
Yup c# has the ability to do that built into its cryptography namespace.
That is a cool idea, but instead of having Alice send the key to him. You should just make a db to keep track of the keys and then have him answer a question about Alice or something like that to use the pub key. that way thats even one less step they have to worry about. Or have Alice put in his email address and have your site auto email him the pub key. That would be good too.
But sweet idea, maybe I'll make my program talk to your site.
Have you tried mine yet?
nomb
I dont like the "answer a question" method, as in that case, you might as well use the answer as the password?
Anyway, the emailing the pub key is an idea
I'm not in my own PC yet, can't send it to my phone from this PC. Will try it out later tonight.
hanmin said:
I dont like the "answer a question" method, as in that case, you might as well use the answer as the password?
Click to expand...
Click to collapse
Ya I'm at work and was hungry so I wasn't thinking strait. I don't like that idea either. ^^
I think my next step in mine is to build the background worker class to update the progress bar when you encrypt/decrypt a file.
If you just point your phone to the cab above it will install it for you. You don't need a comp unless u don't have a dataplan.
nomb
I dont have data in my plan.. although O2 gives me 1MB+ a month free.. I'm not using it.
Anyway, I've tested your software, a few comments.
Slightly major problems:
[1] It is not wise to do a 'All folders' and 'All Files' upon browsing (for file to be de/encrypt). People (e.g. me) has gazillion files around and it may take ages to load the list.
[2] You may want to pop up a Window, asking the user to confirm his/her password upon encryption (one of the thing I intended to add on mine )
[3] I'm not able to paste any data onto the 'start text' area. E.g., I have encrypted my stuff, saved it into Notes. Later, I wanted to get it back, I copy the encrypted code from my Notes, and no way of pasting it into the 'Start text'
[4] You already knew this, but, good to have some kind of progress bar to indicate the progress
[5] Hmmm.. on the browsing, there doesn't seems to have a way to find files on my Storage Card's root directory
[6] For security reason, probably it is good for you to add a 'Clear Clipboard' button?
Minor:
[1] I find it annoying that once I had the software installed, it is on my Start menu
[2] You could use a better icon, I just see a black square on my not so bright screen. I can help you on this.
[3] Add an "Exit" on the menus below?
Other possible suggestions:
[1] Have a time out on your software, such that, e.g. if there is no activity on software after a certain amount of time, it will do one/some/all of these (a) close itself (b) clear the password, input, output (c) clear the clipboard
Good suggestions, I'll have those done by tomorrow. I can't play with the storage card aspect yet because I don't have one. :'( Soon though I'm hoping to get a 4gb. And ya, i can't make icons worth any.
Oh, to past it back I always did ctrl+v from the keyboard. But I'll throw a button up there to do that. And I'll make sure to take it off of the start menu.
1 good comment would have been nice. Altho criticism is good.
nomb
Haha.. sorry for the lack of good comments, I was trying to think of something to suggest. But come to think of it my post on top are good comments (e.g. niiiiccceee Base 64 encoded), and the fact that it has the simple string->string encryption.
I did googling a bit, and found these
http://www.entity.cc/ICONS/security-icons.php
http://www.hscripts.com/freeimages/icons/computer/lock-icon.php
http://icons.qarchive.org/
which you may want to use as your icons?
Ya I was just teasing you. The icon I have now I got off of your last link at somepoint I just don't remember when. But I think I will probably use one of the others. But ya, I'll work on those fixes and then attach the updated program. Then once I get those fixes done, I'll work on adding the differnt encryption algorithms and the encrypted backups.
nomb
Did you wrote any backup software before for the PPC? I'm not really sure, but it seems that backup-ing can have a lot of issues. You have the "Copy everything" backup, the PIM only backup, etc. Some backups are ROM-flashing/upgrading friendly, some are not. You can have a backup software all standalone by itself. I would recommend you to have the backup software seperated and have encryption onto it as a plugin. Take a look at PIM-backup, it is very popular here.
Hi,
This is a very interesting thread. Thanks for your efforts so far (is there a donation link anywhere?)
A basic question...I understood that to carry out really secure encryption it would be necessary to write a filter driver that worked within the core ROM Image. Is this not the case?
Can I encrypt the MS certificate store too? The crypto protection on this store could be beefed up...
Once again I am very pleased that this thread has appeared and will be testing your software with interest,
Well done for your work so far,
Sam.
Hey there PianoSam,
First I just want to make it clear I'm not doing this to make money. If anyone donates I want it to be because they like the software. I am at work so PayPal is blocked but I'll put my donation link on the front page later today.
Also, I am going to try and incorporate the encryption as much as possible. If that is a feature you'd like, then after I get all of the previously requested changes done, I'll start on that for you.
And thank you for your kind words.
nomb
***EDITED***
Sorry I didn't answer you question at first.
Question: A basic question...I understood that to carry out really secure encryption it would be necessary to write a filter driver that worked within the core ROM Image. Is this not the case?
Answer: I pondered over this for a little while and I can't think of a reason this would be necessary. However, I've only had my phone for two days. Can you find where you saw that so I can read it as well and maybe gather a little bit on information so I can do some research on the topic? If thats what needs to be done then thats what I'll do but I can't see why. Let me know!
Added another cab with all the fixes I've completed.
nombCrypt-beta.cab <-- On the front page.
I added the donate link.
I added the timeout feature and thought I would make a comment on it.
It is a two minute timeout. Whenever you fucos on a textbox the timer is stopped and when the textbox looses focus, the timer is on. The downside to this is if you were in the middle of typing and set your device down, it wont timeout. I could make it so when you start typing into the textbox it restarts the two minutes and you have two minutes to complete your message but I didn't know if that was a good idea or not.
Also, when you copy, and go to another program to paste it in, you have two minutes before the clipboard is cleared and the program shutdown.
When the encryption program is encrypting something, the timeout is not running. It starts afterwards.
I can tweak this as much as you guys would like, just let me know.
nomb
I've tested your Beta.. niiiiiccceeeeee.. it is gooood. Almost prefect. Few things (OH NO! )
- The "Clear" button doesn't seems to be working. It is suppose to clear the clipboard only? Should you clear off everything as well?
Other requests/suggestion
<rant>
- I'm not sure why I thought I need it.. but it would be good to have a copy function for the "End Text" as well. I thought I may need it one day. Not sure why. It ought to make the screen a bit crowded, I thought.
Anyway, slightly related to the suggestion above, I've just revisited the design I made on my copy-paste-failed PPC attempt, I have this idea which I thought you might want to use it. For my design, I do not have "Start Text" and "End Text", I only have ONE TextField "Message" (and another for the password). The user enter the encrypted/plain text on this "Message". Click on the button "Encrypt" or "Decrypt", the result will then overwrite whatever that is in "Message" TextField.
Example:
(1) "Message"=<plain text>. User key in password, click "Encrypt", "Message"=<encrypted text>.
(2) "Message"=<encrypted text>. User key in password, click "Dencrypt", "Message"=<plain text>.
In such cases, you only need a pair of copy-paste to perform copy-paste on both (in a way) encrypted and plain text.
</rant>
As for the time out issue, I thought the typing-sensitive time out would be a better choice. The moment that you are worried about your data being seen is when you are away from your phone. You can have focus on your TextField but you can be million miles away from your phone. But, you ought to be around to be typing stuff, right?
BTW, I'm also wondering on the working of this time out feature. I thought there ought to be a 'clock' running and when time's up, it will clear the stuff needed to be cleared, right? So, if I were to forget to switch off the application, the timer will not be another running software that drain my battery, right?
Good work.
hanmin said:
- The "Clear" button doesn't seems to be working. It is suppose to clear the clipboard only? Should you clear off everything as well?
Click to expand...
Click to collapse
The "clear" button is in the clipboard row, i think i tagged it on the left, and only clears the clipboard. If you go to menu->reset it will clear everything like your looking for.
hanmin said:
- I'm not sure why I thought I need it.. but it would be good to have a copy function for the "End Text" as well. I thought I may need it one day. Not sure why. It ought to make the screen a bit crowded, I thought.
Click to expand...
Click to collapse
The "Copy" button copies the end text to the clipboard. Not the start text.
hanmin said:
Anyway, slightly related to the suggestion above, I've just revisited the design I made on my copy-paste-failed PPC attempt, I have this idea which I thought you might want to use it. For my design, I do not have "Start Text" and "End Text", I only have ONE TextField "Message" (and another for the password). The user enter the encrypted/plain text on this "Message". Click on the button "Encrypt" or "Decrypt", the result will then overwrite whatever that is in "Message" TextField.
Click to expand...
Click to collapse
I originally had it setup this way, however there was a time when I had wrote a huge paragraph in it and encrypted it, and then found out I had forgot a line. I switched it so this wont happen.
hanmin said:
As for the time out issue, I thought the typing-sensitive time out would be a better choice. The moment that you are worried about your data being seen is when you are away from your phone. You can have focus on your TextField but you can be million miles away from your phone. But, you ought to be around to be typing stuff, right?
Click to expand...
Click to collapse
The timeout I have running in it now, (new version that isn't up yet), is completely off of the user's actions. Whenever you do anything in the program the timer resets. Except for encrypting/decrypting. The timer is off for those functions incase you encrypt a file that takes longer.
hanmin said:
BTW, I'm also wondering on the working of this time out feature. I thought there ought to be a 'clock' running and when time's up, it will clear the stuff needed to be cleared, right? So, if I were to forget to switch off the application, the timer will not be another running software that drain my battery, right?
Click to expand...
Click to collapse
The timeout feature does not clear everything in the program. I have it so it actually completely closes the program. So if you forget to close it and walk away, the program will end so it doesn't drain your battery.
hanmin said:
Good work.
Click to expand...
Click to collapse
Thanks, wait till you see the next version...
nomb
I got the progressbar working for encryption, now for decryption.

Android Apps for the Vogue Port

It was suggested that we start a thread specifically for the apps that run well on the Android port to the HTC Touch/Vogue. I personally own an (Sprint=CDMA) HTC Touch Diamond, but upon seeing the maturity level of Android running on the Touch, I immediately went to eBay and picked up the Touch handset...and I am glad I did. The only reason I boot back to winmo is for work calendar (Lotus), Skype (iSkoot kinda sucks), and Podcasts (hopefully we getting DoggCatcher soon).I've found that battery life with Togga on to be about 8-10 hours which I can live with it, but it's a pain to keep toggling if you really need to conserve (but it could be worse )I plan on posting more battery data soon, but need a few more days of collection. Hopefully we can find a more permanent way of managing the data connection with balance for battery life.
You can find many apps on http://slideme.org/, AndAppStore (both have phone clients - very market-like) and by searching ".apk" on 4shared.com
The apps I have found to run well on my CDMA with dzo/f00bar's (much respect) latest files:
-Scoreboard - I'm not that big of a sports fan, but this app is slick!
-aLastFM - Just got permission to post the link from the developer. Thanks Oleg!!
-Stocker - Simple but effective stock app, but no graphs. If someone could find a better one...
-Weather - Simple, but effective. Multiple Cities, current and forecast, with menu link to detailed outlook including radar from Undergroud Weather.
-AnyCut -Great for making shortcuts to just about any screen in the OS, especially useful for Battery and Sounds&Display
-TextEasy - for sending a text to multiple contacts, until someone can get a hold of ChomperSMS or K9SMS (K9Mail I have not gotten to work either, we need a better mail app, the native client doesn't even recognize URLS, wtf?!)
-OIFileManager - It's the only one I've tried, so can't comment on the others, but there are several out there. UPDATE: I tried out Astro and Glance. I liked Astro, but after a day it stopped working for me and gives me a force quit. I prefer Glance over OI FileManager, it's on 4shared I believe.
-OIFlashlight - amazing how handy this comes in
-OINewsReader - No frills RSS aggregator
-ShopSavvy - Did you say "We'll match any price"?...but be fast with your fingers, camera is not fine enough to capture the barcode
UPDATE:
I wanted to add SMS PopUp as another great app. You can find it along with a bunch of other APKs here. One of the G1 owners that grabbed all of the apps and is hosting them for download.
WANTED:
-DoggCatcher - for my daily podcast fix
-A true Skype client
-HEADPHONE SUPPORT!!
Please post replies with your own favorite apps that run well on this port (with links, please!)
Cheers!
Wow, no replies?!
I'm looking for SMS PopUp if anyone can post a link.
Cheers!
The Meebo app is well worth a look - look for it on 4shared.com. Lets you IM on just about any IM network (Yahoo, MSN, AIM etc). IMs appear in the notification bar while you are in any other program. Great stuff.
I believe im the only person hosting the meebo.apk at the moment.
Meebo Instant Messenger:
http://jonsingh.com/android/files/meebo.apk
I did recieve the "ok" from the meebo!
thanks
Jon
steve98 said:
The Meebo app is well worth a look - look for it on 4shared.com. Lets you IM on just about any IM network (Yahoo, MSN, AIM etc). IMs appear in the notification bar while you are in any other program. Great stuff.
Click to expand...
Click to collapse
i installed and signed into my MSN account, however, just a white screen shows up. No list of contacts, etc. No menu options other than to add another account or sign off. Not exactly useful (at least this version). Is anyone using this successfully?
EDIT: I received a chat, and that gave me a buddy online, maybe no one on my list was signed on at the time I first checked.
Also, it doesnt remember your username and password, which is annoying because it randomly closed on me after tapping the notification in the bar during a chat session today. I'll keep looking for a better app or updated version.
Ideal2545 said:
I believe im the only person hosting the meebo.apk at the moment.
Meebo Instant Messenger:
http://jonsingh.com/android/files/meebo.apk
I did recieve the "ok" from the meebo!
thanks
Jon
Click to expand...
Click to collapse
you might be the only one who got the 'ok' from meebo but as i said, it can be found on 4shared.com also.
What about an updated version of Shopsavvy. Mine keeps saying there is a new version, but of course we can't update off the marketplace.
I'm looking for the Locale application. Even though we don't have GPS running, Locale still alows profile switching based on time and days of the week, which would be useful for office vs. non-office settings. If someone could post this I would appreciate it!
how do i install apps i have them saved to the storage card i just dont know how to load them up, sorry if this is a dumb question
thoughtlesskyle said:
how do i install apps i have them saved to the storage card i just dont know how to load them up, sorry if this is a dumb question
Click to expand...
Click to collapse
If they are in the AndroidApps folder then they should be installed already. I found that sometimes icons don't show up to launch the program, however. This is where AnyCut comes in handy. Use AnyCut to search in "Activities" to find your app. If you are not seeing it in this list then you may have to "manually" install the app. Open a file browser such as OI File Manager or Glance and navigate to your AndroidApps folder. Click on the .apk file and it should launch teh app installer.
Hope this helps.
Any word on aLastFM?
etx said:
Any word on aLastFM?
Click to expand...
Click to collapse
See the update first post.
Scoreboard.apk
I am very interested in the Scoreboard app, I got it running fine, but the other day the game I added to my favorite never really gave me updates until the game was over by a few hours.
Isnt this application able to provide real-time results?
I am having more success simply by going to www.nhl.com :-S
Thanks for aLastFM!
I was looking around and found another 4shared user with a bunch of APK's!
http://www.4shared.com/dir/11234070/20e0c1f0/sharing.html
Someone in the main topic said something about an ebay app. What is it and is it any good? Is it secure? It'd be nice to have for me.
There's been a couple apps I liked that didn't fit our screen plus having to reinstall android files often I lose all my saved info so it doesn't work out for me. Sprint needs to hurry up with an HTC Android phone.
Maybe a stupid question, not sure... Why can't someone extract the android market application from the G1 to be used on other phones? Seems a bit odd of Google to limit the market to only a specific phone.
There is a discussion about the marketplace on the big long forum. The marketplace is not open source. They're talking about the commands and encryption and such for it. I'd think it's not open because they plan on having pay for apps but I could be wrong
G1 Central
This is a must have for any one with a Grand Central account- G1 Central
http://evancharlton.com/projects/g1central
Allows you to place calls and check voicemail for your GrandCentral account. Pretty much allows for unlimited free calling. Works great on my friends G1.
Still missing a few features.. like the ability to call contacts that are only in your GC account, but still very good.
Heres the problem.. it crashes when trying to dial out on the Vogue!!! Ahhh!
So close to beating the telecoms... If anyone knows anything about error codes or how to get this working, I might have a GrandCentral account invite...
megalewis said:
I am very interested in the Scoreboard app, I got it running fine, but the other day the game I added to my favorite never really gave me updates until the game was over by a few hours.
Isnt this application able to provide real-time results?
I am having more success simply by going to www.nhl.com :-S
Click to expand...
Click to collapse
I noticed this also. i resolved by changing my time zone in settings. Only problem is that this then modifies your "synced" time with your carrier, it adjusts + or - according to your time zone, so you have to comensate...each time you boot. Not by any means an elegant solution, but if you need realtime scores this is the answer. Probably better off sticking with NHL.com
aven_soulgazer said:
Someone in the main topic said something about an ebay app. What is it and is it any good? Is it secure? It'd be nice to have for me.
There's been a couple apps I liked that didn't fit our screen plus having to reinstall android files often I lose all my saved info so it doesn't work out for me. Sprint needs to hurry up with an HTC Android phone.
Click to expand...
Click to collapse
I tried the "Ebay.apk" from 4Shared, but it doesn't display properly. The tabs extend all the way to the bottom of the other screen which is a common problem for us vogue port users.

Test

This is a test
Untouchab1e said:
YubiNotes is an open source secure notes app for Android that supports using either a password or the YubiKey NEO to encrypt/decrypt notes. Encryption/Decryption is based on a simple lock system that stores and wipes necessary keys for decryption.
YubiNotes is the perfect companion for anyone with a YubiKey NEO or the desire to keep their secrets to themselves.
Notes are encrypted using AES/CBC with PKCS5 Padding.The encryption and decryption process is based on 4 security keys. The first two are generated the first time the app is started and subsequently stored for safe keeping. The second two are the result of the hashed password or Yubikey input string.
As long as the device is locked only the unique device id keys are stored on the device. The other two keys are wiped when the note store is locked. A one-way hash of the password is also stored on the device when password mode is used.
Would love to get some feedback, so feel free to give the app a spin and shout out your thoughts and ideas!
Download: Play Store
Click to expand...
Click to collapse
Wow, no feedback yet for this excellent app!!
So, here's mine - excellent app and the perfect companion to Lastpass, as Yubinotes lets me use the yubikey OTP to safely store secure information as well as long passwords for non-yubikey enabled apps such as Roboform, which I have for now as a backup to Lastpass (just migrated). Exactly what I needed, since the Yubikey does not let me use both OTP and Static passwords in Android (without reconfiguring the key, which is not practical). Well done!
Thanks for the nice feedback! The Yubikey is still a bit of a niche product, but personally, I find Yubinotes a useful companion.
Untouchab1e said:
Thanks for the nice feedback! The Yubikey is still a bit of a niche product, but personally, I find Yubinotes a useful companion.
Click to expand...
Click to collapse
Unt, thanks for fixing the inability to edit a note. I am finding that when I select text, the only thing I can do is paste. No other options, such as copy, select all, etc show up.
Bug?
smalis said:
Unt, thanks for fixing the inability to edit a note. I am finding that when I select text, the only thing I can do is paste. No other options, such as copy, select all, etc show up.
Bug?
Click to expand...
Click to collapse
I really need to sit down and give the whole app an overhaul. But Ill def look into that specific issue asap. Thanks for the heads up.
Untouchab1e said:
I really need to sit down and give the whole app an overhaul. But Ill def look into that specific issue asap. Thanks for the heads up.
Click to expand...
Click to collapse
Much appreciated. The app, barebones as it is, does what it is supposed to do and works quite well for me - except that as I use it to store passwords, I need the ability to copy the password so that I can paste it into a form.
Thanks again!
smalis said:
Much appreciated. The app, barebones as it is, does what it is supposed to do and works quite well for me - except that as I use it to store passwords, I need the ability to copy the password so that I can paste it into a form.
Thanks again!
Click to expand...
Click to collapse
Cool to hear that you find it useful! Im actually attending an advanced Android training this week, so maybe Ill just sit down some day this week and work out some much needed improvements.

KODI with - amazon voice search :D (proof of concept)

Hi Guys,
I managed to root my FireTV a few days back, and yesterday decided to look at the voice search to see if I could use it for other things.
After reversing some code, I found the actual voice search is handled by com.amazon.vizzini.apk
The SearchOverlay.class has this piece of code, which calls back to the amazon fireTV UI SearchResultsActivity upon completion with the search result returned as a string.
I replaced the fire TV UI with my own code, which receives the search text, and then sends a JSON rpc to KODI's web interface, and brings KODI to the front after the search is completed.
Here is a video of it in action.
http://youtu.be/hpgKci_gJYY
android studio project
http://uptobox.com/ccykod7zua1l
mirror
http://www107.zippyshare.com/v/mAhl3UuM/file.html
***** I have a FireTV v1 updated to fire os 5 ******
I have no idea if this will work on older versions of software.
To make it work you will require ROOT, and you will have to uninstall or move the existing fireTV amazon UI.
Reason for this is that the vizinni.apk calls back to
localIntent.setComponent(new ComponentName("com.amazon.tv.launcher", "com.amazon.tv.launcher.ui.SearchResultsActivity"));
So your activity has to be in that package, and called SearchResultsActivity.
The only other way to possibly get round this would be to modify the vizinni.apk to call a different package instead, but then voice search wouldn't work on the amazon UI anyway. I wasn't really bothered about the amazon UI working myself which is why I did it the way I did.
I just moved the original system/priv-app/com.amazon.tv.launcher/com.amazon.tv.launcher.apk to /system then installed my code via android studio.
mount -o rw,remount /system
mv /system/priv-app/com.amazon.tv.launcher/com.amazon.tv.launcher.apk /system/
You will also need to change KODI's settings to enable web interface control on port 8080.
On my setup it was .. system.. services.. webserver.. and tick the box that says "Allow control of kodi via http" and make sure the port is set to 8080.
edit: 07/07/2016
I did start work a few months back on an Xposed module (works but not 100%), I was going to add a settings page but I think there was issues with xposed on android version that the fire tv runs on, due to permissions etc.
You can set a prefix in the code (currently hard coded to KODI) so if you say " kodi star wars" it would pass the param of "star wars" to kodi.
If you just say "star wars" without the prefix it would pass this to the normal amazon UI.
If anyone wants to take it further, it's attached on the link below.
http://uptobox.com/ensqll4a7r65
Mick
Thats actually pretty great.
Conventional wisdom was that both voice recognition and response "results packaging" was done server side - and the only return query you could get were preexisting amazon database references - not the result of the initial voice recognition.
I've actually read that multiple places - but as it turns out, no one had bothered reversing the process I guess.
Major props and thank god for overlays containing strings... Finally - that microphone might not be so useless after all..
Next step - implement it to interface with google search. (Weather in ...)
edit: Actually - there are three interesting usecases I can think of on top of my head...
1. Launch other Apps (maybe even with "fixed Keywords (App 1 f.e. would work edit: "Number 1" delivers better results. )" if App names arent known to Amazon) - so thats text>launcher app - see if sphinx02 has any interest in coding that as part of Firestarter..
2. google search (Whats the weather in.. ) text>google search app (if possible)
3. direct text input as seen in the POC video
edit 4. forward to Amazon - not to "break" their implementation
This could be realized by a quick 4 way select screen (just confirm with the direction button) after you select the string in the overlay.
great find and implementation. would love see more expansion as above post mentions. Are you planning to share fire tv UI code?
I was playing with voice search strings and found that Amazon tends to strip out "Google" in front of search queries -so instead of "Google how is the Weather tomorrow" only "How is the weather tomorrow" will get returned.
But - Alexa as a trigger word will be returned fine, so - I vote for using "Alexa" as a trigger word to forward all search queries to the google search app.
Ok - maybe not - but conceptually, this would be a great "work of art".
An even better idea than Harklekinrains' would be to check the foreground app and do different things based on that. For example, if Kodi is open it could send the intent to Kodi. If the Fire TV launcher is open it could fall back to default functionality, etc. Simulating keystrokes could also cover 99% of the other applications. I'm excited for this. It really makes the Fire TV so much less of a novelty.
I've just updated the original post with a copy of the android studio project, and a few more details.
Mick
Great mate,thanks! gonna check it out soon!
One question (as im not firm with intents and stuff): aint there a possibility to listen for intents sent to the amazon ui and catch them? Personally, i dont care too much about it right now as im using nothing but kodi, but maybe some day when wanting to use prime or similar stuff?
dafunkydan said:
Great mate,thanks! gonna check it out soon!
One question (as im not firm with intents and stuff): aint there a possibility to listen for intents sent to the amazon ui and catch them? Personally, i dont care too much about it right now as im using nothing but kodi, but maybe some day when wanting to use prime or similar stuff?
Click to expand...
Click to collapse
I don't think so as the actual code in the vinizzi apk is as follows:
Intent localIntent = new Intent();
localIntent.setComponent(new ComponentName("com.amazon.tv.launcher", "com.amazon.tv.launcher.ui.SearchResultsActivity"));
localIntent.putExtra("identifier", null);
localIntent.addFlags(402653184);
localIntent.putExtra("term", str);
localIntent.putExtra("text", str);
localIntent.putExtra("source", "VOICE");
localContext.startActivity(localIntent);
So basically when it receives the voice search response from amazon's server, it's starting the activity com.amazon.tv.launcher.ui.SearchResultsActivity from package com.amazon.tv.launcher
Mick
Integrating the search attempt based on the previous foreground app would mean that "voice search" could never "initate a new attempt". This would prevent the "lets just ask google, or lets launch an app - impulse use" of the feature. Still - in the long term it might turn out to be the right approach - f.e. if
"People tend to use the the google search only lets say "half a dozen times", and in the majority of cases just want text input in Kodi" Also - without having a select screen with "four (dont make it too many) predefined "use options"" discoverability is pretty non existent. People would have to read readmes to find out which interactions are supported.
Also Amazon wants you to "be able to always reach the Amazon content search from anywhere" - so, political implications.
Also - each time a new app would want to integrate the voice to text feature - they would have to contact the devs of this project - if you dont use "just text input" as a default in the "use the previously open app as an indicator of intent" approach. So make sure you default to "just text input" in that case. (Amazon launcher > forward query to Amazon (do not break functionality), ....)
Dont implement it as a mixed approach though as "Kodi is open most of the time" probably for most people - and the intent (message) gets "confusing".
--
What you probably shouldnt do - regardless, is to use "trigger words" as an "indicator of intent" - because Amazon can start blocking them. "Number 1" is probably generic enough so they wont try to block that - but in principal, they can. Also Amazons "voice to text" engine is optimized for "short phrases" - the longer your input query gets the more prone to errors their results become. Leave the actual "voice input" as "natural" as possible (dont embed logic there). Imho.
I'm in the USA and uptobox.com is not available in our country.
I want to give the source a look and see what I can do to contribute.
Can you put it on github or somewhere else?
Much appreciated.
kratosjohn said:
I'm in the USA and uptobox.com is not available in our country.
I want to give the source a look and see what I can do to contribute.
Can you put it on github or somewhere else?
Much appreciated.
Click to expand...
Click to collapse
I've just uploaded it to zippyshare too. Link added to original post.
Mick
It would be nice if this could be generic way of entering text in any app, similar to the FTV Remote App that has keyboard support. I am surprised Amazon has not done this already. If you are in a text field voice search would fill in the text, else it can continue with normal Alexa functionality letting you " always reach the Amazon content search from anywhere". Should be an easy solution for Amazon to implement, not sure if it could be added with the progress here, and it would really make the voice control so much more useful.
Hey Mick, as im still very exited about that (so frustating to enter searchphrases with a dpad...), i thought about what your great find could develop to. I hope u dont get me wrong, as i unfortunatly cant contribute any programming (if u need something made with tasker let me know ), its not that i want to demand anything - rather share my thoughts or ideas...
- I think its a good thought not to 'blow it up' by adding many keywords, make it more complicated, and avoid amzn to lock features down. even if it may be an abstract fear. I think with a well-structured menu in kodi, all apps one will need to start are just 2-3 clicks away.
- if i got it right, xposed could hook into every module and alter it, right? so basically it should be possible to avoid to exchange the amazon ui and/or alter the vizinni.apk,but just modify the SearchOverlay.class? wouldnt it be (on top) the most convenient way to decide wether one is on e.g. Amazon Prime, or on kodi, and either hand over the result to the original module, or hand it over to kodi?
So, please understand my post as a mixture between sugestions and questions, not as a demanding 'please make it how i want it asap'. Im really excited about your finding, appreciate your sharing, and want to contribute what i can do - unfortunatly its rather thoughts and suggestions. Cheers mate!
Great Work !!! I totally understand this is for amazon Fire products only. My question is would we be able to port for generic Android TV box like nVidia Shield which also has mic capability and comes with root support.
Good job @is0-mick it's great to see you accomplish something that Netflix doesn't even want to be bother with on their app.
harlekinrains said:
No you dont understand. You havent even read or understood the first posting - but you have bought another device and now want others to move in your direction on your behalf.
Click to expand...
Click to collapse
Seriously mate if XDA bothers you so much, you need to take a break from it for your own sanity!
fach1708 said:
Seriously mate if XDA bothers you so much, you need to take a break from it for your own sanity!
Click to expand...
Click to collapse
No, I really don't think he needs to take break, his argument is completely understandable. This is not a Shield forum (btw before we make judgements, I own both devices). We need to get this fixed for one device, before even mentioning whether other devices are an option.
is0-mick said:
To make it work you will require ROOT, and you will have to uninstall or move the existing fireTV amazon UI.
Reason for this is that the vizinni.apk calls back to
localIntent.setComponent(new ComponentName("com.amazon.tv.launcher", "com.amazon.tv.launcher.ui.SearchResultsActivity"));
So your activity has to be in that package, and called SearchResultsActivity.
The only other way to possibly get round this would be to modify the vizinni.apk to call a different package instead, but then voice search wouldn't work on the amazon UI anyway. I wasn't really bothered about the amazon UI working myself which is why I did it the way I did.
Click to expand...
Click to collapse
Is it not usefull for this to create a xposed mod? I thought xposed was made for this...
Perhaps you should talk with rbox in his thread about a integration into version 1.5 of his mods, look here.
is0-mick said:
I just moved the original system/priv-app/com.amazon.tv.launcher/com.amazon.tv.launcher.apk to /system then installed my code via android studio.
mount -o rw,remount /system
mv /system/priv-app/com.amazon.tv.launcher/com.amazon.tv.launcher.apk /system/
Click to expand...
Click to collapse
So does that mean, while you are using your proof-of-concept you can not use the normal Launcher-UI?
Really great your work! I hope we got more
Sadly I am with my FireTV-Stick (hardware-Rooted-superSU) and my FireTV box gen1 (hardware-Rooted-superSU+custom-recovery+unlocked-bl)on the old FW. I wait for custom roms.
Greetings by Idijt
EDIT:
I forgot to ask you something. Did you got the kind of search-request back?
Can you see if amazon-voice-rgn knows if it is a app or a video or a moviestar?
This looks pretty cool since I don't like typing the name of the movie in the search box... now I can just speak it.
As a novice I have one question, You wrote:
is0-mick said:
I just moved the original system/priv-app/com.amazon.tv.launcher/com.amazon.tv.launcher.apk to /system
Mick
Click to expand...
Click to collapse
The code I downloaded was in .RAR format not .apk. Do I need to covert it to .apk or rename it to .apk before replacing the original?
I've not rooted my device yet so I haven't looked at the file structure, but I'd be willing to root to get this feature. OR is the adding of this code better done by someone other than a novice?
Thanks
carpenter940 said:
The code I downloaded was in .RAR format not .apk. Do I need to covert it to .apk or rename it to .apk before replacing the original?
Click to expand...
Click to collapse
It's the source code. You have to compile it and create the apk with AndroidStudio.

[Q] How to set intent on the Nook Simple Touch to open "Reading Now"?

I am not at all a wizard in code, so if anyone could help me set an intent to open "reading now" on the Nook Simple Touch, that would be really helpful. I'm using it to have a "reading now" link on my desktop with an app. It lets me copy and paste any intent I want into it, and I thought this one would be handy. The app is Desktop VisualiseR.
ALinkToTao said:
I am not at all a wizard in code, so if anyone could help me set an intent to open "reading now" on the Nook Simple Touch, that would be really helpful. I'm using it to have a "reading now" link on my desktop with an app. It lets me copy and paste any intent I want into it, and I thought this one would be handy. The app is Desktop VisualiseR.
Click to expand...
Click to collapse
I have it, but not with me. Search the forum for Reading Now. It's there somewhere. Or when I return from vacation...
Edit: https://forum.xda-developers.com/showpost.php?p=20046625&postcount=5
nmyshkin said:
I have it, but not with me. Search the forum for Reading Now. It's there somewhere. Or when I return from vacation...
Edit: https://forum.xda-developers.com/showpost.php?p=20046625&postcount=5
Click to expand...
Click to collapse
Thanks brother. I appreciate it.
No hurry on a response, but I'm still trying to figure this out.
So what I'm trying to do is use Desktop VisualizeR to open the reader via the "Reading Now" Intent. I am making a very simple and intuitive browser like the one you have made, @nmyshkin for my friends and family who are not at all techie.
Here that post you referred me to below:
ros87 said:
No, not directly in Reader, but you can do it like this:
Code:
am broadcast -a com.bn.nook.launch.LAST_BOOK -n com.bn.nook.home/.HomeBroadcastReceiver
Click to expand...
Click to collapse
Here is a desktop I'm playing with. These images won't be the final product, but I would like to make an eye image that directly opens "Reading Now"
In the Desktop VisualizeR Widget, I go to "Select Action"-->"Clipboard" (with this exact text copied in the clipboard without quotes: "am broadcast -a com.bn.nook.launch.LAST_BOOK -n com.bn.nook.home/.HomeBroadcastReceiver" )
All I get are two options which pertain to "MX Player" which is merely a video player I have installed. Choosing either one of these and tapping to widget to run it yields no results. Is there a particular way to format the intent for Desktop VisualizeR to run it?
By the way, this homescreen thing is looking awesome! Here is what I've got now!
So I've been messing with using SMWidgets to create a shortcut with the "Eye" symbol on my desktop using this procedure here:
https://forum.xda-developers.com/showthread.php?t=1509030
Here were my results:
I was disappointed to find that the reader app did not launch, and the Script Manager app stayed with that message. I don't honestly know what it means. Anyone know what would be better to input?
ALinkToTao said:
In the Desktop VisualizeR Widget, I go to "Select Action"-->"Clipboard"/B]
Click to expand...
Click to collapse
Just got into Cairo. You've been busy. To my knowledge the clipboard does not work on the NST, at least not for me, so there's one thing.
I can easily create an app with Tasker that does the Reading Now thing. But not without my NST. Would that work?
nmyshkin said:
Just got into Cairo. You've been busy. To my knowledge the clipboard does not work on the NST, at least not for me, so there's one thing.
I can easily create an app with Tasker that does the Reading Now thing. But not without my NST. Would that work?
Click to expand...
Click to collapse
It would, for sure!
I have gotten the clipboard to work in the attempt to do this! It works with the attached keyboard app "Multiling Keyboard". There is an option to switch to a keyboard that has arrow keys, select all, copy, paste, cut, delete, etc.
nmyshkin said:
Just got into Cairo. You've been busy. To my knowledge the clipboard does not work on the NST, at least not for me, so there's one thing.
I can easily create an app with Tasker that does the Reading Now thing. But not without my NST. Would that work?
Click to expand...
Click to collapse
What might be better is if you're going to use tasker, to send me a backup of the macro that you create for the reading now action. That may suffice instead of writing a whole new app. I will probably install tasker since I already have so many tasker apps running it may save some RAM that way, not sure. I can also use tasker for other options on the desktop like toggling wifi etc. The attached version of tasker is the one I know is the latest and best for the NST.
Whichever is easier for you to do is whatever works for me. I really appreciate your help, and hope you have a wonderful and unforgettable trip in Cairo.
ALinkToTao said:
What might be better is if you're going to use tasker, to send me a backup of the macro that you create for the reading now action. That may suffice instead of writing a whole new app. I will probably install tasker since I already have so many tasker apps running it may save some RAM that way, not sure. I can also use tasker for other options on the desktop like toggling wifi etc. The attached version of tasker is the one I know is the latest and best for the NST.
Whichever is easier for you to do is whatever works for me. I really appreciate your help, and hope you have a wonderful and unforgettable trip in Cairo.
Click to expand...
Click to collapse
Yeah, when I get home. In the meantime you might try just
com.bn.nook.launch.LAST_BOOK
as the intent. Seems like that's what's in the RN Menu app, although that might be in a shell which I'm not seeing. Not sure of the intent format for DesktopVisualizer.
nmyshkin said:
Yeah, when I get home. In the meantime you might try just
com.bn.nook.launch.LAST_BOOK
as the intent. Seems like that's what's in the RN Menu app, although that might be in a shell which I'm not seeing. Not sure of the intent format for DesktopVisualizer.
Click to expand...
Click to collapse
Thank! I'll try that and let you know.
ALinkToTao said:
I was disappointed to find that the reader app did not launch, and the Script Manager app stayed with that message.
Click to expand...
Click to collapse
You don't have to put the component name in, that is no "-n com.bn....."
The broadcast receiver component might have changed in different versions.
The newer Nooks seem to use com.bn.nook.intent.action.OPEN_LAST_READ_BOOK
ALinkToTao said:
What might be better is if you're going to use tasker, to send me a backup of the macro that you create for the reading now action. That may suffice instead of writing a whole new app. I will probably install tasker since I already have so many tasker apps running it may save some RAM that way, not sure. I can also use tasker for other options on the desktop like toggling wifi etc. The attached version of tasker is the one I know is the latest and best for the NST.
Whichever is easier for you to do is whatever works for me. I really appreciate your help, and hope you have a wonderful and unforgettable trip in Cairo.
Click to expand...
Click to collapse
OK, so here is a simple little app and the xml task file that is used to create it. You can, of course, assign a different icon using DesktopVisualiser.
Awesome, man! I will try it!
ALinkToTao said:
I have gotten the clipboard to work in the attempt to do this! It works with the attached keyboard app "Multiling Keyboard". There is an option to switch to a keyboard that has arrow keys, select all, copy, paste, cut, delete, etc.
Click to expand...
Click to collapse
I've installed this but can't figure out what to do with it! The first "step" (1. Enable Multiling) says it cannot do an autosetup so see the FAQ. This I did, but nowhere can I find anything about how to proceed with the app
Any pointers on set-up or somewhere you can point me that actually tells you how to do it?
@nmyshkin Here's a way to easily access the copy paste function when typing: In the multiling app go to "keyboard settings" then go to "gestures" each section you see here refers to a different swipe on the keyboard ims over the keys when its active. I know the second one programs a swipe to the right and the fourth is a swipe left. Program one of these to "toggle mode". Swipe your gesture when ims is active.
You will see what you want here.
Swipe again to switch back to QWERTY keyboard.
Try that.
ALinkToTao said:
@nmyshkin Here's a way to easily access the copy paste function when typing: In the multiling app go to "keyboard settings" then go to "gestures" each section you see here refers to a different swipe on the keyboard ims over the keys when its active. I know the second one programs a swipe to the right and the fourth is a swipe left. Program one of these to "toggle mode". Swipe your gesture when ims is active.
You will see what you want here.
Swipe again to switch back to QWERTY keyboard.
Try that.
Click to expand...
Click to collapse
Yeah, I finally figured all that out. My big hurdle was how to get the NST to use the keyboard instead of stock. It can be done using sqlite but I ended up using Nook Color Tools for the first (and last) time and in the process initiating an erase/deregister which made me very unhappy
Having trouble with the dictionary plugin at the moment. I have the keyboard app in system/app but installed the dictionary plugin as normal. Maybe that was a mistake.
But...it's almost back to where it was before the event, then I'll make a more current backup.
Edit: I finally got the dictionary plugin so that it's not whining about memory issues, but it does not seem to do anything.
More importantly, I can only seem to select ALL when using copy/paste. Is there a way to select only part of something? Also the function does not work in all contexts, for example in Documents to Go.
Edit-Edit: Well, I figured out the selection process for copy/paste. Who knew the "shift" key was needed to bound the area to copy? I'm sure this keyboard can do lots of things but it's profoundly lacking in any material to explain how they can be done. Still can't get the word suggestions to work, which is probably just as well since I immediately turn that off on my other devices.
I tried to get word suggestions to work for that keyboard, as it's my go-to keyboard on my Atrix 4g, but it never worked for me on the NST. If it did, that would be my daily user. I use ICS keyboard which actually has autocorrect. It's the only one I know of that works for it. If multiling had autocorrect, I wouldn't switch between the two on the NST.
ALinkToTao said:
I tried to get word suggestions to work for that keyboard, as it's my go-to keyboard on my Atrix 4g, but it never worked for me on the NST. If it did, that would be my daily user. I use ICS keyboard which actually has autocorrect. It's the only one I know of that works for it. If multiling had autocorrect, I wouldn't switch between the two on the NST.
Click to expand...
Click to collapse
Mmm....OK. Whilst looking for an "ICS keyboard" in the YalpStore I was bemused to find that while I had typed "ics keyboard" what appeared in the search box was "Icarus keyboard". First time I noticed something like that and exactly why I always turn this "feature" off on all my devices. Perhaps removing the plugin will squelch that behavior.
Meanwhile, can you give me a link for the ICS keyboard you mention?
Edit: On further investigation, there is definitely auto"correction" going on as I type. What is missing is the typical display of potential substitutions and therefore any way to specify a choice. It just does what it wants by its own arcane rules.
In addition to having the English plugin installed, in the Settings for the Multiling keyboard under "Word suggestion settings" I originally had the first three selections checked as well as "Quick fixes" and "User dictionary". For me, this produced the behavior described.
I was able to stop auto"correct" by unchecking the first two options. This greyed-out everything else in the category.
nmyshkin said:
Mmm....OK. Whilst looking for an "ICS keyboard" in the YalpStore I was bemused to find that while I had typed "ics keyboard" what appeared in the search box was "Icarus keyboard". First time I noticed something like that and exactly why I always turn this "feature" off on all my devices. Perhaps removing the plugin will squelch that behavior.
Meanwhile, can you give me a link for the ICS keyboard you mention?
Edit: On further investigation, there is definitely auto"correction" going on as I type. What is missing is the typical display of potential substitutions and therefore any way to specify a choice. It just does what it wants by its own arcane rules.
In addition to having the English plugin installed, in the Settings for the Multiling keyboard under "Word suggestion settings" I originally had the first three selections checked as well as "Quick fixes" and "User dictionary". For me, this produced the behavior described.
I was able to stop auto"correct" by unchecking the first two options. This greyed-out everything else in the category.
Click to expand...
Click to collapse
I'm so sorry I haven't responded to your request for this. I've been busy building a house (a tiny house) to live in for my girlfriend and I. It's coming along very well, I have to say.
I've attached the apk file.
ALinkToTao said:
I'm so sorry I haven't responded to your request for this. I've been busy building a house (a tiny house) to live in for my girlfriend and I. It's coming along very well, I have to say.
I've attached the apk file.
Click to expand...
Click to collapse
Thanks. I'll take a look at it. I gave up on the other alternate keyboard. While it was able to copy and paste within an app, it didn't seem to have true clipboard capabilities to carry a line of text or a URL from one app to another. That's what I'd really like.

Categories

Resources