Nikita Android 0.7.0 (2022-06-29) - Android 11 app playground for Nikita Noark5 Core REST

Ole Aamot ole at aamotsoftware.no
Tue Aug 2 06:08:31 CEST 2022


Hi Thomas,

On Wed, Jun 29, 2022 at 9:41 AM Thomas Sødring via nikita-noark <
nikita-noark at nuug.no> wrote:

> Hi Ole,
>
> Thanks for your efforts, I really appreciate them. I think it is wonderful
> that someone is looking at the mobile side of things. There are two ways
> you can go.
>

I have published the latest code at
https://blog.oleaamot.no/src/nikita-android-0.7.0.zip (ZIP archive)
https://blog.oleaamot.no/src/nikita/android/nikita/app/build/outputs/apk/release/app-release.apk
(APK installation file)


> 1. Android app for nikita (like nikita-gui) just as an app
>

Yes, REST/HTTP client with the nikita-gui web look.


> 2. Document capture from an android
>

https://github.com/signalapp/libsignal-protocol-java

A few years ago, we had a project that developed an app that allowed a user
> to pick sms/mms messages and send them to the Noark system. The report
> seems to be unavailable, so I can't share it any more. This concept is a
> little more fun to work with. You could also perhaps work with document
> capture of signal messages.
>

https://github.com/signalapp/libsignal-protocol-java

package org.whispersystems.libsignal;

import junit.framework.TestCase;

import org.whispersystems.libsignal.ecc.Curve;
import org.whispersystems.libsignal.ecc.ECKeyPair;

public class CurveTest extends TestCase {

public void testPureJava() {
assertTrue(Curve.isNative());
}

public void testLargeSignatures() throws InvalidKeyException {
ECKeyPair keys = Curve.generateKeyPair();
byte[] message = new byte[1024 * 1024];
byte[] signature = Curve.calculateSignature(keys.getPrivateKey(), message);

assertTrue(Curve.verifySignature(keys.getPublicKey(), message, signature));

message[0] ^= 0x01;

assertFalse(Curve.verifySignature(keys.getPublicKey(), message, signature));
}

}

> I think that your question makes me think that nikita should have a
> section for related work. This will allow for an easier way to show
> integrations to Noark without introducing too much complexity to the
> source. I think the gui should be an own project, but see that it is useful
> for someone to see how everything hangs together. But it does not make
> sense to add many new subprojects to the nikita codebase. It's better to
> share a link to them.
>

OK.  I will post to the mailing list for now on my progress for Android.

>
> So perhaps I should add a directory on gitlab that will allow you to have
> a page where you link to your work. I hope that is an approach you think is
> OK.
>

Feel free to copy the code from the repository, only issue at the moment is
that it does not build with an old gradle distribution in Android Studio.


> Thanks for your efforts. We really appreciate the love you show nikita :)
>

Thank you, summer is probably over when this message reaches you!

Ole

------------------------------
> *Fra:* Ole Aamot <ole at aamotsoftware.no>
> *Sendt:* onsdag 29. juni 2022 04:52
> *Til:* nikita-noark at nuug.no <nikita-noark at nuug.no>
> *Kopi:* Thomas Sødring <tsodring at oslomet.no>; Thomas Sødring <
> tsodring at gmail.com>
> *Emne:* Nikita Android 0.7.0 (2022-06-29) - Android 11 app playground for
> Nikita Noark5 Core REST
>
> Dear Nikita Team Leads,
>
> I have implemented the first Nikita Android 11 application that could be
> the entry point to a local Nikita installation running on a mobile device.
>
> You may download the source code for this development
>
> $ wget https://blog.oleaamot.no/src/nikita-android-0.7.0.zip
> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fblog.oleaamot.no%2Fsrc%2Fnikita-android-0.7.0.zip&data=05%7C01%7Ctsodring%40oslomet.no%7C763b42bf65454b0f997508da597a741a%7Cfec81f12628645508911f446fcdafa1f%7C0%7C0%7C637920680311058079%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=cOHx68BX0cZ7Q9fX%2BK81OJGx9AQ6h5%2BIH51StKysn48%3D&reserved=0>
>
> and uncompress it.
>
> $ unzip nikita-android-0.7.0.zip
>
> and compile it with "gradlew assembleRelease" in Java 11 with the Android
> SDK from developer.android.com
> <https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdeveloper.android.com%2F&data=05%7C01%7Ctsodring%40oslomet.no%7C763b42bf65454b0f997508da597a741a%7Cfec81f12628645508911f446fcdafa1f%7C0%7C0%7C637920680311058079%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Z24v4aE0nWZvxLYTNRC2jRLJeyXpfS0WFDdjX0gBPW4%3D&reserved=0>
> and install the SDK in $HOME/Android/sdk and modify local
> Android SDK directory /home/ole/Android/sdk
>
> You must modify your local Android SDK app in the unpacked directory
> nikita/local.properties
>
> local.properties:sdk.dir=/home/ole/Android/Sdk
>
> and then you can run
>
> $ ./gradlew assembleRelease
>
> To publish the app, you can run
>
> $ ./release
>
> I am attaching the Nikita Android 0.7.0 (2022-06-29) app that can be
> installed on a
> Android 11 (or more recent version) mobile device from
>
> Android APK:
> https://blog.oleaamot.no/apk/nikita/nikita-android.apk
> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fblog.oleaamot.no%2Fapk%2Fnikita%2Fnikita-android.apk&data=05%7C01%7Ctsodring%40oslomet.no%7C763b42bf65454b0f997508da597a741a%7Cfec81f12628645508911f446fcdafa1f%7C0%7C0%7C637920680311058079%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=%2BMdv5wVaZGArAw4tYX2hpg4VewLzo0IkjgKaX4rrs1A%3D&reserved=0>
>
> Screenshot:
> https://blog.oleaamot.no/src/nikita-android-0_7_0_20220629.png
> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fblog.oleaamot.no%2Fsrc%2Fnikita-android-0_7_0_20220629.png&data=05%7C01%7Ctsodring%40oslomet.no%7C763b42bf65454b0f997508da597a741a%7Cfec81f12628645508911f446fcdafa1f%7C0%7C0%7C637920680311058079%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Whiww52cRSHbqTC06h%2BCYSiqrvIevn1Osyu%2FECWHc1g%3D&reserved=0>
>
> Source code:
> https://blog.oleaamot.no/src/nikita-android-0.7.0.zip
> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fblog.oleaamot.no%2Fsrc%2Fnikita-android-0.7.0.zip&data=05%7C01%7Ctsodring%40oslomet.no%7C763b42bf65454b0f997508da597a741a%7Cfec81f12628645508911f446fcdafa1f%7C0%7C0%7C637920680311058079%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=cOHx68BX0cZ7Q9fX%2BK81OJGx9AQ6h5%2BIH51StKysn48%3D&reserved=0>
>
> Happy hacking,
> Ole Aamot
> _______________________________________________
> nikita-noark mailing list
> nikita-noark at nuug.no
> https://lists.nuug.no/mailman/listinfo/nikita-noark
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.nuug.no/pipermail/nikita-noark/attachments/20220802/750696ff/attachment-0001.htm>


More information about the nikita-noark mailing list