Fixed Module load for non-auth #1

Merged
LightningMods merged 4 commits from master into master 2021-03-21 02:37:11 -05:00
LightningMods commented 2021-03-20 02:02:40 -05:00 (Migrated from github.com)

without my changes the Authid stays the same which is good as long as your app doesn't try to load any system modules like AppUtil if it does you will get this error

ERROR: sceSblAmSmIsLoadable2(754) checkIsBootable err, 800f0d39
ERROR: _sceSblAuthMgrSmIsLoadable2(899) mail retval err -2146497223
ERROR: sceSblAuthMgrIsLoadable(489) Invokecheck err(800f0d39): 1, 3900000000000002
[rtld] <69> ERROR self_load_shared_object:1411: sceSblAuthMgrIsLoadable(/system/common/lib/libSceAppInstUtil.sprx)=d error
unable to load module: libSceAppInstUtil.sprx
could not resolve sceAppInstUtilInitialize

without my changes the Authid stays the same which is good as long as your app doesn't try to load any system modules like AppUtil if it does you will get this error ERROR: sceSblAmSmIsLoadable2(754) checkIsBootable err, 800f0d39 ERROR: _sceSblAuthMgrSmIsLoadable2(899) mail retval err -2146497223 ERROR: sceSblAuthMgrIsLoadable(489) Invokecheck err(800f0d39): 1, 3900000000000002 [rtld] <69> ERROR self_load_shared_object:1411: sceSblAuthMgrIsLoadable(/system/common/lib/libSceAppInstUtil.sprx)=d error unable to load module: libSceAppInstUtil.sprx could not resolve sceAppInstUtilInitialize
sleirsgoevy (Migrated from github.com) requested changes 2021-03-20 16:15:42 -05:00
@ -72,1 +73,4 @@
|| ppcopyout(&ans->sonyCred, 1 + &ans->sonyCred, ucred + 96)
|| ppcopyout(&ans->sceProcType, 1 + &ans->sceProcType, ucred + 88))
return -1;
sleirsgoevy (Migrated from github.com) commented 2021-03-20 16:11:44 -05:00

Why check? The user can (not) obtain correct values for these fields by calling jbc_get_cred.

Why check? The user can (not) obtain correct values for these fields by calling jbc_get_cred.
sleirsgoevy (Migrated from github.com) commented 2021-03-20 16:13:12 -05:00

uintptr_t -> char* -> arithmetic -> uintptr_t. Why?

uintptr_t -> char* -> arithmetic -> uintptr_t. Why?
@ -95,3 +104,3 @@
uintptr_t rootvnode = jbc_get_rootvnode();
if(!rootvnode)
if (!rootvnode)
return -1;
sleirsgoevy (Migrated from github.com) commented 2021-03-20 16:11:34 -05:00

What about jbc_get_cred?

What about jbc_get_cred?
@ -4,17 +4,23 @@
sleirsgoevy (Migrated from github.com) commented 2021-03-20 16:13:06 -05:00

Suggestion: change order of fields to the same as in PS4 kernel, so that the values can be copied in a single ppcopy{in,out}. This should not really matter, but feels more optimal.

Suggestion: change order of fields to the same as in PS4 kernel, so that the values can be copied in a single ppcopy{in,out}. This should not really matter, but feels more optimal.
sleirsgoevy (Migrated from github.com) approved these changes 2021-03-21 02:37:00 -05:00
Sign in to join this conversation.
No description provided.