incubator-weex icon indicating copy to clipboard operation
incubator-weex copied to clipboard

[android] android targetSdkVersion 29 ashmem issue

Open neuyu opened this issue 4 years ago • 12 comments

As Google Play warn all apps need update targetSdkVersion to 29 before 2020.10, We must handle this issue, https://github.com/apache/incubator-weex/issues/2706

neuyu avatar Jul 27 '20 03:07 neuyu

Warnings
:warning: No Changelog changes! - Can you add a Changelog? To do so,append your changes to the changelog.md
:warning: Current pr not bind the milestone
:warning: If your PR is about fixing a bug excluding crash the code,you should add the demo link in the PR description. Demo link: http://dotwe.org/vue

Generated by :no_entry_sign: dangerJS against 8c5d8489430a5c8ea0028e941ac5b7639a1867e2

weex-bot avatar Jul 27 '20 03:07 weex-bot

Successful self-test

neuyu avatar Jul 27 '20 06:07 neuyu

Fails
:no_entry_sign: AndroidLint Result
:no_entry_sign:

Missing Permissions

../../src/main/java/org/apache/weex/WXEnvironment.java:410: Missing permissions required by TelephonyManager.getDeviceId: android.permission.READ_PRIVILEGED_PHONE_STATE
 407     String ret = "";
 408     if(sApplication != null){
 409       try{
 410         ret = ((TelephonyManager) sApplication                                                      
 411             .getSystemService(Context.TELEPHONY_SERVICE)).getDeviceId();
 412       }catch (SecurityException | NullPointerException e){
 413         WXLogUtils.e(WXLogUtils.getStackTrace(e));

../../src/main/java/org/apache/weex/WXEnvironment.java:410: Missing permissions required by TelephonyManager.getDeviceId: android.permission.READ_PRIVILEGED_PHONE_STATE

 407     String ret = "";
 408     if(sApplication != null){
 409       try{
 410         ret = ((TelephonyManager) sApplication                                                      
 411             .getSystemService(Context.TELEPHONY_SERVICE)).getDeviceId();
 412       }catch (SecurityException | NullPointerException e){
 413         WXLogUtils.e(WXLogUtils.getStackTrace(e));
MissingPermission Correctness Error Priority 9/10
:no_entry_sign: AndroidLint Result
:no_entry_sign:

Missing Permissions

../../src/main/java/org/apache/weex/WXEnvironment.java:410: Missing permissions required by TelephonyManager.getDeviceId: android.permission.READ_PRIVILEGED_PHONE_STATE
 407     String ret = "";
 408     if(sApplication != null){
 409       try{
 410         ret = ((TelephonyManager) sApplication                                                      
 411             .getSystemService(Context.TELEPHONY_SERVICE)).getDeviceId();
 412       }catch (SecurityException | NullPointerException e){
 413         WXLogUtils.e(WXLogUtils.getStackTrace(e));

../../src/main/java/org/apache/weex/WXEnvironment.java:410: Missing permissions required by TelephonyManager.getDeviceId: android.permission.READ_PRIVILEGED_PHONE_STATE

 407     String ret = "";
 408     if(sApplication != null){
 409       try{
 410         ret = ((TelephonyManager) sApplication                                                      
 411             .getSystemService(Context.TELEPHONY_SERVICE)).getDeviceId();
 412       }catch (SecurityException | NullPointerException e){
 413         WXLogUtils.e(WXLogUtils.getStackTrace(e));
MissingPermission Correctness Error Priority 9/10

Generated by :no_entry_sign: dangerJS against 8c5d8489430a5c8ea0028e941ac5b7639a1867e2

weex-bot avatar Jul 27 '20 06:07 weex-bot

Just judging the api level is a problem with Android R.Should judge target sdk version and api level together. if (g_targetSDKInt >= 29 && device_api_level() >= 29)

ikantech avatar Aug 05 '20 08:08 ikantech

As Google Play warn all apps need update targetSdkVersion to 29 before 2020.10, We must handle this issue, #2706

Successful self-test

大佬,修改了c文件后要如何打包呢?

lzq879069670 avatar Sep 04 '20 12:09 lzq879069670

targetSdkVersion29的问题解决了吗?我用后面c文件修改后的重新打包aar还是不行

lovemyapple avatar Sep 11 '20 01:09 lovemyapple

Now that google play has started to execute, can we accelerate the completion of this matter?

leif0419 avatar Sep 11 '20 09:09 leif0419

targetSdkVersion29的问题解决了吗?我们着急提交包啊,不支持29不让提包

hualiang0537 avatar Sep 11 '20 09:09 hualiang0537

成功的自检

现在项目着急上线,我怎么操作来实现,或者给我联系方式来提问,感谢

leif0419 avatar Sep 11 '20 09:09 leif0419

我用后面c文件修改后的重新打包aar还是不行

roger2380 avatar Sep 22 '20 06:09 roger2380

targetSdkVersion29的问题解决了吗?我用后面c文件修改后的重新打包aar还是不行

同样不行

roger2380 avatar Sep 22 '20 06:09 roger2380

成功的自测

确定成功了吗?大佬

hxs2mr avatar Oct 15 '20 02:10 hxs2mr