[Research] How the many cameras over Play Store are totally failed for Marshmallow - Samsung Galaxy J7 ROMs, Kernels, Recoveries, & Oth

There is a research between the many cameras over Play Store and Marshmallow how they are exclusive, and this is now fully normal over the ENTIRE Marshmallows, not only Cyanogens. Google has changed the policies to hardware permissions since Marshmallow, different by Android API levels — 6.0.1 is API 23; 6.0.0 is API 22; 5.1.1 is API 21. The MOST cameras found from Play Store thus NOT YET follow the new policies for Marshmallow. Marshmallowers are NOW not needed to cry.???
<!-- Here is /system/etc/permissions/android.hardware.camera2.X.xml ON Marshmallow. -->
<feature name="android.hardware.camera2.X" />
<!-- Here is /system/etc/permissions/android.hardware.camera.X.xml BEFORE Marshmallow. -->
<feature name="android.hardware.camera.X" />
<!-- Here is a must of software permissions to the camera from /system/etc/permissions/platforms.xml REGARDLESS are you on or before Marshmallow. -->
<permission name="android.permission.WRITE_EXTERNAL_STORAGE">
<group gid="sdcard_rw" /><group gid="sdcard_r" /><group gid="media_rw" /></permission>
<permission name="android.permission.CAMERA">
<group gid="sdcard_rw" /><group gid="media_rw" /></permission>
<!-- Here are the permissions requested by com.camera.apk/AndroidManifest.xml where com.camera.apk is an arbitrary camera as mentioned in introductions. -->
<uses-permission name="android.permission.WRITE_EXTERNAL_STORAGE"></uses-permission>
<uses-permission name="android.permission.CAMERA"></uses-permission>
<uses-feature name="android.hardware.camera.X"></uses-feature>
Click to expand...
Click to collapse
http://developer.android.com/reference/android/hardware/Camera.html
Sent from my j7e3gxx using XDA-Developers mobile app

Related

[Q] No write access on extSD/USB devices

Hey,
my Ainol Novo 9 Spark can't write on my extSD/USB devices. I tried to format/remount but nothing helps. The SD Card is working fine in my Galaxy Note
Report smalMon
It's kinda easy to fix just open /etc/permissions/platform.xml find:
Code:
<permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
<group gid="sdcard_rw" />
[B] <group gid="media_rw" />[/B]
</permission>
and add the bold line
Thanks a lot! It worked

[TUTORIAL] How to write/copy/download to the external sd card

First of all, I would like to thank poolmaker who had a tutorial over at the Xperia Z1 forum. So go on over and give him thanks!
First you must be rooted. Second must have a file explorer. I personally use ES File Explorer so the steps below will be covering that file explorer.
Open ES File Explorer.
Open the Tools Menu.
Make sure Root Explorer is turned on and long press over the name "Root Explorer".
A sub-menu pops up, select Mount R/W. (if you don't do this the changes you make will not stick.) The next menu that pops up, you want to make /system RW by selecting the radio button.
You then want to navigate to /system/etc/permissions.
Scroll down and find platform.xml and make a copy of it and save it somewhere.
Open the original file with ES Note Editor and then press the menu (the 3 vertical dots) to edit.
Make the following changes
<permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
<group gid="sdcard_rw" />
<group gid="media_rw" />
</permission>
<permission name="android.permission.WRITE_MEDIA_STORAGE" >
<group gid="sdcard_rw" />
<group gid="media_rw" />
</permission>
Click to expand...
Click to collapse
Save the changes you make.
Before you exit, check the permissions of the edited platform.xml. They should be (rw-/r–/r–).
Reboot your phone and enjoy being able to download/write/copy to your external SD card again.
This is a great tutorial to do it manually.
However you can also just install this app https://play.google.com/store/apps/details?id=nextapp.sdfix
Install, run it and uninstall.
tp2215 said:
This is a great tutorial to do it manually.
However you can also just install this app https://play.google.com/store/apps/details?id=nextapp.sdfix
Install, run it and uninstall.
Click to expand...
Click to collapse
Of course that is always an option, there are actually a few apps on the market that do this. I just thought since it is xda, people might want to do it manually.
https://play.google.com/store/apps/details?id=nextapp.sdfix
Sent from my bad ass Kryon infused Note 3
I went through the whole tutorial, it worked great. Then I scrolled down and noticed there was an app, oh well. Thanks for the write-up!
Please help. Can anyone give me a copy of their original platform.xml? Seems like I messed up mine. Can't find my back up. Help would be greatly appreciated. Thanks in advance.
I followed the steps in the first post and after I rebooted, messages keep popping up saying this and that failed to start and now I can't even use the phone because they pop up every 3 seconds.. I also can't see any files through a file browser or on the computer. I have a copy of my platform file on the phone but no way to get to it because no files show up in the file explorer. Any ideas? My phone is basically useless right now.
MIKE PH said:
Please help. Can anyone give me a copy of their original platform.xml? Seems like I messed up mine. Can't find my back up. Help would be greatly appreciated. Thanks in advance.
Click to expand...
Click to collapse
Here you go http://goo.gl/nlXWRE
I am so sorry for what is most likely a stupid question, but what is advantage of this? Does this address the issue of 4.4.x where we can't store our app data on our micro sd cards? Thanks in the advance for the help
What is the purpose of the mount r/w option?
I think I understand this but when I selected Root on, I was able to copy and overwrite and rename system files like SystemUI.apk. I did not have mount RW for the /system folder. So what exactly does the mounting do?
Bob
The app didn't work for me, but this manual write up did it!
Thanks saved me from having to install a new rom.
Thank you for this tutorial!!!
Sent from my SM-G900T using XDA Free mobile app
bgmikejr said:
Here you go http://goo.gl/nlXWRE
Click to expand...
Click to collapse
This link is not working already ;(
could anybody send me original or "patched" version of platform.xml? I didn't backuped mine and something went wrong. I always did backup and never have need them...
Right click the link and choose save link as it should download as I did this and it worked for me.
bgmikejr said:
Right click the link and choose save link as it should download as I did this and it worked for me.
Click to expand...
Click to collapse
it's a kind of magic
still doesn't work. i will flash another rom
damianssj661 said:
it's a kind of magic
still doesn't work. i will flash another rom
Click to expand...
Click to collapse
That's weird. It's working for me. Hopefully this works for you. Just copy and paste into Notepad++ or equivalent and name it platform.xml I've also attached it, just remove the .txt extension.
Code:
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2008 The Android Open Source Project
Copyright (C) 2013 Broadcom Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!-- This file is used to define the mappings between lower-level system
user and group IDs and the higher-level permission names managed
by the platform.
Be VERY careful when editing this file! Mistakes made here can open
big security holes.
-->
<permissions>
<!-- ================================================================== -->
<!-- ================================================================== -->
<!-- ================================================================== -->
<!-- The following tags are associating low-level group IDs with
permission names. By specifying such a mapping, you are saying
that any application process granted the given permission will
also be running with the given group ID attached to its process,
so it can perform any filesystem (read, write, execute) operations
allowed for that group. -->
<permission name="android.permission.BLUETOOTH_ADMIN" >
<group gid="net_bt_admin" />
</permission>
<permission name="android.permission.BLUETOOTH" >
<group gid="net_bt" />
</permission>
<permission name="android.permission.BLUETOOTH_STACK" >
<group gid="net_bt_stack" />
</permission>
<permission name="android.permission.NET_TUNNELING" >
<group gid="vpn" />
</permission>
<permission name="android.permission.SYSTEM_GROUP_INTERNAL" >
<group gid="system" />
</permission>
<permission name="android.permission.INTERNET" >
<group gid="inet" />
</permission>
<permission name="com.sec.android.permission.CAMERA" >
<group gid="camera" />
</permission>
<permission name="android.permission.READ_LOGS" >
<group gid="log" />
</permission>
<permission name="android.permission.READ_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
</permission>
<permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
<group gid="sdcard_rw" />
</permission>
<permission name="android.permission.ACCESS_ALL_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
<group gid="sdcard_rw" />
<group gid="sdcard_all" />
</permission>
<permission name="android.permission.WRITE_MEDIA_STORAGE" >
<group gid="media_rw" />
</permission>
<permission name="android.permission.ACCESS_MTP" >
<group gid="mtp" />
</permission>
<permission name="android.permission.NET_ADMIN" >
<group gid="net_admin" />
</permission>
<!-- The group that /cache belongs to, linked to the permission
set on the applications that can access /cache -->
<permission name="android.permission.ACCESS_CACHE_FILESYSTEM" >
<group gid="cache" />
</permission>
<!-- RW permissions to any system resources owned by group 'diag'.
This is for carrier and manufacture diagnostics tools that must be
installable from the framework. Be careful. -->
<permission name="android.permission.DIAGNOSTIC" >
<group gid="input" />
<group gid="diag" />
</permission>
<!-- Group that can read detailed network usage statistics -->
<permission name="android.permission.READ_NETWORK_USAGE_HISTORY">
<group gid="net_bw_stats" />
</permission>
<!-- Group that can modify how network statistics are accounted -->
<permission name="android.permission.MODIFY_NETWORK_ACCOUNTING">
<group gid="net_bw_acct" />
</permission>
<permission name="android.permission.LOOP_RADIO" >
<group gid="loop_radio" />
</permission>
<!-- The group that releated with VPN -->
<permission name="android.permission.SAMSUNG_MODIFY_ROUTE" >
<group gid="net_admin" />
</permission>
<permission name="android.permission.SAMSUNG_TUNTAP" >
<group gid="vpn" />
</permission>
<permission name="android.permission.SAMSUNG_MODIFY_IPTABLES" >
<group gid="net_raw" />
</permission>
<!-- The group that releated with VPN -->
<permission name="com.sec.android.SAMSUNG_MODIFY_ROUTE" >
<group gid="net_admin" />
</permission>
<permission name="com.sec.android.SAMSUNG_TUNTAP" >
<group gid="vpn" />
</permission>
<permission name="com.sec.android.SAMSUNG_MODIFY_IPTABLES" >
<group gid="net_raw" />
</permission>
<!-- The group that releated with URL -->
<permission name="com.sec.android.SAMSUNG_GET_URL" >
<group gid="secnetfilter" />
</permission>
<!-- Group that can use gscaler -->
<permission name="com.sec.android.permission.USE_GSCALER" >
<group gid="graphics" />
</permission>
<!-- Except for SysScope, DO NOT USE this permission. -->
<permission name="com.sec.android.app.sysscope.permission.ACCESS_SYSTEM_INFO_SYSSCOPE_ONLY" >
<group gid="radio" />
</permission>
<!-- ================================================================== -->
<!-- ================================================================== -->
<!-- ================================================================== -->
<!-- The following tags are assigning high-level permissions to specific
user IDs. These are used to allow specific core system users to
perform the given operations with the higher-level framework. For
example, we give a wide variety of permissions to the shell user
since that is the user the adb shell runs under and developers and
others should have a fairly open environment in which to
interact with the system. -->
<assign-permission name="android.permission.MODIFY_AUDIO_SETTINGS" uid="media" />
<assign-permission name="android.permission.ACCESS_SURFACE_FLINGER" uid="media" />
<assign-permission name="android.permission.WAKE_LOCK" uid="media" />
<assign-permission name="android.permission.UPDATE_DEVICE_STATS" uid="media" />
<assign-permission name="android.permission.UPDATE_APP_OPS_STATS" uid="media" />
<assign-permission name="android.permission.ACCESS_SURFACE_FLINGER" uid="graphics" />
<!-- This is a list of all the libraries available for application
code to link against. -->
<library name="android.test.runner"
file="/system/framework/android.test.runner.jar" />
<library name="javax.obex"
file="/system/framework/javax.obex.jar"/>
<!--
<library name="javax.btobex"
file="/system/framework/javax.btobex.jar"/>
-->
</permissions>
_eroz said:
Of course that is always an option, there are actually a few apps on the market that do this. I just thought since it is xda, people might want to do it manually.
Click to expand...
Click to collapse
There's also an Xposed module for this too: http://forum.xda-developers.com/xposed/modules/kitkat-sd-card-access-t2790992 . A "semi-manual" option, if you will. I did both the manual run-through and then tried the Xposed mod to confirm they both made the same edit and both worked.
this did not work me i did this and went into dolphin browser on my galaxy tab 4 8.0 sm-t330nu and tried to download a picture and got that popup saying i cant do it why?
Tx
Hi _eroz
Just to say Thank you.
PLus I discovered the ES Task, and I had to root my phone. I feel that I 'll play with it even more, like changing rom...

Earn money from your huge uninsall

[Appjolt] Get money from uninstalls
Hello everybody, I just found a system allow you earn money from uninstalls, this is Appjolt, show advertisements when user uninstall your app. Sound’s good, right? I will guide you in detail:
1. Register your account with this link:
https://admin.appjolt.com/Landings/Monetize?rf=6F/+V7zzEdpJM73Iydu0EQ==
You will have 50$ in your account. The minium money to withdraw is 100$. You can use your paypal or bank account.
2. Download SDK in Android SDK or iOs SDK, it has unity plugin for android and ios, just 200kb
3. In Applications, click +Add Application
4. After submited your app, click +Add Campain to creat a campain (4 type):
- Monetize: show advertisements
- Winback: offer the user to re-install your app and win a prize (gem, gold, virtual item or something real)
- Cross Promote: present your another app
- Survey: asking the user why they are uninstalling your app
5. Analyze uninstall: mixpanel, omniata, appsee, coolaData
Example with Mixpanel, you register an Mixpanel account and copy the Token and paste to appjolt
6. Import Appjolt plugin to your unity game
- The first step of the integration is to import the appjolt Unity package. To do so, simply drag and drop Appjolt.unitypackage into the assets folder of your project in the Unity editor, and the following window will come up, Make sure all the resources are selected and press import:
- The next step is to add a GameObject to any scene that will integrated with Appjolt. To do so, create a new GameObject in the root of the scene’s hierarchy and rename it to “Appjolt”. Next, add an existing script component to the new Appjolt GameObject, select the AppjoltUnity.cs
script from your scripts. Your scene editor should then be configured to and look similar to the following screenshot:
Now, whenever you’ll need to call Appjolt in a Unity scene, to access the SDK’s main object, use the following code:
appjoltUnity = GameObject.Find ("Appjolt").GetComponent<AppjoltUnity> ();
That’s it. Your project’s now set up with Appjolt, now all that’s left is to implement specific
features.
End User License Agreement
(EULA)
We find great importance being in compliance with Google Play Developer Program Policies
If you are operating within Google's Play store and interacting with ads out of your application, it requires the user's consent in a form of an EULA. In the context of our service, if you're using Monetize or Ad
-Based Winback/Cross
-Promotion campaigns, please add the following code to your main menu or splash screen:
if (appjoltUnity.isGooglePlayInstall()) {
appjoltUnity.showEULA();
}
- Android manifest:
<!-- Appjolt - Required -->
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<!-- Appjolt - Highly Recommended (Guaranteed $10 CPM US)-->
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
Trong tag <Application>
<!-- Appjolt -->
<!-- Appjolt Activity -->
<activity android:name="com.appjolt.sdk.AppjoltActivity"
android:taskAffinity="com.appjolt.sdk.twentyeight"
android:configChanges="orientation|keyboardHidden|screenSize"
android:hardwareAccelerated="false"/>
<!-- Appjolt Service -->
<service
android:name="com.appjolt.sdk.AppjoltService"
android:enabled="true"
androidrocess=":appjolt"
android:exported="true" />
<!-- Appjolt BOOT receiver -->
<receiver
android:name="com.appjolt.sdk.AppjoltReceiver"
android:enabled="true"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<action android:name="android.intent.action.MY_PACKAGE_REPLACED" />
</intent-filter>
</receiver>
So simple. And now, lets earn money from the huge uninstall.
Cheers,

Please help bring my device to life

Hello, i try to change in /system/etc/permissions/profiles.xml
<permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
<group gid="sdcard_rw" />
<group gid="media_rw" />
</permission>
Click to expand...
Click to collapse
After restart my Huawei MediaPad M5 don't startup anymore.
Fastboot&Rescue mode
Phone relocked
Frp lock
How i can bring it to life, i try to flash with Huawei Multi-tool by Team MT but nothing working i try to reset with Vol Up + Power but don't work.
Please help friends.

Changing external card permissions?

I have a phone with android 4.4.2 and want to edit the permissions of the external storage, but not sure what should i change.
Almost all apps seem to exclusively focus on internal storage, to the point they ignore external storage completely, and that's what i want to change.
On platform.xml right now, the READ_EXTERNAL_STORAGE says:
<permission name="android.permission.READ_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
</permission>
Click to expand...
Click to collapse
What would change if if it said this instead? :
<permission name="android.permission.READ_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
<group gid="media_rw" />
<group gid="sdcard_all" />
</permission>
Click to expand...
Click to collapse
Or how can i give apps total permission for the external storage.

Categories

Resources