Escape adb shell "setprop ${prop_name} '${value}'"

This will allow passing an empty string as value, which is an
equivalent of resetting property value (see another CL in this topic).

Test: tools/tradefederation/core/tests/run_tradefed_tests.sh --class com.android.tradefed.device.NativeDeviceTest
Test: presubmit
Bug: 242332243
Change-Id: Ie375133df94bf0ffe15d78350f9d8fb8f15d1e18
Merged-In: Ie375133df94bf0ffe15d78350f9d8fb8f15d1e18
(cherry picked from commit eaba4425ceb6cfe57152bdf9aef9fb8cc8994896)
2 files changed
tree: d6d69a430d09acd2cdaf25c6b2a109b71951d3e3
  1. atest/
  2. clearcut_client/
  3. proto/
  4. python-lib/
  5. remote/
  6. res/
  7. src/
  8. tests/
  9. util-apps/
  10. .classpath
  11. .gitignore
  12. .project
  13. Android.bp
  14. Android.mk
  15. atest_tradefed.sh
  16. CleanSpec.mk
  17. error_prone_rules.mk
  18. MANIFEST.mf
  19. OWNERS
  20. PREUPLOAD.cfg
  21. pylintrc
  22. README.md
  23. run_tf_cmd.sh
  24. script_help.sh
  25. TEST_MAPPING
  26. TEST_MAPPING_README
  27. tradefed.sh
  28. tradefed_win.bat
  29. verify.sh
README.md

Trade Federation (TF / tradefed)

TF is a test harness used to drive Android automated testing. It runs on test hosts and monitors the connected devices, handling test scheduling & execution and device management.

Other test harnesses like Compatibility Test Suite (CTS) and Vendor Test Suite (VTS) use TF as a basis and extend it for their particular needs.

Building TF:

  • source build/envsetup.sh
  • tapas tradefed-all
  • make -j8

More information at: https://source.android.com/devices/tech/test_infra/tradefed/