@daniel_hk - the compiling of the Bluetooth APK from your github.com repo file fails.
From what I can tell, the first error is because the BluetoothMapService.java file doesn't have the definition for a static BluetoothMapService.MSG_OBEX_AUTH_CHALL; - Looking at Cyanogenmod's original file I see this value is missing (public static final int MSG_OBEX_AUTH_CHALL = 5003, however in your BluetoothMapService.java you seem to have redefined the values
However I am not sure if you have modified code elsewhere to use different variable names - Do you know if the 1st one should be updated to point to your new MSG_MAS_CONNECT static? also for the second and third errors (see below), should the variable be reverted to charset or updated to the new mCharset?
DanielHK repo - android_packages_apps_Bluetooth/src/com/android/bluetooth/map/BluetoothMapService.java
public static final int MSG_MAS_CONNECT = 5003; // Send at MAS connect, including the MAS_ID
public static final int MSG_MAS_CONNECT_CANCEL = 5004; // Send at auth. declined
public static final int MSG_ACQUIRE_WAKE_LOCK = 5005;
public static final int MSG_RELEASE_WAKE_LOCK = 5006;
Cyanogenmod Repo android_packages_apps_Bluetooth/src/com/android/bluetooth/map/BluetoothMapService.java
public static final int MSG_OBEX_AUTH_CHALL = 5003;
public static final int MSG_ACQUIRE_WAKE_LOCK = 5004;
public static final int MSG_RELEASE_WAKE_LOCK = 5005;
The second and third errors seem to be because the file BluetoothMapbMessage.java has a variable renamed to mCharset, instead of just charset
Danielhk repo - android_packages_apps_Bluetooth/src/com/android/bluetooth/map/BluetoothMapbMessage.java
/* BBODY attributes */
private long mPartId = INVALID_VALUE;
protected String mEncoding = null;
protected String mCharset = null;
private String mLanguage = null;
Cyanogenmod Repo - android_packages_apps_Bluetooth/src/com/android/bluetooth/map/BluetoothMapbMessage.java
/* BBODY attributes */
private long partId = INVALID_VALUE;
protected String encoding = null;
protected String charset = null;
private String language = null;
Errors
Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar
packages/apps/Bluetooth/src/com/android/bluetooth/map/BluetoothMapAuthenticator.java:60: error: cannot find symbol
msg.what = BluetoothMapService.MSG_OBEX_AUTH_CHALL;
^
symbol: variable MSG_OBEX_AUTH_CHALL
location: class BluetoothMapService
packages/apps/Bluetooth/src/com/android/bluetooth/map/BluetoothMapbMessageMmsEmail.java:240: error: cannot find symbol
charset = null;
^
symbol: variable charset
location: class BluetoothMapbMessageMmsEmail
packages/apps/Bluetooth/src/com/android/bluetooth/map/BluetoothMapbMessageMmsEmail.java:244: error: cannot find symbol
charset = "UTF-8";
^
symbol: variable charset
location: class BluetoothMapbMessageMmsEmail
Thanks,
Peter
From what I can tell, the first error is because the BluetoothMapService.java file doesn't have the definition for a static BluetoothMapService.MSG_OBEX_AUTH_CHALL; - Looking at Cyanogenmod's original file I see this value is missing (public static final int MSG_OBEX_AUTH_CHALL = 5003, however in your BluetoothMapService.java you seem to have redefined the values
However I am not sure if you have modified code elsewhere to use different variable names - Do you know if the 1st one should be updated to point to your new MSG_MAS_CONNECT static? also for the second and third errors (see below), should the variable be reverted to charset or updated to the new mCharset?
DanielHK repo - android_packages_apps_Bluetooth/src/com/android/bluetooth/map/BluetoothMapService.java
public static final int MSG_MAS_CONNECT = 5003; // Send at MAS connect, including the MAS_ID
public static final int MSG_MAS_CONNECT_CANCEL = 5004; // Send at auth. declined
public static final int MSG_ACQUIRE_WAKE_LOCK = 5005;
public static final int MSG_RELEASE_WAKE_LOCK = 5006;
Cyanogenmod Repo android_packages_apps_Bluetooth/src/com/android/bluetooth/map/BluetoothMapService.java
public static final int MSG_OBEX_AUTH_CHALL = 5003;
public static final int MSG_ACQUIRE_WAKE_LOCK = 5004;
public static final int MSG_RELEASE_WAKE_LOCK = 5005;
The second and third errors seem to be because the file BluetoothMapbMessage.java has a variable renamed to mCharset, instead of just charset
Danielhk repo - android_packages_apps_Bluetooth/src/com/android/bluetooth/map/BluetoothMapbMessage.java
/* BBODY attributes */
private long mPartId = INVALID_VALUE;
protected String mEncoding = null;
protected String mCharset = null;
private String mLanguage = null;
Cyanogenmod Repo - android_packages_apps_Bluetooth/src/com/android/bluetooth/map/BluetoothMapbMessage.java
/* BBODY attributes */
private long partId = INVALID_VALUE;
protected String encoding = null;
protected String charset = null;
private String language = null;
Errors
Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar
packages/apps/Bluetooth/src/com/android/bluetooth/map/BluetoothMapAuthenticator.java:60: error: cannot find symbol
msg.what = BluetoothMapService.MSG_OBEX_AUTH_CHALL;
^
symbol: variable MSG_OBEX_AUTH_CHALL
location: class BluetoothMapService
packages/apps/Bluetooth/src/com/android/bluetooth/map/BluetoothMapbMessageMmsEmail.java:240: error: cannot find symbol
charset = null;
^
symbol: variable charset
location: class BluetoothMapbMessageMmsEmail
packages/apps/Bluetooth/src/com/android/bluetooth/map/BluetoothMapbMessageMmsEmail.java:244: error: cannot find symbol
charset = "UTF-8";
^
symbol: variable charset
location: class BluetoothMapbMessageMmsEmail
Thanks,
Peter
Last edited: