@@ -4,7 +4,7 @@ use std::path::Path;
44use image:: { ImageBuffer , ImageFormat , Rgba } ;
55
66use crate :: models:: AdbStatResponse ;
7- use crate :: { RebootType , Result } ;
7+ use crate :: { RebootType , RemountInfo , Result } ;
88
99/// Trait representing all features available on both [`crate::ADBServerDevice`] and [`crate::ADBUSBDevice`]
1010pub trait ADBDeviceExt {
@@ -27,6 +27,9 @@ pub trait ADBDeviceExt {
2727 /// Reboot the device using given reboot type
2828 fn reboot ( & mut self , reboot_type : RebootType ) -> Result < ( ) > ;
2929
30+ /// Remount the device partitions as read-write
31+ fn remount ( & mut self ) -> Result < Vec < RemountInfo > > ;
32+
3033 /// Run `activity` from `package` on device. Return the command output.
3134 fn run_activity ( & mut self , package : & str , activity : & str ) -> Result < Vec < u8 > > {
3235 let mut output = Vec :: new ( ) ;
@@ -44,6 +47,12 @@ pub trait ADBDeviceExt {
4447 /// Uninstall the package `package` from device.
4548 fn uninstall ( & mut self , package : & str ) -> Result < ( ) > ;
4649
50+ /// Enable dm-verity on the device
51+ fn enable_verity ( & mut self ) -> Result < ( ) > ;
52+
53+ /// Disable dm-verity on the device
54+ fn disable_verity ( & mut self ) -> Result < ( ) > ;
55+
4756 /// Inner method requesting framebuffer from an Android device
4857 fn framebuffer_inner ( & mut self ) -> Result < ImageBuffer < Rgba < u8 > , Vec < u8 > > > ;
4958
0 commit comments