work on classloader names
This commit is contained in:
parent
1884ff4ac8
commit
e9f28419c9
4 changed files with 184 additions and 124 deletions
|
|
@ -13,7 +13,9 @@ pub struct RuntimeData {
|
|||
/// The id of the class loader of the apk (the main classloader)
|
||||
pub apk_cl_id: Option<String>,
|
||||
/// Additionnal classloader data.
|
||||
pub classloaders: Vec<ClassLoaderData>,
|
||||
pub classloaders: HashMap<String, ClassLoaderData>,
|
||||
/// Additionnal application data.
|
||||
pub app_info: AppInfo,
|
||||
}
|
||||
|
||||
impl RuntimeData {
|
||||
|
|
@ -89,14 +91,6 @@ impl RuntimeData {
|
|||
}
|
||||
data
|
||||
}
|
||||
|
||||
/// Get classloader data, indexed by id.
|
||||
pub fn get_classloader_data(&self) -> HashMap<String, ClassLoaderData> {
|
||||
self.classloaders
|
||||
.iter()
|
||||
.map(|data| (data.id.clone(), data.clone()))
|
||||
.collect()
|
||||
}
|
||||
}
|
||||
|
||||
/// Structure storing the runtime information of a reflection call using
|
||||
|
|
@ -212,3 +206,18 @@ pub struct ClassLoaderData {
|
|||
/// The class of the class loader.
|
||||
pub cname: IdType,
|
||||
}
|
||||
|
||||
/// Structure storing application information
|
||||
#[derive(Clone, PartialEq, Debug, Deserialize, Serialize)]
|
||||
pub struct AppInfo {
|
||||
pub data_dir: String,
|
||||
pub device_protected_data_dir: String,
|
||||
pub native_library_dir: String,
|
||||
pub public_source_dir: String,
|
||||
//pub shared_library_files: Option<Vec<String>>,
|
||||
pub source_dir: String,
|
||||
//pub split_names: Option<Vec<String>>,
|
||||
pub split_public_source_dirs: Option<Vec<String>>,
|
||||
pub split_source_dirs: Option<String>,
|
||||
pub actual_source_dir: String,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue