Announcement

Collapse
No announcement yet.

Announcement

Collapse
No announcement yet.

Lifeforce ROM - Firmware for the M8 Tomato

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Originally posted by Lifeforce View Post
    Sorry, taken away from me the test device.
    Soon I correct firmware.
    Bob: thank you for your CPU patch.
    If you also have problems installing the paid apps, in the services.jar file must be off the asec security.
    Mount or permissions problem.
    Several times I looked, but I could not find the error. (I did not have more time to deal with it)
    Sorry my bad english
    What do you modify in services .jar? What smali file?

    Bob
    "Pzebacz im, bo nie wiedzą, co czynią"
    "Прости им, они не ведают, что творят"
    "Perdona loro perché non sanno quello che fanno"
    "Vergib ihnen, denn sie wissen nicht, was sie tun"
    "Vergeef hen want ze weten niet wat ze doen"
    "Pardonne-leur car ils ne savent pas ce qu'ils font"
    "Perdónalos porque no saben que lo que hacen"
    "Oprosti im, jer ne znaju što čine"
    "Forgive them as they know not what they do"





    Comment


      Originally posted by Finless View Post
      What do you modify in services .jar? What smali file?

      Bob
      File: smali/com/android/server/pm/PackageManagerService.smali

      Code:
      Code:
       iget-object v1, p0, Lcom/android/server/pm/PackageManagerService;->mContext:Landroid/content/Context;
      
          const-string v2, "android.permission.INSTALL_PACKAGES"
      
      
          const/4 v3, 0x0
      
      
          invoke-virtual {v1, v2, v3}, Landroid/content/Context;->enforceCallingOrSelfPermission(Ljava/lang/String;Ljava/lang/String;)V
      
          .line 6528
      (line: 37900-37908)
      And insert this a code row:
      Code:
      and-int/lit8 p3, p3, -0x2
      the .line 6528 before.
      So that should look like this:
      Code:
          iget-object v1, p0, Lcom/android/server/pm/PackageManagerService;->mContext:Landroid/content/Context;
      
      
          const-string v2, "android.permission.INSTALL_PACKAGES"
      
      
          const/4 v3, 0x0
      
      
          invoke-virtual {v1, v2, v3}, Landroid/content/Context;->enforceCallingOrSelfPermission(Ljava/lang/String;Ljava/lang/String;)V
      
      
          and-int/lit8 p3, p3, -0x2
      
      
          .line 6528


      This will turn off the ASEC encryption, the purchased application download to the data/app folder, and not the wrong x-asec encrypted folder.
      This only applies to KitKat now.

      Comment


        Originally posted by Lifeforce View Post
        File: smali/com/android/server/pm/PackageManagerService.smali

        Code:
        Code:
         iget-object v1, p0, Lcom/android/server/pm/PackageManagerService;->mContext:Landroid/content/Context;
        
            const-string v2, "android.permission.INSTALL_PACKAGES"
        
        
            const/4 v3, 0x0
        
        
            invoke-virtual {v1, v2, v3}, Landroid/content/Context;->enforceCallingOrSelfPermission(Ljava/lang/String;Ljava/lang/String;)V
        
            .line 6528
        (line: 37900-37908)
        And insert this a code row:
        Code:
        and-int/lit8 p3, p3, -0x2
        the .line 6528 before.
        So that should look like this:
        Code:
            iget-object v1, p0, Lcom/android/server/pm/PackageManagerService;->mContext:Landroid/content/Context;
        
        
            const-string v2, "android.permission.INSTALL_PACKAGES"
        
        
            const/4 v3, 0x0
        
        
            invoke-virtual {v1, v2, v3}, Landroid/content/Context;->enforceCallingOrSelfPermission(Ljava/lang/String;Ljava/lang/String;)V
        
        
            and-int/lit8 p3, p3, -0x2
        
        
            .line 6528


        This will turn off the ASEC encryption, the purchased application download to the data/app folder, and not the wrong x-asec encrypted folder.
        This only applies to KitKat now.
        Thanks!!!! and got it.

        Only bummer is the ROM must be deodexed first. I have tried re-odexing it and it doesn't work. So ROM must remain deodexed which is slower.

        I noticed your ROM was deodexed so now I see why.

        Bob
        "Pzebacz im, bo nie wiedzą, co czynią"
        "Прости им, они не ведают, что творят"
        "Perdona loro perché non sanno quello che fanno"
        "Vergib ihnen, denn sie wissen nicht, was sie tun"
        "Vergeef hen want ze weten niet wat ze doen"
        "Pardonne-leur car ils ne savent pas ce qu'ils font"
        "Perdónalos porque no saben que lo que hacen"
        "Oprosti im, jer ne znaju što čine"
        "Forgive them as they know not what they do"





        Comment


          Originally posted by Finless View Post
          Thanks!!!! and got it.

          Only bummer is the ROM must be deodexed first. I have tried re-odexing it and it doesn't work. So ROM must remain deodexed which is slower.

          I noticed your ROM was deodexed so now I see why.

          Bob
          You only leave deodexed services.jar.
          The rest remain odexed.
          I do not think the noticeable slowdown.

          Comment


            Actually I was able to edit the jar file without deodexing it. smali is in the jar, resources in the .odex so sine we are only changing smali code I was able to unpack and repack only the jar and edit it

            Done... releasing the patch.zip for my ROM and see if people are happy.

            Thanks you for the BIG TIP!

            I know this is really a work around and not a proper fix. Seems the kernel for this ROM has some permission problem with mounting /asec.

            Bob
            "Pzebacz im, bo nie wiedzą, co czynią"
            "Прости им, они не ведают, что творят"
            "Perdona loro perché non sanno quello che fanno"
            "Vergib ihnen, denn sie wissen nicht, was sie tun"
            "Vergeef hen want ze weten niet wat ze doen"
            "Pardonne-leur car ils ne savent pas ce qu'ils font"
            "Perdónalos porque no saben que lo que hacen"
            "Oprosti im, jer ne znaju što čine"
            "Forgive them as they know not what they do"





            Comment


              Well I made this patch and made sure it is done right.

              One person says it did not work... I will wait for reports from others and see.

              Bob
              "Pzebacz im, bo nie wiedzą, co czynią"
              "Прости им, они не ведают, что творят"
              "Perdona loro perché non sanno quello che fanno"
              "Vergib ihnen, denn sie wissen nicht, was sie tun"
              "Vergeef hen want ze weten niet wat ze doen"
              "Pardonne-leur car ils ne savent pas ce qu'ils font"
              "Perdónalos porque no saben que lo que hacen"
              "Oprosti im, jer ne znaju što čine"
              "Forgive them as they know not what they do"





              Comment


                Originally posted by Finless View Post
                Well I made this patch and made sure it is done right.

                One person says it did not work... I will wait for reports from others and see.

                Bob
                Which firmware replaced the service file?

                Comment


                  Originally posted by Lifeforce View Post
                  Which firmware replaced the service file?
                  It is just a update.zip that replaces services.jar



                  I double checked the code and it is there.

                  However this is for my 1.5 ROM which is a port of the Tronsmart 102K4 so this patch may not work on that.

                  Bob
                  "Pzebacz im, bo nie wiedzą, co czynią"
                  "Прости им, они не ведают, что творят"
                  "Perdona loro perché non sanno quello che fanno"
                  "Vergib ihnen, denn sie wissen nicht, was sie tun"
                  "Vergeef hen want ze weten niet wat ze doen"
                  "Pardonne-leur car ils ne savent pas ce qu'ils font"
                  "Perdónalos porque no saben que lo que hacen"
                  "Oprosti im, jer ne znaju što čine"
                  "Forgive them as they know not what they do"





                  Comment


                    Originally posted by Finless View Post
                    It is just a update.zip that replaces services.jar



                    I double checked the code and it is there.

                    However this is for my 1.5 ROM which is a port of the Tronsmart 102K4 so this patch may not work on that.

                    Bob
                    I do not understand because the service.jar file is not device-specific.
                    Your M8 firmware works the paid applications download?
                    Unfortunately, I can not know test for 2 weeks.
                    Or just the Tronsmart on a device does not work?

                    Comment


                      Originally posted by Lifeforce View Post
                      I do not understand because the service.jar file is not device-specific.
                      Your M8 firmware works the paid applications download?
                      Unfortunately, I can not know test for 2 weeks.
                      Or just the Tronsmart on a device does not work?
                      My EM8 ROM is old and does not have this patch.

                      I also cannot test because I do not have a EM8 yet so I am shooting in the dark. I am going to wait until I have the EM8 at this point. Plenty of other things to do until then

                      I think the EM8 kernel (which I had to use for sound) and the Tronsmart /system does not work together the same.

                      Bob
                      "Pzebacz im, bo nie wiedzą, co czynią"
                      "Прости им, они не ведают, что творят"
                      "Perdona loro perché non sanno quello che fanno"
                      "Vergib ihnen, denn sie wissen nicht, was sie tun"
                      "Vergeef hen want ze weten niet wat ze doen"
                      "Pardonne-leur car ils ne savent pas ce qu'ils font"
                      "Perdónalos porque no saben que lo que hacen"
                      "Oprosti im, jer ne znaju što čine"
                      "Forgive them as they know not what they do"





                      Comment


                        But work tronsmart the paid application download?

                        Comment


                          Originally posted by Finless View Post
                          My EM8 ROM is old and does not have this patch.

                          I also cannot test because I do not have a EM8 yet so I am shooting in the dark. I am going to wait until I have the EM8 at this point. Plenty of other things to do until then

                          I think the EM8 kernel (which I had to use for sound) and the Tronsmart /system does not work together the same.

                          Bob
                          I found a mistake
                          I correct you right away.

                          Comment


                            Originally posted by Lifeforce View Post
                            I found a mistake
                            I correct you right away.
                            What did I miss? Maybe I should have deodexed it as the code did not change?

                            Bob
                            "Pzebacz im, bo nie wiedzą, co czynią"
                            "Прости им, они не ведают, что творят"
                            "Perdona loro perché non sanno quello che fanno"
                            "Vergib ihnen, denn sie wissen nicht, was sie tun"
                            "Vergeef hen want ze weten niet wat ze doen"
                            "Pardonne-leur car ils ne savent pas ce qu'ils font"
                            "Perdónalos porque no saben que lo que hacen"
                            "Oprosti im, jer ne znaju što čine"
                            "Forgive them as they know not what they do"





                            Comment


                              Originally posted by Finless View Post
                              What did I miss? Maybe I should have deodexed it as the code did not change?

                              Bob
                              No problem that it is .odex file it remains?
                              I also did my paid_app_patch.zip file to the 1.5 ROM and linked the site.
                              not deodexed, I wonder it works

                              Comment


                                Originally posted by Lifeforce View Post
                                No problem that it is .odex file it remains?
                                I also did my paid_app_patch.zip file to the 1.5 ROM and linked the site.
                                not deodexed, I wonder it works
                                Thanks, I will take a look. My M8 Tomato box just arrived so now I can test with it

                                Bob
                                "Pzebacz im, bo nie wiedzą, co czynią"
                                "Прости им, они не ведают, что творят"
                                "Perdona loro perché non sanno quello che fanno"
                                "Vergib ihnen, denn sie wissen nicht, was sie tun"
                                "Vergeef hen want ze weten niet wat ze doen"
                                "Pardonne-leur car ils ne savent pas ce qu'ils font"
                                "Perdónalos porque no saben que lo que hacen"
                                "Oprosti im, jer ne znaju što čine"
                                "Forgive them as they know not what they do"





                                Comment

                                Working...
                                X