Skip to content

Commit 8d1d4c2

Browse files
authored
alternative method to become root
"adb root" did not work for me. "su -" did!
1 parent af275d7 commit 8d1d4c2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/_components/vacuum.xiaomi_miio.markdown

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,8 @@ To fetch the token follow these instructions depending on your mobile phone plat
191191
4. `adb devices` should list your device
192192
5. `adb root` (does work for development builds only: ones with `ro.debuggable=1`)
193193
6. `adb shell`
194-
7. `echo "select name,localIP,token from devicerecord;" | sqlite3 /data/data/com.xiaomi.smarthome/databases/miio2.db` returns a list of all registered devices including IP address and token.
194+
7. (`su -` if `adb root` was not successful)
195+
8. `echo "select name,localIP,token from devicerecord;" | sqlite3 /data/data/com.xiaomi.smarthome/databases/miio2.db` returns a list of all registered devices including IP address and token.
195196

196197
#### {% linkable_title iOS %}
197198

0 commit comments

Comments
 (0)