I'm trying to add system properties that will be available for 'adb' access.
Following this thread: How to add new System Properties in java
I tried doing the following:
System.setProperty("TEST", "test");
String prop = (System.getProperty("TEST"));
Toast.makeText(LoginActivity.this, prop, Toast.LENGTH_LONG).show();
The last line displays a good result (I see a Toast with "test") so I know that the property was set properly.
When I try to access the same property for adb, I get a null value:
adb shell
getprop TEST
(response is empty) Any help would be really appreciated. Thanks, Amir