[Xposed Framework Modules] TechnoSparks:
[MENTION=5712278]iHelp101[/MENTION]

Hello, the issue has returned and I will write this post in chronological order of what I did to inspect the problem. I will do the investigation while writing this! :)

Before we begin, my XInsta is version 1.4b, and Instagram is version 7.15.0. Version code as of in log is 20808502.

First try, I cleared the Xposed log and started Instagram to download a photo. The toast to contact you appears. Upon inspection, log says there is an illegal character in my directory, I assume it is the white space, but somehow I think this error might be weird too, as it worked for me before. I proceed to change the directory and then kill (force stop) Instagram. Started Instagram again and retried to download a picture. Same toasts appear. Upon inspection of the Xposed logs again, it seems to be the same whitespace error again. So i thought I should change it again. So what i did was I changed the directory, but instead of going away, I opened the directory chooser and surprisingly the directory is not changed! I thought this has to do with XInternalSD conflict. Trying to update hooks will always says "hooks updated", not "You already have the latest hooks"

The directory is "/storage/sdcard1/Fake Internal Storage".

So I opened XInternalSD and disabled for XInsta. (At this time I am shocked because I already did this before.. Something might happened that made it being unchecked for the Disabled apps. As a cautionary move, I rebooted the device immediately.

So I rebooted, and my directory options is now set properly. So does the update hooks, it now says that I have the latest hooks. So I proceed to firing up Instagram, however, the same illegal character log still appears. Aha! This must have something to do with Instagram, as I have Instagram under XInternalSD's possession too! So I disabled Instagram in XInternalSD and it works!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Footnote

XInternalSD is the culprit for the problem I am facing! After successfully disable XInternalSD for both XInsta and Instagram, both of the apps able to live in prosper. I can now change the directory in XInsta and it remembers it and no longer illegal character error in the Xposed logs. (also this means XInsta is lacking one feature: white space in selected directory. Further information and a feature request is somewhere below)

However this raises one question, why must an uninstall and install would fix this (if the XInternalSD isn't disabled for the module and the app)? Like I have said this problem occurs over time, it won't happen when you uninstall XInsta and install it again, with XInternalSD enabled for both.

So since I figured out this conflict, it would be nice to add to the OP as a caution for XInternalSD users like me.

Hence, come with this huge post I am writing while having a headache, is a fix request.. :)

I use XInternalSD because I love my files to be on an SD card. Plus since I am completely abandoning Internal Storage for caches, I usually intentionally forgetting all the stuff that is in my internal storage. Also, my internal storage is little, that's why I use the XInternalSD module so I can have my WhatsApp stuff safe on my SD card.

So what? Well, as Instagram (not XInsta!) saves your posted photos on your Internal SD (/storage/emulated/0/Pictures/Instagram), I dont want it to do so. Like I have said, I dont give a damn of internal storage, so if they put the photos that I obviously want in that directory, I might lose it in the future when I format my internal storage by rogue. With XInternalSD in action, the Instagram obeys my custom internal storage directory and saves them in another place.

After some little experimentation, i have set XInternalSD to enable for Instagram and disable for XInsta. XInsta's directory chooser and hooks updation works flawlessly when XInternalSD is disabled for it (and doesnt work if vice-versa). However, once I hit Download, i get the same toast and the same error log appears, stating illegal character! This is weird, as the directory i set for images contains no whitespace, but the log says otherwise, and as if XInsta is still under XInternalSD possession!

The directory I have set for XInsta is /storage/sdcard1/Android/ but the log says /storage/sdcard1/Fake Internal Storage/Download/Instagram. This is weird to me as the directory that I have set persisted when I open XInsta for a check. This means something else wrong here. Disabling XInternalSD for Instagram however makes the photos downloaded. I dont understand the reasoning here! Because, i mean, why Instagram controls the download location? Isn't that XInsta's job? And didn't I already specified a download location in XInsta? This is very weird to me.

And also I want to raise the same question again: why uninstalling XInsta and installing again works, even under this XInternalSD's possession!? :eek:

Uh by the way, a feature request: please have users possible to choose a directory with a white space. It seems I cant choose a directory with a whitespace at all, making the directory chooser to reset to /storage/emulated/0 .

Lastly, thank you for reading this very huge post. I really really appreciate that you spent your time to read this. And I hope the issues would be sorted out in the future (seriously, no rush, I will try to live with my Instagram generated photos in the internal storage in the meantime, so take all the time you need! ;) )

I am seriously sorry if the english is weird on this one. Well, english is of course not my main language.

Well, it has been (i guess) fun writing this thing and testing stuff for an hour... ._. And it is 6am... I hope you have a really pleasant day today and the days to come.

Regards :D