Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

I have a Galaxy S3, screen is visually and touch impaired. It is USB debug enabled, un-rooted.

I'm able to use Droid@Screen to see my screen, which i'm able to unlock. I then run this command:

adb backup –apk –shared –all –f /backup/mybackup.ab

Which then initiates a backup on the phone. On the screen I can see it asking for an encryption password, which i provide by keyevent through adb. The final sticking point, is being unable to find a keyevent which will press the "Backup up my data" button. I am able to tab to it, and have it highlighted, but the 'space' and 'enter' events do not trigger it, as well as 'soft_right'.

I'm getting my keyevents from HERE.

]![Backup Scr][2

If there is another way for me to dump the ab, that would be awesome.

share|improve this question
    
Those buttons look like they are disabled - have you tried leaving out the password, and checking if the buttons are clickable via any method mentioned? –  Liam W Dec 27 '12 at 14:31
    
THey have been tabbed away from, i can take another screen shot that shows it selected. –  DanBig Dec 27 '12 at 14:32
    
What I mean is that they looked like they are disabled, and cannot be clicked. That would be why nothing is working. –  Liam W Dec 27 '12 at 14:35
    
I've just edited to show that they are selectable. –  DanBig Dec 27 '12 at 14:38
    
Ok, my bad sorry. –  Liam W Dec 27 '12 at 14:43
show 2 more comments

3 Answers

Have you tried sending a KEYCODE_DPAD_CENTER?

adb shell input keyevent 23
share|improve this answer
    
That moves the focus off the target, but does not appear to work either. –  DanBig Dec 27 '12 at 19:26
add comment

Use Droid Explorer and the Screencast plugin to use your keyboard and mouse from your desktop computer to control the handset?

That would make life easier instead of fiddling around with using adb shell input keyevent ...

share|improve this answer
    
I'm not rooted, so screencast isn't going to work, correct? –  DanBig Dec 27 '12 at 20:36
    
I confirm you do not need to be rooted, however, it is pretty limited, but maybe that's because the handset used in conjunction with screencast, is eclair 2.1... –  t0mm13b Dec 27 '12 at 21:11
add comment

I was in the same situation as you. Once you enter the full backup screen Use the following commands:

adb shell input text <your password>
adb shell input keyevent 22
adb shell input keyevent 23

the "adb shell input keyevent 22" command is Dpad Right, you'll be able to select back up my data the "adb shell input keyevent 23" is the Dpad Center, It will allow you to select enter

22 --> "KEYCODE_DPAD_RIGHT"

23 --> "KEYCODE_DPAD_CENTER"

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.