How to make non-admin user-profile as default for bootup - General Questions and Answers

hi
I am using Lineage OS, and also have root on my phone.
I have been able to create multiple user profiles, who are "non-admin" users on the phone.
What I want to do is that the phone should be able to directly boot into the non-admin user profile, does any dev here know how to do that ?
I am pretty technical, so if there is currently no way, I would love to work for another dev to help make this possible.
Ghat

Look inside here:
How to set restricted user as default user on reboot?
We would like to have an already added restricted user account be the default when we restart our Samsung SM-T580 tablets. At current we have 2 accounts installed, Admin and User The User is a use...
android.stackexchange.com

Related

[App] [2.1+] SwitchMe Multiple User Accounts - Securely Share Your Device

SwitchMe - share your device!
SwitchMe is a unique application for root users that allows you to log in and out of multiple installations of Android just as you would on a desktop computer.
SwitchMe is a unique application for root users that allows you to log in and out of multiple user spaces just as you would on a desktop computer, with each profile having its own separate system settings, apps and data.
Some of the benefits of this technology:
Privacy
Securely share one device among many users, protect your accounts with passwords and log out automatically.
Kids
Create a profile for the kids, with only the apps and access you feel comfortable with.
Gaming
Overclock your profile for maximum performance in intensive games
Speed
Imagine a buttery smooth profile, with no kids games, messengers or bloatware to slow things down.
Testing
Create a sandbox profile to easily test applications and themes - no more nandroid nightmares!
Battery
Switch to a profile which only contains the essentials to save power through brute force.
Critical usage warning:
Incorrect use of this application can potentially harm your device. Before proceeding with use we strongly recommend that you perform a full nandroid backup through the device recovery.
READ THE HELP FILE CAREFULLY TO AVOID ISSUES
Without the Key, this application allows a maximum of 2 profiles and no security features.
Only the standard Android implementation of Apps2SD is currently supported. Use all others at your own risk.
Most devices should be compatible as long as they have enough free internal memory to create secondary profiles. The application will warn users if available memory is low.
These of course are only suggestions - there are plenty of other uses for the functionality SwitchMe offers.
Market link:
https://market.android.com/details?id=fahrbot.apps.switchme
The free version allows the creation of two profiles and has no security features.
Screens:
Adminitrator accounts
Any profile on the device can be given elevated-privelage administrator rights. These accounts have the ability to wipe all profiles from the device, or delete individual profiles. An administrator however can not switch to other password-protected accounts, only remove them or grant them administrator permissions.
Once you have granted admin rights to a profile, the owner of that profile will have the same privilages as you. You can revoke these rights from the same menu in security settings.
Incompatibility errors
These are usually caused by Superuser installations outside /system. If you find that this error occurs inside a newly created profile, go to the market and download the Superuser app and then go back into SwitchMe. You should now be able to switch back to your original profile.
These can also be used by erroneous A2SD links in your ROM. Try another if you need this app to work.
Custom Roms
Most stock based roms work flawlessly, some custom ones do not. We know that MIUI currently has framework glitches. CM7 and CM9 are known to work well - tested on Xoom, Xoom 2, Galaxy Nexus, Transformer 101/201/301 and Galaxy Tab 7.7/8.9/10.1, Incredible S, Sensation, Iconia tabs, Nexus 7
A general to do list from user feedback (not exclusive)
Must have
Widget like in Call Master [done]
Encryption
Export profiles to SD
Location aware (probably through Tasker)
Could use
More detailed info
App/data sharing
Custom lockscreen
Would be nice
Support for A2SD etc [done]
Reserve space for profiles
Oh WOW! Testing immediately on my Galaxy Tab 10.1!
Seems really amazing! but sounds risky, so I will wait for feedback from others. I just hope that the switching does not take up too much time or battery for that matter.
Will this work on a Samsung exhibit II
via Dan swagger
008bond said:
Seems really amazing! but sounds risky, so I will wait for feedback from others. I just hope that the switching does not take up too much time or battery for that matter.
Click to expand...
Click to collapse
It will warn you if there is not enough space... so unless you have trouble reading warnings its pretty much risk free.
dswaggz said:
Will this work on a Samsung exhibit II
via Dan swagger
Click to expand...
Click to collapse
I dont see why not. Just make sure your current profile doesnt take up more than half the ROM if you clone it.
Alright, will make nandroid backup and try.
Is it possible to run two different android Roms ?
as in - On one profile have CM7 and on another profile have a stock based rom
No. Only multiple installations of the same base rom. Any content inside /system cannot not be changed.
008bond said:
Seems really amazing! but sounds risky, so I will wait for feedback from others. I just hope that the switching does not take up too much time or battery for that matter.
Click to expand...
Click to collapse
I just tried it on Galaxy Nexus and Galaxy Tab 10.1 - it works amazingly!!! Now going to make a secret private profile for my double life
this is great.
Sent from my VS910 4G using xda premium
Bah! When I open application, Not compatible with sgs. Miui 2.1.20
woolf clubs said:
Bah! Not compatible with sgs. Miui 2.1.20
Click to expand...
Click to collapse
Could you be more specific mate? What exactly is not compatible?
Works fine on our SGS in the office...
Well this worked for me on MIUI on MT4G, but on the profile I created, there was no status bar... is that normal?
simplyrafa8 said:
Well this worked for me on MIUI on MT4G, but on the profile I created, there was no status bar... is that normal?
Click to expand...
Click to collapse
You mean you switched to a new profile and there was no status bar? Or you cloned it and there was no status bar?
Maybe you could help us debug - post a screenshot, use the "Write to us" function?
ftgg99 said:
You mean you switched to a new profile and there was no status bar? Or you cloned it and there was no status bar?
Maybe you could help us debug - post a screenshot, use the "Write to us" function?
Click to expand...
Click to collapse
I switched to a new one and there was none. I'll try again, if it's not there again, I'll screen shot it, and send you guys the image
Better send logs as well. Be sure to include a description - "no status bar in new profile" or something to that effect.
ftgg99 said:
Better send logs as well. Be sure to include a description - "no status bar in new profile" or something to that effect.
Click to expand...
Click to collapse
Just did it! Here's an image
Interesting... i think this is fixable. Are you using a custom one? Or storing any apps on the sd?

Questions about building own rom for multiply purpose

Dear XDA-ers,
I want to create a standard ROM for 200+ G9100 (Samsung galaxy S2),
but i am stuck with adding a standard gmail account to play store how to standard adding a gmail account to the ROM so they can directly go to the playstore.
A other issue is that we use a RDP application when users of the smartphones having issues we can remotly take over the phone, but for this application it is required to enable "Unknown Sources", how can i enable this within the ROM?
I Hope someone can answer my questions so i can go further building the custom ROM.
:good:
kick it!
Some kick so maybe anyone has an idea
Nobody got any idea?
Nobody got any idea?

Asking for opinion regarding customizing tablet for nursing staff

Hi,
I'm currently programming an app for a hospital as a bachelorsproject. Now I've discussed with my mentor about the fact we want the devices to be used only as pupose for the app I'm making, apps we preinstall and future apps that are made for the personel thats using them.
Currently I'm working with a Galaxy Tab A 10.1 (2016) running android 6.0.1 without it being rooted.
So what do you guys suggest with this I've done some reading along how to root whats possible and seen some guides for my device on how to root it.
What I want to do is actually have like a stock android so no samsung bloatware and microsoft apps etc, even chrome doesn't need to be installed as they don't need acces to browsing. And then pre install specific apps like my app, the one from the hospital itself, future apps and others we specifically need.
Also I'm new to android in general so can I create like a nurse user, and a IT-desk user so the IT desk user can log on the tablet and install an app, while the nurse doesn't even have acces to settings maybe.
Would love to hear what you guys think along what to do, and maybe some general steps like root it, flash a stock rom, create your (2)users, and install apps.
Tommyboy500 said:
Hi,
I'm currently programming an app for a hospital as a bachelorsproject. Now I've discussed with my mentor about the fact we want the devices to be used only as pupose for the app I'm making, apps we preinstall and future apps that are made for the personel thats using them.
Currently I'm working with a Galaxy Tab A 10.1 (2016) running android 6.0.1 without it being rooted.
So what do you guys suggest with this I've done some reading along how to root whats possible and seen some guides for my device on how to root it.
What I want to do is actually have like a stock android so no samsung bloatware and microsoft apps etc, even chrome doesn't need to be installed as they don't need acces to browsing. And then pre install specific apps like my app, the one from the hospital itself, future apps and others we specifically need.
Also I'm new to android in general so can I create like a nurse user, and a IT-desk user so the IT desk user can log on the tablet and install an app, while the nurse doesn't even have acces to settings maybe.
Would love to hear what you guys think along what to do, and maybe some general steps like root it, flash a stock rom, create your (2)users, and install apps.
Click to expand...
Click to collapse
You could build an AOSP ROM for that model number with only the apps and features you choose, it would require AOSP source code and your stock source code.
Then, yes, android natively supports setting up user profiles, with root access you can set it so that the "nurse user" profile can only use the device and an "admin user" would have exclusive permissions to make whatever changes are needed. You can set it so that the "nurse user" would not be able to install new apps, wouldn't be able to browse the web or even set it so they could browse if needed but would be limited in what they can access on the web, and you'd be able to set it so they would be locked out of all settings.
What you want is very possible, the most difficult part would be compiling the ROM if you go that route, you may not need or want to though because with root, you can strip down the existing stock firmware to remove the extras you don't want or need.
Mind you, there would be some details and specifics to deal with that would require trial and error along the way, obviously.

Security, privacy, prevent from tampering, hide apps: Root and/or Add new user, etc?

What is the best way to administrate some normal user's phone (the choice is either yet unrooted Samsung J5 2017, or rooted LG G3 d855 running RESURRECTION REMIX 7.1.1_r9) for security, privacy, prevention from tampering (whenever administrator is not physically nearby), and if possible the best way to also put some hidden backgroud running app(s) into the phone which would be visible to administrator user only?
The requirement is to remove ability for unknown smart people who would get the phone in their hands and know the password of that normal user to hack it or install any hidden spyware or tracking apps, etc.
Should the unrooted phone be rooted then?
Does rooting help or is it even easier for someone else to tamper with the device exactly because it's rooted?
Could 'Add new user' be a part of solution too (i.e. let the normal phone user use the phone as an additional user only)?
What else could be done to make this kind of things possible?
A little bit related question is here, for context:
https://forum.xda-developers.com/general/help/rights-root-access-visibility-admin-vs-t3739600
Are questions like these answered somewhere else? I couldn't find it. Or is such kind of privacy, security not possible? Or why noone answers to my questions?..

install/uninstall apps only at one profile

Hi all,
I am trying to make a simple magisk module, something like xXx. I would just make it an extreme debloat script, where you can go to stock rom with only the main.vital apps needed for operation, changed as.much as possible to open source variants of the same kind of app, and right away add switches to install apps, just to make everyobes life a little easier.
I understand most of it, however, a few questions remain, is it possible to.install/uninstall apps only for one profile eg. The work profile.
The thing is i want totally different apps in both and.am using Island where this is sometimes not so easy to achieve. I pretty much been.messing up things
Thanks forbyour.time guys!
AFAIK Android PackageManagerService generally supports only one APK for a package name, instead one APK per user, i.e. it's not fully multi-user in that sense. There are certain exceptions like, you can have one version on the system partition and another on the data partition as an update to it, and different users/profiles can have separate state about either using the updated version, the stock version or just marked as uninstalled.

Categories

Resources