[Q] Google Voice Shadow Number Retrieval - Android Software/Hacking General [Developers Only]

I am working on a concept app, but need to get access to the method Google uses to retrieve the shadow number mappings for the direct access numbers to make it work right.
Google saves the numbers off to a sqlite database file. I know where the database is on the FS, and can get access to it with root permissions, but I want to release my prog for general consumption.
My question is to if anyone knows how to reference this via some undocumented API, get access to the web request syntax to query Google Voice directly, or even to read and understand the smali from the google voice APK that might be able to point me in the right direction.

Related

[Q] ISO: App to designate with which google account other apps should interact

Hello XDA community, I'm looking for an app or other way to to specify with which google account on my phone other apps should interact. I find it strange that we can set up several google accounts on a single phone but then have no way to tell programs which to use ( on a case-by-case basis or even as a default).
The only app I've encountered that does support this functionality is Shawn Q.'s Quick App Tracker (search on market - I don't have enough posts to include an external link). In its preferences there is a field "Google Account" with a dropdown menu that self-populates with the google accounts set up on the phone - you choose one, and then the first time you use the program and it attempts to connect to the market it prompts you with an access request you can allow or deny.
So the functionality exists, but it is clearly not something frequently included with apps that request access via a google account to Android services. Does anyone know of an app or even way to manually control this?
thanks

- closed -

Please, close this thread.
Now it's on DevDB: http://forum.xda-developers.com/android/apps-games/app-gps-to-sms-location-sharing-t2994187
reserved
@tralchonok will this send location name or just cordinates and also does this app works without internet?
@thahim Internet access is not required. App will send latitude and longitude separated by comma. You can also configure the prefix to be inserted before the coordinates (it may be the link on Google Maps for example). Anyway, I recommend you to send only coordinates via SMS due to its length limitation. Sharing via third-party apps has more details.
P.S.: to retrieve location name it's necessary to have Internet access or some sort of offline locations database inside the app. I tried to make as internet independent app as possible though (it even doesn't ask the network permissions).
P.P.S: Actual thread is here now: http://forum.xda-developers.com/android/apps-games/app-gps-to-sms-location-sharing-t2994187

[APP][BETA] Wifi Based Social App

Hello everyone, new here at XDA forums and just trying to get some feedback from the community on a project I have been working on. This application is not done, but I do think that *most* of the main features are in place and its a good time to get some feedback on the UI and maybe more importantly the overall idea behind the application. Basically this app will connect anyone who is connected to the same wifi network. I think this will be cool in large places that share one wifi network, like a college campus, large office buildings, etc.. When you are connected, the app calls it a "zone", so, when you are in a zone with other users, you can live chat with any other user in the zone, and there is also a public board where any user can make posts (images & text). When you make a post, you are able to see how many views that your post has gotten, and exactly who has viewed the post, which is something people may like, I want you guys to be the judge of this though. Please, play around with it, send me a chat message in the app if you'd like, my name is "Dylan Rose", you will be able to just click my name and send a message.
Something you may be wondering is, if this app only lets users interact when they are connected to the same wifi network, how are we going to interact right now? Good question. I have the app set up in debug mode right now so the system thinks that any user who signs in is in one zone called "Test - Zone", so if you see that in your toolbar after you sign in, you're in the right place! :good:
Overall, let me know in your experience, will people want to use this app? I see it being used in larger areas like college campuses where lots of people are connected to the same network, but I want you guys to be the judge of that, so let me know!
Link to the APK: wikisend.com/download/519920/app-debug.apk
Cant thank you guys enough for trying this out and leaving me with some feedback!
This application does use a Google API to allow you to sign in with any google account. All I actually use is
Display Name
Profile Photo
User ID
GCM-ID (To send push notifications, when you get a chat message)
This application also uses the persmissions
INTERNET
CHANGE_WIFI_STATE
GET_ACCOUNTS
USE_CREDENTIALS (credentials actually used described above)
ACCESS_WIFI_STATE
ACCESS_NETWORK_STATE
WRITE_EXTERNAL_STORAGE (Used to store photos when you take a photo in-app)
READ_EXTERNAL_STORAGE (used to grab a photo that you would like to include in a post)
CAMERA (Used to take a photo in-app that you would like to include in your post)
RECEIVE (Receive GCM push notifications)
C2D_MESSAGE (Receive GCM Push notifications)
Tried to post some screenshots but since I'm a newer user here at this forum I was not allowed to post outside links!
I might try it
This sounds like something that would be fun for a business or school environment. My question: what do the following permissions do:
find accounts on the device
use accounts on the device
I'm concerned of course that this app which isn't vetted yet by anyone, might be doing something I don't want it to do.
Permission concern
kettir said:
This sounds like something that would be fun for a business or school environment. My question: what do the following permissions do:
find accounts on the device
use accounts on the device
I'm concerned of course that this app which isn't vetted yet by anyone, might be doing something I don't want it to do.
Click to expand...
Click to collapse
Hey! Thanks for taking the time to check out my description. As for the accounts permissions that this application uses: The app lets users sign in via google account. In order to use googles sign-in API, I did need to use these permission in my manifest. The find accounts is used when you first click the login button, a dialog of the google accounts that you have linked to your device show up, and you choose which one you would like to sign in to the app with. The use accounts is for allowing my application to know some general data about the account that you sign in with, these include your Display name, Account photo, and your user id.
Please let me know if you have any further concerns, and I look forward to hearing what you think of the app!
Thanks again,
-Dylan R.

