[Q] Unlock cracked screen/Change USB connection type - General Questions and Answers

This is going to be long winded because of the research I've already done before asking the question.
I have an AT&T LG Optimus G E970 running stock non rooted 4.1.2.
I cracked the screen of my phone and it's now touch unresponsive. I have a swipe lock on the phone. Is there a way I can unlock the phone with ADB? I tried the "adb shell input swipe" command with the different coordinates, but as you already know it reads each one as a separate swipe, so it can't be done that way.
I've also read about "getevent" and "sendevent" and that also may be too slow and the phone could stop reading the input before it's completed. I don't have another Optimus G to record the input anyway, and I've read each device has it's own coding/output. The only other phones I could use for "getevent" are a Galaxy S5 and a Pantech Flex, which both have a different screen resolution than the Optimus G so the coordinates would be off. I guess it could be possible for someone else with an Optimus G to record the "getevent" and send it to me if I gave them my swipe pattern...
I've also tried the "Crack android pattern lock" guides, but using the commands to delete the gesture.key, etc, I get "permission denied" and "/system/bin/sh: sqlite3: not found". My particular phone doesn't have a recovery mode(from everything I've tried) so the other options to delete them in recovery can't be done. Even "adb reboot recovery" doesn't work, it just goes to the exclamation graphic.
The only other option I can think of is the LG On-Screen Phone which lets you control your phone from the computer with your mouse and keyboard. To use that, you need to have "PC Software" mode enabled for "USB Connection Type", but I have mine in MTP. I can't figure out how to change it from MTP to PC Software.
There's a command "adb shell sdutil ums enable" that enables usb mass storage on older versions of android. There should be an equivalent for newer versions and other connection types.
I also found something that looks like it could change the connection mode to mtp with:
adb shell setprop sys.usb.config mtp,adb
What would be the command to set it to PC software mode?
If it would help, I did "adb shell getprop" and this is anything that mentions usb:
[init.svc.lge-cmm-usb-sh]: [stopped]
[init.svc.lge-usb-sh]: [stopped]
[persist.sys.usb.config]: [mtp_only,adb]
[sys.usb.config]: [mtp_only,adb]
[sys.usb.provisioned]: [1]
[sys.usb.state]: [mtp_only,adb]
Thank you.

Is it impossibrew?

I just tried
adb shell pm clear com.lge.lockscreen
adb shell pm clear com.lge.lockscreensettings
and all that did was set my lockscreen wallpaper back to default.

I just downloaded a program called Backuptrans that lets me see my text messages, missed calls, bookmarks, any photos videos or music that's on the internal memory, and all my contacts, but it still doesn't let me see my memos, which is what I really wanted to see. It's letting me see all of that on my locked non rooted phone.
Anyone can just hook up anyone's phone to that app and see all of that info.
I'm using the free version, you don't need to pay to see that info and either write it down or take a screenshot of it. You just need to pay if you want to physically transfer files.
I already pulled the backup.rnt from the memo folder with adb, but that seems like just a fragment of the memo's that I had. The Backkuptrans program only shows those same folders and files that I had already pulled, none of which are the current memos that I had taken.
For anyone else that wants to know, if you already have 7-zip installed, you can just right click on backup.rnt and choose 7-zip, extract here, to get the richnote files. Then rename the file to richnote.sql. Download the SQLite browser from sqlitebrowser.org, choose open database and find the richnote.sql file. Click the "Browse Data" tab, then the "Table" dropdown menu to notes. Extend the "textonly" section until you can read all of your notes/memos. My most important memo isn't there, so some of yours might not show up either. It's just the backup file, not the original. I have no idea how to get to the original outside of using the app on the phone.

WalterSchmitty said:
I just downloaded a program called Backuptrans that lets me see my text messages, missed calls, bookmarks, any photos videos or music that's on the internal memory, and all my contacts, but it still doesn't let me see my memos, which is what I really wanted to see. It's letting me see all of that on my locked non rooted phone.
Anyone can just hook up anyone's phone to that app and see all of that info.
I'm using the free version, you don't need to pay to see that info and either write it down or take a screenshot of it. You just need to pay if you want to physically transfer files.
I already pulled the backup.rnt from the memo folder with adb, but that seems like just a fragment of the memo's that I had. The Backkuptrans program only shows those same folders and files that I had already pulled, none of which are the current memos that I had taken.
For anyone else that wants to know, if you already have 7-zip installed, you can just right click on backup.rnt and choose 7-zip, extract here, to get the richnote files. Then rename the file to richnote.sql. Download the SQLite browser from sqlitebrowser.org, choose open database and find the richnote.sql file. Click the "Browse Data" tab, then the "Table" dropdown menu to notes. Extend the "textonly" section until you can read all of your notes/memos. My most important memo isn't there, so some of yours might not show up either. It's just the backup file, not the original. I have no idea how to get to the original outside of using the app on the phone.
Click to expand...
Click to collapse
Hi, can you help me ?? I can try to rename and unzip the file backup.rnt bat I have the error message ((
7zip message says:
"Impossible to open the backup.rnt file as an archive"
pleaseeeee heeeelllp meee !!
thanks all
Cristina

Related

Hi, having some problems with my Touch Pro

Please bear with me, as this is my first windows mobile phone and I'm not all too familiar with it.
First problem is, tapping "Launch Browser" on the Internet tab does not work. After thinking about it for a while, I realized that the Opera browser was not installed on my device! Now, as far as I know, it should come already in all devices. So, I downloaded the Opera 9.5 browser off their website. How can I set it up so when I tap "Launch Browser" on the Internet tab, Opera 9.5 will automatically run? Currently tapping it still does nothing.
Second is, I've been hearing about this "Windows" folder in the HTC Touch Pro. I can't seem to locate this. When I browse for it with my computer, the name of the TP's "hard drive" is "\", and then I see the following folders:
Application Data, ConnMgr, Content, Documents and Settings, Music, My Documents, Program Files, cemail (hidden file), pim
Is this root folder the "Windows" folder?
Third thing is, in the "Programs" tab in TF3D, there's this icon there that when I press (looks like the default icon for a folder in Vista), it gives me an error. It says "The file 'wt5jetpr' cannot be opened. Either it is not signed with a trusted certificate, or one of its components cannot be found. If the problem persists, try reinstalling or restoring this file."
There we go, that's all. Thank you, if you've read this far.
I can't help with the Opera thing but as for your Windows folder, it's a system file and hidden. You will have to unhide it in your Vista/XP operating system before you can see it using your PC>
You see, I already enabled the viewing of hidden folders. There aren't any other items other than the ones I listed.
EDIT: I tried creating a folder called "Windows" and Vista tells me I can't, because a folder of the same name already exists.
That's weird.. hidden folders are already enabled and I still can't see it.
Hiya, i'm a bit of a noob myselft with regards to wm6.1 so for the opera issue i dont think i could be much help with that same with the file that wont delete so i hope someone else will answer that, to see ur windows folder though when the phone is connected to the pc open up explorer on ur pc and click on tools/folder options then click on view and make sure either the "hide protected operating system files" box is unchecked &/or the "show hidden system files box is checked and this should let you see the windows folder.
Hope this helps.
EDIT: looks like someone already answered in the time it took me to type that, my own fault for multitasking ...
FireGX said:
Second is, I've been hearing about this "Windows" folder in the HTC Touch Pro. I can't seem to locate this. When I browse for it with my computer, the name of the TP's "hard drive" is "\", and then I see the following folders:
Application Data, ConnMgr, Content, Documents and Settings, Music, My Documents, Program Files, cemail (hidden file), pim
Is this root folder the "Windows" folder?
Click to expand...
Click to collapse
Same thing as you, when I browse to the device from Windows Explorer.
However, if I go to Tools - Folder Options - View tab and I select "Show hidden files and folders", the Windows directory is displayed.
FireGX said:
Third thing is, in the "Programs" tab in TF3D, there's this icon there that when I press (looks like the default icon for a folder in Vista), it gives me an error. It says "The file 'wt5jetpr' cannot be opened. Either it is not signed with a trusted certificate, or one of its components cannot be found. If the problem persists, try reinstalling or restoring this file.
Click to expand...
Click to collapse
By the name, it looks like it is JetCet Print 5.
Strange you have these errors. Do you use a custom ROM?
PS: been too slow to answer too. but at least the answers match ;-)
I'm not using a custom rom =\. The rom came with my device.
It's:
1.90.405.1.WWE
It's a HTC Touch Pro T7272
Then I advise you to do a Hard Reset. Opera and JetCet print should be there, and should not give you any certificate errors.
I advise you to read a lot these forums, gather as much info as you can, and experimenting with your device. You have a powerhouse in your hands, you know? you have unlimited possibilities. Any questions should you have must be asked.
Alright, I'll give that a try tomorrow after the day's gone so I have lots of time to figure things out.
Sorry for the double post, but I figure this message won't get read if I simply edit my last post.
Anyways, I hard resetted the device and I got Opera and that printing program working! Thanks creiz.
Just one last thing I'm trying to figure out.. is there any way I can get a custom alarm ring tone without downloading a program? (I'm trying to avoid having to do that if possible)

Workaround for BT ROM/Storage Memory Leak- Requires Root Access

Note: You will be deleting files from your phone so do this at your own risk. To the best of my knowledge these are waste/unreleased files caused by the bluetooth hanging in connecting mode but I take no responsibility if they are actually important and result in any damage(s).
This workaround requires that your root your phone. You will need to have super user access (su) where you see the # sign. We will simply be executing the following commands to list and delete the core.xxxx that we assume are the unreleased/waste files taking up space:
lists:
su
ls -al /data/btips
deletes:
su
rm /data/btips/core*
1. You will also need to install Better Terminal Emulator -Free from the apps store. Note: This app crashes on me when in landscape mode, so you might only be able to use it in portrait.
2. Open up Better Terminal. Press Menu > Preferences
3.(Optional) Turn on Volume Up shortcut and assign: su (enter key) ls -al /data/btips (enter key)
This will give you the ability to quickly list your files in the data/btips directory. Most of them will have 0 - 1002 beside them. This is the size. If you see something significantly larger it is probably an unreleased file waste file. This is only for your reference to view the files and is not really necessary for recovering your space. Next come the part where we actually delete them!
4. Turn on Volume Down shortcut and assign: su (enter key) rm /data/btips/core* (enter key)
5. Try it out. Go to Terminal screen. Press up to activate shortcut to list files(optional). Press down to delete them. If you don't have any unreleased/ waste files it will give you no such file notice obviously. My notice is cut off in portrait mode. These shortcuts will be active when you open the terminal app for quick list and delete. This allows you to manually but quickly recover your storage space.
Thanks to jonnythan for finding the diectory and files:
http://community.sprint.com/baw/thread/23854?tstart=0
I love how these things make the rounds on all the forums!
http://forum.xda-developers.com/showthread.php?t=582823
Tell me about it! I like to keep an eye on all the forums, each one offers something a bit different. My bluetooth thanks you for your help, finally it's no longer sitting in the corner! Now hopefully we get a fix for that pesky connecting issue, it seems to actually be connecting but just hanging somewhere.
elguapo76 said:
Note: This app crashes on me when in landscape mode, so you might only be able to use it in portrait.
Click to expand...
Click to collapse
This only happens to me when I attempt to rotate to landscape mode with the software keyboard already open.
If I close the software keyboard, rotate to landscape, and reopen the keyboard then the application never crashes on me.
Package this up into an app that executes with a button press.
Treefallingquietly said:
Package this up into an app that executes with a button press.
Click to expand...
Click to collapse
Better, package it into a Locale add-on so I can make it run whenever I enable/disable BT!
elguapo76 said:
Note: You will be deleting files from your phone so do this at your own risk. To the best of my knowledge these are waste/unreleased files caused by the bluetooth hanging in connecting mode but I take no responsibility if they are actually important and result in any damage(s).
This workaround requires that your root your phone. You will need to have super user access (su) where you see the # sign. We will simply be executing the following commands to list and delete the core.xxxx that we assume are the unreleased/waste files taking up space:
lists:
su
ls -al /data/btips
deletes:
su
rm /data/btips/core*
1. You will also need to install Better Terminal Emulator -Free from the apps store. Note: This app crashes on me when in landscape mode, so you might only be able to use it in portrait.
2. Open up Better Terminal. Press Menu > Preferences
3.(Optional) Turn on Volume Up shortcut and assign: su (enter key) ls -al /data/btips (enter key)
This will give you the ability to quickly list your files in the data/btips directory. Most of them will have 0 - 1002 beside them. This is the size. If you see something significantly larger it is probably an unreleased file waste file. This is only for your reference to view the files and is not really necessary for recovering your space. Next come the part where we actually delete them!
4. Turn on Volume Down shortcut and assign: su (enter key) rm /data/btips/core* (enter key)
5. Try it out. Go to Terminal screen. Press up to activate shortcut to list files(optional). Press down to delete them. If you don't have any unreleased/ waste files it will give you no such file notice obviously. My notice is cut off in portrait mode. These shortcuts will be active when you open the terminal app for quick list and delete. This allows you to manually but quickly recover your storage space.
Thanks to jonnythan for finding the diectory and files:
http://community.sprint.com/baw/thread/23854?tstart=0
Click to expand...
Click to collapse
This is a life saver. Im the OP from the Sprint forums. Ill give it a try tonight.
I've tried this a couple of times and I keep getting: cannot remove '/data/btips/core*' : No such file or directory. Has this happened to anyone else? I really would like to use the bluetooth on this phone. Any help is appreciated.
ejqr5 said:
I've tried this a couple of times and I keep getting: cannot remove '/data/btips/core*' : No such file or directory. Has this happened to anyone else? I really would like to use the bluetooth on this phone. Any help is appreciated.
Click to expand...
Click to collapse
Not 100 percent sure but I believe that message means there are no waste files created yet. The reason the op instructs to create the shortcut actions in better terminal, is so you can use your Bluetooth and while using it, these files will build up and with the shortcuts it gives you a fast way to delete them, successfully "working around" the memory leak, until a fix is found/released.

[help needed] terminology and a clear answer?

Im a bit of a noob when it comes to Android.
im more a windows mobile person however....
For xmas i recieved an android tablet which is an awesome toy! but ive had issues with making the widgets work on the home screen - they dont show up.
Ive read forums and forums all day and each forum points back to xda:
http://forum.xda-developers.com/showthread.php?t=780828&page=13
Looks great, downloaded the apk tried to copy it to the system/app folder but it wont let me do it.
Ive managed to confuse myself after hours of reading so hoping someone can give me some ideas.
Ive read about needing the device 'rooted' i still dont understand what this is n how i do it.
Ive also read the file is to be pushed into the folder??
Ive downloaded the terminal emulator, file explorer etc... tried copy/paste, move, cut etc... all with the same answer of insufficent access.
The terminal emulator on the other hand i cannot use as its all touch screen with no hard buttons once running i cannot type into the program.
surely theres an easier way to load things into the system folders?
Sorry if its the wrong section or what seems a simple ask for some direction, I'm used to windows mobile and htc sence modding where you can just delete and replace files at will
Hey,
Root is like the administrator in Windows. By default, you have a user account, not a root or admin account. And therefore you're access permissions are limited. You do not have write permissions to most internal directories and are pretty much limited to the sd card, which is kinda like 'home' in linux or 'my documents' in windows. Also, cannot run applications that require su (superuser, ie: root, admin).
Rooting is the act of accessing the root user account, or admin account. Like 'jail-breaking' in the apple world.
How to root your android depends on which model you have.
For installing the widget app, as long as its an .apk file, you should be able to just click on it and be prompted to install it.
To access your widgets, should be able to log press on a blank area of the home screen and get a option box to select from. Or if you have a 'menu' button there should be an add option.
To use the Terminal, long press 'menu' and your keyboard will popup. Or click menu and there will be an option for the keyboard, also settings to change color, text size and others.
Sent from my ERIS using XDA App
Also, in the terminal, it will use linux commands, not windows commands.
You can google android commands and get a list of common commands.
Good luck. Have fun. If you don't have some linux experience, it may seem like there's a steep learning curve, but most things will become easy after a little tinkering.
Sent from my ERIS using XDA App
im finding this an incredibly steep curve - a bit too steep lol
I would recommend searching <(name of device) root guide> and then you will find your way around.
But, i don't think you need root, root is for when you need to install applications that you need higher permissions to control system settings. Also to install different versions of android.
Your problem seems to be only a bug. If you want to install an application that is not on the market, you just go to your settings and turn on installing from unknown sources.
You don't need to put it in system apps, the apk is like an .exe, just put it on your sd card, install a file manager program like ASTRO, and then open that app, go to the directory you transfered the file, and click it, ASTRO will give you the ability to install it.
patriotaus said:
I would recommend searching <(name of device) root guide> and then you will find your way around.
But, i don't think you need root, root is for when you need to install applications that you need higher permissions to control system settings. Also to install different versions of android.
Your problem seems to be only a bug. If you want to install an application that is not on the market, you just go to your settings and turn on installing from unknown sources.
You don't need to put it in system apps, the apk is like an .exe, just put it on your sd card, install a file manager program like ASTRO, and then open that app, go to the directory you transfered the file, and click it, ASTRO will give you the ability to install it.
Click to expand...
Click to collapse
I dont think rooting is essential to do this but from what ive read - it helps.
the app in question is this: http://forum.xda-developers.com/showthread.php?t=780828
this should replace the file on my system which doesnt work. unless anyone has a suggestion to get the same item by installing an apk to achieve as per the instructions state "copy into system/app and set permissions"

Edit Lockscreen Text - Not Carrier Text - CM7

Apologies in advance if I am posting in the wrong section.
I've been talking to some people over on the CM forums about this and we haven't found an answer yet.
If you look in my screenshot, right below the alarm, my name is on my lockscreen. This was put here using an old setting on CyanogenMod 6.1.2 on my HTC Evo 4g. You did this on CM6 by going to Settings > Location & Security. Then there was a checkbox to "Show Custom Message". You then put in text!
Does anyone know which file stores this value on CM7/Android 2.3? I've pulled the eri.xml file from my phone and I can edit my carrier text but I have not been able to find my name. I like being able to edit that text and I wanted to update it to something new but the settings no longer exist under CM7. Thanks for looking!
I have found a ton of utils for editing carrier text but nothing for the text pointed to in the red arrow.
.
.
.
.
.
.
.
*bump*
re
Not the answer you are looking for here but wouldnt it be easier and less annoying and stressful to just flash back to the rom where you could change it, change it to what you want and then flash back ?
that is if i am understanding you correctly and your name shows up now of course with the new rom...
i would think if you changed your name to whatever you wanted then you could go back to the new rom and it would appear the way you want it.
I'm going to give that a try tomorrow. Not sure if it sticks through an upgrade or not but worth a try. Im just curious at this point what confit file it is. Wish there was a filemon or similar tool for Android. Although, if can dump all the files off the phone before and after I should be able to do comparisons....hrm. Project for tomorrow.
OK, finally took the time to work on this a little further.
I reflashed CM6, booted and confirmed there was no lockscreen text. Took a nandroid and copied off the system.img
I then put a lockscreen text in - used a custom phrase that would not be in any of the config files normally. Rebooted, took a nandroid and copied off this system.img.
Extracted both system.img files using unyaffs.
I did a binary and CRC comparison off all the files, no differences. So apparently this setting is stored somewhere else. Hrm......
AHA. Found the little bugger finally.
Had to pull the data.img and extract that. The setting is located in
/data/com.android.providers.settings/databases/settings.db
lock_screen_custom_msgTESTTEXT
lock_screen_show_custome_msg1
These are the two options that I found. So, now to see if I can safely edit that DB file and modify the text on CM7. I already have the text on my screen so the data fields are in the DB file already so I suspect I can just edit that file and then replace it on my phone.
Hm. Editing is no good. Blew away all my settings and I not longer can enable any lockscreen.
Hah. Got it! Using ADB works. Instructions:
adb shell
sqlite3 /data/data/com.android.providers.settings/databases/settings.db
.tables (you should see a secure table listed)
.header on
.mode column
select * from secure;
Now scroll through the results. Find the "lock_screen_custom_m" item under name. Note the ID number to the left. Write the ID number down.
update secure set value='your custom message here' where _ID=NN;
NN is the ID number you wrote down.
.quit
Reboot your phone.
There you go, just in case anyone else is interested.
jdostal said:
Hah. Got it! Using ADB works. Instructions:
adb shell
sqlite3 /data/data/com.android.providers.settings/databases/settings.db
.tables (you should see a secure table listed)
.header on
.mode column
select * from secure;
Now scroll through the results. Find the "lock_screen_custom_m" item under name. Note the ID number to the left. Write the ID number down.
update secure set value='your custom message here' where _ID=NN;
NN is the ID number you wrote down.
.quit
Reboot your phone.
There you go, just in case anyone else is interested.
Click to expand...
Click to collapse
Nice find!
I used a derivative of your method to reset the alarm notification on the GB lockscreen when the buggy POS alarm app G-Alarm left it there after removing all the alarms and uninstalling it.
That one is in system instead of secure, and it can be set to a blank string per http://developer.android.com/reference/android/provider/Settings.System.html#NEXT_ALARM_FORMATTED to clear it
Neat! Glad it could help someone out.
jdostal said:
Neat! Glad it could help someone out.
Click to expand...
Click to collapse
Yup, much appreciated! Also great to learn how to edit databases on Android.
Also, I didn't have a USB cable so I did it with the terminal editor. For convenience (i.e. having a real keyboard) I used Webkey for PC access to my phone and its built-in terminal editor to make the changes.
That sounds painful!
I don't know where I read the guide, but definitely use ADB. With ADB you can basically connect to the shell on your phone from your PC through a command prompt. Makes doing this sort of thing MUCH easier!
jdostal said:
That sounds painful!
I don't know where I read the guide, but definitely use ADB. With ADB you can basically connect to the shell on your phone from your PC through a command prompt. Makes doing this sort of thing MUCH easier!
Click to expand...
Click to collapse
Did you miss the part where I didn't have a USB cable?

[Completed] How to delete "phantom" file on Sony Google TV?

Hope I'm posting this in the right location - I couldn't find any thread/forum that dealt with Google TV. Thanks.
I was attempting to copy a large movie file from my NAS to my Sony Google TV, and apparently something happened during the transfer. It appeared to complete successfully, but the file is basically a "phantom" file on my Google TV now. What I mean by that is I can't delete it (or access it, move it, rename it, etc.). It shows up in ES File Explorer under the "Movies" directory (where I had copied it to), but when I try to view it's properties it says they can't be retrieved. Worse, no matter what I try I can't delete it and it's taking up a large amount of space on my Google TV. I've tried everything from using a terminal emulator on the Google TV, to attempting to delete it via FTP from my computer, to attempting via "adb connect" with the debugging mode turned on. Nothing seems to work. I can't even tell if the system even detects it as a real file, since if I run "ls" via the adb shell (under /mnt/sdcard/Movies) it shows up, but then if I run "ls -al" I get nothing (and other weird things as well - such as when using "Better Terminal Emulator Pro" and browsing to the "Movies" directory and running "ls" it lists the file name and then says "No such file or directory"). Any help on how to get rid of this (without having to completely reset my Google TV) would be greatly appreciated! Thanks!
mbressman said:
Hope I'm posting this in the right location - I couldn't find any thread/forum that dealt with Google TV. Thanks.
I was attempting to copy a large movie file from my NAS to my Sony Google TV, and apparently something happened during the transfer. It appeared to complete successfully, but the file is basically a "phantom" file on my Google TV now. What I mean by that is I can't delete it (or access it, move it, rename it, etc.). It shows up in ES File Explorer under the "Movies" directory (where I had copied it to), but when I try to view it's properties it says they can't be retrieved. Worse, no matter what I try I can't delete it and it's taking up a large amount of space on my Google TV. I've tried everything from using a terminal emulator on the Google TV, to attempting to delete it via FTP from my computer, to attempting via "adb connect" with the debugging mode turned on. Nothing seems to work. I can't even tell if the system even detects it as a real file, since if I run "ls" via the adb shell (under /mnt/sdcard/Movies) it shows up, but then if I run "ls -al" I get nothing (and other weird things as well - such as when using "Better Terminal Emulator Pro" and browsing to the "Movies" directory and running "ls" it lists the file name and then says "No such file or directory"). Any help on how to get rid of this (without having to completely reset my Google TV) would be greatly appreciated! Thanks!
Click to expand...
Click to collapse
Hello,
Thanks for using XDA Assist.
You can post your query in Android Q&A,Help and Troubleshooting.Experts there may be able to help you
___
v7
XDA Assist

Categories

Resources