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

org.xmlpull.v1.XmlPullParserException: Unexpected end of document #147

Open
AwaisQazii opened this issue Nov 13, 2024 · 2 comments
Open
Assignees
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@AwaisQazii
Copy link

AwaisQazii commented Nov 13, 2024

Describe the bug

Cannot read /data/user/0/com.example.myapp/shared_prefs/LpT9bkPsuUdwEpc29u1gLRB8rwFE7rJAGDTZR6FxVd7z.xml
W/SharedPreferencesImpl(18119): org.xmlpull.v1.XmlPullParserException: Unexpected end of document

To Reproduce
on initialization

void main()async{

final callback = ThreatCallback(
onPrivilegedAccess: () async {
controller.isThreatDetected.value = true;
await prefs.clear();
await StorageService.instance.deleteAll();
controller.threatName.value =
"Unauthorized modifications (root/jailbreak) have been detected on your device";
},
onHooks: () async {
controller.isThreatDetected.value = true;
await prefs.clear();
await StorageService.instance.deleteAll();
controller.threatName.value = "Hooking activities detected";
},
);

Talsec.instance.attachListener(callback);

final config = TalsecConfig(
androidConfig: androidConfig,
iosConfig: iOSConfig,
watcherMail: email,
);
await Talsec.instance.start(config);

///my Code
}
Expected behavior
No exception should be thrown

Please complete the following information:

  • Device: Redmi Note 13
  • OS version: Android 14
  • Version of freeRASP: freerasp: ^6.7.3
@AwaisQazii AwaisQazii added the bug Something isn't working label Nov 13, 2024
@msikyna msikyna transferred this issue from talsec/Free-RASP-Community Nov 15, 2024
@msikyna
Copy link
Member

msikyna commented Nov 15, 2024

Hello, @AwaisQazii ,

this is a duplicate of this issue #120. We have it in our backlog to fix it.

Kind regards,
Talsec team

@AwaisQazii
Copy link
Author

AwaisQazii commented Nov 15, 2024

Got it. Thank you for prompt response and support.

@yardexx yardexx added the duplicate This issue or pull request already exists label Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

4 participants