| .. | .. |
|---|
| 126 | 126 | */ |
|---|
| 127 | 127 | String path = intent.getStringExtra("path"); |
|---|
| 128 | 128 | if (!TextUtils.isEmpty(path)) { |
|---|
| 129 | | - String params = "pm install -r " + path; |
|---|
| 130 | | - String result = mUtils.getRootCmdSilent(params); |
|---|
| 131 | | - Log.i(TAG, "onReceive: PKG_INSTALL, params = " + params + ", result = " + result); |
|---|
| 129 | + MyApplication.getApplication().getAndroidAPI().sysctrl_installApplicationLocal(path); |
|---|
| 130 | + Log.i(TAG, "onReceive: PKG_INSTALL, path = " + path); |
|---|
| 132 | 131 | } |
|---|
| 133 | 132 | } else if (action.equals("com.nodka.action.PKG_UNINSTALL")) { |
|---|
| 134 | 133 | /** |
|---|
| .. | .. |
|---|
| 142 | 141 | */ |
|---|
| 143 | 142 | String pkgName = intent.getStringExtra("pkgName"); |
|---|
| 144 | 143 | if (!TextUtils.isEmpty(pkgName)) { |
|---|
| 145 | | - String params = "pm uninstall " + pkgName; |
|---|
| 146 | | - String result = mUtils.getRootCmdSilent(params); |
|---|
| 147 | | - Log.i(TAG, "onReceive: PKG_UNINSTALL, params = " + params + ", result = " + result); |
|---|
| 144 | + MyApplication.getApplication().getAndroidAPI().sysctrl_uninstallApplicationLocal(pkgName); |
|---|
| 145 | + Log.i(TAG, "onReceive: PKG_UNINSTALL, pkgName = " + pkgName); |
|---|
| 148 | 146 | } |
|---|
| 149 | 147 | } else if (action.equals("com.nodka.action.BLUETOOTH")) { |
|---|
| 150 | 148 | /** |
|---|