/bootable/recovery/etc/ |
D | init.rc | 7 # Copy prebuilt ld.config.txt into linkerconfig directory 8 copy /system/etc/ld.config.txt /linkerconfig/ld.config.txt 9 chmod 444 /linkerconfig/ld.config.txt 91 mount configfs none /config 92 mkdir /config/usb_gadget/g1 0770 shell shell 93 write /config/usb_gadget/g1/idVendor 0x18D1 94 mkdir /config/usb_gadget/g1/strings/0x409 0770 95 write /config/usb_gadget/g1/strings/0x409/serialnumber ${ro.serialno} 96 write /config/usb_gadget/g1/strings/0x409/manufacturer ${ro.product.manufacturer} 97 write /config/usb_gadget/g1/strings/0x409/product ${ro.product.model} [all …]
|
/bootable/recovery/updater_sample/tests/src/com/example/android/systemupdatersample/ |
D | UpdateConfigTest.java | 71 UpdateConfig config = UpdateConfig.fromJson(JSON_NON_STREAMING); in fromJson_parsesNonStreaming() local 72 assertEquals("name is parsed", "vip update", config.getName()); in fromJson_parsesNonStreaming() 73 assertEquals("stores raw json", JSON_NON_STREAMING, config.getRawJson()); in fromJson_parsesNonStreaming() 76 config.getInstallType()); in fromJson_parsesNonStreaming() 77 assertEquals("url is parsed", "file:///my-builds/a.zip", config.getUrl()); in fromJson_parsesNonStreaming() 82 UpdateConfig config = UpdateConfig.fromJson(mJsonStreaming001); in fromJson_parsesStreaming() local 83 assertEquals("streaming-001", config.getName()); in fromJson_parsesStreaming() 84 assertEquals("http://foo.bar/update.zip", config.getUrl()); in fromJson_parsesStreaming() 85 assertSame(UpdateConfig.AB_INSTALL_TYPE_STREAMING, config.getInstallType()); in fromJson_parsesStreaming() 87 config.getAbConfig().getPropertyFiles()[0].getFilename()); in fromJson_parsesStreaming() [all …]
|
/bootable/recovery/updater_sample/src/com/example/android/systemupdatersample/services/ |
D | PrepareUpdateService.java | 94 UpdateConfig config, in startService() argument 100 intent.putExtra(EXTRA_PARAM_CONFIG, config); in startService() 128 UpdateConfig config = intent.getParcelableExtra(EXTRA_PARAM_CONFIG); in onHandleIntent() local 132 PayloadSpec spec = execute(config); in onHandleIntent() 146 private PayloadSpec execute(UpdateConfig config) in execute() argument 149 if (config.getAbConfig().getVerifyPayloadMetadata()) { in execute() 151 if (!verifyPayloadMetadata(config)) { in execute() 156 if (config.getInstallType() == UpdateConfig.AB_INSTALL_TYPE_NON_STREAMING) { in execute() 157 return mPayloadSpecs.forNonStreaming(config.getUpdatePackageFile()); in execute() 160 downloadPreStreamingFiles(config, OTA_PACKAGE_DIR); in execute() [all …]
|
/bootable/recovery/updater_sample/tools/ |
D | test_gen_update_config.py | 34 config, package = self._generate_config() 35 property_files = config['ab_config']['property_files'] 63 return gen.config, ota_package
|
D | gen_update_config.py | 74 def config(self): member in GenUpdateConfig 91 config = { 97 return config 120 json.dump(self.config, out_file, indent=4, separators=(',', ': '), sort_keys=True)
|
/bootable/recovery/updater_sample/src/com/example/android/systemupdatersample/ |
D | UpdateManager.java | 284 public synchronized void applyUpdate(Context context, UpdateConfig config) in applyUpdate() argument 294 if (!config.getAbConfig().getForceSwitchSlot()) { in applyUpdate() 301 PrepareUpdateService.startService(context, config, mHandler, (code, payloadSpec) -> { in applyUpdate() 308 .setExtraProperties(prepareExtraProperties(config)) in applyUpdate() 314 private List<String> prepareExtraProperties(UpdateConfig config) { in prepareExtraProperties() argument 317 if (!config.getAbConfig().getForceSwitchSlot()) { in prepareExtraProperties() 322 if (config.getInstallType() == UpdateConfig.AB_INSTALL_TYPE_STREAMING) { in prepareExtraProperties() 324 config.getAbConfig() in prepareExtraProperties()
|
/bootable/recovery/updater_sample/src/com/example/android/systemupdatersample/ui/ |
D | MainActivity.java | 137 UpdateConfig config = mConfigs.get(mSpinnerConfigs.getSelectedItemPosition()); in onViewConfigClick() local 139 .setTitle(config.getName()) in onViewConfigClick() 140 .setMessage(config.getRawJson()) in onViewConfigClick() 162 private void applyUpdate(UpdateConfig config) { in applyUpdate() argument 164 mUpdateManager.applyUpdate(this, config); in applyUpdate() 166 Log.e(TAG, "Failed to apply update " + config.getName(), e); in applyUpdate()
|
/bootable/recovery/updater_sample/ |
D | README.md | 22 In this sample updates are defined in JSON update config files. 23 The structure of a config file is defined in 27 In real-life update system the config files expected to be served from a server 28 to the app, but in this sample, the config files are stored on the device. 93 - `View config` - shows selected update config. 94 - `Apply` - applies selected update config. 100 - `Switch Slot` - if `ab_config.force_switch_slot` config set true, 168 5. Add update config files; look above at [Update Config file](#Update-Config-file). 186 3. [Whitelist the sample app](https://source.android.com/devices/tech/config/perms-whitelist) 199 8. Add update config files; look above at `## Update Config file`; [all …]
|
/bootable/recovery/updater_sample/src/com/example/android/systemupdatersample/util/ |
D | UpdateConfigs.java | 92 UpdateConfig config) { in getPropertyFile() argument 94 .stream(config.getAbConfig().getPropertyFiles()) in getPropertyFile()
|
/bootable/recovery/ |
D | .clang-format | 15 # $ git config --local clangFormat.style file 27 # $ git config --local clangFormat.binary \
|
/bootable/recovery/tools/recovery_l10n/src/com/android/recovery_l10n/ |
D | Main.java | 111 Configuration config = new Configuration(standardResources.getConfiguration()); in switchTo() local 112 config.locale = locale; in switchTo() 113 Resources defaultResources = new Resources(assets, metrics, config); in switchTo()
|
/bootable/recovery/minadbd/ |
D | README.md | 11 - The start / stop of `adbd` is managed via system property `sys.usb.config`, when setting to `adb`
|
/bootable/recovery/tests/testdata/ |
D | recovery_body | 36 persist.sys.usb.config=adb 41 import /oem/oem.prop ro.config.ringtone 42 import /oem/oem.prop ro.config.notification_sound 43 import /oem/oem.prop ro.config.alarm_alert 44 import /oem/oem.prop ro.config.wallpaper 45 import /oem/oem.prop ro.config.wallpaper_component 95 ro.config.ringtone=Ring_Synth_04.ogg 96 ro.config.notification_sound=pixiedust.ogg 98 ro.config.alarm_alert=Alarm_Classic.ogg 1490 …�/acctyu:object_r:rootfs:s0/config�����… [all …]
|