Android update [ANSWERED]

Moderators: Oren.R, Eran.M

PeterSteinberg
Posts: 16
Joined: Fri Aug 26, 2016 10:20 pm
Location: Madison, WI USA

Android update [ANSWERED]

Postby PeterSteinberg » Tue May 02, 2017 3:15 pm

I'm looking for a way to update our Android image without requiring connection to a PC for sideloading via ADB.

We're using Android Marshmallow 6.0.1_2.1.0.

The OTA image will be on an external USB drive and can easily be copied anywhere into the internal file system.

We don't have an easy way to enter the recovery menu since we do not have any keys or buttons on our device.

Thanks,
Peter Steinberg

varigigi
Posts: 52
Joined: Tue Nov 01, 2016 10:25 am

Re: Android update

Postby varigigi » Wed May 03, 2017 10:49 pm

Hi Peter,
this script should do the trick:

adb shell "echo 'boot-recovery' > /cache/recovery/command"
adb shell "echo '--update_package=/cache/update.zip' >> /cache/recovery/command"
adb shell "echo '--wipe_cache' >> /cache/recovery/command"
adb push full_path_to_zipped_ota_update.zip /cache/update.zip
adb shell sync
adb reboot recovery

BR
Pier

PeterSteinberg
Posts: 16
Joined: Fri Aug 26, 2016 10:20 pm
Location: Madison, WI USA

Re: Android update

Postby PeterSteinberg » Thu May 04, 2017 3:52 pm

Thanks!


Return to “Android”

Who is online

Users browsing this forum: No registered users and 2 guests

cron