Vocera Application on CM10 or AOSP ROMs - Galaxy Note II General

I am required to use an application for hospital communication - it is a messaging app that takes the place of pagers. It is called Vocera -- it is available on the Playstore.
The problem that I'm having is that the app installs fine on both Sammy based and CM10 or AOSP ROMs but then you have to enter a server ip address and a registration key. The keys are one time use apparently so every time I try a new install our Sys Admin gets frustrated (they don;t care for rooted devices anyway).
On the CM10 or AOSP based ROMs the IP address for the server and Registration key seem to be accepted but don't "take" in that after they are entered and I press OK then the screen flashes and goes right back to the Registration page.
I have attached the log that was recorded during install of Vocera or VMP app and then the subsequent entry of the Registration.
Can anyone help with troubleshooting this app for use on AOSP based ROM's (or point me in the right direction)??
Also the other interesting thing is that if I do a Titanium Backup of the app then restore to a different ROM it doesn't maintain the Registration information -- I have to get a new key from the Sys Admin and re register the device. Does anyone know how to copy that registration information? Is there a hidden registry for Android OS's?
I have attached log and the files that are in the Titanium Backup folder for this app

Related

Auto updates of software - how to?

Hi,
I need auto update functionality for my application. I.e., the new exe/dll shall be downloaded by GPRS and existing program files shall be replaced. Now I wonder, how this could be done in an easy way.
The problem is, that the application is continuously running and updates shall be done more or less "on the fly". Currently, the application is automatically started on boot through registry settings in HKLM/init
So my idea was the following: Creating a "starter programme" for the application: When the device (HTC ARTEMIS) is booted, the starter programme is first launched (through HKLM/init), looks into a pre-defined directory if there are any files. If there are, these files are copied into the directory of the application. Afterwards, the starter programme launches the main application. Do you think that could work? Or are there any better ways (maybe even supported by the OS) to perform SW-updates?
Günther
I have auto update functionality in my commercial application.
1) When data is replicated to server, main appliation also check availability of new version. If new version is available a and upgrade is mandatory, application launch new process - updater.exe.
2) Updater waiting to main application correct exit (saving data on dirty forms etc.)
3) After main application exit updater download new version descriptor (list of files with targer location, install scripts (dll with well known special interface which can be used for many special tasks - create shortcuts, delete file, modify registry, install new certificate). Updater downloads all files, process install scripts and then launch main application again. New install CAB file is usually stored to extended ROM (autoinstall after HARD Reset).
As a server component is used web service with some methods (GetDescriptor, DownloadFile).
ma_gu said:
Hi,
I need auto update functionality for my application. I.e., the new exe/dll shall be downloaded by GPRS and existing program files shall be replaced. Now I wonder, how this could be done in an easy way.
The problem is, that the application is continuously running and updates shall be done more or less "on the fly". Currently, the application is automatically started on boot through registry settings in HKLM/init
So my idea was the following: Creating a "starter programme" for the application: When the device (HTC ARTEMIS) is booted, the starter programme is first launched (through HKLM/init), looks into a pre-defined directory if there are any files. If there are, these files are copied into the directory of the application. Afterwards, the starter programme launches the main application. Do you think that could work? Or are there any better ways (maybe even supported by the OS) to perform SW-updates?
Günther
Click to expand...
Click to collapse
Seems to be a good idea. This way, you can update the application while it's running and changes become active when the device is rebooted or the application is exited and started again. It's just excellent.
My needings were more simple, so the update feature I designed works as following:
1. The program is divided into a launcher, an updater library and the true application.
2. When the program is started, the launcher copy the update library call such a copy (just call it updlibcpy).
3. updlibcpy uses http to check if an update is available. The check is performed by downloading an "update manifest" containing the MD5 hash of each file of the updated application and checking it against the MD5 hashes of the current program files.
4. If one or more files need to be updated, updlibcpy does the task. Since only updated files are downloaded, no bandwidth is wasted. The only file that cannot be updated is the launcher, but it is so simple that it should never need an update.
5. When updlibcpy has ended, the control is passed back to the launcher, which invokes the true application executable.
The main difficulty was handling the high packet loss that the HTC devices I used has shown. This caused frequent application hang-ups during start-up, unless the GPRS connection was terminated and started again. Once I solved this problem by giving a timeout to the update (using threads), all worked perfectly.
The only improvement I'm thinking about is some sort of "transactionality" of the update, so that if one file updates correctly while another doesn't, the succesfully updated files roll back to the not updated version.

JVH useragent problem

Have flashed JVH (GT_I9000_XWJVH_XXJVO_XEEJV3)with odin and rooted with CF-Root-XW_NEE_JVH-v3.2-CWM3RFS, and the good old user agent problem is back in stock browser and Dolphin HD. In Dolphin it says "Desktop" for user agent in settings, but if I try bbc.co.uk it takes me to the mobile site. Anyone else seeing this?
Try this, push to system/app but backup first. Thanks to criskelo for the tweak.
Thanks for that. Not sure if I am doing something wrong, but I used root explorer to copy over ( changed to r/w) and renamed my old one... but it still doesn't work. Am I doing something wrong? If I click on it in root explorer it trys to run the installer but fails?
TIA
Rename old 'browser.apk.bak' then paste new browser. You do not need to run installer. Either reboot or go to your launcher app drawer n click on internet icon. Good luck.
Yeah thats what I did... still the same . Are you running JVH
Sent you a pm.
Still no joy
Is no one else having problems with GT_I9000_XWJVH_XXJVO_XEEJV3 ??
Yep, I have the exact same issue!!
Anyone else seeing the problem? Anyone got a cure?
I can remember something like this on one of the older roms ( early Froyo I think) but can't find if that ever got cured by people or if Samsung cured it in an update?
After copying new browser apk across to system remember to set the permissions on it so it matches all other apks in folder
Sent from my GT-I9000 using Tapatalk
I'm also using JVH and initially tried the browser file from this thread. The problem is not the useragent setting from the browser - it's working fine. The problem is that the phone is also sending out the x-wap-profile string as part of the http requests. Some sites are obviously disregarding the useragent string when they detect the x-wap-profile string.
I'm getting around the issue by using an app from the market called 'Filterproxy'. I've used the app to setup a proxy server on the phone and I'm routing the browser requests through the proxy. All the proxy server is doing is stripping out the x-wap-profile string from the http requests. Works great.
i have this problem to...really annoying. I have a problem with the market too, a lot of app doesn't show(ex: face, tiwiiter, and a lot of other), it is only with me??
Hey Rob would you kindly provide us with the exact procedure you used to setup Filterproxy? I'm sure many of us would appreciate it!
EDIT:
I've actually managed to get it working as well! For those wondering:
1) As Rob mentioned, install FilterProxy from the market
2) In the "Main" Tab of the app click the settings button which will direct you to your wireless & networks settings page
3) Go to Wireless and/or Mobile Network (Depending on which connection you are using)
4) a) For Wi-Fi simply go to Wi-Fi settings -> Advanced (Press the menu button)
4 b) For Data access go to Mobile Networks -> Access Point Names -> Edit access point
5)set the Proxy to localhost
6)set the Port to 8000
7) Now head to the "HTTP Header" tab in the app
8)Fill the name box with "X-Wap-Profile"
9) Press the R button to place "(REMOVE)" in the value box
10) Press "Add"
Presto!
BTW in case this doesn't work try adding "x_wap_profile" as well

Cloud Setup tested servers

Hi. As seen on Defy forum, there is a custom setting on every Blurred device that allows access to the developer's servers to check if there is any leaked rom. I started testing today, if someone is willing to help, follow this post instructions: http://forum.xda-developers.com/showpost.php?p=15860504&postcount=65. This can be done on both stock ROM or Argen2Stone.
Tested servers up to now:
master-lab.blurdev.com - No updates
master-demo.blurdev.com - Not avaliable
master-dev.blurdev.com - No updates
master-qa1.blurdev.com - No updates
master-qa2.blurdev.com - No updates
master-qa3.blurdev.com - No updates
master-qa4.blurdev.com - No updates
master-staging1.blurdev.com - No updates
master-sdc1.svcmot.com - No updates
master-blur.svcmot.com - No updates
master-homer.blurdev.com - Error trying to register
master-bart.blurdev.com - Error trying to register
master-lisa.blurdev.com - Not avaliable
master-maggie.blurdev.com - Error trying to register
master-marge.blurdev.com - Not avaliable
master-bqa1.blurdev.com - Error trying to register
master-bqa2.blurdev.com - Error trying to register
testcloud01-sdc1.blurdev.com - No updates
Created on General section so anyone can help. Try different servers other than the ones posted here, so we can move faster.
Please test again the servers that returned errors.
These are the only servers that get listed. I too get "unable to register" error.
Did you test those servers on your M2, or this list is Defy's?
Sent from my Milestone 2 XDA App
On my M2
I thought it was more servers. Turns out I did it under a hour.
Rocking with my M2 and XDA app
I tested all servers from the list with no luck. I wasn't able to create accounts into some of the servers but I don't remember which.
Can someone please sniff the packets if the phone is on WiFi. I would like to see the packet structure and how it connects. Does it use SSL etc. I am at work right now but would like to take a look over them and do some work this weekend on these.

