changing environment settings like google-account-synchronization - Java for Android App Development

Hei Forum,
i need to manage about 100-150 smartphones. Non rooted Samsung Galaxy 2 running Android 4.1.2.
I want to develop an app and am searching for information about how to:
- change the synchronization settings in the google account
- change the synchronization settings of android (searching for os updates)
- change the synchronization settings of apps, so they update themselves from the playstore (or not)
I tried googling it for a few days, but gave up because searching for +android +account +settings +developing didn't gave me any ressources for how to achieve my goal.
Do you have any informations/linsk about these topics?
Thanks in advance!

Related

[Q] Forcing locale for a specific application

Hi,
I'm trying to figure out a way to force a specific locale for an application. I like to use my applications in their "native langage" so my system is in english. But for many applications, it would be better for me to be able to run them in french. For exemple, Google goggle doesnt not recognize frnech text when it's set in english...
I guess the app would probably need to have access to root privilege. But I dont know the Android API enough yet. Is there anyone here that have an idea if it's even possible ? I dont want to spend countless hours looking for a solution if anyone here can tell me it's impossible or if someone can put me on the track.
Thank you
HTC Desire CM7
If you add different layout folders to your app(layout-es, values-fr) they will be loaded according to the phone's locale.
here is the documentation: http://developer.android.com/guide/topics/resources/localization.html
also if this is for programs that you dont have access to the source then you could mess around with "Allow Mock Locations" in cm7. havent had a reason to try it so i dont know if this would be your answer but its worth a look. and im not sure if its exclusive to cm7.
Settings -> Applications -> Development -> Allow Mock Locations
Do you want to force locale on your own app (by creating an option where the user can change locale), or on some already existing apps that don't have such an option ?
If I understand correctly, you want to achieve the former. I would guess there's an application for this. Try "More locale". AFAIK it only changes the whole system's locale, but I didn't try it myself. Maybe it can change locale for specific apps.

[Q] Nexus 4 (or Android in general) Privacy from Google

Hi,
Is it possible to completely stop information leakage to google from my telephone, such as contacts or even aps purchased?
Oxy20 said:
Hi,
Is it possible to completely stop information leakage to google from my telephone, such as contacts or even aps purchased?
Click to expand...
Click to collapse
some options:
work without google apps! most custom roms come without it! GApps package is a additional zip!
many custom roms included privacy manager from cm. you define what the app is allowed to. for example read contacts yes or no
In AOSP Android (I think since 4.3 or 4.2) is app ops included. It's like privacy manager with detailed options.
hope it hepls. What rom you are using?
carepack said:
some options:
work without google apps! most custom roms come without it! GApps package is a additional zip!
many custom roms included privacy manager from cm. you define what the app is allowed to. for example read contacts yes or no
In AOSP Android (I think since 4.3 or 4.2) is app ops included. It's like privacy manager with detailed options.
hope it hepls. What rom you are using?
Click to expand...
Click to collapse
I am on 4.3 stock ROM. The phone is unlocked and rooted.
I tried CM Rom as part of 2 way call recording patch trial but had to revert back to ROM due to stability problems. But the problems were due to the trial nature of the patched ROM http://forum.xda-developers.com/showpost.php?p=45730852&postcount=47 I tried rather then general CM problems. So I suppose could try a stable, up to date version of CM ROM.
I suppose without Google Play I can not have paid apps like skvalex call recorder? If I have to leak some info to Google can I ensure no call details, contacts, calendar etc are shared / backed up etc to Google?
Oxy20 said:
I am on 4.3 stock ROM. The phone is unlocked and rooted.
I tried CM Rom as part of 2 way call recording patch trial but had to revert back to ROM due to stability problems. But the problems were due to the trial nature of the patched ROM http://forum.xda-developers.com/showpost.php?p=45730852&postcount=47 I tried rather then general CM problems. So I suppose could try a stable, up to date version of CM ROM.
I suppose without Google Play I can not have paid apps like skvalex call recorder? If I have to leak some info to Google can I ensure no call details, contacts, calendar etc are shared / backed up etc to Google?
Click to expand...
Click to collapse
try a look at here:
http://www.androidpolice.com/2013/0...ager-control-permissions-for-individual-apps/
Technically yes, but practically no. Even if you stop now, you probably have used Google services in the past and they already have those info. Even if you do not use Google apps, there are lots of way for your phone to connect to Google server (various core Google apks). Lots of apps and websites use Google Analytic as well, although that info is supposed to be anonymous, or apps that utilize Google services in some way or purchased apps that required verification. You basically have to micromanage the permission of every app and this isn't exactly easy and is time consuming, slips up are easy too.
My recommends are:
Most effective: Be lke Richard Stallman, stop using internet completely, except for devices that isn't your. Don't use telephone at all. Have no WiFi running in your house and remove your address from Google Maps, then move to South Georgia and the South Sandwich Islands.
Less effective: Don't use 'gapps' and Google apps at all. You can use Amazon AppStore to download apps. Or use Firefox OS or Ubuntu Touch instead.
Less effective alternative: Use permission management. There are many ways to do this. Android 4.3 have AppOps and there are shortcut apps to let you access to the hidden menu, however it's not very convenient to use. It's better to use CM or SlimRoms which in addition have the Privacy Guard toggle feature (Settings -> Security-> bottom of list). SlimRoms let you turn it on for installed apps by default. It blocks access to contacts and location. I'm not sure if it block network and phone IDs info though.
For more refined permission management, there is the Xposed Framework module called XPrivacy. It has a high learning curve and blocking the wrong permission will cripple your apps or make it not working. There is also LBE Security Master and OpenPDroid, but I much prefer XPrivacy.
You can also use AFwall+ which modify the Linux kernel's iptables to block internet connection, this is the most assured method to block internet connection access for apps imo.
If you still need to make use of Google apps or services, such as facelock and photosphere, but want to avoid installing 'Google services framework', you can use these gapps packages and not install the core package. Keep in mind, 'Google services framework' is important for connecting to Google server and without it some 'find your phone' apps won't work like Cerberus.
You can see if your phone is connected or syncing to Google server by the color of the WiFi icon color, gray means no, and blue means yes.
I have always wondered about why someone would buy a smartphone, Android or iOS and then worry about security? Why not just buy a simple TracPhone or something similar?
Not trying to knock on anyone, just wondering.
Sent from the Far Reaches Of The Earth!

