USB to PC script? - Windows Mobile Development and Hacking General

I'm looking for a script that will turn USB to PC "Advanced Networking" ON when going into ICS and then turn it OFF when you leave ICS...
I'm sure this is fairly simple to do but I just don't know enough about mortscript to do it.. anyone know of such a script? Even if it's not possible to integrate it into ICS (from communications window) just a script that could be executed to toggle on and off would be great.

Related

[HOW-TO] - SonyEricsson LiveView & Gingerbread

Hello.
This is a little guide to all (misfortunate) owners of SE LiveView device. With the help of this topic, I gathered here all the information needed to solve every connection issue with HD2 Android.
I really think this should be added to the FAQ. This simple guide changes everything about LiveView experience! So, I'd like to summarize here all the steps for correcting issues, which, by the way, SHOULD have been corrected by SonyEricsson much earlier.
Below is a small guide for turning LiveView from nerve-bending hell spawn to incredibly useful device. Root is required.
(assuming your phone has CM7 or factory Gingerbread - here I'm using HD2 + AmericanAndroid CM7 2.3.4)
1) Update LV firmware to the latest one
2) Install from the market "LiveView Application 1.0.A.0.18" ONLY, do not install "LiveWare Manager"
3) Install your favorite plugins
4) Install from the market "Minfree Manager" and set "Secondary server" memory limit to 8 - 10mb (this will help LV App to stay activated all the time)
5) Insert "LiveView Application 1.0.A.0.18" to ignore list of all automatic task killers like "ES Task Manager" or "Auto memory manager"
6) Put LV into discovery mode and pair it to your phone. BT window will say "Paired but not connected", that's correct.
7) Using Root Explorer, apply the incredible patch from Fivef (this seems to be needed only for non-Sense 2.3.x ROMs - looks like Sense in 2.2 builds allows LV to connect without confirmation)
8) Find in the market & install the BEST Android program I've seen yet - "AutomateIt!"
9) Create the following rule in this program:
TRIGGER: BLUETOOTH DEVICE CONNECTED (LIVEVEW)
ACTION: START APPLICATION (LIVEVIEW)
Using this incredible program, you can completely control every aspect of your phone's behavior - for example, automatically start PlayerPro and disable WiFi when wired headset is connected, automatically start WiFi when GPS detects that you have entered your home or office (!) and do million other cool things.
By now, LiveView is set to operate completely by itself - no matter, what state is your phone in the moment, just switch the watch "on" and in a second it's connected. No more manual start of LV app, countless disconnects and unnerving connect confirmations. In fact, LV is starting to work better than SE MBW-150 used to work on WM6.5!
I suggest adding this to the FAQ, so that newcomers wouldn't have to search for days (like I had to...)
Best regards,
Draco.
Thanks for this! just tried it and it seems to be working awesome with my Atrix!
Appreciate it! Now my Liveview is somewhat more functional... now if only I could get a full day of bat out of it...

[Q] usb reverse tether to feature phone

I have a basic samsung feature phone. Id like to use this as a modem for my Acer if possible. This phone works fine on all my ubuntu systems - just plug it in for the first time, click next-next in the wizard and I'm online. On the tablet, I see that it shows up as a /dev/ttyACM0. I belive this means that its a matter of getting the correct chat commands and associating pppd with the android layer. I imagine the process must be similar as to getting a USB 3G dongle working. Does anyone have any thoughts on how to do this?
There are already some threads about tethering the tablet to your phone, as well as 3G dongles.
http://forum.xda-developers.com/showthread.php?t=1152869
But yeah, no solution yet.
got it working
I thought I'd post the info on how I got this working for my specific situation. I have not read many other threads about this so maybe this type of info is already out there.
My phone is a basic samsung feature phone on AT&T that I called up and got unlimited data for $10/mo extra. This phone is practically unusable for browsing on itself. I plugged it into my ubuntu laptop and basically the tethering worked right away. I thought then that it should be able to work on the tablet. I wanted to make sure that "unlimited data" also applied to tethering to a computer. They said yes, if you can get tethering working - still no limit. I get 1-2Mbit rate over it.
This is on a rooted tablet, of course.
When I plug it into my tablet I get a single /dev/ttyACM0. If your phone is similar, you maybe able to use this info.
I went to At+t website and found this:
Then I read the man pages for pppd "man pppd". From this information, I understood how to modify the sample scripts "gprs", "gprs-connect-chat" and "gprs-disconnect-chat".
I then came up with a suitable "ip-up" script, based on ones found in the Huawei 3G modem example code. This is called when a ppp0 connection is made. Some of the lines in there I am not sure of, but it works, regardless.
I was surprised to find the standard "chat" program was not present in any of the roms I'd tried. Currently I am using virtuous Xoom. Somewhere, I found "chat-ril" which did the trick.
I've attached "modem.zip" which contains all the mentioned files.
From a root shell, you type:
pppd call gprs &
(This is kind of a pain but I'd like to find a way to automatically do that when the phone is plugged in)
If you do ifconfig ppp0, you should have an address, then try to browse.
Now I'm watching Netflix on my A500 as I drive! Also google navigation is absolutely great on a tablet, once you have the data connection.
willyampz said:
I've attached "modem.zip" which contains all the mentioned files.
From a root shell, you type:
pppd call gprs &
(This is kind of a pain but I'd like to find a way to automatically do that when the phone is plugged in)
If you do ifconfig ppp0, you should have an address, then try to browse.
Now I'm watching Netflix on my A500 as I drive!
Click to expand...
Click to collapse
Thanks for the work, but what are we to do with the modem.zip file you provided?
Modem zip contains the scripts and the chat-ril utility that need to be copied to your tablet. There's two ways to copy the files to your tablet:
1)
first unzip the files on your PC
use adb and push the files over to your tablet in the corresponding locations under /system.
2)
unzip the files to a micro SD or USB stick
remount the /system partition as read/write
copy them to the corresponding locations in the tablet filesystem from the SD or USB stick.
Copying files to your /system partition is described elsewhere in the forum but I can give more detail if needed.
I'm admittedly a noob on many levels. I think I followed your instructions but I get:
# pppd call gprs &
# /system/bin/chat-ril: permission denied
Any suggestions?
make sure you do it as root by typing 'su' first. Also check the permissions of chat-ril binary to be executable.
Thanks, it was the chat-ril with incorrect permissions.
So going with what you provided and much help from Google, I was able to make my own set of scripts for my phone and carrier (a Nokia 5230 and T-mobile). It looks like it's connecting both in my shell on the tablet (all "got it"s and OKs) and on the phone side which shows it with the 3G connection in use. Executing that ifconfig ppp0 gives me an ip address with a [up point-to-point running multicast].
My problem is I can't seem to access anything on the tablet. I can ping google from within the shell but the default browser, Dolphin, and the rest of my internet accessing apps don't work. I did change a line in the ip-up file from /system/bin/setprop "net.interfaces.defaultroute" "gprs" to "3g", which is what I named my connection script. Is there something else I'm missing?
Thank you for all the help.
Well, the good news is you can ping which probably means it can work and you are just about there.
The stuff in ip-up I don't completely understand myself, but that's probably where the issue is. By that point I was so close and anxious, that I just manually did some 'setprop's and experiment until it worked. I had exactly the same issue where I could ping but not browse at one point. Also, make sure the dns setprop's are set. Are you sure the "3g" should not be "gprs". I'm not sure that has to do with the script name. But maybe just the fact that you can ping means that's ok. I'm just not sure. Good luck.

Kindle fire Insecure by Default (fix?)

This obviously isn't a problem for people who just use their fire for books, movies and music.
Those of us who for example would like to hook the device into a corporate email service (for example) would probably be turned off by the fact anyone with a USB cable can crack this puppy right open (using adb + zergRush or SuperOneClick).
The screen password obviously isn't enough on its own.
The fix for this is of course to disable adb on the device which makes your USB port a safe way to charge and load files versus a giant security hole.
Of course, its a PITA to turn adb on and off manually. There's no development menu to do so on the kindle fire like on most android devices. This leaves you with editing settings.db.
Anyone know of a simple app to turn adb on and off? A widget would work, or other tool.
EDIT:
Answered my own question, but I'm sure you'd all like the tip.
Install this as a system app:
HTTP code.google.com / p / secure-settings-widget
ADBWidget-0.2-alpha.apk

Remote you phone from Computer!

Android - Remote your android phone via usb cable or wireless router from PC.
Phone must be ROOTED!
Download droid VNC server - http://goo.gl/hYLXp - install it.
Download android adb driver - http://goo.gl/faiJU
extract adb.zip driver to Local Disk C = C:\adb
Now, click start, click RUN, type CMD, - ENTER
type adb command - cd \ - ENTER, type adb.exe - ENTER.
type - adb forward tcp:5901 tcp:5901 - ENTER
type - adb forward tcp:5801 tcp:5801 - ENTER
Go back to you're phone and open/start droid VNC Server
Wireless Mode - Phone and Computer must be connected to the same router.
Follow instruction on the phone screen once you press start - Example http://192.168.1.2:5801/ <--- type this in your Computer browser = Enjoy!
USB Cable Mode - Disable data connection (flight mode). Start droid VNC Server, Follow instruction on the phone screen once you press start - Example http://localhost:5801/ <--- type this in your Computer browser.
Once you able to remote your phone from you computer browser, press phone menu and re-enable data connectivity (disable flight mode) = Enjoy!
Or simply download Remote Web Desktop in the Market. It's free.
or webkey, also free on market. havent tried Remote Web Desktop, but webkey is pretty good
dr. xp55 said:
or webkey, also free on market. havent tried Remote Web Desktop, but webkey is pretty good
Click to expand...
Click to collapse
my mobiler is the easiest i have tried. Just install the software on the pc (i use win 7 64 bit). turn on the "debugging" in the development settings of the phone. it will automatically push the app into the phone. Very simple indeed...
irajvi said:
my mobiler is the easiest i have tried. Just install the software on the pc (i use win 7 64 bit). turn on the "debugging" in the development settings of the phone. it will automatically push the app into the phone. Very simple indeed...
Click to expand...
Click to collapse
my mobiler is the easiest. Tried. thanks
irajvi said:
my mobiler is the easiest i have tried. Just install the software on the pc (i use win 7 64 bit). turn on the "debugging" in the development settings of the phone. it will automatically push the app into the phone. Very simple indeed...
Click to expand...
Click to collapse
+1 mymobiler.
v0.9.2
wow, its like opp of vnc.
irajvi said:
my mobiler is the easiest i have tried. Just install the software on the pc (i use win 7 64 bit). turn on the "debugging" in the development settings of the phone. it will automatically push the app into the phone. Very simple indeed...
Click to expand...
Click to collapse
my mobiler needs the phone to be connected to the desktop with a usb cable. thats a turn off. and if a rom (such as some of the ics roms based off the leak rom) isn't supporting usb mount, then theres no use. webkey can be connected to your phone from any wi-fi connection, from any browser, from any pc.
Mymobiler was the ipso facto app for wm6.x to enable one to control ones phone via a pc.
many people were waiting for it to be ported to android. It does support wifi as well as USB connections. I'm fiddling with mine now, as it happens. (downloading webkey, never heard of that one so thanks. I'll have a fiddle with that one too. It looks far more complicated i.e My mobiler is exactly what is says. Your phone on your desktop. I do like the look of the GPS stuff in webkey though.. Still fiddling...)
Webkey... far too complicated. How many user names/passwords/registration of device with them even?
kies air
you guys do know tht there is an app called Kies Air on our devices by default tht allows you to do tht ryt?!
Kies Air has less functionality
jeremy.chan said:
Kies Air has less functionality
Click to expand...
Click to collapse
I agree with that, but it also depends on what requirements you got
little bit slow, but worth it a try
webkey is slow over the wifi. cant connect with usb. much trickier than mymobiler. Also much slower than my mobiler.
Actually, I agree. Hence, I've uninstalled it since discovering Airdroid. Its also free on the now Google Play Store (seriously though, Google Market sounds much better, I don't know what they were thinking.)
Its similar to webkey, but its more organized and has a better layout. And if you can't or don't want to connect via Wi-Fi you can tether it to your PC with a USB. You can control your Note from the browser as well. Definitely check this one out, much simpler to use. I don't like apps that restrict me to only be able to control my phone or act as a file manager with a cable. But this has both options.
Sent from my GT-N7000 using xda premium
You can now use our VMLite VNC Server, the first and only VNC Server that works on any devices, on rooted or unrooted devices.
It provides you the full control of the device from a PC or from another device, with very repsonsive keyboard and mouse operations.
https://play.google.com/store/apps/details?id=com.vmlite.vncserver&hl=en
For a review, pls read:
http://www.androidtapp.com/vmlite-vnc-server/

Project My Screen

Hello,
I want to disable the confirmation for the application "Project My Screen" that asking you "Allow screen projection?"
I need it for testing purposes.
How can we make it possible?
I thought about different possibilities :
- changing a registry value (if one is existing for that purpose)
- making a native application to auto accept
- edit the ROM to disable it.
If you have any suggestions I'm open for it.
Thanks in advance,
Best regards
First, grab the app and reflect it ("disassemble" i.e. recover sources - if it's possible of course and app isn't native). Later you may recompile or modify binary code, and replace installed app.
P.S. Of course you need a "interop" (or caps) unlocked handset for that.
I dont think that would be possible.
Because of security/safety. issues
This project my screen app does not only work with USb but also on remote ( if i am not mistaken ).
When someone can kill this notification on someboddies Phone without noticing it, you got a hell of a opertunity to monitor that Phone.
Nice to check out the kids/wife/husband/friend whatever....

Categories

Resources