fix strange LD_PATH error with last twrp
authorGuillaume Castagnino <casta@xwing.info>
Tue, 2 Jun 2015 08:29:17 +0000 (10:29 +0200)
committerGuillaume Castagnino <casta@xwing.info>
Tue, 2 Jun 2015 08:29:17 +0000 (10:29 +0200)
cm.sh

diff --git a/cm.sh b/cm.sh
index 616949d4171fbad165c17993d758df1da99805ec..926432e689e31fa3af6553b335ffb40f2928a0f7 100755 (executable)
--- a/cm.sh
+++ b/cm.sh
@@ -26,7 +26,7 @@ echo "Fix google data leaks"
 #settings put global captive_portal_detection_enabled 0
 #settings put global ntp_server 127.0.0.1
 # in recovery, hack into sqlite db
-sqlite3 /data/data/com.android.providers.settings/databases/settings.db <<EOT
+LD_LIBRARY_PATH=/system/lib sqlite3 /data/data/com.android.providers.settings/databases/settings.db <<EOT
 UPDATE global SET value = '127.0.0.1' WHERE name = 'captive_portal_server';
 UPDATE global SET value = '0' WHERE name = 'captive_portal_detection_enabled';
 UPDATE global SET value = '127.0.0.1' WHERE name = 'ntp_server';