yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] skinnyq:
I can't compile webkey.c.

It gives me ton of erros like:

machine\_types.h(52): error C2054: expected '(' to follow '__signed'

what can I do?
[Android Apps and Games] morapeter:
I used "Customized Android NDK r3 with enabled support of C++ exceptions, RTTI and Standard C++ Library", see

http://www.crystax.net/android/ndk-r3.php

and downloaded the precompiled binaries. It was needed, because the standard containers (std::string, std::vector, ...) are missing from Bionic.

To compile I run build.sh, it's in src. Although it uses my directory structure, you can find the necessary files. It does the following things:

- puts the server's address (androidwebkey.com) to variable server

- puts the version to variable VER

- replace the strings WEBKEYVERSION and WEBKEYSERVER in mongoose.c to $server and $VER, and saves it tmp_mongoose.c

- runs menu.sh, it replace the string MENU in the html files, and saves them into a directory "html"

- and compiles with the following command:

$NDK/build/prebuilt/linux-x86/arm-eabi-4.4.0/bin/arm-eabi-g++ -Wl,-rpath-link=$NDK/build/platforms/android-3/arch-arm/usr/lib/,-dynamic-linker=/system/bin/linker -nostdlib -I $NDK/build/platforms/android-3/arch-arm/usr/include/ -L $NDK/build/platforms/android-3/arch-arm/usr/lib/ -lc -llog crt0.o webkey.c suinput.c tmp_mongoose.c base64.c $NDK/build/prebuilt/linux-x86/arm-eabi-4.4.0/arm-eabi/lib/libstdc++.a libpng12.a libjpeg.a -lz -o webkey -O2

- strip the binary to be smaller

$NDK/build/prebuilt/linux-x86/arm-eabi-4.4.0/bin/arm-eabi-strip webkey
[Android Apps and Games] morapeter:
I compiled a test version. It is nearly the same as 1.71, but now the function run can process POST data. The apk is available at http://androidwebkey.com/html/webkey/test/

Run the following command to start a the Music Browser Activity for example:

curl --digest http://username:password@phone's_address/run -d "/system/bin/am start -n com.android.music/.MusicBrowserActivity"

Is this what you wanted? You can send extra intent parameters, see the help of am.
[Android Apps and Games] trimeijer:
Love the program. Installed it and kept it running ever since a friend of mine lost her phone.

The only grip I have is that I don't always know my IP address. I know you can do DynDNS or use your site, but I am paranoid, and the less the address is publically available, the better. Is there anyway the IP address could be email or texted? I would rather the ability to enter some STMP settings so the app can try and send an email whenever the ip address changes, or when sending a txt to the phone (like one of those secret txts that the app intercepts and the user has no idea it came through. or if thats too hard, just make it so that a custom "phase" is defined and if that phrase is used an email is sent so not let anyone know that webkey is running, i'm paranoid like that).
[Android Apps and Games] morapeter:
After your phone gets lost, it might be used on a network which blocks the incoming connection, or without a data connection, for example using only wifi. In these cases the IP address won't help you.

I can do the followings:

- An email client should be easy, there are C libraries for that.

- Scanning the SMS messages: I can check them for example every 30 seconds. That's fast (checking whether the database's last modification time has changed, and if it did, do a fast SQLite request).

- Detect the IP changes, I check that every minute.

What would you like to send back when the phone receives a special message? IP address, GPS location, contact list?

Are you familiar with Python, Perl, JRuby, Lua, BeanShell, JavaScript or Tcl? The easiest solution might be the following: when the IP changes or there is a special SMS message, then webkey starts a script of Scripting Layer for Android (SL4A). Would you like that solution?
[Android Apps and Games] bernabap:
I love the application. I think the auto start option is not working for me here. I thought it would start automatically when I turn on my phone or when I open the Webkey application. I have the option "autostart service" checked but only starts when I click "Start service".

If I leave running all the time you think you will consume more battery?

What do you think of putting an option to start remotely via SMS? It is possible?

Thanks man, great application!
[Android Apps and Games] morapeter:
"Autostart service" means "Autostart service on boot". We replace the string in the next release.

