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

Unrecognized APK version #16

Open
dkaraush opened this issue Sep 24, 2019 · 5 comments
Open

Unrecognized APK version #16

dkaraush opened this issue Sep 24, 2019 · 5 comments

Comments

@dkaraush
Copy link

dkaraush commented Sep 24, 2019

I have installed a new version of Beat Saber recently and decided to put some custom songs on it.
Unfortunatelly, something went wrong.

My actions:
adb pull /data/app/com.beatgames.beatsaber-1/base.apk ./src.apk
loads apk from Oculus Quest, successfully

dotnet run -p ../Qb/app/app.csproj ./src.apk ./pack3/
Output:

Unhandled Exception: System.ApplicationException: Unrecognized APK version, hash ug/KoPKYph+a+0HmisCXtH0Mqec=
   at LibSaberPatch.Apk.DetectVersion() in C:\sandbox\Qb\LibSaberPatch\Apk.cs:line 59
   at LibSaberPatch.Apk..ctor(String path) in C:\sandbox\Qb\LibSaberPatch\Apk.cs:line 28
   at app.Program.Main(String[] args) in C:\sandbox\Qb\app\Program.cs:line 21

I have used your patcher for an older version of Beat Saber, thanks a lot for your done work.
Could you, please, tell, what did I wrong? Or is that a problem with a new version of Beat Saber?

Thanks.

@dkaraush
Copy link
Author

dkaraush commented Sep 24, 2019

Tried to add new hash in code, seems that new version of Beat Saber was made in new version of Unity.

Unhandled Exception: LibSaberPatch.SerializedAssets+ParseException: Unsupported Unity version: 2018.4.4f1
   at LibSaberPatch.SerializedAssets..ctor(Stream stream, Version v) in C:\sandbox\Qb\LibSaberPatch\SerializedAssets.cs:line 173
   at LibSaberPatch.SerializedAssets.FromBytes(Byte[] data, Version v) in C:\sandbox\Qb\LibSaberPatch\SerializedAssets.cs:line 144
   at app.Program.Main(String[] args) in C:\sandbox\Qb\app\Program.cs:line 25

According to the code, it should be 2018.3.10f1, but the new version is 2018.4.4f1.

I can't patch that by myself, I don't know how this code works, sorry.

@trishume
Copy link
Owner

I'm no longer maintaining QuestSaberPatch for new versions of Beat Saber since https://github.com/emulamer/BeatOn has basically superseded it in every way, I suggest you use BeatOn.

@timwillhack
Copy link

BeatOn is no longer going to support custom song import, came here hoping this still worked.

@trishume
Copy link
Owner

trishume commented Oct 6, 2019

If someone else wants to update QuestSaberPatch to work with the new version it hopefully shouldn't be too hard. I have a full time job now and don't have as much time for Beat Saber modding as I used to. I expect someone else might fork BeatOn and update it soon though.

@emulamer
Copy link

emulamer commented Oct 6, 2019 via email

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