1

I need to repair my Android phone (it is Jiayu G4 with Android 4.0.2) since its display is not working. Yet, touches are being handled. Could anyone with Android dev tools installed at their PC instruct me which gestures should I do after

adb backup -apk -shared -all

command? It expects me to unlock the device and allow backup, but I cannot see which button to press.

Good answer is:

  1. Press button at 3/4 of height and 2/3 of width of the screen;
  2. Swipe selector located at 1/10 of height in the left...
  3. ...or something.

Please help.

2 Answers 2

1

When you invoke the adb backup command, this is the screen popping up on your device:

adb backup

The button you would need to hit is "Back up my data". So after invoking the command, wait for 3..5 seconds to be sure the screen is "loaded", then hit the area on the lower-right where the button should be. The backup process then should start immediately. Even if you see nothing happen, give it another 30s or so, then check (from a different terminal/command shell); you should see your backup file growing then.

2
  • Thanks a lot! My data are being saving right now. I forgot that one picture is better than a hundred words. One more little question: is it safe to restore these data to later version of the system? 4.2 or 4.4. Looks like i need to flash my device with later firmware in order to get my new replacement screen working. The screen is of a new revision of device.
    – Jurlie
    Feb 22, 2014 at 21:14
  • Depends. If you included system apps, I'd be careful (adb restore allows no selection, all-or-nothing only). Otherwise: Save I'd say. After all, that's what Helium Backup does to sync apps/data between devices.
    – Izzy
    Feb 22, 2014 at 21:28
2

(For later Android versions)

You may want to try ways to mirror the screen. (Method 2 involves mirroring over WiFi)

Or narrate the screen.

With a totally blank screen, you can:

# enable USB debugging (not shown here, but the prompt is in the upper 40% of the screen. Yes is on the right)
# verify the phone is recognized and has authorized your PC
adb devices
# unlock the screen on the phone (power button, swipe, enter password, etc.)
# send the backup command (adjust as needed and try quotes or escape characters)
adb backup -apk -shared -all file.ab
# Respond to the prompt on the phone

The prompt is full screen and the confirm button is in the bottom right, above the launcher tray (back, home, recent apps).

Once confirmed, there is nothing on the destination PC that shows it's working.

On the source phone, it will display each package as it copies them (seems that way).

The destination file will show as 0 KB (empty) until the process completes.

Use a reliable cable and leave the phone somewhere it can safely rest without moving or even touching it. It took around 30 minutes to backup a Pixel 2 (16 GB backup, about 64 GB of data on the device). Not everything is part of ADB backup.

If you ctrl-C the process on the dest PC, the dest file will fill over the next few seconds with the incomplete backup. The phone will also show more packages that it was iterating through to copy. You could maybe use this to verify the backup was working.

It's not clear what the collision policy is on sending a backup with the same name as an existing file.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .