Compare commits

..

No commits in common. "0bcee6162b5a6eaf4502e673a583cbedf852311e" and "578106404a0f99f0b99204b2f896056bb430012b" have entirely different histories.

3 changed files with 6 additions and 44 deletions

View File

@ -4,9 +4,7 @@ RUN apk add --no-cache build-base
WORKDIR /app
COPY Makefile .
COPY src src/
COPY include include/
COPY . .
RUN make
@ -14,8 +12,8 @@ FROM alpine
WORKDIR /srv
COPY static static/
COPY --from=builder /app .
COPY --from=builder /app/build/server .
RUN apk add --no-cache gcompat
CMD ["./server", "5000"]
CMD ["build/server", "5000"]

View File

@ -1,35 +0,0 @@
First, decompile apk file with [apktool](https://apktool.org):
```
apktool d <file_name>.apk
```
Replace assets or edit *Manifesst.xml*. [smali2java](https://github.com/AlexeySoshin/smali2java) can be of use for code modifications.
Recompile apk:
```
apktool b <file_name>
```
Alignment is necessary for modern android versions (I beleave, 30+ SDK):
```
zipalign -v -f -p 4 <file_name>/dist/<file_name>.apk aligned-<file_name>.apk
```
Create a signing key. Fields values do not matter. Especially for personal use.
```
keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 1000
```
Actually sign apk with it:
```
apksigner.jar sign -ks my-release-key.keystore --ks-key-alias alias_name aligned-<file_name>.apk
```
It will overwrite the provided apk with a signed one.
We're awesome!

View File

@ -1,8 +1,7 @@
1594048366000 My_first_article_on_this_site
1594048366 My_first_article_on_this_site
1606819380000 Ugra_Hantaton
1619034957605 Stack_VM_V1.0
1627839955679 Publite_-_an_Ebook_reader
1646570601234 Mount_WSL_partition_on_Arch_Linux
1653350638050 Use_phone_as_camera_for_linux_desktop
1694581049776 Use_phone_camera_for_linux_desktop_(2023)
1738537323514 APK_modification