OpenVPN?

The N7 just got delivered. I immediately and successfully unlocked and rooted, thanks to Wugs (thanks Wugs!). Now I need to figure out how to connect to my VPN provider who uses OpenVPN and .ovpn config files. There are a few apps in the store, and I'm not sure which ones to install, or how to configure.
Thanks,
RF
I think Android supports VPN's (or at least it does in ICS) without the need of any 3rd-party apps, but then again I don't think I ever messed with OpenVPN.
If it means anything, I was able to connect to my own VPN I made with Windows 7 from ICS.
Install both OpenVPN apps from F. Schäuffelhut.
One is the binary, the other checks your setup and manages your tunnels.
You will also need busybox.
just tested all this today.
espionage724 said:
I think Android supports VPN's (or at least it does in ICS) without the need of any 3rd-party apps, but then again I don't think I ever messed with OpenVPN.
If it means anything, I was able to connect to my own VPN I made with Windows 7 from ICS.
Click to expand...
Click to collapse
If a standard port etc, yes, this should just work.
martyg7 said:
Install both OpenVPN apps from F. Schäuffelhut.
One is the binary, the other checks your setup and manages your tunnels.
You will also need busybox.
just tested all this today.
Click to expand...
Click to collapse
If not on a standard port (like I have set up, so I can OpenVPN out of my work wifi), or an oddball configuration, it works out of the box, rooted of course. I was afraid of the TUN module/config but it was compiled in. Thanks Google
There is also another openvpn by schwabe that doesn't require you to install any binaries. You just need to copy the authentication cert files, edit the .ovpn file to include the correct cert files and the server and import the profile. If you're having trouble, i can write a small tutorial on how to do so. There are also other tutorials on how you can do it if you Google openvpn on Android tutorials/guides.
Sent from my Nexus 7
I used the OpenVPN apps from F. Schauffelhut. I copied the config files from my Windows PC setup, and edited the ovpn file. However I don't know how to store the login credentials as encrypted. The OpenVPN Settings from F.S. doesn't query the user for id/pw. It just fails. So I added "auth-user-pass pwd_file" entry into the ovpn file, but it's in plaintext.
I don't want to have to type the login each time, but I do want it encrypted. Can anyone provide some info here? I'm a noob with OpenVPN. TIA.
Edit: It is working right now, just that the login info is unencrypted.
BTW, here is my ovpn file:
Code:
client
dev tun
proto tcp
remote xxxxxxxxxxx ###
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert client.crt
key client.key
cipher BF-CBC
keysize 512
comp-lzo
verb 4
mute 5
tun-mtu 1500
mssfix 1450
auth-user-pass pwd_file
reneg-sec 0
route-method exe
route-delay 1 10
route-metric 512
route 0.0.0.0 0.0.0.0
I believe you can encrypt the .cert files that are used by adding them to the credentials manager in settings-security. I haven't tried it so i can't confirm. Alternatively you could try an app that encrypts that folder so that it needs to be decrypted before use.
Sent from my Nexus 7
Thanks for the replies.
I went a different route, and it worked flawlessly: I made a folder in the N7 main directory (same place as Alarms, Music, etc..) called OpenVPN. Inside that, I placed a folder from my PC OpenVPN/config folder, that contained my ,ovpn file and the .crt files, etc. I then installed OpenVPN For Android from Arne Schwabe. Launching that app, and going into the 'Precious VPNs' option, allowed me to 'Import'. I navigated to the OpenVPN folder, and then the folder containing the VPN files. Highlighting the *.ovpn file and then hitting 'Select' has the app 'do it's thing'. When done, you hit finish/complete/done (forget what it was), and the VPN connection shows up in the list. Activating it and browsing to an IP check website, showed my VPN provider's exit IP. It was all easier than it looks by typing it.
RF
PS. I also installed Orbot, and since I'm rooted, the 'Transparently Proxy All Applications' option. After also checking the option to use the N7's default IP Tables (this is not the default, the app tries to use it's built in binaries and it will fail on the N7) everything connected through Tor as well...so I have two options for browsing - VPN or Tor.
I love this device (rooted) !
Glad it worked out however remember that the app is also storing info in a file that can only be read by the app but it is still in plain text. The author of the app describes it in detail in the faq section. However it is much better than having to keep the files available in plain text at all times.
Sent from my Nexus 7

Guide to avoid registering a new GSF android_id at each clean install

As you may noticed since last week google wants us, the custom rom users to manually register our android_id to the link https://www.google.com/android/uncertified/
It looks simple isn't it?
But there's a catch. Each google account can register up to 100 ids. So if you keep registering new ids after every clean install you'll more likely to hit that 100 ids limit soon. That's even worse for fhe rom developers as they may flash up to 20-30 roms a day.
I'm figuring out that in a different way though. The procedure I'm following is:
A. BEFORE ANYTHING
If you're doing this first time:
1) Copy this database from /data/data/com.google.android.gsf/databases/gservices.db
2.1) Open the database with a sql editor or from adb shell or a terminal emulator in sqlite3, see android_id with this sql command:
SELECT *
FROM main
WHERE name="android_id";
2.2) OR from adb shell:
$ adb root
$ adb shell 'sqlite3 /data/data/com.google.android.gsf/databases/gservices.db "SELECT * FROM main WHERE name = \"android_id\";"'
3) Then save the value you're seeing to somewhere else, and register to your account at https://www.google.com/android/uncertified/
B. THEN FOR EVERY CLEAN INSTALL
1) Backups and wipes.
2) Flash rom (pt roms with vendors have the firmware included).
3) Flash gapps.
4) Optionally flash a custom kernel.
5) Reboot and configure your device.
6) Flash magisk, reboot.
THEN THIS PART IS IMPORTANT:
7.1) Again copy this database /data/data/com.google.android.gsf/databases/gservices.db and open in a sql editor (or with sqlite3 in terminal emulator, or adb shell) and execute this sql command:
UPDATE main
SET value=XXXXXXXXXXXXXXXXXXX
WHERE name="android_id";
7.2) OR from adb shell:
$ adb root
$ adb shell 'sqlite3 /data/data/com.google.android.gsf/databases/gservices.db "UPDATE main SET value=XXXXXXXXXXXXXXXXXXX WHERE name = \"android_id\";"'
Note: XXXXXXXXXXXXXXXXXXX is your android_id as you've learned and registered to your account before (You can see the android_id s you've registered at the same google link).
I just registered my IMEI, that one stays the same across factory resets.
Also, Titanium backup has an option to restore a previously used android ID.
Deleted
Deleted
muff99 said:
I just registered my IMEI, that one stays the same across factory resets.
Also, Titanium backup has an option to restore a previously used android ID.
Click to expand...
Click to collapse
Yes that works too but this is the manual method for the gsf android_id. Wifi only devices doesn't have IMEI for example.
https://www.xda-developers.com/google-removes-100-device-registration-limit-uncertified-device-page/
G4B33 said:
https://www.xda-developers.com/google-removes-100-device-registration-limit-uncertified-device-page/
Click to expand...
Click to collapse
Yes so now we don't have to do that much of hacky-wacky stuff just to get gsf certified status anymore. #YayGoogle? ?
What if you don't do that?
seems not working. After rebooting, it went back to previous id
You know I've just realized that doing exactly what's written on Google's page (that I've shared link of it) doesn't change my status too. My id is exactly what I've registered on the id registration page but no it stays uncertified so you can ignore this post too... I hope we can find a solution soon :/
ccelik97 said:
You know I've just realized that doing exactly what's written on Google's page (that I've shared link of it) doesn't change my status too. My id is exactly what I've registered on the id registration page but no it stays uncertified so you can ignore this post too... I hope we can find a solution soon :/
Click to expand...
Click to collapse
I think the display will always stay on "not certified", but you are atill able to use the Google services (which unregistered custom ROM users are not any more, if I understood correctly).
This is just a guess on my side, I have not tested this (and I can't since I added all kinds of IDs to that registration page ...).
All in all the information flow from Google on this topic has been spectacularly bad, imho.
When I register my GSF id, its not saved or a different number is display, see my correct I'd in the enter field vs ones registered.
image45 said:
When I register my GSF id, its not saved or a different number is display, see my correct I'd in the enter field vs ones registered.
Click to expand...
Click to collapse
That's because you entered it in hex format, it gets converted into decimal.
Also, don't post your id here ... Not sure what happens if other people register your id with their Google account.
muff99 said:
That's because you entered it in hex format, it gets converted into decimal.
Also, don't post your id here ... Not sure what happens if other people register your id with their Google account.
Click to expand...
Click to collapse
Do I need to convert it or is that an accepted way to submit the information please?
If I try to resubmit it advises already registered.

Categories

Resources