Commit 80bae7d9 authored by mengcuiguang's avatar mengcuiguang

删除权限

parent c736f1a6
...@@ -4,45 +4,45 @@ ...@@ -4,45 +4,45 @@
package="com.wenshu.aiyuebao"> package="com.wenshu.aiyuebao">
<uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" /> <!-- <uses-permission android:name="android.permission.READ_PHONE_STATE" />-->
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> <!-- <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />-->
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <!-- <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />-->
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> <!-- <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />-->
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <!-- <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />-->
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" /> <!-- <uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />-->
<uses-permission android:name="android.permission.GET_TASKS" /> <!-- <uses-permission android:name="android.permission.GET_TASKS" />-->
<uses-permission android:name="android.permission.WAKE_LOCK" /> <!-- <uses-permission android:name="android.permission.WAKE_LOCK" />-->
<uses-permission android:name="android.permission.WRITE_SETTINGS" /> <!-- <uses-permission android:name="android.permission.WRITE_SETTINGS" />-->
<uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" /> <!-- <uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" />-->
<permission android:name="com.wenshu.aiyuebao.permission.JPUSH_MESSAGE" /> <!-- <permission android:name="com.wenshu.aiyuebao.permission.JPUSH_MESSAGE" />-->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <!-- <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />-->
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> <!-- <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />-->
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" /> <!-- <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />-->
<uses-permission android:name="com.wenshu.aiyuebao.permission.JPUSH_MESSAGE" /> <!-- <uses-permission android:name="com.wenshu.aiyuebao.permission.JPUSH_MESSAGE" />-->
<uses-permission android:name="android.permission.RECEIVE_USER_PRESENT" /> <!-- <uses-permission android:name="android.permission.RECEIVE_USER_PRESENT" />-->
<uses-permission android:name="android.permission.VIBRATE" /> <!-- <uses-permission android:name="android.permission.VIBRATE" />-->
<uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS" /> <!-- <uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS" />-->
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" /> <!-- <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />-->
<uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" /> <!-- <uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" />-->
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" /> <!-- <uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />-->
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" /> <!-- <uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />-->
<uses-permission android:name="android.permission.SET_WALLPAPER" /> <!-- <uses-permission android:name="android.permission.SET_WALLPAPER" />-->
<uses-permission android:name="android.permission.PACKAGE_USAGE_STATS" /> <!-- <uses-permission android:name="android.permission.PACKAGE_USAGE_STATS" />-->
<!-- 来电秀 --> <!-- &lt;!&ndash; 来电秀 &ndash;&gt;-->
<uses-permission android:name="android.permission.READ_CALL_LOG" /> <!-- <uses-permission android:name="android.permission.READ_CALL_LOG" />-->
<uses-permission android:name="android.permission.CALL_PHONE" /> <!-- <uses-permission android:name="android.permission.CALL_PHONE" />-->
<uses-permission android:name="android.permission.ANSWER_PHONE_CALLS" /> <!-- <uses-permission android:name="android.permission.ANSWER_PHONE_CALLS" />-->
<uses-permission android:name="com.wenshu.aiyuebao.permission" /> <!-- <uses-permission android:name="com.wenshu.aiyuebao.permission" />-->
<!-- 蘑菇星球 --> <!-- &lt;!&ndash; 蘑菇星球 &ndash;&gt;-->
<uses-permission android:name="android.permission.REQUEST_DELETE_PACKAGES" /> <!-- <uses-permission android:name="android.permission.REQUEST_DELETE_PACKAGES" />-->
<permission <!-- <permission-->
android:name="com.wenshu.aiyuebao.permission" <!-- android:name="com.wenshu.aiyuebao.permission"-->
android:protectionLevel="normal" /> <!-- android:protectionLevel="normal" />-->
<!-- 快手SDK内⾃定义的权限,与下载相关,aar中已经申请 --> <!-- 快手SDK内⾃定义的权限,与下载相关,aar中已经申请 -->
<permission <permission
......
...@@ -171,7 +171,7 @@ class LoginPresenter : BasePresenter<LoginView>() { ...@@ -171,7 +171,7 @@ class LoginPresenter : BasePresenter<LoginView>() {
when (code) { when (code) {
200 -> if (data != null) { 200 -> if (data != null) {
UserManager.getInstance().saveUserInfo(data) UserManager.getInstance().saveUserInfo(data)
saveTerminalInfo(data.consumer.pk_id) // saveTerminalInfo(data.consumer.pk_id)
view.loginSuc() view.loginSuc()
} }
else -> view.showToast(message) else -> view.showToast(message)
...@@ -211,7 +211,7 @@ class LoginPresenter : BasePresenter<LoginView>() { ...@@ -211,7 +211,7 @@ class LoginPresenter : BasePresenter<LoginView>() {
when (code) { when (code) {
200 -> if (data != null) { 200 -> if (data != null) {
UserManager.getInstance().saveUserInfo(data) UserManager.getInstance().saveUserInfo(data)
saveTerminalInfo(data.consumer.pk_id) // saveTerminalInfo(data.consumer.pk_id)
view.loginSuc() view.loginSuc()
} }
else -> view.showToast(message) else -> view.showToast(message)
......
...@@ -169,7 +169,8 @@ open class MyPresenter : BasePresenter<MyView>() { ...@@ -169,7 +169,8 @@ open class MyPresenter : BasePresenter<MyView>() {
when (code) { when (code) {
200 -> if (data != null) { 200 -> if (data != null) {
UserManager.getInstance().saveUserInfo(data) UserManager.getInstance().saveUserInfo(data)
saveTerminalInfo() // saveTerminalInfo()
view.userLoginSuc()
} }
else -> view.showToast(message) else -> view.showToast(message)
} }
......
...@@ -97,17 +97,20 @@ class WxLoginActivity : BaseActivity() ...@@ -97,17 +97,20 @@ class WxLoginActivity : BaseActivity()
return return
} }
RxPermissions(this) // RxPermissions(this)
.request(Manifest.permission.READ_PHONE_STATE) // .request(Manifest.permission.READ_PHONE_STATE)
.subscribe { granted: Boolean -> // .subscribe { granted: Boolean ->
if (granted) { // if (granted) {
// loginApi.setOnLoginListener(this@WxLoginActivity)
// loginApi.setPlatform(Wechat.NAME)
// loginApi.login(this@WxLoginActivity)
// } else {
// showMissingPermissionDialog("设备")
// }
// }
loginApi.setOnLoginListener(this@WxLoginActivity) loginApi.setOnLoginListener(this@WxLoginActivity)
loginApi.setPlatform(Wechat.NAME) loginApi.setPlatform(Wechat.NAME)
loginApi.login(this@WxLoginActivity) loginApi.login(this@WxLoginActivity)
} else {
showMissingPermissionDialog("设备")
}
}
} }
} }
} }
......
...@@ -1156,7 +1156,7 @@ class MyFragment : BaseFragment(), ...@@ -1156,7 +1156,7 @@ class MyFragment : BaseFragment(),
} }
private fun initManager() { private fun initManager() {
BannerManager.init() // BannerManager.init()
vedioAdingManager = VideoAdingManager.getInstance(activity) vedioAdingManager = VideoAdingManager.getInstance(activity)
// if (!TextUtils.isEmpty(userManager.userID)) { // if (!TextUtils.isEmpty(userManager.userID)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment