kaputnikGo / PilferShushJammer

Light Android AOSP application to test microphone jamming techniques to combat Cross-Device Tracking (XDT)
219 stars 25 forks source link

German Translation #26

Closed c-4-m closed 3 years ago

c-4-m commented 4 years ago

Hi, I want to contribute to this great project by providing a german translation.

I have forked the current master branch and will send a pull request when I have something presentable.

Sadly I dont have much experience with android apps, so do I need to change anything other than creating a directory "values-de" with a translated strings.xml?

Best Regards

kaputnikGo commented 4 years ago

Brilliant! vielen Dank! and yes thats all you need to do - a values-de folder with strings.xml

c-4-m commented 4 years ago

Could you please explain the "record buffer lock" mechanism? I dont want to convey the wrong message :)

kaputnikGo commented 4 years ago

In an attempt to get battery use to a minimum i figured that at a minimum a call needs to be made to audioRecord.startRecording(); which doesn't actually record, it just initialises the AudioRecord object. This is the current default behaviour for the PilferShush passive jammer. According to the Android API and testing on devices and emulators, this method is enough to lock up the microphone from other user apps using it.

If someone didnt think that was reliable enough for their device then they could switch the "record buffer lock" to on and this would make the passive jammer access the microphone hardware audio buffer and copy it to an unused array. This is how the passive jammer originally worked before battery optimisation became necessary as people were using the jammer for long periods of time.

Hopefully this makes sense. The code for the function to do this is here, with remarks : https://github.com/kaputnikGo/PilferShushJammer/blob/70566aa59260f8f0c655b22bcda784957e1e76a0/app/src/main/java/cityfreqs/com/pilfershushjammer/jammers/PassiveJammer.java#L70

Let me know if you need any other info, thanks again!

c-4-m commented 3 years ago

Hi, sorry for the long silence, Life happened.

So I have ~80-90% of the strings translated but the last ones are somewhat tough to get exactly right.

Do you want me to open a pull request with the translation as of now, so that I or someone else can perfect it later?

kaputnikGo commented 3 years ago

hi there, thats not a problem, life always happens :) yes if you would like to make pr then i can roll out the release. thanks for taking the time to do this!