Not really. It does 2 things: waits for an incoming connection, or checks some trivial conditions every minutes (for example update to Dyndns if it was requested). So it hardly uses the processor. It has below 1 MB memory footprint on start, and it remains below 2 MB all the time. My G1 has only 96 MB ram, but nowadays phones' have 256 and 512 MB ram. Roughly speaking it uses about below half percent of your memory.

It's possible. However, I don't see when does this function could help. If your phone was stolen then its SIM card would be removed immediately. Maybe it's my mistake, I don't see the point.
[Android Apps and Games] bernabap:
Thanks for the replies morapeter. I do not know why "autostart service" is not working for me. Do you have any idea what I can do to find out why this is not starting at boot? I'll try to install a startup manager and forcing the Webkey to start on boot to see what happens.

I think it might be interesting to put an option to remotely start, I have installed SIM checker, so if some thief swap my SIM I know his number. So I can connect via Webkey and see what he is doing, delete important files on my SD card or find my phone, etc... I thought it was cool!
[Android Apps and Games] morapeter:
I see. It doesn't work for me either. I have a htc G1, and it has only 96 MB ram. The logcat says that Dalvik closes the Java part of Webkey on boot as it loads it because of lack of memory. We tried to write to logcat immediately from JAVA before starting the service, but Dalvik was faster in killing, and it didn't write to logcat anything. However it usually works on phones with more memory.

I start Webkey from a script. I have a file

/system/etc/init.d/99webkey

with the following line

/data/data/com.webkey/files/webkey&

and give permission to execute with chmod. It works fine for me. Althought you might not have a directory /system/etc/init.d, or it may crash, you might be unable to boot, etc. I tested it only on one phone, so be careful.

Ok, I see. I don't promise anything, we have a lot of things to do right now, but if there is a demand and it's easy to implement, then of course, we will do it. I wrote it to our todo list.
[Android Apps and Games] onyxogen:
I have a problem with the explorer in webkey: It says that it could not delete a file after I tried so. Can anyone help me?
[Android Apps and Games] onyxogen:
I see: It's because the directory has not been empty before deleting. Could this be "fixed"? So I can use it to re-arrange things on my card more easily?

Apart from this: Webkey is quite cool :-)
[Android Apps and Games] morapeter:
Deleting recursively a directory is dangerous, but all right. I wrote it to my todo list.
[Android Apps and Games] trimeijer:
@morapeter thanks for the reply. Sorry for the real late response. Lost this thread somehow..

But i think you do an amazing job controlling the phone when you know the IP and log into it. The SMS route I'd think would only be to get the IP address, or some major lockdown, but I think the best would be to have the user write or download a script. That way we can do exactly what we want without putting amazing demand on you.

I do have some programming experience, not in those languages but I believe a day with the phone and some documentation should allow me to write something to do this, if there was an ability to run a script if a certain criteria were reached.

So I write something, like a bash script, "sendmeIP.sh" or something, and whenever webroot's service detects an IP change, or the SMS message "what time is practice tongiht?", it will run the script. Then someone else might want to format the SD card, so he writes a simple "formatSD.sh" script and has it look the SMS message "TERMINATE".

Not sure how difficult it would be on your end, but I would be more robust than writing a scripting engine or allowing in-program scripting, because bash can do almost everything one would need to do.

I'll subscribe to this, this time.
[Android Apps and Games] sopyster:
very very good
[Android Apps and Games] Izzy_Deadyet:
Doesn't work on a rooted Xperia X10.

Press "start service" and nothing. Watch the data icon and nothing even gets sent.
[Android Apps and Games] cabbieBot:
up and running on a 2.2 evo.

absolutely spectacular. this is so powerful. cant wait to play more with it.
[Android Apps and Games] morapeter:
We were busy these days, but we are back :)

The new version will come with a terminal support (we integrated Shell In A Box, search on google if you are interested). With this you will be able to run anything on the phone easily.

