Project

General

Profile

Bug #27

Compiling espresso3g ua for android 6.0.1

Added by Jean Yves BAUDY over 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Target version:
% Done:

100%

Device:
espresso3g

Description

When I try to complie by myself the  espresso3g ua for android 6.0.1 I have this error (works fine for android 7.1.1).

I use the guidelines in the wiki.

 

frameworks/support/v4/java/android/support/v4/media/TransportMediator.java:190: error: cannot access RemoteControlClient
        return mController != null ? mController.getRemoteControlClient() : null;
                                                ^
  class file for android.media.RemoteControlClient not found
frameworks/support/v4/java/android/support/v4/media/TransportMediator.java:240: error: cannot access OnPlaybackPositionUpdateListener
            mController.refreshState(mCallbacks.onIsPlaying(),
                       ^
  class file for android.media.RemoteControlClient$OnPlaybackPositionUpdateListener not found

History

#1 Updated by Andreas Blaesius over 2 years ago

Jean Yves BAUDY schrieb:

When I try to complie by myself the  espresso3g ua for android 6.0.1 I have this error (works fine for android 7.1.1).

I use the guidelines in the wiki.

 

frameworks/support/v4/java/android/support/v4/media/TransportMediator.java:190: error: cannot access RemoteControlClient
        return mController != null ? mController.getRemoteControlClient() : null;
                                                ^
  class file for android.media.RemoteControlClient not found
frameworks/support/v4/java/android/support/v4/media/TransportMediator.java:240: error: cannot access OnPlaybackPositionUpdateListener
            mController.refreshState(mCallbacks.onIsPlaying(),
                       ^
  class file for android.media.RemoteControlClient$OnPlaybackPositionUpdateListener not found

You are using JDK8, for Android 6 you need JDK7. You can also cherry-pick https://github.com/android-security/android_frameworks_support/commit/b03583b7d982d1b4a2d62844ecc4ba8bd077ca3a which should make JDK8 compatible.

#2 Updated by Andreas Blaesius over 2 years ago

  • Status changed from New to Feedback
  • Assignee set to Andreas Blaesius
  • % Done changed from 0 to 50

#3 Updated by Jean Yves BAUDY over 2 years ago

Andreas Blaesius wrote:

Jean Yves BAUDY schrieb:

When I try to complie by myself the  espresso3g ua for android 6.0.1 I have this error (works fine for android 7.1.1).

I use the guidelines in the wiki.

 

frameworks/support/v4/java/android/support/v4/media/TransportMediator.java:190: error: cannot access RemoteControlClient
        return mController != null ? mController.getRemoteControlClient() : null;
                                                ^
  class file for android.media.RemoteControlClient not found
frameworks/support/v4/java/android/support/v4/media/TransportMediator.java:240: error: cannot access OnPlaybackPositionUpdateListener
            mController.refreshState(mCallbacks.onIsPlaying(),
                       ^
  class file for android.media.RemoteControlClient$OnPlaybackPositionUpdateListener not found

You are using JDK8, for Android 6 you need JDK7. You can also cherry-pick https://github.com/android-security/android_frameworks_support/commit/b03583b7d982d1b4a2d62844ecc4ba8bd077ca3a which should make JDK8 compatible.

Many thanks for your reply, both solutions work. For the history the official build for espresso3g the BUILD_TYPE is userdebug. The lead into the presence of su in directory "/system/xbin.su". Some security applications verify the presence of su and if found the device is considered as rooted. With BUILD_TYPE=user no more su in the package. Is there any reason to build with userdebug be default ?.

Also thanks for the great work. I can still use my old galaxy tab2 with newer android version.

Regards

#4 Updated by Andreas Blaesius over 2 years ago

  • Status changed from Feedback to Resolved
  • % Done changed from 50 to 100

Wiki was updated to use JDK7. JDK8 support would need 2-3 forked repos (depending on google branch we use as base).

 

About the user builds instead userdebug: we'll discuss this internally, I never used user builds because I always need adb root for debugging and can't say if everything works fine on user.

#5 Updated by Andreas Blaesius almost 2 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF