Comments (2)
Same experience with Sony Xperia Z3 Compact and Z5 compact, Android 7.1
from envayasms.
I was having the same issue. after a few days of messing with the code I noticed this method was returning empty bytes[]
`
public byte[] getData() throws IOException
{
int length = (int)getDataLength();
byte[] bytes = new byte[length];
int offset = 0;
int bytesRead = 0;
InputStream in = openInputStream();
while (offset < bytes.length)
{
bytesRead = in.read(bytes, offset, bytes.length - offset);
if (bytesRead < 0)
{
break;
}
offset += bytesRead;
}
in.close();
if (offset < bytes.length)
{
throw new IOException("Failed to read complete data of MMS part");
}
return bytes;
}
`
I updated the method to this and now it works:
` public byte[] getData() throws IOException
{
InputStream inputStream = openInputStream();
ByteArrayOutputStream buffer = new ByteArrayOutputStream();
int nRead;
byte[] data = new byte[RAW_DATA_BLOCK_SIZE];
while ((nRead = inputStream.read(data, 0, data.length)) != -1) {
buffer.write(data, 0, nRead);
}
buffer.flush();
return buffer.toByteArray();
}
`
I have attached a modified version of the .apk containing this change;
2021-EnvayaSMS-release_imgs_in.zip
from envayasms.
Related Issues (20)
- force quitting after phone receives MMS HOT 8
- MMS messages not forwarded HOT 13
- Signature check fails if Server URL is domain with no trailing slash
- double sim card HOT 3
- errors when sending sms (in arabic)
- MMS results in invalid password
- Invalid response type text/xml or html HOT 2
- Problem running envayaSMS apk
- Question - Why org.apache.http.client.HttpClient instead of android.net.http.AndroidHttpClient?
- Crash Report
- Configuration Problem
- httpserver.php file missing
- Beginner Issue HOT 2
- expansion packs code HOT 3
- Server receiving blank post request HOT 2
- Application Not Responding (ANR) issue... HOT 1
- WHat is AMQP? HOT 1
- cloudamqp and EnvayaSMS HOT 1
- Can't manage to make extension packs working HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from envayasms.