From 7e303cfeb85373323eeeb2ebe83ba3184c9d7bfa Mon Sep 17 00:00:00 2001 From: that Date: Thu, 6 Mar 2014 07:57:43 +0100 Subject: Support pre-KitKat properties for update-binary Google changed the in-memory format for storing properties in 4.4. Zips containing an older update-binary expect the old format, otherwise assertions on properties in the update script fail. This is just enough of the old property service to copy the properties to the legacy format before running the updater. Change-Id: I404680384bdc5e952609e295029ab0a0faf743a5 --- legacy_property_service.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 legacy_property_service.h (limited to 'legacy_property_service.h') diff --git a/legacy_property_service.h b/legacy_property_service.h new file mode 100644 index 000000000..172055fa2 --- /dev/null +++ b/legacy_property_service.h @@ -0,0 +1,25 @@ +/* + * Copyright (C) 2007 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef _LEGACY_PROPERTY_H +#define _LEGACY_PROPERTY_H + +#include + +void legacy_get_property_workspace(int *fd, int *sz); +void legacy_properties_init(); + +#endif /* _LEGACY_PROPERTY_H */ -- cgit v1.2.3