General Google voice to initiate calls on Joying JY-UN135N2

Here is the workaround for what looks like a bug in the Joying bluetooth dialer (JY-UL135N2). I was not being able to make calls from google apps using the bluetooth dialer included in the Dec 8 update.
I am using a paid app, called "Tablet Talk", which allows SMS integration and phone callings on a tablet using bluetooth connection to a phone. I was already using this for SMS messages and noticed the dialer could initiate calls, but did not show up as a choice from google apps.
Since it is a paid app, I didn't feel comfortable posting the apk file but here is what I did.
I did need to make changes to tablet talk to allow it to be selected as a dialer from google apps. I have attached the updated AndroidManifest.xml. I decompiled the apk, made the change, recompiled, signed and installed. The only change I made was on line 81 & 89, I added:
<action android:name="android.intent.action.CALL" />
This allows tablet talk to accept android.intent.action.CALL which it just passes it to the stock bluetooth dialer to make the call.
It then shows up as a choice to use in making calls from the google apps ( including voice calling ).
Great info! Gonna test this out! Will this be able to access contacts synced through the Google account? Seems the stock bluetooth dialer has no way of accessing that. I've seen that Contacts is listed as installed in the Apps menu in Settings, but it's hidden and not accessible. In addition, when trying to install Contacts from Play Store, it says the device isn't compatible..... Even tried to download the contacts apk, but still no dice. Won't install.
Is there something specific to get the apk loaded onto the unit? I used apktool to decompile tablet talk, changed the manifest.xml file and rebuilt the apk. It worked on my phone(S7) when I tried to install the modifed apk but the joying is giving me the unable to parse package error.
---------- Post added at 10:29 PM ---------- Previous post was at 09:39 PM ----------
eta1405 said:
Is there something specific to get the apk loaded onto the unit? I used apktool to decompile tablet talk, changed the manifest.xml file and rebuilt the apk. It worked on my phone(S7) when I tried to install the modifed apk but the joying is giving me the unable to parse package error.
Click to expand...
Click to collapse
Got it, I didn't sign the apk. Got it installed and tested. Google is making the the call using TabletTalk which gets routed to the Joying bluetooth app. Thanks!!!
Hilari0 said:
Great info! Gonna test this out! Will this be able to access contacts synced through the Google account? Seems the stock bluetooth dialer has no way of accessing that. I've seen that Contacts is listed as installed in the Apps menu in Settings, but it's hidden and not accessible. In addition, when trying to install Contacts from Play Store, it says the device isn't compatible..... Even tried to download the contacts apk, but still no dice. Won't install.
Click to expand...
Click to collapse
From what I can tell the stock bluetooth dialer has no knowledge of contacts. The dialer that comes with 'Tablet Talk' is able to access the contacts that are synced to the head unit. I was very surprised that tablet talk dialer worked with the stock bluetooth dialer. This is what gave me the idea of making it accept the CALL intent from google voice, and passing it to the stock dialer.
is this the app?
https://play.google.com/store/apps/details?id=com.apdroid.tabtalk&hl=en
and could that work with the Android Auto apk? allowing the phone section of Android Auto to work on the new Joyings?
gustden said:
I am using a paid app, called "Tablet Talk", which allows SMS integration and phone callings on a tablet using bluetooth connection to a phone. I was already using this for SMS messages and noticed the dialer could initiate calls, but did not show up as a choice from google apps.
Since it is a paid app, I didn't feel comfortable posting the apk file but here is what I did.
I did need to make changes to tablet talk to allow it to be selected as a dialer from google apps. I have attached the updated AndroidManifest.xml. I decompiled the apk, made the change, recompiled, signed and installed. The only change I made was on line 81 & 89, I added:
<action android:name="android.intent.action.CALL" />
This allows tablet talk to accept android.intent.action.CALL which it just passes it to the stock bluetooth dialer to make the call.
It then shows up as a choice to use in making calls from the google apps ( including voice calling ).
Click to expand...
Click to collapse
Have you asked the Tablet Talk dev to add the line to the official apk?
dcman008 said:
Have you asked the Tablet Talk dev to add the line to the official apk?
Click to expand...
Click to collapse
I sent an email asking them to add it. Have not got any response.
AndroidManifest.xml
Sorry for the newbie question but where would I copy AndroidManifest.xml to? or how would I install it?
Thanks
sabgam
I can't get this to work, can you give a brief instruction how to use this app?
I have done the modification to manifest file, recompiled and signed the apk. Then I installed this app on my head unit and tried to enable it (using Tablet Talk - Phone), it asked me to turn on bluetooth, although BT was ON and my phone was paired. No success on turning bluetooth on through app. Then I considered it should be installed on my phone and not head unit, but it didn't give me a success either. How should I use it to make calls through Google Now voice on my head unit?
I've tried to get this to work multiple times and I can't, I've purchased the app and have had it for years, IDK if it's against the rules since I already purchased it but would it possible if someone could pm me the patched version of the app?
barnesk9 said:
I've tried to get this to work multiple times and I can't, I've purchased the app and have had it for years, IDK if it's against the rules since I already purchased it but would it possible if someone could pm me the patched version of the app?
Click to expand...
Click to collapse
I'm in the same boat. I purchased the app years ago for my AN 21u. Can someone share a patched version?
I have voice initiated calling with Tasker + AutoVoice + AutoContacts. Let me know if anyone wants to know how to set this up!
AssassinsLament said:
I have voice initiated calling with Tasker + AutoVoice + AutoContacts. Let me know if anyone wants to know how to set this up!
Click to expand...
Click to collapse
What a question!
This needs supersu root?
KamaL said:
What a question!
This needs supersu root?
Click to expand...
Click to collapse
Nope! No root needed.
AssassinsLament said:
Nope! No root needed.
Click to expand...
Click to collapse
Do tell!
Voice Calling a Contact (Tasker/AutoVoice/AutoContacts)
1) Create a profile in Tasker:
Code:
New Profile->State->Plugin->AutoVoice->Recognized->Configuration
-Pick "The Hard Way"
-Check Mark "Event Behaviour"
-Command Filter: "call (?<contact>.+)"
-Check Mark "Use Regex"
Save!
2) Link to a new task:
Code:
-New Task (and name it)
-Add Two Actions:
1) Plugin->AutoContacts->AutoContacts->Configuration
-Contact Name or Nickname: "%contact"
2) Phone->Call
-Number: "%acnumber"
Save!
That should be it! Of course remember you have to be connected to your phone with bluetooth and have your contacts downloaded to the bluetooth app. This is just the basics, you guys can add more bells and whistles like confirmation, or list of contacts to choose from, etc.
Voice Dialing a Number (Tasker/AutoVoice)
1) Create a profile in Tasker:
Code:
New Profile->State->Plugin->AutoVoice->Recognized->Configuration
-Pick "The Hard Way"
-Check Mark "Event Behaviour"
-Command Filter: "dial (?<number>.+)"
-Check Mark "Use Regex"
-Advanced->Replacements: "-="
Save!
2) Link to a new task:
Code:
-New Task (and name it)
-Add One Action:
1) Phone->Call
-Number: "%number"
Save!
Again, very basic. Dials a number you dictate to it. The Replacements is needed because when dictating a number to AutoVoice, it adds "-"s (i.e. 123-456-7890), and the bluetooth dialer can't deal with those, so we're replacing - with nothing.
There is no error checking with these tasker profiles, that's up to you guys to add in if you want.
Enjoy!
The problem I have with this is that downloading contacts to the bluetooth dialer app doesn't really work. It only downloads SIM numbers, not the ones stored in the phone memory. Other than that, it removes the "+", so if you saved a country code it will not dial correctly. This is important to me, since I use country codes a lot (being a foreigner in this country).
Lastly, I'm having a bit of a headache with contacts in general. The head unit always wants to delete all my contacts on my Google account. Even if I reset everything and let it sync, for some reason, something on the head unit deletes all synced contacts, which then will attempt to sync and delete all contacts in the cloud... So for now, I've just abandoned this and I'm using the phone to dial, which then outputs to BT handsfree on the radio.
Hilari0 said:
The problem I have with this is that downloading contacts to the bluetooth dialer app doesn't really work. It only downloads SIM numbers, not the ones stored in the phone memory. Other than that, it removes the "+", so if you saved a country code it will not dial correctly. This is important to me, since I use country codes a lot (being a foreigner in this country).
Lastly, I'm having a bit of a headache with contacts in general. The head unit always wants to delete all my contacts on my Google account. Even if I reset everything and let it sync, for some reason, something on the head unit deletes all synced contacts, which then will attempt to sync and delete all contacts in the cloud... So for now, I've just abandoned this and I'm using the phone to dial, which then outputs to BT handsfree on the radio.
Click to expand...
Click to collapse
Hmm... the bluetooth dialer downloads my phone contacts which is all from my google account on the phone. I don't store any on my SIM at all. So it seems to be working fine for me. I only have around 36 contacts though, and I read somewhere on here that any beyond 40 contacts is bugged. Not sure about country codes, as I don't have many contacts out of the country. As for the attempt to delete contacts, I came across something like that but got rid of it by disabling google syncing in the accounts setting. I didn't want any of my contacts on the headunit anyways, and so I just turned off the google syncing.
Instead of voice dial, I'm more interested in putting a widget/shortcut on the main page for a few contacts for fast dial.
Is it possible to do that this way?

Is there a way to force use of yubikey?

Hallo.
We are a small club that want to share some info (.txt, doc) with each other, without other people are able to read get access to the files.
I have seen many programs that have encrypted files, even that you can use yubikey to login. BUT after login, the device will be logged in, so if someone loses the mobile, the files are open to the person who find the mobile.
Is there a way to use the yubikey to force login each time you will look at a file?
Before you could lock the mobile, and had to unlock it with the yubikey, not that function is gone on android, so even if you use advanced security from google, your device is logged in, and everyone who are able to unlock your phone, are able to read exemple google drive.
Hope you understand what i am searching for, kinda like a dropbox where the user (5 persons) have to type username, password and use the yubikey to enter the files, or, that the files itself are asking for the yubikey.
Another question is if there is an easy fast way to logout from all accounts?
wbr
Bagger

Categories

Resources