[Q] ROMs w/ advanced settings extended to multi user?

Are there any ROMs out there that have their customized settings available to another user (in multi user) other than the "owner"? Or is it a limitation of Android 4.4.2 at this point?
I have seen a couple things set by the owner carry over to another user (quick launch, quick settings), but not all.
I know superuser/superSU allows for root to work with another user now, but haven't seen a ROM that has it's fancy settings available to all the users. thanks

Need help developing a lockscreen android

Hey guys, I plan on creating an app but I need some tips and/or tricks to help me get started. I do plan on releasing the app on here (Using XDADevelopers) first to get some attention, then release it on the Google Play store. Here are the details of the app:
App Type: Lockscreen Customization
Minimal SDK: API 16 (JellyBean)*
Testing Device: Samsung S6 Edge (Rooted, running Android Marshmallow)
IDE: Android Studio
Key Components:
The app must be able to detect weither the home button is being pressed (which makes the phone access to the launcher, we dont want that) and quickly intercept the action and return back to the locker
Allow to lots, and I mean LOTS of customability (Much like C Locker, which is the app that has inspired me ^^), some of these customizations include the following:
App widgets and custom widgets like images, text, sprites, etc
LED/Vibration/Notifcation settings for apps
Change speed of animations (Like NovaLauncher does), also be able to choose different types of animations for the lockscreen
Customize colors in app
Integrate Android Wear (make the watch vibrate or ring your phone is low on power, or when the connection is lost)
Different lockscreens that show whenever the conditions configured are met, similar to C Locker (like bluetooth connections, music playing, WiFi, SmartLock conditions ,etc)
This is the cricual part: MUST have several different unlock unlock, like fingerprint (Thanks to Android 6.0.1), pattern, pin, SmartLock, Slide-To-Unlock, and Gestures
Be able to integrate as a plugin for Tasker, like have tasker check for launched apps
Intregrate voice assistants like Google Now/Google Assistant, S Voice, and such others
Have high and steady performance for all phones like. Also not be a resource hog!
This may is maybe feature: Be able to do functions like override the system settings and bypass system lock via root
Utilize Material style (this is a personal preference tbh)
I will add in some more ideas I have for the app.. Actually, I haven't gotten a good name for the app, but I'm thinking of Trinity Locker.
As you can see, I have numerous of ideas for this app.. all I need is some help with creating it. I will warn you guys this, I am pretty new to Android development (I typically code on Minecraft, even created some pretty decent mods), so I need some guidance on what and how things work with the Android system. I do have some coding experience from coding mods for Minecraft and taking a class on the basics of C++. If you guys have some ideas or tips and tricks to give, I'm all ears. Thank you!
NOTE: Anything with a * means that it is subject to change!
Oh yeah, I forgot to mention, I did also have a chance of using MIT App Inventor so I have a small foundation of the Android development. But I am new to Android Studio, so I need some tips with using that as well.
ALSO, to crucially note, I am in high school.. So I may not have time to respond to everyone/program the app since I have majority of my classes are cross college (or to most known as Dual Enrollment or Advanced Placement (AP)) courses :crying:. Oh and I live in the Central US Timezone, so my time will be different (or the same) for most
NovaViper said:
Hey guys, I plan on creating an app but I need some tips and/or tricks to help me get started. I do plan on releasing the app on here (Using XDADevelopers) first to get some attention, then release it on the Google Play store. Here are the details of the app:
App Type: Lockscreen Customization
Minimal SDK: API 16 (JellyBean)
Recommended SDK: API 23-24 (Marshmallow and Nogaut)
Testing Device: Samsung S6 Edge (Rooted, running Android Marshmallow)
IDE: Android Studio
Key Components:
The app must be able to detect weither the home button is being pressed (which makes the phone access to the launcher, we dont want that) and quickly intercept the action and return back to the locker
Allow to lots, and I mean LOTS of customability (Much like C Locker, which is the app that has inspired me ^^), some of these customizations include the following:
App widgets and custom widgets like images, text, sprites, etc
LED/Vibration/Notifcation settings for apps
Change speed of animations (Like NovaLauncher does), also be able to choose different types of animations for the lockscreen
Customize colors in app
Integrate Android Wear (make the watch vibrate or ring your phone is low on power, or when the connection is lost)
Different lockscreens that show whenever the conditions configured are met, similar to C Locker (like bluetooth connections, music playing, WiFi, SmartLock conditions ,etc)
This is the cricual part: MUST have several different unlock unlock, like fingerprint (Thanks to Android 6.0.1), pattern, pin, SmartLock, Slide-To-Unlock, and Gestures
Be able to integrate as a plugin for Tasker, like have tasker check for launched apps
Intregrate voice assistants like Google Now/Google Assistant, S Voice, and such others
Have high and steady performance for all phones like. Also not be a resource hog!
This may is maybe feature: Be able to do functions like override the system settings and bypass system lock via root
Utilize Material style (this is a personal preference tbh)
I will add in some more ideas I have for the app.. Actually, I haven't gotten a good name for the app, but I'm thinking of Trinity Locker.
As you can see, I have numerous of ideas for this app.. all I need is some help with creating it. I will warn you guys this, I am pretty new to Android development (I typically code on Minecraft, even created some pretty decent mods), so I need some guidance on what and how things work with the Android system. I do have some coding experience from coding mods for Minecraft and taking a class on the basics of C++. If you guys have some ideas or tips and tricks to give, I'm all ears. Thank you!
Click to expand...
Click to collapse
You can only choose one minimum or target API level
Sent from my GT-S7580 using Tapatalk
DodoGTA said:
You can only choose one minimum or target API level
Click to expand...
Click to collapse
What I meant by the recommended api is the api I'm starting on first (since that's what Android Studio defaultly sets mento the develop on the latest first)
Hey I have gotten the first bits of the app started! I'm trying to work on the setup phase of the app (where the app asks for permissions and basic settings to start). I even got the code uploaded on Github. Oh also, I might create a XDA Developer project and start adding some info there
Hey guys! I've been adding lots of stuff to the app! If you guys notice something off with the coding, please let me now at Github! Thanks!

Where are "restricted profile" on my SM-T585

Hi guys,
Although I usually switch to a more vanilla experience on my devices, I'm testing a Galaxy Tab A for a work project I'm putting together. It's a clinical study and investigators will use tablets for data entry, so I need to make the tablet fool-proof and prevent most users from installing anything, browsing etc to preserve battery.
In Settings > Users, clicking "add user" only proposes to add a normal user, and not a restricted one. Did Samsung really ditch the "restricted profiles" from their rom ??? I hope it's just me and I'm missing an obvious place to look at. The tablet is running 6.0.1 MMB29K build.
Thanks !
edit: I just ran on this topic: https://productforums.google.com/forum/#!topic/nexus/47Qffy996As that states that Restricted Profiles are only available for "tablets". Since there's a 4G port on my tablet, is that it ?? That's just plain stupid ??

Categories

Resources