No description
Find a file
Doug Zongker 9270a20a80 support "sideload over ADB" mode
Rather than depending on the existence of some place to store a file
that is accessible to users on an an unbootable device (eg, a physical
sdcard, external USB drive, etc.), add support for sideloading
packages sent to the device with adb.

This change adds a "minimal adbd" which supports nothing but receiving
a package over adb (with the "adb sideload" command) and storing it to
a fixed filename in the /tmp ramdisk, from where it can be verified
and sideloaded in the usual way.  This should be leave available even
on locked user-build devices.

The user can select "apply package from ADB" from the recovery menu,
which starts minimal-adb mode (shutting down any real adbd that may be
running).  Once minimal-adb has received a package it exits
(restarting real adbd if appropriate) and then verification and
installation of the received package proceeds.

Change-Id: I6fe13161ca064a98d06fa32104e1f432826582f5
2012-01-10 10:18:17 -08:00
applypatch Remove the simulator target from all makefiles. 2011-07-11 22:11:45 -07:00
edify make StringValue wrapper okay to call on NULL 2010-02-24 15:05:07 -08:00
etc Add missing commands to recovery init.rc 2011-07-07 13:29:43 -07:00
minadbd support "sideload over ADB" mode 2012-01-10 10:18:17 -08:00
minelf Working ASLR implementation 2010-08-02 14:17:33 -07:00
minui turn recovery into a C++ binary 2011-10-31 10:24:09 -07:00
minzip turn recovery into a C++ binary 2011-10-31 10:24:09 -07:00
mtdutils Rename (IF_)LOGW(_IF) to (IF_)ALOGW(_IF) DO NOT MERGE 2012-01-06 09:53:00 +00:00
res/images update recovery with new 3D images 2011-09-20 14:16:46 -07:00
testdata add a simple unit test for the OTA package verifier 2009-12-09 17:01:45 -08:00
tools Remove the simulator target from all makefiles. 2011-07-11 22:11:45 -07:00
updater C++ class for device-specific code 2011-10-31 15:51:07 -07:00
adb_install.cpp support "sideload over ADB" mode 2012-01-10 10:18:17 -08:00
adb_install.h support "sideload over ADB" mode 2012-01-10 10:18:17 -08:00
Android.mk support "sideload over ADB" mode 2012-01-10 10:18:17 -08:00
bootloader.cpp turn recovery into a C++ binary 2011-10-31 10:24:09 -07:00
bootloader.h turn recovery into a C++ binary 2011-10-31 10:24:09 -07:00
CleanSpec.mk Add an empty CleanSpec.mk 2010-03-08 18:04:03 -08:00
common.h move key processing to RecoveryUI 2011-11-04 14:09:48 -07:00
default_device.cpp support "sideload over ADB" mode 2012-01-10 10:18:17 -08:00
device.h support "sideload over ADB" mode 2012-01-10 10:18:17 -08:00
install.cpp refactor ui functions into a class 2011-10-31 14:15:02 -07:00
install.h turn recovery into a C++ binary 2011-10-31 10:24:09 -07:00
make-overlay.py change the default recovery assets to be in holograph style 2011-03-02 10:38:02 -08:00
NOTICE Automated import from //branches/master/...@140824,140824 2009-03-24 18:36:42 -07:00
recovery.cpp support "sideload over ADB" mode 2012-01-10 10:18:17 -08:00
roots.cpp turn recovery into a C++ binary 2011-10-31 10:24:09 -07:00
roots.h turn recovery into a C++ binary 2011-10-31 10:24:09 -07:00
screen_ui.cpp move key processing to RecoveryUI 2011-11-04 14:09:48 -07:00
screen_ui.h move key processing to RecoveryUI 2011-11-04 14:09:48 -07:00
ui.cpp move key processing to RecoveryUI 2011-11-04 14:09:48 -07:00
ui.h move key processing to RecoveryUI 2011-11-04 14:09:48 -07:00
verifier.cpp refactor ui functions into a class 2011-10-31 14:15:02 -07:00
verifier.h do not merge: cherry-picked 60151a295c from master branch 2009-08-17 13:21:04 -07:00
verifier_test.cpp move key processing to RecoveryUI 2011-11-04 14:09:48 -07:00
verifier_test.sh turn recovery into a C++ binary 2011-10-31 10:24:09 -07:00