Skip to content

Commit

Permalink
Change config add jar.
Browse files Browse the repository at this point in the history
  • Loading branch information
milesking committed Oct 16, 2019
1 parent a461939 commit dfde284
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 11 deletions.
15 changes: 11 additions & 4 deletions CarLife-Android-Vehicle/ant.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,17 @@
proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard.cfg

# Project target.
#target=android-21
#key.store=carlife.keystore
#key.store.password=m5ZRYQe4yrpm6jdx
#key.alias=carlife.keystore
#key.alias.password=m5ZRYQe4yrpm6jdx
#javaoption.test=false
#android.library=false
target=android-21
key.store=carlife.keystore
key.store.password=m5ZRYQe4yrpm6jdx
key.alias=carlife.keystore
key.alias.password=m5ZRYQe4yrpm6jdx
key.store.password=android
key.alias=androiddebugkey
key.alias.password=android
javaoption.test=false
android.library=false
android.library=false
2 changes: 1 addition & 1 deletion CarLife-Android-Vehicle/assets/bdcf
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ MEDIA_SAMPLE_RATE = 0
CONNECT_TYPE_ANDROID = 1

# Iphone手机的连接类型 1:Wifi 2:保留 4:EAP 5:UsbMuxd
CONNECT_TYPE_IPHONE = 4
CONNECT_TYPE_IPHONE = 1

#Next song
#KEYCODE_SEEK_ADD = 23
Expand Down
Binary file added CarLife-Android-Vehicle/libs/JavaPNS_2.2.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion CarLife-Android-Vehicle/project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# Project target.
target=android-21
#ndk.dir=c:\\android-ndk-r7b
sdk.dir=D:\\android-sdk-windows
sdk.dir=/Users/mileshome/Library/Android/sdk
key.store=carlife.keystore
key.store.password=m5ZRYQe4yrpm6jdx
key.alias=carlife.keystore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public void eanUinit() {
eaNativeFd = NAGATIVE;
stopEanReadThread();
stopSocketReadThread();
JniEanMethod.closeEan();
// JniEanMethod.closeEan();
LogUtil.e(TAG, "Close ean port /dev/mfi-ean");
}

Expand Down Expand Up @@ -650,7 +650,7 @@ public void run() {
}
eanDataLen = JniEanMethod.eanRead(eanData, EAN_BULK_BUFFER_SIZE);
if (eanDataLen < 0) {
JniEanMethod.closeEan();
// JniEanMethod.closeEan();
// devStatus = JniEanMethod.openEan();
if (NAGATIVE == devStatus) {
LogUtil.e(TAG, "read thread Open ean port /dev/mfi-ean failed devStatus = " + devStatus);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -310,11 +310,11 @@ private int readBdcf() {
String line = null;
String[] keyValue = null;
int linenum = 1;
propertyMap = new HashMap<String, String>();

try {
bdcf = new File(CONF_FILE_DIR + "/" + CONF_FILE);
reader = new BufferedReader(new FileReader(bdcf));
propertyMap = new HashMap<String, String>();

while ((line = reader.readLine()) != null) {
LogUtil.d(TAG, "line " + linenum + ": " + line);
Expand Down Expand Up @@ -352,8 +352,8 @@ private int readBdcf() {
propertyMap.put("FOCUS_UI", "false");
propertyMap.put("MEDIA_SAMPLE_RATE", "0");
propertyMap.put("CONNECT_TYPE_ANDROID", "1");
propertyMap.put("CONNECT_TYPE_IPHONE", "4");
propertyMap.put("AUDIO_TRANSMISSION_MODE=0");
propertyMap.put("CONNECT_TYPE_IPHONE", "1");
propertyMap.put("AUDIO_TRANSMISSION_MODE", "0");
propertyMap.put("CONTENT_ENCRYPTION", "true");
propertyMap.put("ENGINE_TYPE", "0");
} catch (Exception e) {
Expand Down

0 comments on commit dfde284

Please sign in to comment.