I have a sony xperia z and the screen recently smashed. Touch screen capability has also gone. As such I can't even unlock the phone. Does anyone know of an app or a method for connecting it to my laptop and gaining full control of the phone through the laptop? I need to unlock it and access an app that's installed. I've been through the folders on it using the laptop but need access to the app itself to get the data I need.
Since your screen is smashed and touch screen capability is gone, you may not be able to use apps like AirDroid, as VarnerBeast14 has suggested. Instead you can use a service like Droid@Screen. Follow the steps below to view your screen.
Install Java JRE (or JDK), version 6 or later
Install Android SDK
Run its SDK Manager and install the Platform Tools
Set the environment variable ANDROID_HOME to point to the installation directory of the Android SDK
Install USB drivers for your own Android device, by getting it from the vendor’s support web page
Configure your device to allow USB Debugging (Settings-> Developer options -> USB debugging)
Plug in the USB cable between your device and PC
If you've got a separate device running the same (or higher) version of Android, there would be an option alongside Sid's answer. You wouldn't need the full SDK, just ADB itself (see: Is there a minimal installation of ADB?). Then you could use
adb backup -f myname.ab -apk <com.app.name> to backup your app and its data (replace
<com.app.name> by the app's package name, to be found e.g. in its URL on the Google Play page, following the
adb restore myname.ab to install it on the other device.
However, some conditions must be met:
- your Xperia Z must at least run Android 4.0
- USB debugging must already be turned on on your Xperia Z (from your description, it sounds like that could be the case: been through the folders on it using the laptop)
- the second device also must run Android 4.0+ -- best the same as or a higher version than the source device
That provided, and followed above steps, you then could start the app on the second device and access its data.
EDIT: From ott's comment below I just notice I've missed an important point: the entire procedure only works if you've used
adb backup before, and set up a desktop password for it (e.g. Holo Backup works this way). So this will probably be no solution for you in your current situation -- but you might wish to be prepared this way for (hopefully never happening) future cases.
The Xperia Z supports USB OTG so you can use a computer mouse to access the screen by connecting it to the phone with a 'male micro USB to Female USB OTG' cable. No setup required just connect it up and use the mouse to enter your passcode and do anything else you need to.
Once unlocked you can connect it to your PC to copy everything across or use the mouse to access an app.
I use an app called AirDroid. You install it on your phone, and then also install a Chrome extension (there may be other versions for the computer, the Chrome extension is the most universal for me).
This app lets me see the screen of my phone, receive messages, and operate apps. I don't know the full reliability of it because I still use my phone by itself most of the time since I can, but you can look into it and see all that it really has to offer. I think it could really help you out.