Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
Magisk
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Magisk
Commits
232ae2a1
Commit
232ae2a1
authored
May 08, 2020
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update resetprop to partially use system impl
parent
aa8b2310
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
166 additions
and
124 deletions
+166
-124
resetprop.hpp
native/jni/include/resetprop.hpp
+0
-1
persist_properties.cpp
native/jni/resetprop/persist_properties.cpp
+2
-0
resetprop.cpp
native/jni/resetprop/resetprop.cpp
+162
-121
_system_properties.h
native/jni/systemproperties/include/_system_properties.h
+1
-1
system_property_api.cpp
native/jni/systemproperties/system_property_api.cpp
+1
-1
No files found.
native/jni/include/resetprop.hpp
View file @
232ae2a1
...
...
@@ -3,7 +3,6 @@
#include <string>
#include <functional>
bool
prop_exist
(
const
char
*
name
);
int
setprop
(
const
char
*
name
,
const
char
*
value
,
bool
trigger
=
true
);
std
::
string
getprop
(
const
char
*
name
,
bool
persist
=
false
);
void
getprops
(
void
(
*
callback
)(
const
char
*
,
const
char
*
,
void
*
),
...
...
native/jni/resetprop/persist_properties.cpp
View file @
232ae2a1
...
...
@@ -88,6 +88,8 @@ const pb_field_t PersistentProperties_fields[2] = {
* End of auto generated code
* ***************************/
bool
use_pb
=
false
;
#ifdef APPLET_STUB_MAIN
struct
{
void
push_back
(...){};
...
...
native/jni/resetprop/resetprop.cpp
View file @
232ae2a1
This diff is collapsed.
Click to expand it.
native/jni/systemproperties/include/_system_properties.h
View file @
232ae2a1
...
...
@@ -109,7 +109,7 @@ int __system_property_add(const char* __name, unsigned int __name_length, const
**
** Returns 0 on success, -1 if the property area is full.
*/
int
__system_property_del
(
const
char
*
__name
);
int
__system_property_del
ete
(
const
char
*
__name
);
/* Update the value of a system property returned by
** __system_property_find. Can only be done by a single process
...
...
native/jni/systemproperties/system_property_api.cpp
View file @
232ae2a1
...
...
@@ -100,7 +100,7 @@ int __system_property_add(const char* name, unsigned int namelen, const char* va
}
__BIONIC_WEAK_FOR_NATIVE_BRIDGE
int
__system_property_del
(
const
char
*
name
)
{
int
__system_property_del
ete
(
const
char
*
name
)
{
return
system_properties
.
Delete
(
name
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment