[Q] Need some help in SearchIndexProvider - Android Q&A, Help & Troubleshooting

Hi,
I am trying to implement SearchIndexProvider for one of my rom's main config menu's preference. . Everything is working however I am having issues with getNonIndexableKeys list.
I am calling a root checking method in this to make sure root is available else A and B preference shouldn't show and they don't when I set "NO_DATA_RES_ID" instead of xml file reference in SearchIndexableResources.java because my builds are rootless, however when I flash a root package like SuperSU or magisk, and the condition is reverse and now I can access root through the check, I expect these values to show up in search but they still don't.
My primary expectation was that the search index is dynamically updated but it doesn't.
Same thing happens to my other check which check whether an application is not uninstalled or disabled and then show the preference for it and the preference shows after first boot as the app is there but if I disable it or remove it, it still shows up in search results whereas it shouldn't as I removed it and the check result should give a false for that condition but even in that case, search index doesn't get updated.
If I use an xml instead of "NO_DATA_RES_ID" in SearchIndexableResources.java, all my preferences are available going pass any check I make in getNonIndexableKeys list.
So can I make search index dynamically update so these changes can work, can I read more about it somewhere as I failed to find any information about it on google.
Thanks.

According to this, I need to make preference dynamic to achieve what I want here and for that I need to make it a dynamic activity. Article states that it should be done if my preference appears on dashboard home but it doesn't, it comes under Customized Settings option but it works for other preferences so I made my preference a dynamic one by adding it to AndroidManifest and set an intent to it, it still works like before and the preferences are still not dynamically loaded so I am still stuck.

Related

Divining application registrations

Hey guys:
Quick question. I've got a bunch of apps registered on my phone. Every time I flash a new ROM I need to reenter all of those serial numbers. I was looking at the UC customization threads to see if maybe I could just create a provisioning XML to create the appropriate registry entries automatically. Problem is don't think all the apps store their registration information in the registry.
So a couple questions:
1. I've found a good way to see registry changes (and thus figure out which keys I need to update), but I can't find the equivalent for the file system. Is there a tool that can take a snapshot of the file system on the phone, and then show diffs of the current file system with that snapshot? (That way I could figure out the additional files I'd need to copy over to make apps think they're registered.)
2. Is there another mechanism, other than registry and file system, that apps use to set themselves as registered? I couldn't think of anything... but then I'm hardly a hacker. (Even though... and correct me if I'm wrong... this is not technically hacking -- the serials are valid, I just don't want to reenter 10 of them every time I flash)
3. (And this probably belongs more in the UC thread): for some reason my provisionining file has no effect whatsoever. I've verified syntactical correctness of the file, and that cabarc can successfully create a CAB out of it. I've verified that the file is "installed" during the customization step. Yet, after a reset I see none of the changes specified in the provisionining xml. Any idea how I can debug this? Is there a log file that the config program leaves somewhere?
Thanks!

[Discontinued/Files Removed] Tasker Project for Snapchats (Requires Root)

[Edit] Discontinued indefinitely. App creation was a little out of my league when I began trying to make it. Then Snapchat started encrypting files in more complicated ways than I had experience with, so I couldn't keep up and unfortunately had to drop all efforts. This project will no longer work and no further effort has been made to continue progress. I apologize for the lack of communication.
There are other resources out there that are still working, however. If you need help finding such things, you're welcome to PM me to ask what I'm referring to.
Discontinued until further notice. Currently working on an app that does all of this and more. For those who previously downloaded this and find it suits their needs for the most part, enjoy it, and consider checking out the app in the future. To others, I will let you know when I release the app. It should be much improved from the current project (and it doesn't require Tasker).
Due to a request to release my tasker project, which silently, neatly, and automatically copies and renames the snapchats you receive to a separate folder, I created this thread. Please try the latest version before asking for help with an issue. Most issues have probably been solved at this point.
There are still bound to be a few kinks in this, but I have spent lots of time getting it to work as much as possible (I am rather proud of the regular expressions that I created myself, even if they might be overkill).
Attached is the project if you just want to import it and let it go to work. Just extract from the zip and import in tasker by clicking a Project at the bottom of the Profiles tab (not the + sign, but an icon to the left of it)
To describe it simply: upon receiving a notification from snapchat and noticing a file change in the directory where the files are stored, it runs a series of commands that copies and saves them to the SDcard/Snapchat/Saves(/Vids) with filenames of "[DATE] - [TIMEMS] [NAME OF SENDER].jpg" (or .mp4). TIMEMS is the time in milliseconds from some time in January 1970. It keeps the task from overwriting your saves and it orders them nicely.
If I end up making any drastic changes, I'll probably come back and include them here. If you take it and make any changes that simplifies the process or makes it work better, feel free to share.
Good luck!
The new version (5-8_v5) has been released (small update from v4)! PLEASE READ BEFORE USING:
Requires Tasker's Accessibility service to be running (Android Settings> Accessibility> Tasker) to catch the notifications—only if you want the usernames to be automatically parsed and used; if you don't turn it on, it'll give you a Variable Query every time it finds a file loaded. Also if you don't turn it on, run the Folder Fixes task on your own, cause it's supposed to run the first time you get a notification.
When this first runs, it assumes that you have the folder/directories created. I don't know when snapchat creates them (during install or after receiving the first snap), so if you get errors related to not finding the file then try re-running the Folder Fixes associated task.
If you see something asking for text with the title Username, that's the Variable Query I mentioned. That's asking for the person's name who sent it, if you know it. If you don't know it at the time of asking, you can put anything in there and it'll copy with that attached (you can always go to the folder and rename it yourself)—otherwise, you can close it (or wait 15 seconds) and rerun the task on your own time.
Besides that, don't touch anything and you should be fine!
Changelog (5-8_v5):
Small update to 5-6 which stops the task and, therefore, the %Last[whatever] variables from being created if the Username variable is unset when it gets to the part where it copies (equating to no copies being made, regardless).
Because of that, now you shouldn't have to delete variables manually.
An unmentioned change in 5-6 was that I changed the flash message. It now flashes the names of each file it creates. This can be turned off—Action 37 in the Copy/Rename tasks.
(v2) Figured out the other reason why duplicates were happening with images. It has now been updated. (The only way this could backfire [same for videos] is if you get two different snaps of the exact same filesize in the same time period—very unlikely)
(v2) Made the Variable Query nicer looking.
(v3) Fixed some variable references that were funky
(v4) Fixed the profiles getting turned off and staying off by accident under certain scenarios
(v5) Changed it so no user input is required to turn off the profiles. If the 4.2+ one runs at all, it stops and turns off the other one.
(v5) Changed the %Last[etc] variables from creating excessive arrays with the same numbers.
Changelog (5-6):
Revamped the way it checks for previously copied snaps. It should be foolproof now, giving no duplicates while still not missing any.
Added an Array Clear for the %Username variable at the end of the copy/rename tasks.
Added a Variable Query if it's going to copy something but %Username is not set (see above for usage)
You can delete the Variable Set %Notification from the Update Username task if you want. It's just there for me so I can check it as a global variable. It isn't referenced anywhere else in the project.
Changelog (5-4_v2):
TONS of error fixes caused by insufficient permissions and directories are now included in the run-once profile.
Added profile (and associated tasks) which should fix the problem that users were having about the video folder not existing
(v2) Optimized the way it turns off profiles. This should automate the above-listed stuff. So even if you have all the profiles on, it should turn off the ones that don't work (unless both of them work). Still, in case the run-once wasn't turning off when done, now it will.
(v2) I consider this the first fully stable release. However, you're welcome to note if it doesn't work for you.
Changelog (5-3):
The received_video_snaps folder will no longer be allowed to be deleted by Snapchat
No more error messages when saving video snaps
If the %Username(1) variable is unset, it will flash a Variable Query, which you should type the person's name in.
The only issue with this is for videos. You will just need to go back to the other screen and load the video again.
If/Then was deleted in the Username catching task to catch multiple usernames better.
Profiles should now only trigger once per file change. I would check from time to time to make sure they are still in the "on" position. It should be fine, but I won't assume anything.
Project icon changed to Snapchat icon
Changelog (4-29):
has been significantly enhanced from the original. It now does a much better job:
Preventing duplicates saves
Not running indefinitely
Running efficiently and quicker
Having less confusing global variables
Picking up the username (currently testing to see if this can be done even better, but I basically need to wait for a certain type of notification. It should be better regardless)
Edit, I think it's safe to delete the If and End If in the Update Username task, which might work for trying to pick up multiple usernames at the same time. This hasn't been extensively tested, but I'm pretty sure it's the correct decision
Automatically catching videos when they're loaded
I also fixed a few rather large errors that might have been in the previous release
Donations are accepted!
NEWEST Version is on the bottom (I'm not really sure why people are downloading the original version at this point... it's just there for reference. I may just remove that one if it tricks people that much...)
I should probably note that this does require root, because you have to change the permissions of the files for tasker to be able to read them.
Hello, is it possible to make one with this conditions with just a simple task...
Whenever I receive new snapchat notification, I then open tasker and just run that particular task.
What I want the task to do is just copy everything and remove the ".nomedia" extension from snapchat folder into a new folder in the memory card.
The reason I want this is that Snapchat isn't so popular in my country. Therefore, I only receive Snapchats once in a while and I only want to save the images sometimes. Not all the times. Moreover, i dont wanna keep tasker running in the background.
Thanks a lot!!
rfkw said:
Hello, is it possible to make one with this conditions with just a simple task...
Whenever I receive new snapchat notification, I then open tasker and just run that particular task.
What I want the task to do is just copy everything and remove the ".nomedia" extension from snapchat folder into a new folder in the memory card.
The reason I want this is that Snapchat isn't so popular in my country. Therefore, I only receive Snapchats once in a while and I only want to save the images sometimes. Not all the times. Moreover, i dont wanna keep tasker running in the background.
Thanks a lot!!
Click to expand...
Click to collapse
That should be rather simple. If you wanted to use my project, you would do that by deleting or turning off all the profiles in the project, and then you'd only need the tasks named Run & Rename Snapchat Image and Run & Rename Snapchat Video and get rid of some of the extra features that you don't need. For example, you could get rid of a bunch of the steps in the tasks.
[deleted]
This would technically work for both images and videos, but to get it to actually find the videos, you'd have to find a way to run the task while snapchat is loaded and the video says "Tap to View". I'd suggest setting up a gesture.
By the way, in the project I have, tasker only runs when each profile is active. That's why they're there, to prevent the battery drain that would otherwise occur. The profile states are rather infrequent (when you receive a snapchat notification, and when a file is changed in the directories listed), so I haven't really noticed battery drain from that.
You're also aware that you have to do this BEFORE you view the snapchat, right? Otherwise, you could just take a screenshot...
An alternative to the above method would be to use the Copy Dir command on those directories, or the FolderSync app, but you'd still need to change or add the correct file extension (jpg and mp4). Fiddle around with it; you might be able to figure out a way to add the extension.
Disregard below, I figured it out, it wasn't so clear about long pressing the icons at the bottom of the screen to get to the projects dialog. Done now! Thank you shenkenstein
I'm unable to import the prj file. I tried multiple things until I just changed it from snap.prj.xml to snap.prf.xml and the Tasker was able to see it in the import dialog. But once I select it I get:
Error: the import contains more than one profiles​
I'm thinking there's something missing in my Tasker. I keep hearing references to 'projects' but no such tab exists in my UI. I've gone to preferences and unchecked 'beginner mode' with very little changes.
What am I missing?​
shenkenstein said:
An alternative to the above method would be to use the Copy Dir command on those directories, or the FolderSync app, but you'd still need to change or add the correct file extension (jpg and mp4). Fiddle around with it; you might be able to figure out a way to add the extension.
Click to expand...
Click to collapse
I actually tried setting up a simple copy dir commad. Just copy dir from the receivedsnapchat folder to a random folder on my sdcard whenever I run Snapchat.
However, it doesnt seem to work. I guess it's something to do with the chmod thing which I'm not familiar with. Am I right?
Thanks for your help tho! I'll try out the steps you listed. Hopefully I can get it to work.
---------- Post added at 01:13 PM ---------- Previous post was at 12:18 PM ----------
shenkenstein said:
On second thought, what you want would just be easier to create a task with:
A1: List Files [ Dir:/data/data/com.snapchat.android/cache/received_image_snaps Match: Include Hidden Files: On Variable:%nomedia Continue Task After Error: On ]
A2: List Files [ Dir:/data/media/Android/data/com.snapchat.android/cache/received_video_snaps Match: Include Hidden Files: On Variable:%nomediavid Continue Task After Error: On ]
A3: Run Shell [ Command:chmod 777 %nomedia() Timeout (Seconds):0 Use Root: On Store Output In: Store Errors In: Store Result In: Continue Task After Error: On ]
A4: For [ Variable:%filestocopy Items:%nomedia() ] --- don't forget the () after nomedia
A5: Copy File [ From:%filestocopy To:Snapchat/Saves/%TIMEMS.jpg Use Root: Off Continue Task After Error: On] -- here's where I have an issue, because I'm pretty sure you need to tell it the original filename of the file, minus the nomedia part (the variables stored in %nomedia will be the entire filename, including directories). That's why I find it easier to create my own filename, so I'd use something like %TIMEMS as I have listed. You could also change the directory here. You COULD keep the old filename using tasker's variable search replace function with a regex to select everything but the nomedia part, but I think that's not worth the effort.
A6: End For
Click to expand...
Click to collapse
Alright managed to get it working. Currently for A5, I've set it to To:New Folder. This new folder is a folder on my sdcard.
The question I have is, if I'm using %TIMEMS.jpg, how would it rename the files? Would it be sequenced or will all the files have the same name?
Would it be 1TIMEMS.jpg, and next pic would be 2TIMEMS.jpg, 3TIMEMS.jpg and so on? Or would it be the original filename with TIMEMS at the back, ie. "adlfkadlfhadlfTIMEMS.jpg"?
Thanks!!
rfkw said:
Alright managed to get it working. Currently for A5, I've set it to To:New Folder. This new folder is a folder on my sdcard.
The question I have is, if I'm using %TIMEMS.jpg, how would it rename the files? Would it be sequenced or will all the files have the same name?
Would it be 1TIMEMS.jpg, and next pic would be 2TIMEMS.jpg, 3TIMEMS.jpg and so on? Or would it be the original filename with TIMEMS at the back, ie. "adlfkadlfhadlfTIMEMS.jpg"?
Thanks!!
Click to expand...
Click to collapse
You can see for yourself by doing a flash %TIMEMS. It always comes up with different numbers, such as 1367028766502 or 1367028766586. I don't think tasker is fast enough to do multiple commands in the same millisecond. Does that make sense?
And chmod is the shell command that gives the files permission to be read, write, and executed. You can read about it online if you really want, but if it's not working you either don't have root or didn't check use root. In fact, the Copy Dir alternative would probably require use root to be checked as well, but again, because we're wanting to change filenames, I don't think that's the command we want.
Bumping because of new version.
You can delete the old project and add this one if you have the older version. Deleting a project is done much the same way adding one is.
Vid done!
I installed and when I load a video, I get a message "Vid Done" When I exit Snapchat, I get a Tasker Error, List Files: file not found: /data/media/Android/com.snapchat.android/cache/Received video snaps. What am I doing wrong? I'm a noob, sorry if it's a dumb question.
Hi! I've imported it to Tasker, and everything seems fine there. However, it simply won't do anything and I've tried everything with my extremely limited knowledge.
I receive a Snap, but nothing shows up in /storage/sdcard0/Snapchat/Saves/(or Vids depending). Running Xperia P, with JB 4.1.2
I've checked that the images or videos do show up in the folders specified by the project, it just seems like it doesn't recognize I have gotten a snap?
Dahlmo said:
Hi! I've imported it to Tasker, and everything seems fine there. However, it simply won't do anything and I've tried everything with my extremely limited knowledge.
I receive a Snap, but nothing shows up in /storage/sdcard0/Snapchat/Saves/(or Vids depending). Running Xperia P, with JB 4.1.2
I've checked that the images or videos do show up in the folders specified by the project, it just seems like it doesn't recognize I have gotten a snap?
Click to expand...
Click to collapse
Do you have tasker enabled in accessibility settings? If not, then the profile won't get the username from the notification. If you don't want to enable it, you can add a Variable Query for Username(1) in the copying task. Then, that'll always ask you for that variable when it finds the file added. Just put whatever you want there (though it's designed for the person's name)
As my project is set up, the file won't copy if the username isn't set, and it won't set if tasker can't access the notifications.
I've just added:
If %Username(1) ! Set
Variable Query: Variable %Username(1)
End If
to my copy tasks right before the For, For, Run Shell, etc... commands. That should take care of that situation, if it's the problem, and if I release a new version it'll have it :good:
wdgewood said:
I installed and when I load a video, I get a message "Vid Done" When I exit Snapchat, I get a Tasker Error, List Files: file not found: /data/media/Android/com.snapchat.android/cache/Received video snaps. What am I doing wrong? I'm a noob, sorry if it's a dumb question.
Click to expand...
Click to collapse
No, it's not a dumb question. It's because the File Modified profile picks up when Snapchat deletes the file as well as when the file is copied by tasker (but the task that gets that error message is what allows it to not run every time this happens). It's not a significant error, UNLESS you aren't seeing it copy the files. You can turn those flash error messages off in Tasker Preferences>Action>Flash Problems.
Edit: I just fixed the error message from displaying even with the flash problems option checked. Go to the SnapVid File Added profile, click the File Modified part of it, and add /received_video_snaps/ after /cache/ so that it looks like "/data/media/Android/com.snapchat.android/cache/received_media_snaps/" without the quotes. I'm surprised I didn't notice that myself. Haha, thanks for pointing it out. That'll should also prevent the task from running while you're sending videos (because I saw a folder named sending_video_snaps there too before it deleted it again).
Edit 2: Nevermind, the error still came up, but it's only when snapchat deletes the folder. Also, my profile doesn't activate with that folder added, which is probably why I left it at /cache/. What's happening is the Video File Ready task is trying to List Files and it's not finding the folder in which it's supposed to search. I don't know any way around this because it keeps deleting the folder, even if you add it manually. --more on this below--
shenkenstein said:
Do you have tasker enabled in accessibility settings? If not, then the profile won't get the username from the notification. If you don't want to enable it, you can add a Variable Query for Username1 in the copying task. Then, that'll always ask you for that variable when it finds the file added. Just put whatever you want there (though it's designed for the person's name)
As my project is set up, the file won't copy if the username isn't set, and it won't set if tasker can't access the notifications.
Click to expand...
Click to collapse
After enabling it in the accessibility settings it still isn't working fully.
In Tasker, I imported the SNAP.prj.xml file, and the profiles "Snapchat Notification, Snap File Added and SnapVid File Added" are all set to on. Tasker says there are "no active profiles" but I assume that is due to the snap.prj.xml file being under the "two people" tab, and not the "house" tab.
I see that under vars on the home tab I have "%Username1 someoneIrecievedfrom" so something must be work. Just not getting any files I assume. Again, this (adding variables and such) is out of my league, so I apologize for seeming a bit technically impaired.
Dahlmo said:
After enabling it in the accessibility settings it still isn't working.
In Tasker, I imported the SNAP.prj.xml file, and the profiles "Snapchat Notification, Snap File Added and SnapVid File Added" are all set to on. Tasker says there are "no active profiles" but I assume that is due to the snap.prj.xml file being under the "two people" tab, and not the "house" tab.
I see that under vars on the home tab I have "%Username1 someoneIrecievedfrom" so something must be work. Just not getting any files I assume.
Click to expand...
Click to collapse
If you run the Run & Rename Snapchat Image task by itself, does it work then?
Hmm. Don't worry about the username variable, then. The "no active profiles" is fine, because these profiles are set to be active only for the event itself (which is like a split second long). The only other thing I can think of, without seeing your run log, is if you don't have root or haven't given Tasker root access. So, also try turning on the Run Log and noting where you get an error.
Breakthrough!
I just had a major breakthrough with the videos folder deletion problem (which ends up creating errors and stuff). [deleted]
That literally disables Snapchat's ability to delete folders in the cache folder, but it allows it to create new folders and files within the new folders. Theoretically, you could also do this same function to the received_video_snaps folder, and it would never be able to delete the files within the folder. Unfortunately, if you did that then every time you hit "load" in snapchat, it would load a new file into the folder, so you'd probably get multiples. But that could be done to the images folder without any issues, I think.
[deleted]
Dahlmo said:
After enabling it in the accessibility settings it still isn't working fully.
In Tasker, I imported the SNAP.prj.xml file, and the profiles "Snapchat Notification, Snap File Added and SnapVid File Added" are all set to on. Tasker says there are "no active profiles" but I assume that is due to the snap.prj.xml file being under the "two people" tab, and not the "house" tab.
I see that under vars on the home tab I have "%Username1 someoneIrecievedfrom" so something must be work. Just not getting any files I assume. Again, this (adding variables and such) is out of my league, so I apologize for seeming a bit technically impaired.
Click to expand...
Click to collapse
I'm having this issue too. I have a rooted Galaxy Nexus and have enabled Tasker in Accessibility settings. I've attempted to run the ''Run and Rename Snapchat Image' when I had a pending one and it did not work. I could, however, see the file in the directory (/data/data/com.snapchat.android/cache/received_image_snaps) when I checked it out via Root Explorer. I also could see my contact's name in the %Username value.
My Run Log from when I manually run that task with an active Snapchat is attached with the 5-3 profile.
a10waveracer said:
I'm having this issue too. I have a rooted Galaxy Nexus and have enabled Tasker in Accessibility settings. I've attempted to run the ''Run and Rename Snapchat Image' when I had a pending one and it did not work. I could, however, see the file in the directory (/data/data/com.snapchat.android/cache/received_image_snaps) when I checked it out via Root Explorer. I also could see my contact's name in the %Username value.
My Run Log from when I manually run that task with an active Snapchat is attached with the 5-3 profile.
Click to expand...
Click to collapse
Thanks for the Run Log.
Well, your answer is that the List Files command (label List nomedia) is failing to find the files in the folder. I can think of only two possible reasons for this (and I think it's #1):
1. Check the permissions of the folder /received_image_snaps/ and tell me if it's missing read permissions for group or other (I think Tasker falls under Other, but I forget). If it is, try manually adding those permissions (check the boxes); you might want to add permissions to execute as well, just in case. I can set up another command in the run-once profile to solve this for everyone if it fixes it for you, so let me know.
2. In the List nomedia command, I have it set up to match any files in there which have a character or more followed by .nomedia (this is under Match, listed as "+.nomedia"). If the files you see in that folder don't match this regex, it won't list them. You can safely delete this entirely without any negative side-effects. Nothing gets put in that folder that doesn't match that regex, anyway, for me.
shenkenstein said:
Thanks for the Run Log.
Well, your answer is that the List Files command (label List nomedia) is failing to find the files in the folder. I can think of only two possible reasons for this (and I think it's #1):
1. Check the permissions of the folder /received_image_snaps/ and tell me if it's missing read permissions for group or other (I think Tasker falls under Other, but I forget). If it is, try manually adding those permissions (check the boxes); you might want to add permissions to execute as well, just in case. I can set up another command in the run-once profile to solve this for everyone if it fixes it for you, so let me know.
2. In the List nomedia command, I have it set up to match any files in there which have a character or more followed by .nomedia (this is under Match, listed as "+.nomedia"). If the files you see in that folder don't match this regex, it won't list them. You can safely delete this entirely without any negative side-effects. Nothing gets put in that folder that doesn't match that regex, anyway, for me.
Click to expand...
Click to collapse
Yeah, the permissions were not set to allow it reading. Now it gets to the end before it fails. I've uploaded the run log as well as a screenshot of the error it pops out. It's worth noting that the file it "can't find" both exists and has 777 permissions set.
a10waveracer said:
Yeah, the permissions were not set to allow it reading. Now it gets to the end before it fails. I've uploaded the run log as well as a screenshot of the error it pops out. It's worth noting that the file it "can't find" both exists and has 777 permissions set.
Click to expand...
Click to collapse
Strange. I normally only see the copy file error if the file itself doesn't have permissions (which would be the result of the previous command not working) or if the %Username1 variable doesn't exist, but you noted clearly that it did work, and the variable should still be there from when it found it earlier.
And I think I just duplicated this error. It's so mundane that this is the case, but it's quite a big issue, so I'll have to update the version in a bit. Try adding a Saves folder in your Snapchat folder in your sd card. I was about to doubt this would be the case until I tried a different folder in my task.
Though, I'm confused why your screen still showed that error. Something's still awry I think...

[Q] Push source changes to Superuser app

Hello,
Recently I pull down the source code for Koushik Dutta's Superuser app. I made some changes in the source. This changes are the following:
1. SuHelper class now throws 2 kind of exceptions instead of one generic instance of Exception. I believe it is better for developing. Different exceptions, different reasons, different action to do when they are catched.
2. Fixes for several Lint's warnings.
3. Fixes in translation.
4. UI new features:
a) At the first screen you can long click at an item several actions are shown ("Allow/Deny" which changes the permission without deleting the permission, "Revoke permission", "Details" leads to the same screen as a simple click o\at an item).
b) At the details screen for every item/application and new checkbox/switch added to allow/deny superuser permission.
c) At settings screen miscellaneous settings added which refer to the pop-up dialog about the outdated su binary.
Please see the attached photos from the modified application.
I would like to ask 2 questions now:
1. Do you think that these changes are useful to you?
2. Has anyone contribute by commiting any source to this app? Should I pull the current HEAD of the from the repository or simply commit and push my changes?
Thanks in advance,
LiTTle
PS: Dear moderator's, I think that this thread fits better at "Android Software and Hacking General [Developers Only]" or "Android Software Development" but I was not able to post it there.
Still working on this
I am still working on this. New features added. I will try to post some more posts in order to move this question to the appropriate sector!
1. Minor bug fix. You can reproduce this fix by following the next steps:
-From the first screen select / click / touch an application.
-The details screen for this application is shown.
-Rotate the device.
-View the trash icon which will clear all logs. The trash menu should not appear in here.
2. Disable the countdown at Superuser Request screen. I don't like to wait. Do you?
3. Change the default position of the toast (up / center / down) when an application receives superuser privileges.
4. You can start an application from inside this application. Why only do you view the list of the applications at the first screen.? From now on, you can run them!
I downloaded the whole official repository for Superuser app, merge the changes and I created an update.zip.
Feel free to download it and and give me comments at this thread!
At least let me know that you like the changes!
PS: I just made some enhancements. The main developer is Koushik Dutta. I am not going to still reputation from him!
TheLiTTle said:
Hello,
Recently I pull down the source code for Koushik Dutta's Superuser app. I made some changes in the source. This changes are the following:
1. SuHelper class now throws 2 kind of exceptions instead of one generic instance of Exception. I believe it is better for developing. Different exceptions, different reasons, different action to do when they are catched.
2. Fixes for several Lint's warnings.
3. Fixes in translation.
4. UI new features:
a) At the first screen you can long click at an item several actions are shown ("Allow/Deny" which changes the permission without deleting the permission, "Revoke permission", "Details" leads to the same screen as a simple click o\at an item).
b) At the details screen for every item/application and new checkbox/switch added to allow/deny superuser permission.
c) At settings screen miscellaneous settings added which refer to the pop-up dialog about the outdated su binary.
Please see the attached photos from the modified application.
I would like to ask 2 questions now:
1. Do you think that these changes are useful to you?
2. Has anyone contribute by commiting any source to this app? Should I pull the current HEAD of the from the repository or simply commit and push my changes?
Thanks in advance,
LiTTle
PS: Dear moderator's, I think that this thread fits better at "Android Software and Hacking General [Developers Only]" or "Android Software Development" but I was not able to post it there.
Click to expand...
Click to collapse
Bug fixes
After a little work I found a bug every time the extra actions are shown when the user does a long click at an application. This bug is only visible for tablet users. I attach the new "update.zip" file. I attach new "update.zip" file because I don't see a lot of downloads. In case more than 5 downlaods will happen I will upload it at the play store also, along
The 1 person who tried it, she reported the error!
TheLiTTle said:
I am still working on this. New features added. I will try to post some more posts in order to move this question to the appropriate sector!
1. Minor bug fix. You can reproduce this fix by following the next steps:
-From the first screen select / click / touch an application.
-The details screen for this application is shown.
-Rotate the device.
-View the trash icon which will clear all logs. The trash menu should not appear in here.
2. Disable the countdown at Superuser Request screen. I don't like to wait. Do you?
3. Change the default position of the toast (up / center / down) when an application receives superuser privileges.
4. You can start an application from inside this application. Why only do you view the list of the applications at the first screen.? From now on, you can run them!
I downloaded the whole official repository for Superuser app, merge the changes and I created an update.zip.
Feel free to download it and and give me comments at this thread!
At least let me know that you like the changes!
PS: I just made some enhancements. The main developer is Koushik Dutta. I am not going to still reputation from him!
Click to expand...
Click to collapse
I am in touch with the developer to push my changes in his repository. Thanks for any help.
I will post again if I have trouble!
TheLiTTle said:
After a little work I found a bug every time the extra actions are shown when the user does a long click at an application. This bug is only visible for tablet users. I attach the new "update.zip" file. I attach new "update.zip" file because I don't see a lot of downloads. In case more than 5 downlaods will happen I will upload it at the play store also, along
The 1 person who tried it, she reported the error!
Click to expand...
Click to collapse

[Xiaomi] [MIUI] Switch users issue

Hi everyone,
Is there any people already used Multiple users in MIUI?
I need to use Multiple android users on my Redmi Note 8T running MIUI 11 very much.
In order to do that I turned off MIUI optimizations and changed build.prop(via unlocking bootloader) to have:
fw.max_users=5
fw.show_multiuserui=1
Also tried adding:
fw.show_hidden_users=1
fw.power_user_switcher=1
I see the "Multiple Users" option in Settings now.
However, when I create New User, finish it's setup process and switch back to Owner,
I can't use this New User anymore. It doesn't let me switch to it again. (Click on "New User" in users list does nothing.)
Also there is no User icon in notification bar menu to switch users.
I have a guess why:
1) MIUI Second Space feature: when I create new user and set up it's profile I constantly see Second Space Icon in the notification bar near battery percentage.
And only way it lets me switch back to Owner is clicking on "Switch" Icon (which was automatically created shortcut at main screen). Clicking Owner in "Multiple Users" menu does nothing.
2) not as plausible as first one but: When I create new user profile it doesn't let me finish the process without setting it's password first. Maybe
Second Space logic somehow can't use new profile password.
Is there any people already used Multiple users in MIUI?
Or maybe someone have any ideas on how to disable Second Space interception of users switch with modifying some prop files or other system files?
I will appreciate any help with this very much.
PS. Also I know there is an option to switch users via running terminal/shell commands, but it's not so convinient to run these commands every time and it requires root.
I prefer to not root the device and try every option I can first.
If there is nothing to do with that, then I am willing to use Lineage OS instead of rooted MIUI.
Thanks for any feedback!
I have the same issues, I add a new user from 'multiple users' in settings, but I have no way of actually switching back and forth between user profiles. Even EMUI allows this, which I never knew was possible up until a few days ago.
Any Updates?
I have same problem.
Is there a fix?
I m also searching for this only...
Is anyone knows this?
realdidi said:
Hi everyone,
Is there any people already used Multiple users in MIUI?
I need to use Multiple android users on my Redmi Note 8T running MIUI 11 very much.
In order to do that I turned off MIUI optimizations and changed build.prop(via unlocking bootloader) to have:
fw.max_users=5
fw.show_multiuserui=1
Also tried adding:
fw.show_hidden_users=1
fw.power_user_switcher=1
I see the "Multiple Users" option in Settings now.
However, when I create New User, finish it's setup process and switch back to Owner,
I can't use this New User anymore. It doesn't let me switch to it again. (Click on "New User" in users list does nothing.)
Also there is no User icon in notification bar menu to switch users.
I have a guess why:
1) MIUI Second Space feature: when I create new user and set up it's profile I constantly see Second Space Icon in the notification bar near battery percentage.
And only way it lets me switch back to Owner is clicking on "Switch" Icon (which was automatically created shortcut at main screen). Clicking Owner in "Multiple Users" menu does nothing.
2) not as plausible as first one but: When I create new user profile it doesn't let me finish the process without setting it's password first. Maybe
Second Space logic somehow can't use new profile password.
Is there any people already used Multiple users in MIUI?
Or maybe someone have any ideas on how to disable Second Space interception of users switch with modifying some prop files or other system files?
I will appreciate any help with this very much.
PS. Also I know there is an option to switch users via running terminal/shell commands, but it's not so convinient to run these commands every time and it requires root.
I prefer to not root the device and try every option I can first.
If there is nothing to do with that, then I am willing to use Lineage OS instead of rooted MIUI.
Thanks for any feedback!
Click to expand...
Click to collapse
Bro what is that terminal command plz tell
realdidi said:
Hi everyone,
Is there any people already used Multiple users in MIUI?
I need to use Multiple android users on my Redmi Note 8T running MIUI 11 very much.
In order to do that I turned off MIUI optimizations and changed build.prop(via unlocking bootloader) to have:
fw.max_users=5
fw.show_multiuserui=1
Also tried adding:
fw.show_hidden_users=1
fw.power_user_switcher=1
I see the "Multiple Users" option in Settings now.
However, when I create New User, finish it's setup process and switch back to Owner,
I can't use this New User anymore. It doesn't let me switch to it again. (Click on "New User" in users list does nothing.)
Also there is no User icon in notification bar menu to switch users.
I have a guess why:
1) MIUI Second Space feature: when I create new user and set up it's profile I constantly see Second Space Icon in the notification bar near battery percentage.
And only way it lets me switch back to Owner is clicking on "Switch" Icon (which was automatically created shortcut at main screen). Clicking Owner in "Multiple Users" menu does nothing.
2) not as plausible as first one but: When I create new user profile it doesn't let me finish the process without setting it's password first. Maybe
Second Space logic somehow can't use new profile password.
Is there any people already used Multiple users in MIUI?
Or maybe someone have any ideas on how to disable Second Space interception of users switch with modifying some prop files or other system files?
I will appreciate any help with this very much.
PS. Also I know there is an option to switch users via running terminal/shell commands, but it's not so convinient to run these commands every time and it requires root.
I prefer to not root the device and try every option I can first.
If there is nothing to do with that, then I am willing to use Lineage OS instead of rooted MIUI.
Thanks for any feedback!
Click to expand...
Click to collapse
I had a Same problem with my xiaomi redmi 9A but I have figured out the solution. So if u r still interested then reach me here "email: [email protected]" 0r tel: 0789644207.
realdidi said:
Hi everyone,
Is there any people already used Multiple users in MIUI?
I need to use Multiple android users on my Redmi Note 8T running MIUI 11 very much.
In order to do that I turned off MIUI optimizations and changed build.prop(via unlocking bootloader) to have:
fw.max_users=5
fw.show_multiuserui=1
Also tried adding:
fw.show_hidden_users=1
fw.power_user_switcher=1
I see the "Multiple Users" option in Settings now.
However, when I create New User, finish it's setup process and switch back to Owner,
I can't use this New User anymore. It doesn't let me switch to it again. (Click on "New User" in users list does nothing.)
Also there is no User icon in notification bar menu to switch users.
I have a guess why:
1) MIUI Second Space feature: when I create new user and set up it's profile I constantly see Second Space Icon in the notification bar near battery percentage.
And only way it lets me switch back to Owner is clicking on "Switch" Icon (which was automatically created shortcut at main screen). Clicking Owner in "Multiple Users" menu does nothing.
2) not as plausible as first one but: When I create new user profile it doesn't let me finish the process without setting it's password first. Maybe
Second Space logic somehow can't use new profile password.
Is there any people already used Multiple users in MIUI?
Or maybe someone have any ideas on how to disable Second Space interception of users switch with modifying some prop files or other system files?
I will appreciate any help with this very much.
PS. Also I know there is an option to switch users via running terminal/shell commands, but it's not so convinient to run these commands every time and it requires root.
I prefer to not root the device and try every option I can first.
If there is nothing to do with that, then I am willing to use Lineage OS instead of rooted MIUI.
Thanks for any feedback!
Click to expand...
Click to collapse
I had a Same problem with my xiaomi redmi 9A but I have figured out the solution. So if u r still interested then reach me here "email: [email protected]" 0r Tel: +256789644207 Or via Whatsapp: +256789644207.
sam107 said:
I m also searching for this only...
Is anyone knows this?
Click to expand...
Click to collapse
I had a Same problem with my xiaomi redmi 9A but I have figured out the solution. So if u r still interested then reach me here "email: [email protected]" 0r Tel: +256789644207 Or via Whatsapp: +256789644207
tzahik1 said:
Any Updates?
I have same problem.
Is there a fix?
Click to expand...
Click to collapse
I had a Same problem with my xiaomi redmi 9A but I have figured out the solution. So if u r still interested then reach me here "email: [email protected]" 0r Tel: +256789644207 Or via Whatsapp: +256789644207
10000% working solution.
Download Security core component v25 apk from here:https://www.apkmirror.com/apk/xiaomi-inc/security-core-component/security-core-component-25-release/
Download quick-short-cut maker from here:
Download QuickShortcutMaker APK for FRP Bypass (All Version) - Latest 2022
Download QuickShortcutMaker apk It makes a shortcut for every pre-installed Android application and let you FRP Bypass from your phone,
www.bypassfrpfiles.com
Install both the packages to ur phone
Launch quick shortcut maker
Under activities tab in quick shortcut maker, look for security core component And click on it.
U will view so many icons then select 2nd option which says second space
After that click on the Try this option.
Go through the setup process And complete setting up ur second space but remember to password ur space so as to distinguish between them.
Also remember to select the use password to switch between spaces.
When ur space is ready u can always open quick shortcut maker and under the security componetns option try all the available options to complete ur setup process like sharing apps, duo apps, shared files, contacts e.t.c.
There now u r done......

Region unlock procedure oppo find x 2 neo Dual Sim

This guide is a copy paste from this thread:
[GUIDE] Switch software region to Upgrade to ColorOS 11 and enable Dual Sim.
I want to write this here so it's all in one place and not scattered around different threads. Apologies for the bad formatting in some parts as this is on of my first contribution. Most of this is copied from this thread: I am adding onto this...
forum.xda-developers.com
For my oppo find x 2 neo it worked.
I remind you that it precedes it and has your danger
I am not responsible for any damage or blockages
DISCLAIMER: Use this at your own discretion. So far, when it works, it doesn't wipe any personal data
and nearly no issues are caused. Still, I am not responsible for bricked devices, broken warranties or lost data.
If you haven't already, enable Developer Options and USB Debugging.
Next, download the Oppo_Free_Unlock_v1.0.zip file from the attachments and extract it somewhere.
Before you run anything, though, there's a little preparation that needs to be done.
Open Device Manager and expand the Network Adapters category.
Find your Ethernet adapter and double click it to open its properties.
Go to the Advanced tab and find the Network Address option in the Property pane.
Under the Value pane, select the radio button next to the text box and paste in the following: 704D7B61ABCD.
If you don't have an Ethernet adapter, try to find another network adapter here that has the Network Address property. It may help to install VirtualBox, since it will add fake Ethernet adapters.
Close the properties window and close Device Manager.
Go to where you extracted the unlock tools. Open Sec5.exe.
Make sure your device is in MTP mode, and then press the Unlock button.
After about a second, a string of numbers and letters should show up in the left pane. A few seconds later, "OK" should start flashing in the right pane. If it says "device not found" or something similar, make sure MTP Mode is activated. Press "Stop unlocking" and close the window.
Open the phone app on your device and dial *#3954391#. Then dial *#391#. A screen should come up with a whole bunch of regions listed. Choose this one: "Singapore Ex". Note: This Version has Theme Store, but no Ringtone Maker. Feel free to try other versions. EDIT: DO NOT CHANGE TO A REGION WITH CARRIER, ESPECIALLY THAILAND AS YOU WON'T BE ABLE TO CHANGE BACK! AT LEAST WHILE ON ANDROID 10. STICK WITH THOSE THAT END IN EX. Once you have done this, it appears that you can always bring up the region menu when dialing the numbers..
Your phone should now reboot. Once it's rebooted, your region will have changed.
Every time you changed region and want to change it again you need to use the software. You can get a code that you can use every time to change the region instead of using this software every time. (Update- one person report that this code(token) wont work for every time as his STAMP code changed.)
For this you need to: Open the dialer app , dial *#9434# ,press authtokendecrypt. You will see a IMEI and STAMP. Open the Sec5.exe and write the IMEI and STAMP shown on your phone in the blank space of the IMEI and STAMP in the software and press Generate a token, you will see a string of numbers and letters, write it on the token blank text box and click authtokendecrypt. Now you will see every text written in green. Now you can follow the steps in the guide but skip the steps that have to do with sec5. The Token that the software gave you is the same code that you need to enter in the *#9434# every time you want to change region so you do not need to use the software ever again.
UPDATE: Currently, it doesn't seem to work anymore for some people. Try installing Loopback network driver ( How to install Loopback) and uninstalling or disabling all other network drivers. If you are afraid of doing this with your own device you can use a Virtual Machine, too. I tried it this way.. Rest of the process is the same, just change the network address in Device Manager the same way as before.
Now that you are on the Pakistan Version, you can also run the device in dual sim mode, which was disabled in EU Mode. Some users have ordered Dual-Sim-trays on AliExpress and are now able to use it in this way. Also this might open up the path to unlock the bootloader, since that is limited to chinese devices only. I have not tried this out yet, though.
In theory, changing your region like this should work on any OPPO device running at least Android Pie (9). It may even work on earlier versions.
NOTE: This will not work for Chinese variants. These codes are filtered and will only work for international variants.
this guide no longer works with the new updates for both x2 pro and neo so let's avoid posting things that are not valid there is already a tutorial
*#3954391# and *#391#not working in color os 11 solution plz

Categories

Resources