Tiny-FFmpeg-Android icon indicating copy to clipboard operation
Tiny-FFmpeg-Android copied to clipboard

Will rejected by Google

Open AppWerft opened this issue 6 years ago • 7 comments

In my app I downloaded the binary from internet for usage. This is forbidden by rule.

AppWerft avatar Jan 19 '20 14:01 AppWerft

@AppWerft Yes, it may be banned by google play, but I don’t know why my app uses this library, but it can also be uploaded to google play.

equationl avatar Jan 21 '20 05:01 equationl

You are a lucky man. I have built a Titanium module that loads binary from net and copy to app folder. This was banned 1 week ago. This is my patch: https://github.com/AppWerft/Ti.FFmpeg/blob/master/android/src/com/github/hiteshsondhi88/libffmpeg/FileUtils.java#L28-L47

AppWerft avatar Jan 21 '20 07:01 AppWerft

What does Google say?

equationl avatar Jan 21 '20 13:01 equationl

It is not allowed to load executables like (jar, aar …) after installation. Now I think about zipping. This reduced about 50%

AppWerft avatar Jan 21 '20 13:01 AppWerft

Ok, Get it.

equationl avatar Jan 22 '20 05:01 equationl

@equationl This library has 2 major issues, I decided to comment here instead of opening a new issue.

The first issue is that the files are located in the assets folder. Instead, the binaries should be renamed to lib..ffmpeg..so and placed in the jniLibs folder. If you are targeting 29, you can not access /data/user/0/com.package.name/files/ffmpeg.

Secondly, you are "modifying" code after installation, this is against Google's policy (see changes in Android Q):

Code must be loaded as-is, and must not be modified.

Doing what you are doing will most definitely get your application banned.

HBiSoft avatar Feb 06 '20 12:02 HBiSoft

@HBiSoft Yes, I see. I am thinking how to solve it

equationl avatar Feb 09 '20 07:02 equationl