Hello,
Im a proud owner of mate 8
But the multiwindow drives me crazy!!!!!
I wish to know if someone could tell me how to permanently disable this function..
Or if you can suggest me a custom rom that allow me to disable that!
Thank you for your support!!
in your mainfest you need
android:resizeableActivity="false"
so in your manifest file for each activity you want to disable the feature it would be like
<activity android:name=".SomeActivity"
android:label="@string/app_name"
android:resizeableActivity="false" />
or if you want to disable it in your entire app
<application
android:resizeableActivity="false" >
. . .
</application>
Related
i tried to google a lot about this but dint get any success though got a lil info about what all i need... but can you people help me out... ?
I want to learn to create an application...
basically I want to create a launcher so how should i do it... or where to start from ?...
Can some one please provide a TUT or a GUIDE which i can refer too..?
also a guide for porting compability... of app from only 1 phone to another will do for me... Please help... thank you...
NEWBIE
DEVICE - ACE PLUS GT-S7500
ROM - CM 10 BY THE WHISP
MODS - A FEW...
wanna learn sumthing new each day
OX Mobile Spy
I also have this same dilemma, I'm still, I hope the problem as soon as possible to solve.
Is there no 1 to help us out here ?
NEWBIE
DEVICE - ACE PLUS GT-S7500
ROM - CM 10 BY THE WHISP
MODS - A FEW...
wanna learn sumthing new each day
Launcher Guide
i guess this may help you :highfive:
Next : code to make your own launcher... :highfive:
for guide follow video ;
Code:
<activity
android:label="@string/app_name"
android:name=".Putyourclassthatyouwanttolaunchhere"
>
<intent-filter >
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter >
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.HOME" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
CODE HAS BEEN REWORKED SO THAT IT WILL NOT FORCE CLOSE
I was going through installed apps in my moto g dual sim asia variant when i came across this
PFA screenshots
adam app uses a hell lot of device features
does anyone else have it in their moto g too?
viv_jen said:
I was going through installed apps in my moto g dual sim asia variant when i came across this
PFA screenshots
adam app uses a hell lot of device features
does anyone else have it in their moto g too?
Click to expand...
Click to collapse
It's not installed on XT1032 EU or US. If you are concerned about it, you could try disabling it. Someone on the official Motorola forum might explain what it is:
https://forums.motorola.com/hives/3ba9b2429c/posts​
I have it too, AsiaRetail dual (XT1033). Appears to be a modem service for Motorola. The manifest is below.
Code:
<manifest package="com.motorola.adamsvc" versionCode="19" sharedUserId="com.motorola.uid.modemservice" versionName="4.4.2-14">
<uses-sdk minSdkVersion="19" targetSdkVersion="19">
</uses-sdk>
<permission label="resource_id:0x7f040002" protectionLevel="3" description="resource_id:0x7f040001" permissionGroup="android.permission-group.SYSTEM_TOOLS" name="com.motorola.permission.ACCESS_ADAM">
</permission>
<permission label="resource_id:0x7f040004" protectionLevel="3" description="resource_id:0x7f040003" permissionGroup="android.permission-group.SYSTEM_TOOLS" name="com.motorola.permission.MODIFY_ADAM">
</permission>
<application allowBackup="false" process="com.motorola.modemservice" icon="resource_id:0x7f020000" label="resource_id:0x7f040000">
<uses-library name="com.motorola.adam">
</uses-library>
<provider exported="true" readPermission="com.motorola.permission.ACCESS_ADAM" writePermission="com.motorola.permission.MODIFY_ADAM" authorities="adam" multiprocess="false" name="AdamProvider">
</provider>
<service exported="true" permission="com.motorola.permission.MODIFY_ADAM" name=".AdamService">
<intent-filter>
<action name="com.motorola.adam.action.LTE_AGG">
</action>
<action name="com.motorola.adam.action.WIFI_AGG">
</action>
<action name="com.motorola.adam.action.SCHEDULE_AGG">
</action>
</intent-filter>
</service>
</application>
</manifest>
eastdata said:
I have it too, AsiaRetail dual (XT1033). Appears to be a modem service for Motorola. The manifest is below.
Code:
<manifest package="com.motorola.adamsvc" versionCode="19" sharedUserId="com.motorola.uid.modemservice" versionName="4.4.2-14">
<uses-sdk minSdkVersion="19" targetSdkVersion="19">
</uses-sdk>
<permission label="resource_id:0x7f040002" protectionLevel="3" description="resource_id:0x7f040001" permissionGroup="android.permission-group.SYSTEM_TOOLS" name="com.motorola.permission.ACCESS_ADAM">
</permission>
<permission label="resource_id:0x7f040004" protectionLevel="3" description="resource_id:0x7f040003" permissionGroup="android.permission-group.SYSTEM_TOOLS" name="com.motorola.permission.MODIFY_ADAM">
</permission>
<application allowBackup="false" process="com.motorola.modemservice" icon="resource_id:0x7f020000" label="resource_id:0x7f040000">
<uses-library name="com.motorola.adam">
</uses-library>
<provider exported="true" readPermission="com.motorola.permission.ACCESS_ADAM" writePermission="com.motorola.permission.MODIFY_ADAM" authorities="adam" multiprocess="false" name="AdamProvider">
</provider>
<service exported="true" permission="com.motorola.permission.MODIFY_ADAM" name=".AdamService">
<intent-filter>
<action name="com.motorola.adam.action.LTE_AGG">
</action>
<action name="com.motorola.adam.action.WIFI_AGG">
</action>
<action name="com.motorola.adam.action.SCHEDULE_AGG">
</action>
</intent-filter>
</service>
</application>
</manifest>
Click to expand...
Click to collapse
why on earth would a modem driver/app need so many permissions for so many things???
Bump
I have a Republic Wireless Moto X, and I have this too. I did download my kitkat package from an alternative source. I didn't get it OTA. Did you update your Moto G OTA, did it come preinstalled with KitKat, or did you get the package from an alternate source?
chaddesch said:
I have a Republic Wireless Moto X, and I have this too. I did download my kitkat package from an alternative source. I didn't get it OTA. Did you update your Moto G OTA, did it come preinstalled with KitKat, or did you get the package from an alternate source?
Click to expand...
Click to collapse
From Moto -
Adam is part of a diagnostic tool we use in pre-production software builds for networking quality. It was left in a few consumer builds but it's disabled. It doesn't collect or send any data so it is safe to ignore.
Click to expand...
Click to collapse
https://forums.motorola.com/posts/6161232a23?commentId=777991#777991
It's was on my European XT1032 after the initial KK OTA, 2nd minor OTA removed it.
Hey guys!
I've been seaching now for some time in order to find a ready-to-build source tree for my GT-I8262. I found several entries on github but unfortunately I got compilation errors for all of them. The most promising one was the approach of ankur850 which he explained himself here.
In order to get rid of some of the errors, I changed the following points in the .repo/local_manifests/roomservice.xml:
Inserted remove-project in order to resolve the conflict with the existing repository by Cyanogenmod.
Changed the path kernel/samsung/arubaslim to kernel/samsung/msm7x27a
Removed the revision attribute for those repositories having a later branch (since I tried to build cm-11.0)
resulting in the following xml:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="ankur850/android_device_samsung_arubaslim" path="device/samsung/arubaslim" remote="github" />
<project name="ankur850/android_vendor_qcom_msm7x27a" path="vendor/qcom/msm7x27a" remote="github" revision="cm-10.2" />
<project name="ankur850/android_device_qcom_msm7x27a" path="device/qcom/msm7x27a" remote="github" revision="cm-10.2" />
<project name="ankur850/android_vendor_samsung_arubaslim" path="vendor/samsung/arubaslim" remote="github" revision="cm-10.2" />
<project name="ankur850/android_hardware_qcom_display-legacy" path="hardware/qcom/display-legacy" remote="github" revision="jellybean-mr2" />
<remove-project name="CyanogenMod/android_hardware_qcom_audio-caf" revision="cm-10.2" />
<project name="ankur850/android_hardware_qcom_audio-caf" path="hardware/qcom/audio-caf" remote="github" revision="cm-10.2" />
<project name="ankur850/android_kernel_samsung_msm7x27a" path="kernel/samsung/msm7x27a" remote="github" />
</manifest>
When compiling (brunch arubaslim), I get the following error - which seems to be related to the repository:
Code:
make: *** No rule to make target `frameworks/base/data/etc/com.stericsson.hardware.fm.receiver.xml', needed by `~/android/system/out/target/product/arubaslim/system/etc/permissions/com.stericsson.hardware.fm.receiver.xml'. Stop.
I would appreciate very much if someone could point a working CM11 (if possible CM12) source tree out to me (or even help me to build with this one).
@admin: If a forum moderator/admin happens to be reading this, I would appreciate very much if you could integrate an overview for source trees like you did for ROMs and kernels.
Many thanks!
There is no com.stericsson.hardware.fm.receiver.xml
In framework/base/data/etc as I recall. Check again if its not there than there is no rule to make it.
Y300-0100 said:
There is no com.stericsson.hardware.fm.receiver.xml
In framework/base/data/etc as I recall. Check again if its not there than there is no rule to make it.
Click to expand...
Click to collapse
Thanks for your quick reply!
I searched the whole android repository using grep -r com.stericsson.hardware.fm.receiver.xml device hardware kernel vendor and could only find an entry in device/samsung/arubaslim/device_arubaslim.mk. What should I do now? Should I just comment this line and try to run over it? Will this cause reduced functionality?
Inperpetuammemoriam said:
Thanks for your quick reply!
I searched the whole android repository using grep -r com.stericsson.hardware.fm.receiver.xml device hardware kernel vendor and could only find an entry in device/samsung/arubaslim/device_arubaslim.mk. What should I do now? Should I just comment this line and try to run over it? Will this cause reduced functionality?
Click to expand...
Click to collapse
https://github.com/Y300-0100/android_device_huawei_u8833/blob/caf/u8833.mk#L62
Maybe it's not needed at all or it's proprietary file from stock but I doubt that.
All you need is proper packages.
Y300-0100 said:
https://github.com/Y300-0100/android_device_huawei_u8833/blob/caf/u8833.mk#L62
Maybe it's not needed at all or it's proprietary file from stock but I doubt that.
All you need is proper packages.
Click to expand...
Click to collapse
You might be right. This section of the repository has been changed between cm-10.2 and cm-11.0, so that this file doesn't exist anymore. As grep -r com.stericsson.hardware.fm.receiver frameworks doesn't return any results, I suppose that this file has become obsolete. Because of that - I don't like to say this - I think the maintainer has abandoned his repository during the port to CM11.
Do you know if there is a more up-to-date repository for this device? I can't believe that the uploaded CM12 builds just pop out of nowhere...
There is application in Google Play. But even if application install from Google Play and run , whatever is displayed only test bunner.
My project`s files:
Manifest.xml:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android=url *
package="com.denis1993.xxx_pc.calculator" >
<application
android:allowBackup="true"
android:icon="@mipmap/aaa"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<meta-data android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version"/>
<activity android:name=".MainActivity"
android:windowSoftInputMode="stateAlwaysHidden">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="com.google.android.gms.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>
</application>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.INTERNET"/>
</manifest>
activity_main.xml:
xmlns:ads=url
...
<com.google.android.gms.ads.AdView
android:id="@+id/adView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_alignParentBottom="true"
ads:adSize="BANNER"
ads:adUnitId="@string/banner_ad_unit_id">
</com.google.android.gms.ads.AdView>
bulid.grandle:
...
compile 'com.google.android.gms: play-services-ads:8.3.0'
...
string.xml:
<resources>
<string name="app_name">Calculator</string>
<string name="banner_ad_unit_id">ca-app-pub-7912591647703703/89855644</string>
</resources>
main_activity.java:
import com.google.android.gms.ads.AdRequest;
import com.google.android.gms.ads.AdView;
....
AdView mAdView = (AdView) findViewById(R.id.adView);
AdRequest adRequest = new AdRequest.Builder().build();
mAdView.loadAd(adRequest);
There are listed only part of code, which I use for add advertising from Admob
*url, because site doesnot give me real url
XDA Visitor said:
There is application in Google Play. But even if application install from Google Play and run , whatever is displayed only test bunner.
My project`s files:
Manifest.xml:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android=url *
package="com.denis1993.xxx_pc.calculator" >
<application
android:allowBackup="true"
android:icon="@mipmap/aaa"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<meta-data android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version"/>
<activity android:name=".MainActivity"
android:windowSoftInputMode="stateAlwaysHidden">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="com.google.android.gms.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>
</application>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.INTERNET"/>
</manifest>
activity_main.xml:
xmlns:ads=url
...
<com.google.android.gms.ads.AdView
android:id="@+id/adView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_alignParentBottom="true"
ads:adSize="BANNER"
ads:adUnitId="@string/banner_ad_unit_id">
</com.google.android.gms.ads.AdView>
bulid.grandle:
...
compile 'com.google.android.gms: play-services-ads:8.3.0'
...
string.xml:
<resources>
<string name="app_name">Calculator</string>
<string name="banner_ad_unit_id">ca-app-pub-7912591647703703/89855644</string>
</resources>
main_activity.java:
import com.google.android.gms.ads.AdRequest;
import com.google.android.gms.ads.AdView;
....
AdView mAdView = (AdView) findViewById(R.id.adView);
AdRequest adRequest = new AdRequest.Builder().build();
mAdView.loadAd(adRequest);
There are listed only part of code, which I use for add advertising from Admob
*url, because site doesnot give me real url
Click to expand...
Click to collapse
Hello, and welcome to XDA!
A good place to ask this (if I understand the question properly as your own app), is in this thread:
> App Development Forums > Coding Discussion, Q&A, and Educational Resources > Java for Android App Development > [Q] How to insert admob in app help me
Please note, you will need to have registered for an XDA account to be able to post there.
Hope this helps, and good luck!
So it was Dec of 2016 when I was working on a ROM called GravityOS for Yu Yureka device. Since it was an AOSP based ROM, I was in a serious need of this mod as I always used this on CM ROMs. I searched on XDA and found some but sadly they didn't work for Lollipop base. Finally I decided to code my own and here is the result.
Difficulty level
Easy
Requirements
1. Working connection to ADB, data cable and an AOSP based ROM
2. APK Multi-tool
3. Knowledge of basic compiling and decompiling as I will not be discussing it here
4. Some patience
Disclaimer
The following mod has been tested on an AOSP based ROM and found to be safe and functional. Yet I take no responsibility if anything wrong happens with your device.
Process
1. Pull SystemUI.apk and Settings.apk from phone. Decompile them.
2. Download the zip attached here and place the smali in appropriate folder while keeping the folder structure intact.
3. Now add double tap to statusbar. For this open SystemUI.apk/res/layouts/status_bar.xml just after the root element place this:
PHP:
<com.android.systemui.DLock android:focusable="true" android:clickable="true" android:layout_width="fill_parent" android:layout_height="fill_parent" />
So that it would look like:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView androidrientation="vertical" android:id="@id/msim_status_bar" android:background="@drawable/system_bar_background" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<com.android.systemui.DLock android:focusable="true" android:clickable="true" android:layout_width="fill_parent" android:layout_height="fill_parent" />
4. Next step is to add the setting to toggle this in Settings.apk
Open Settings.apk/res/xml/display.xml and add
PHP:
<com.android.settings.gravity.SystemSwitchPreference android:title="Double tap status bar to sleep" android:key="double_tap_sb_sleep" android:summary="Double tapping the status bar makes the device sleep" android:defaultValue="true" />
Compile both the APKs and push to your phone. Restart and enjoy.
You may obtain latest smali and Java files from Github
Great job bro.
Hats off. No good guide was available in the whole XDA forum for it and you made it. Awesome.
One question, can we use it in other parts of systemUI like status bar header?
And a kind request, please also make a guide for changing colors of TextClock, Text View and Image View through settings.
nitesh9 said:
Great job bro.
Hats off. No good guide was available in the whole XDA forum for it and you made it. Awesome.
One question, can we use it in other parts of systemUI like status bar header?
And a kind request, please also make a guide for changing colors of TextClock, Text View and Image View through settings.
Click to expand...
Click to collapse
Yes bro. Ofcourse you can. Putting the view com.android.systemui.DLock in other view listens for double click. Practically this would work for any view.
Yes, soon will be making guides for other mods as well.
Congratulations on your Mod ..
It is fantastic .. it works very well.
To see if your next mod is navigation bar of CyanogenMod ..
Thanks for everything