PLEASE HELP With New Version of the Qin F21, Different Hardware and ROM

what do i use to decompile services.jar - nevermind apktool works i think well see

does apktool work to recompile services.jar

Use the tool I have it uses APKtool but will solve a lot of errors

never used it but ill give it a try

Very simple, read the readme.

When you are done, just unzip the magisk module, it will be in there

do i have to decompile again or i can use the one decompiled with apktool

Don’t know. Takes 5 seconds to decompile…

Btw what are the errors? I remember something like adb install not allowed.

it just says failure nothing else

logcat isnt giving me much

im not having succes with this tool- evertim i run i do this step

  1. Run ./jar_to_smali.sh my.jar, after run you will get my.jar.smali folder

it just open a text file of the shell script

I dunno, I just used it, and on termux too. Works fine

i should put the services .jar in a folder called my.jar and then run the commad in terminal in this directory correct.

No just have it in the same folder and replace “my.jar” with the name of your jar

Oh wow I love this they made that if the firmware has gms then adb install not allowed :slight_smile:

PackageManagerShellCommand.smali:3505-3517

  .method private isOversea()Z
      sget-object v0, Landroid/os/Build;->PRODUCT:Ljava/lang/String;
      const-string v1, "gms"
      invoke-virtual {v0, v1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z
      move-result v0
      return v0
  .end method
Checks if Build.PRODUCT contains "gms" (Google Mobile Services).

  At line 2101-2113:
  invoke-direct/range {p0 .. p0}, Lcom/android/server/pm/PackageManagerShellCommand;->isOversea()Z
  move-result v0
  if-nez v0, :cond_5          # If overseas (has GMS), allow
  const-string v0, "Error: adb install not allowed!!"
  invoke-virtual {v9, v0}, Ljava/io/PrintWriter;->println(Ljava/lang/String;)V
  return v10                   # Block install

Meaning, If device is NOT overseas (China ROM without GMS), ADB install is blocked :joy:

Gotta love em for this

2 Likes

@dfrydman try this, no guarantees.

  • adb install allowed
  • background app kill fix

If it bootloops, let me know and I’ll try again.

Actually just realized, I took this from the firmware that your phone came with, not the one you got from Baidu link.

there the exact same size - so im guessing there the same

14,706 kb

You can try it. Gonna do your other one now