Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New version and PowerTag. #253

Closed
KikiNeosquall opened this issue Sep 27, 2021 · 42 comments
Closed

New version and PowerTag. #253

KikiNeosquall opened this issue Sep 27, 2021 · 42 comments

Comments

@KikiNeosquall
Copy link

Hello.
The new version don't write on my PowerTag, but the old (2.7.0) yes.
Any ideas ?
PowerTag support is enabled.
Thank you ! 😃

@HiddenRambler
Copy link
Collaborator

I will attempt to test this in the weekend. I need to find my old powertags.

@AbandonedCart
Copy link
Contributor

I've tried not to mess with that code much because I don't have the hardware, but it's quite possible some other change broke it.

Another way to get an idea of what's going on would be to use the logcat option in the menu. If it's an issue with the app, it should print there.

@AbandonedCart
Copy link
Contributor

I think #258 may have uncovered the issue. It should be solved.

@XiNaru
Copy link

XiNaru commented Oct 18, 2021

I think #258 may have uncovered the issue. It should be solved.

sry the problem is the same
i have installed the new version
if i want to write a amiibo to the power tag:
PowerTag key not loaded.

just like the version before. the option for powertag is of course on.

@AbandonedCart
Copy link
Contributor

AbandonedCart commented Oct 18, 2021

@XiNaru You're using the one marked pre-release right? https://github.com/HiddenRamblings/TagMo/releases/tag/experimental

You shouldn't be able to get to that error without first getting a toast message about the keys failing.

@XiNaru
Copy link

XiNaru commented Oct 18, 2021

@XiNaru You're using the one marked pre-release right? https://github.com/HiddenRamblings/TagMo/releases/tag/experimental

You shouldn't be able to get to that error without first getting a toast message about the keys failing.

oh no sry i have tried this:
https://i.imgur.com/mTmefTf.png

i try it again

@XiNaru
Copy link

XiNaru commented Oct 18, 2021

OKay NOW it comes a new error message:
No avaible key for UID

@XiNaru
Copy link

XiNaru commented Oct 18, 2021

Thank you very much :)
I look forward to a version that works in the end :)

@AbandonedCart
Copy link
Contributor

Looks like the other issue may have been a somewhat silent limitation on resource size when not using assets.

@XiNaru
Copy link

XiNaru commented Oct 19, 2021

which version must i download=? the experimental AND the normal release are bothe 10 hours ago :)

Edit: i have see the time witrh mouse hover.
the latest is experimental, the problem is the same :)

@AbandonedCart
Copy link
Contributor

That was all the obvious possibilities. A logcat may reveal any hidden causes, though. I recommend trying after a fresh reboot of the phone and then clicking the last item in the three dot dropdown menu.

@XiNaru
Copy link

XiNaru commented Oct 19, 2021

so i did.
cell phone restarted.
program started.
first scanned an active amiibo to see if that works. the part went.
then I tried to write an amiibo: the UID error message.
Logcat: I can't find the one that was created. where on the cell phone is the o.o.

@AbandonedCart
Copy link
Contributor

AbandonedCart commented Oct 19, 2021

Should have written to /sdcard/Android/data/com.hiddenramblings.tagmo/files/

@XiNaru
Copy link

XiNaru commented Oct 19, 2021

no there is no folder with the name. I'm looking for the directory but can't find anything.

even saved amiibos are saved in the root directory of the sd card.

@AbandonedCart
Copy link
Contributor

What is the phone and Android version this is running on?

@XiNaru
Copy link

XiNaru commented Oct 19, 2021

What is the phone and Android version this is running on?

i have a samsung galaxy m12
with android 11

@AbandonedCart
Copy link
Contributor

        if (keys == null)
            throw new Exception(TagMo.getStringRes(R.string.powertag_key_error));

        byte[] uidc = new byte[7];

        uidc[0] = (byte) (uid[0] & 0xFE);
        uidc[1] = (byte) (uid[1] & 0xFE);
        uidc[2] = (byte) (uid[2] & 0xFE);
        uidc[3] = (byte) (uid[3] & 0xFE);
        uidc[4] = (byte) (uid[4] & 0xFE);
        uidc[5] = (byte) (uid[5] & 0xFE);
        uidc[6] = (byte) (uid[6] & 0xFE);

        HashMap<String, byte[]> keymap = keys.get(Util.bytesToHex(uidc));
        if (keymap == null)
            throw new Exception(TagMo.getStringRes(R.string.uid_key_missing)); <- This is the error

@XiNaru
Copy link

XiNaru commented Oct 21, 2021

i don't have an SD card.

I am in the picture in the ROOT of the mobile phone. and after what you say you would have to create the sd folder in the root of the cell phone, which does not happen.

@AbandonedCart
Copy link
Contributor

AbandonedCart commented Oct 21, 2021

Android/data/com.hiddenramblings.tagmo/files/tagmo_logcat.txt

@XiNaru
Copy link

XiNaru commented Oct 21, 2021

the folder /adnroid/data is empty at me.
and i have show the hidden files
Screenshot_20211021-183911_My Files
Screenshot_20211021-183920_My Files

@AbandonedCart
Copy link
Contributor

The folder isn't actually empty, but that browser blocks viewing it. Some did that. Looks like I will have to add a way to get to it into TagMo

@XiNaru
Copy link

XiNaru commented Oct 21, 2021

but why? i have activate to show all hidden files.

@AbandonedCart
Copy link
Contributor

Some file browsers treat it as app-specific storage and don't request the permission to view it.

@XiNaru
Copy link

XiNaru commented Oct 21, 2021

understand. i can't find a way to get around that on the internet either. despite developer options.

@AbandonedCart
Copy link
Contributor

I added a view option to the popup that should allow you to open it in anything that allows viewing files. That should at least let you read, copy, or save it somewhere else.

@XiNaru
Copy link

XiNaru commented Oct 21, 2021

@AbandonedCart
Copy link
Contributor

Got it. Thanks.

@XiNaru
Copy link

XiNaru commented Oct 22, 2021

and if i want to restore a tag insteed of write:

image

@AbandonedCart
Copy link
Contributor

10-21 19:07:09.691 13858 14068 D TagWriter: Power Tag Exists: true
10-21 19:07:09.709 13858 14068 D TagWriter: 040708830910121318480FE0F110FFEEA5000100FC1535A5F7BE745DEA71C5BA99976EDB30CA48E33B2A90282A0B9136F6B8786493530270979B962B7E9EDB39DFB2BFCA722B4265263119C81E370DED91FC8AB401400000035509020D12B6132136CBEC6A65E3636C2112229E1CA4D3E74F2628AA9054D0618A203A021BA07775BE1C3C0BA502F0C6A8E053A9DE4F53AB334D12916177EDBEDC8825C52FDC839A465ED5AA919D64BFF380BDE304F4812A80A172762BF054B74C64CD989892BE6DE0B2113A7DFE087070D251D3B5DA843774F7C9B6A4B5A9E9B5DB1796318576C1C9E95CF63AE45AF8219ABF9B8B7E8E1B7972D8AF25EB49492297A149FE241F88308172389761CFC7DC6BCC7FB24FECA8EAFC7A07ED64AC3A34FD4CC0D198118834554324F482FAB926BE1B5DAD5D2E4223308B33650F4127255B1BA672902BAF297F85942156D2CEC0F545113C6C34A33F06476D56EA3DE9BFFF1A108CCA15EF0D46AF871F3782A0FE241BF9DB3090F9ECB074C7A125C7D34EC4BAC3A8704800C6D6A9F57AAC8443EF15752A9DE478EA444F62DB0F0C28E96E736B4062F9F4AD6D2E36A5F865F56ABE3657D74C21ED3D7EEA494226C885533D320F3C2A0C053A490758C0596E46F77A91700B74982B47304E19BF1341EFDF5CD5ABFE50028C4A79E2A1400D53CAD9359AE1E082F2128F629B199D5B8AC0689F0421BAC0E33D681FB96DB4FDDB2501000FBD000000045F000000
10-21 19:07:09.709 13858 14068 D TagWriter: Old UID 04DD64A2D96480
10-21 19:07:09.718 13858 14068 D TagWriter: page 10 A7DB8722BB3D80CB27D91B9AE9DE52C1
10-21 19:07:09.740 13858 14068 E NfcActivity: ERROR
10-21 19:07:09.740 13858 14068 E NfcActivity: java.lang.Exception: No available key for UID
10-21 19:07:09.740 13858 14068 E NfcActivity: 	at com.hiddenramblings.tagmo.nfc.PTagKeyManager.getPowerTagKey(PTagKeyManager.java:75)
10-21 19:07:09.740 13858 14068 E NfcActivity: 	at com.hiddenramblings.tagmo.nfc.TagWriter.writeToTagAuto(TagWriter.java:91)
10-21 19:07:09.740 13858 14068 E NfcActivity: 	at com.hiddenramblings.tagmo.NfcActivity.onTagDiscovered(NfcActivity.java:222)
10-21 19:07:09.740 13858 14068 E NfcActivity: 	at com.hiddenramblings.tagmo.NfcActivity_.access$401(NfcActivity_.java:30)
10-21 19:07:09.740 13858 14068 E NfcActivity: 	at com.hiddenramblings.tagmo.NfcActivity_$5.execute(NfcActivity_.java:147)
10-21 19:07:09.740 13858 14068 E NfcActivity: 	at org.androidannotations.api.BackgroundExecutor$Task.run(BackgroundExecutor.java:400)
10-21 19:07:09.740 13858 14068 E NfcActivity: 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462)
10-21 19:07:09.740 13858 14068 E NfcActivity: 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
10-21 19:07:09.740 13858 14068 E NfcActivity: 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301)
10-21 19:07:09.740 13858 14068 E NfcActivity: 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
10-21 19:07:09.740 13858 14068 E NfcActivity: 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
10-21 19:07:09.740 13858 14068 E NfcActivity: 	at java.lang.Thread.run(Thread.java:923)

