Skip to content

Commit

Permalink
(fixed) System partition size not showing properly inside file's side…
Browse files Browse the repository at this point in the history
…bar while SHRP_EXPRESS_USE_DATA turned on
  • Loading branch information
Sourav Gain committed Jul 23, 2022
1 parent 46992c8 commit b73a5ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion SHRPMAIN.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -313,10 +313,11 @@ bool Express::is_backupped(){


void Express::updateSHRPBasePath(){
string rootPath = PartitionManager.Get_Android_Root_Path();
DataManager::SetValue("androidSystemPath", rootPath);
#ifdef SHRP_EXPRESS_USE_DATA
DataManager::SetValue("shrpBasePath", "/data/unencrypted");
#else
string rootPath = PartitionManager.Get_Android_Root_Path();
DataManager::SetValue("shrpBasePath", rootPath + "/system");
#endif
LOGINFO("SHRP CURRENT BASEPATH : %s\n", DataManager::GetStrValue("shrpBasePath").c_str());
Expand Down
2 changes: 1 addition & 1 deletion gui/action.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2753,7 +2753,7 @@ int GUIAction::sig(std::string arg __unused){
TWPartition* ptr;
vector<storageInfo> storage;
storageInfo sinfo;
sinfo.storageLocation="shrpBasePath";
sinfo.storageLocation="androidSystemPath";
sinfo.freePercentageVar="c_s_p";
sinfo.freeStrVar="c_s_status";
storage.push_back(sinfo);
Expand Down

0 comments on commit b73a5ea

Please sign in to comment.