I was trying to recompile an android application that was written around 2014. Most of the stuff is working except LocalSocketAddress issue. Here is sample of code which is not working
private final LocalSocketAddress mSocketPath;
mSocketPath = new LocalSocketAddress(socketPath, Namespace.FILESYSTEM);
try {
s.connect(mSocketPath);
synchronized(this) {
mSocket = s;
mInputStream = s.getInputStream();
mOutputStream = s.getOutputStream();
}
return true;
} catch (IOException e) {
e.printStackTrace();
}
In the Logcat I see the following exception:
12-13 10:48:33.373 13951 14035 W System.err: java.io.IOException: No such file or directory
12-13 10:48:33.373 13951 14035 W System.err: at android.net.LocalSocketImpl.connectLocal(Native Method)
12-13 10:48:33.373 13951 14035 W System.err: at android.net.LocalSocketImpl.connect(LocalSocketImpl.java:299)
12-13 10:48:33.373 13951 14035 W System.err: at android.net.LocalSocket.connect(LocalSocket.java:130)
12-13 10:48:33.373 13951 14035 W System.err: at gpsplus.rtkgps.RtklibLocalSocketThread.connectLoop(RtklibLocalSocketThread.java:165)
12-13 10:48:33.373 13951 14035 W System.err: at gpsplus.rtkgps.RtklibLocalSocketThread.run(RtklibLocalSocketThread.java:246)
Present compiler andriod: 2.2.3. My buid.gradle file I mentioned the minSdkversion is 23 as well as tagetSdkversion is 23. Also set user permission on manifests file.
Can anybody please help me to solve this issue?