This is the relevant logging from the logcat file. Leaving this here for reference.

@XiNaru
Copy link

XiNaru commented Oct 24, 2021

i have no idea about these things xd i just hope that it will work someday soon :)

@AbandonedCart
Copy link
Contributor

https://github.com/HiddenRamblings/TagMo/wiki/PowerTags---PowerSaves-Support

I went back and read through past issues and the documentation. I never asked if you have been previously using the tag with the official app. If so, a reset is required. Check the link above for details.

@XiNaru
Copy link

XiNaru commented Oct 24, 2021

https://github.com/HiddenRamblings/TagMo/wiki/PowerTags---PowerSaves-Support

I went back and read through past issues and the documentation. I never asked if you have been previously using the tag with the official app. If so, a reset is required. Check the link above for details.

Okay NOW it works lol :)
but if i read..is Tagmo for using with powertag unsecure?

@AbandonedCart
Copy link
Contributor

Not insecure, just not officially supported. We have to use a slightly modified method because the official one has not been made public.

@HiddenRamblings HiddenRamblings deleted a comment from XiNaru Oct 24, 2021
@HiddenRamblings HiddenRamblings deleted a comment from XiNaru Oct 24, 2021
@HiddenRamblings HiddenRamblings deleted a comment from XiNaru Oct 24, 2021
@XiNaru
Copy link

XiNaru commented Oct 24, 2021

well i asked because you were unsure because you wrote that there are rumors that the powertag could lose its data after a certain type of write process?

@HiddenRamblings HiddenRamblings deleted a comment from XiNaru Oct 24, 2021
@HiddenRamblings HiddenRamblings deleted a comment from XiNaru Oct 24, 2021
@HiddenRamblings HiddenRamblings deleted a comment from XiNaru Oct 24, 2021
@HiddenRamblings HiddenRamblings deleted a comment from XiNaru Oct 24, 2021
@HiddenRamblings HiddenRamblings deleted a comment from XiNaru Oct 24, 2021
@HiddenRamblings HiddenRamblings deleted a comment from XiNaru Oct 24, 2021
@HiddenRamblings HiddenRamblings deleted a comment from XiNaru Oct 24, 2021
@AbandonedCart
Copy link
Contributor

It's after a certain number of writes. That applies to TagMo, PowerSaves, and any other app or read / write hardware. They are known to wear out over time.

@XiNaru
Copy link

XiNaru commented Oct 24, 2021

Es ist nach einer bestimmten Anzahl von Schreibvorgängen. Das gilt für TagMo, PowerSaves und jede andere App oder Lese-/Schreibhardware. Sie verschleißen bekanntlich mit der Zeit.

oh so it has nothing to do with tagmo, but can it also happen with my official powersaves software?

@AbandonedCart
Copy link
Contributor

Yes. That is how they make them so affordable.

@XiNaru
Copy link

XiNaru commented Oct 24, 2021

okay i understand
now it works, thanks.

@AbandonedCart
Copy link
Contributor

AbandonedCart commented Oct 24, 2021

@KikiNeosquall Is your issue resolved, as well?

Closing this for now, but it will be opened again if it is not.

@KikiNeosquall
Copy link
Author

Sorry, I just checked now, and it say "No available key for UID"

@AbandonedCart
Copy link
Contributor

@KikiNeosquall
Copy link
Author

Oh it works !
Thank you very much ! 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants