Announcement
Collapse
No announcement yet.
Announcement
Collapse
No announcement yet.
Lifeforce ROM - Firmware for the M8 Tomato
Collapse
X
-
"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"
-
Originally posted by Finless View PostWhat do you modify in services .jar? What smali file?
Bob
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
And insert this a code row:Code:and-int/lit8 p3, p3, -0x2
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 PostFile: 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
And insert this a code row:Code:and-int/lit8 p3, p3, -0x2
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.
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 PostThanks!!!! 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
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 PostWell 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
Comment
-
Originally posted by Lifeforce View PostWhich firmware replaced the service file?
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
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 PostI 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?
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
-
Originally posted by Finless View PostMy 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 correct you right away.
Comment
-
Originally posted by Lifeforce View PostI found a mistake
I correct you right away.
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 PostWhat did I miss? Maybe I should have deodexed it as the code did not change?
Bob
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 PostNo 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
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
What's Going On
Collapse
There are currently 2853 users online. 6 members and 2847 guests.
Most users ever online was 16,134 at 08:28 on 08-11-2023.
Comment