是否可以在非root用户手机上添加属性?

Tom*_*Tom 5 android adb seandroid

对于我的非root设备(我不允许root,所以我需要找到另一种方法),如果我这样做的话

adb shell setprop MY_PROP 1
Run Code Online (Sandbox Code Playgroud)

其次是

adb shell getprop MY_PROP
Run Code Online (Sandbox Code Playgroud)

我得到一个空白.

我该如何设置房产?

Ale*_* P. 2

默认情况下,shell不允许用户创建属性:

$ adb shell "setprop test.test 1; dmesg | grep test\.test"
[  271.706897,0] init: avc:  denied  { set } for property=test.test scontext=u:r:shell:s0 tcontext=u:object_r:default_prop:s0 tclass=property_service
[  271.707157,0] init: sys_prop: permission denied uid:2000  name:test.test
Run Code Online (Sandbox Code Playgroud)