Compare commits

..

4 Commits

Author SHA1 Message Date
6730b1e54e Update android note 2022-03-27 09:04:34 +00:00
ec46e78628 Fix links 2022-03-27 09:04:23 +00:00
1e9a9f6766 Add sensors, switch t0 font 2022-03-27 09:03:46 +00:00
20e58cd15f Remove buttons from articles, move return to home 2022-03-27 09:02:54 +00:00
7 changed files with 17 additions and 17 deletions

View File

@ -8,7 +8,7 @@ https://archive.ph/zDaV6
- used during Lutron hacking
Tools:
$ sudo apt install adb apktool openjdk-11-jdk-headless zipalign
$ sudo apt install adb apktool openjdk-11-jdk-headless zipalign apksigner
$ locate apktool
- replace apktool with new version:
- https://github.com/iBotPeaches/Apktool/releases
@ -29,16 +29,23 @@ $ apktool d application.apk -o output/
Compile:
$ apktool b output/ --use-aapt2 -o patched.apk
$ zipalign 4 patched.apk patched2.apk
Sign:
- disable verification over USB in developer settings?
- the following just once:
$ keytool -genkey -v -keystore release.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000
$ jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore release.keystore patched.apk alias_name
$ apksigner sign --ks release.keystore patched2.apk
Install:
$ adb install patched.apk
$ adb install patched2.apk
Read logs:
$ adb logcat -c
Old instructions
----------------
$ jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore release.keystore patched.apk alias_name

View File

@ -56,7 +56,7 @@ CATEGORIES_SAVE_AS = ''
TAGS_SAVE_AS = ''
INDEX_SAVE_AS = 'index.html'
ARTICLE_URL = '{short}/'
ARTICLE_URL = '{short}'
ARTICLE_SAVE_AS = '{short}/index.html'
PAGE_URL = '{slug}'
PAGE_SAVE_AS = '{slug}/index.html'

View File

@ -56,7 +56,7 @@ CATEGORIES_SAVE_AS = ''
TAGS_SAVE_AS = ''
INDEX_SAVE_AS = 'index.html'
ARTICLE_URL = '{short}/'
ARTICLE_URL = '{short}'
ARTICLE_SAVE_AS = '{short}/index.html'
PAGE_URL = '{slug}'
PAGE_SAVE_AS = '{slug}/index.html'

View File

@ -1,2 +1,2 @@
{% block meta %}{% endblock %}<link rel=icon href=data:,>{% block style %}{% endblock %}<pre>{% block content %}
{% block meta %}{% endblock %}<link rel=icon href=data:,>{% block style %}{% endblock %}<pre style=font:unset>{% block content %}
{% endblock %}

View File

@ -1,7 +1,7 @@
{% extends "base.html" %}
{% block content %}
Hi, I'm Tanner! I like home automation, privacy, bots,
Python, <a href=d>sensors</a>, Debian, coffee, and makerspaces.
Python, <a href=d>sensors*</a>, Debian, coffee, and makerspaces.
Please sign my <a href=g>Guest Book</a>!

View File

@ -25,12 +25,7 @@
{% endblock %}
{% block info %}
Tanner Collin
<p class="contact-icons">
<a href="mailto:site4@tannercollin.com" rel="noreferrer noopener"><img alt="email" src="/theme/mail.svg" width="20" height="20" /></a>
<a href="https://t.me/tannercollin" target="_blank" rel="noreferrer noopener"><img alt="telegram" src="/theme/telegram.svg" width="20" height="20" /></a>
<a href="https://github.com/tannercollin" target="_blank" rel="noreferrer noopener"><img alt="github" src="/theme/github.svg" width="20" height="20" /></a>
</p>
<p><a href="/">Return Home</a></p>
{% endblock %}
{% block content %}
@ -41,7 +36,6 @@
<div class="content">
{% endif %}
<p><a href="/">← Return to Home</a></p>
<header>
<h1>{{ article.title }}</h1>
<div class="summary">

View File

@ -4,7 +4,7 @@ html {
body {
text-rendering: optimizeLegibility;
font: 1.1rem/1.0 sans-serif;
font-family: serif;
}
a {
@ -120,6 +120,7 @@ pre {
float: left;
width: 8rem;
text-align: right;
white-space: nowrap;
}
.bar .me {
@ -144,9 +145,7 @@ pre {
@media screen and (max-width:36rem) {
.bar {
display: table;
overflow: auto;
margin: auto;
margin-top: -0.5rem;
}