I can run a command on IP change, that's easy. The SMS part is a little more difficult: we should either join to a queue so dalvik will intent to our Java app when a new message arrives (this requires an additional permission and our application always starts when a new message arrives -- that's not so good), or we can check the database file from C++ every minute (it's really fast but after receiving a message the phone can go to deep sleep, so our program may learn about the new message late).
[Android Apps and Games] morapeter:
Yes, I know. Xperia X10 has a different processor. Could you send me an email? I would like to run some tests on your phone. I read some forums and it seems like I have to put additional parameters to gcc when I compile Webkey and I have to recompile libjpeg and libpng (I used these libraries from debian armel). It's only a matter of time and it will work, but I don't have that phone to test.
[Android Apps and Games] torvick12:
PhoneMyPC

This app is way better check it out works flawless on my touch slide love it love it. Requires 3g/wifi no rooted or anything for all android devices.

http://www.appbrain.com/app/phonemypc/com.softwareforme.PhoneMyPC
[Android Apps and Games] Anders6:
Yes but PhonemyPC cost money.

I have installed on my rooted X10i 2.1 with no problems, works fine and fast, will keep watching the development.

Good work, thanx
[Android Apps and Games] Aqua1ung:
PhoneMyPC does exactly the opposite. With PhoneMyPC you cannot access your phone from your computer, can you?
[Android Apps and Games] razvan_real_one:
works great on hd2 android :D

it works great on android HD2 with dyndns.

My child steal my phone to play games ;)) and now I can say that it's broken (if I remote control it)

Very nice app ;)
[Android Apps and Games] cingall:
This app is pretty stout. Tried it on my Mytouch Slide and everything seems legit, good work guys look forward to updates :):)
[Android Apps and Games] yamaha83:
anyone get this to work on verizon? if so can you help me figure it out? i set up a username and started the service and it shows the 2 domain name options but both dont seem to work...
[Android Apps and Games] morapeter:
That's strange. Can you connect from phone? Please open the browser and visit

http://127.0.0.1

Can you log in?
[Android Apps and Games] morapeter:
A new version 1.8 is on the Market. Lots of new features and bugfixes :)
[Android Apps and Games] Jubic:
I just updated this app, now I can't seem to register my usual user name to the server. Is there any way to remember the username or some sort?
[Android Apps and Games] morapeter:
Usually the usernames remain forever (I remove ones when I'm asked to do so).

It has a security reason: the protocol is simple and someone could write a program that connects to our server pretending your phone, the next time you want to log in, the attacker would have your password (you would connect to his/her program instead of your phone). To avoid this your phone generates a random string at the first time you install Webkey, and use that secret random string to identify itself to our server. This random string is generated only from time, and it's not related to any private information such as IMEI number, it's not saved on the sdcard (where every application can read it). So at the next install you will have to use a different username, because the previous one is connected to a random string which is now unkown. Again, I'm making exceptions, write me an email.

That's the best soulution I could think of, but I'm interested if you have any ideas.
[Android Apps and Games] gorankx:
i have problem, i start app on fone and successfully login from my pc browser and it opens page but then it keep asking me for my login info even after i saved my pass and user name, why is that happening and how to solve that problem ?
[Android Apps and Games] morapeter:
I haven't seen anything like that. It should ask for password after an hour (the http session experies). What kind of browser do you use?
[Android Apps and Games] gorankx:
well, first i tried in opera theb in chrome and last was in IE but in all of them is the same problem, is it because of router ?
[Android Apps and Games] morapeter:
I see. I made a new apk with a little fix (I read somewhere that the function time() is not thread safe). I uploaded it to http://androidwebkey.com/html/webkey/test/

If it doesn't help, then I'll find some other way to fix it.
[Android Apps and Games] Doggydude:
Samsung Intercept virgin mobile

I tried this on my samsung intercept rooted with inxane's kernel, go check out sdx developers if you need more info on that, im getting the same thing as another user posted, i click the start service button, it freeses for 3 seconds, then does nothing. ive tried it on wifi and evdo. If you want any tests done, pm me and il give you my gmail email (rhyms!) which goes right to my phone. its also still on 2.1, dont know if that matters. I also tried going to log and it says "cannot find log"
[Android Apps and Games] morapeter:
Private message sent :) My email address is: morapeter at domian gmail (the usual). Please send me logcat.
[Android Apps and Games] erlendxda:
Crashing on "Updating"..

Hello,

