Several MagiskHide improvements

- Directly get UID instead of traversing /data/data everytime
- Use /data/user_de/0 instead of /data/data on Android 7.0+
- Update hide_uid set incrementally when adding/initializing targets
- Guard hide_uid set with the same lock as hide_list vector
- Do not add GMS package into database; only add to in-memory list
This commit is contained in:
topjohnwu
2019-02-13 06:16:26 -05:00
parent 24da3485bd
commit c66cabd80f
4 changed files with 87 additions and 116 deletions
+1 -1
View File
@@ -385,7 +385,7 @@ void write_zero(int fd, size_t size) {
}
vector<string> file_to_vector(const char *filename) {
auto arr = vector<string>();
vector<string> arr;
if (access(filename, R_OK) != 0)
return arr;
char *line = nullptr;