fix: Add build script and fix manifest

- Add build-apk.sh for easy compilation
- Simplify AndroidManifest.xml
- Fix themes.xml to use basic Android themes
- Enable BuildConfig
- Add okhttp-dnsoverhttps dependency
This commit is contained in:
Renato
2026-01-28 22:36:38 +00:00
parent d3ce7872e7
commit 2ccdf3a78c
11853 changed files with 741631 additions and 543 deletions

View File

@@ -0,0 +1,14 @@
#extension GL_OES_EGL_image_external : require
precision mediump float;
uniform samplerExternalOES texUnit;
uniform float opacity;
uniform float gamma;
varying vec2 UV;
void main()
{
vec4 color = texture2D(texUnit, UV);
vec3 rgb = pow(color.rgb * opacity, vec3(gamma));
gl_FragColor = vec4(rgb, 1.0);
}

View File

@@ -0,0 +1,12 @@
uniform mat4 proj_matrix;
uniform mat4 tex_matrix;
attribute vec2 position;
attribute vec2 uv;
varying vec2 UV;
void main()
{
vec4 transformed_uv = tex_matrix * vec4(uv.x, uv.y, 1.0, 1.0);
UV = transformed_uv.st / transformed_uv.q;
gl_Position = proj_matrix * vec4(position.x, position.y, 0.0, 1.0);
}

View File

@@ -0,0 +1,3 @@
# Default app categories used if neither the package nor installer sets anything
# First column is package name, second column is raw ApplicationInfo.CATEGORY value
com.android.printspooler,7
1 # Default app categories used if neither the package nor installer sets anything
2 # First column is package name, second column is raw ApplicationInfo.CATEGORY value
3 com.android.printspooler,7

View File

@@ -0,0 +1,19 @@
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"/>
<title>Webpage not available</title>
<style type="text/css">
body { margin-top: 0px; padding-top: 0px; }
h2 { margin-top: 5px; padding-top: 0px; }
</style>
<body>
<img src="file:///android_asset/webkit/android-weberror.png" align="top" />
<h2>Webpage not available</h2>
<p>The webpage at <a href="%s">%s</a> could not be loaded because:</p>
<!-- The %e is replaced by a localized error string -->
<p>%e</p>
</body>
</head>
</html>

View File

@@ -0,0 +1,26 @@
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"/>
<title>Webpage not available</title>
<style type="text/css">
body { margin-top: 0px; padding-top: 0px; }
h2 { margin-top: 5px; padding-top: 0px; }
</style>
<body>
<img src="file:///android_asset/webkit/android-weberror.png" align="top" />
<h2>Webpage not available</h2>
<p>The webpage at <a href="%s">%s</a> might be
temporarily down or it may have moved permanently to a new web
address.</p>
<p><b>Suggestions:</b></p>
<ul>
<li>Make sure you have a data connection</li>
<li>Reload this webpage later</li>
<li>Check the address you entered</li>
</ul>
</body>
</head>
</html>