I am curious to try out your app, but it won't run for me.

I'm running Darkstone1337's latest (v.1.2 beta - sidenote: it's fu#¤% fast! :D ) SuperRAM Froyo (LINK) on my HD2, and when I try to open webkey, it instantly force closes. It tries to update for about 2 seconds, then the com.webkey process stops.

I've tried on 2G/3G and WIFI, rebooted and tried again, reinstalled, but still no luck.

Is there a log anywhere which will give you more details? I'd be happy to help.

Keep up the good work.
[Android Apps and Games] morapeter:
Could you send a logcat to my email address (morapeter at domian gmail)? That would help a lot, because it works for us, so we don't know what causes this problem. (You can save the logcat with the SDK using the command "adb logcat".)
[Android Apps and Games] Pryomancer:
I'm typing this now from the XDA app on my keyboard through the phone with this app, I must say it's pretty damn good.
[Android Apps and Games] erlendxda:
Mail sent! Thanks for the quick reply!
[Android Apps and Games] morapeter:
Just for the record: the problem is the location of the command "chmod". We use it to give execute permission to our binary. The usual locations for chmod are:

/system/bin/chmod

/system/xbin/chmod

/system/xbin/bb/chmod

But in this case neither of them worked. So we are searching for it :)
[Android Apps and Games] robbielink:
Can't unlock home screen

I've played around with this some and really like it. At first I was accessing through your website, discovered I could access directly through IP (on Sprint) and liked that. Everything worked fine. I then set it up through dyndns.com and now everything works except I can't move the slider to unlock the home screen through the web interface. I don't know if it's because I'm going through dyndns or if it's just a coincidence. I can use all the other functions of webkey - view files, terminal mode, etc. - just can't get the screen to unlock. The slider does not respond but other functions on the homescreen (using ScreenSuite) respond - like displaying the emergency contact, time, etc. Only the slider does not respond. I've tried accessing via IP address and same situation.

One thing is that since setting up dyndns I can no longer access via androidwebkey.com/myphone - I get a "phone is not online" message.

Suggestions?
[Android Apps and Games] morapeter:
Hmm. You are not alone. I assume that the screen of the phone remains dark (I mean it's off). Is that the problem? Any screenshot you can see in the browser (while the phone's screen is off) is not valid, just the last image.

If we find the device of the buttons of the phone and the right keycode, then it's easy to inject anything you can press by hand. Please give me some time to make a solution for this.

You should be able use both dyndns and our website, but I'll check it. If your phone can receive incoming connections then our website will HTTP redirect it directly to the phone's IP address (at the first time of connection the server tries to connect back to the phone, and remembers whether we need to proxy it or we can redirect it). So basicly you might have never used our proxy, because it might have been redirected.
[Android Apps and Games] jtirrell:
BUG

When running this webkey on a motorola backflip the hardware keyboard becomes non-functional till the service is stopped and the device is rebooted.
[Android Apps and Games] morapeter:
Thanks for reporting. I assume there is some problem with the modul uinput. What kind of firmware do you use? Original or a custom?

What is your phone's model "number"? It is listed as "Model number" (at least this is the name in my phone) in the menu "About phone", or in a terminal emulator (for example Better Terminal) type:

getprop ro.product.model

With the model number we can disable keyboard injection on this phone, so you can use at least the other functions without any trouble. If you have time to help me, we can also use the device of the hardware keyboard to inject keys. That would be the best solution.
[Android Apps and Games] robbielink:
UPDATE on this: No, the phone responds - I just could not move the slider but what I just discovered is that I can move it from my desktop with a mouse but not from my laptop with a touch pad so it's not a problem with your software - I just have to figure out how to make it work from a touch pad. Suggestions? (I've been holding left button and sliding finger which I thought worked before but doesn't now.)

Not sure I understand that but I just checked again and it works fine with my dyndns address, works fine with IP address, but androidwebkey.com/username give "phone is not online" message. Not a problem since I can access via dyndns name now but just wanted to report that. If there's something you want me to check let me know.

Thanks for your good work!
[Android Apps and Games] mrpanic7:
great job this is awesome
[Android Apps and Games] ii Candor ii:
I am pretty dang impressed with this app. It appears my carrier has blocked access, so I used the androidwebkey.com website and it works great.

I wanted to mention that I successfully sent an SMS from the website and I am using CDMA service in the USA. The feature said it had only been tested on GSM so far -- but it works on CDMA!

I can't see myself using this on a regular basis until it uses a secure connection, but I'm definitely planning on showing my friends. The basic plain-text site is great for me, but if you want to go mainstream with it you should probably polish it up a bit. Also the redraw is pretty slow -- but honestly to me viewing the phone isn't as big of deal as all the other functions. It would be cool if the call history was sortable -- and could be more valuable if it allowed you to input your billing cycle date and showed you how many minutes you've used so far during the current cycle. So many ideas about this app -- great job so far!
[Android Apps and Games] ultima888:
Wow! Just tried out this app, can't believe I missed this app for so long. This app is great! Been using similar app with picme in the market, picme was great too, but webkey is even better!! Thanks so much!

Was going to suggest improve the web interface, especially the button, but just notice I can customizes what buttons to show! Great! Maybe a small suggestions is to able to change the orders of buttons so it matches the "home" key "back" key of our phone? Thank so much for the work guys!!!
[Android Apps and Games] dream_th:
This is just Great!!! I love the idea and functionalities it has.

My primary use of this would be in case if it is stolen so i can login remotely locate through GPS/Network location, get call logs, sms, files, photos, etc, etc...

Now even thou i have set it up to start automatically is it possible that i somehow incorporate it in custom ROM so in case someone steals it and makes a factory reset to be still able to log in?

Also is it possible somehow to enable GPS remotely without going through screens but like through terminal?

Thank you
[Android Apps and Games] smuminov:
And how can I dowload it?
[Android Apps and Games] dream_th:
You can install it through Market, just search for Webkey.
[Android Apps and Games] ideruga:
Great job, Morapeter!

In general it works, and I think it has good future if you continue! :)

I hope to help you by sending you some notes (don't know if you have a bug tracking system, so I'll just post it here):

1. When I open gtalk, I can type my message, but there's no "send" button in your UI, I have to click on the screen. For usability it would be nice if "enter" worked as "send" and shift+enter - as a new line (I don't know if it's tecnically possible though...). Anyways, the keyboard on Android is sometimes customised by adding new keys (like smileys, or action button "search" or "send"). If your interface reflected this change, it would be great!

2. When I type in russian or when I enter the french accented letters (like è, à, é, ç), they're not visible at all. Probably, it's due to encoding that you're using somewhere in between the client page and the phone. If it was UTF-8 all along the way, it could help. Note: if I type those thing directly on the phone, the're ok.

3. Sometimes when I slide on the desktop to change the screen, it opens the application on which I started the slide move. Sometimes it happens when I slide out of the screen region, but sometimes - even if mouseout comes inside of the screen.

4. When I try to open an app, sometimes it behaves as if I held the finger for a long time - it shows the trashcan bar at the bottom. Maybe, the delay is too short somewhere.

If I notice something else, I'll let you know!

Thanks a lot! :)
[Android Apps and Games] dan3413:
I donated to help the development...did you? :-)

I dontated 5$ to help the development cause! Great application/idea!!My question is why in the call log area does it only contain contacts/calls from people who are in my address book/contact list already? Is there any way to make it show everyone that has called me? That would be invaluable... thx.. keep up the dev work on it!
[Android Apps and Games] cfultz:
Simply love this app! Makes texting and SD Card exploration so much easier! Thanks!
[Android Apps and Games] terminal 7:
htc tattoo

brilliant app, the best of apps to be honest :)

but screen is all messed up on use with htc tattoo, is this due to low screen resolution of tattoo not being supported ?

any help i would be grateful.

thanks.
[Android Apps and Games] morapeter:
Please contact me in email. It can be easily fixed. The description of the framebuffer usually contains false information. I'll be interested in the output of the following url:

http://your phone's address/fbtest
[Android Apps and Games] donteatsoap7:
Thank you so much! This is now my favoritve app because I have an HTC Aria and texting fast on the small screen is difficult sometimes. Now I could do it from my browser!