Created
May 31, 2016 10:49
-
-
Save chikadance/b3e22a1e7ab3965e5239e5de94dbe6b2 to your computer and use it in GitHub Desktop.
am
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" | |
package="ro.withyoumi"> | |
<uses-permission android:name="android.permission.INTERNET"/> | |
<uses-permission android:name="android.permission.READ_PHONE_STATE"/> | |
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> | |
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/> | |
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> | |
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/> | |
<!-- 以下为可选权限 --> | |
<uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT"/> | |
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/> | |
<application | |
android:allowBackup="true" | |
android:icon="@mipmap/ic_launcher" | |
android:label="@string/app_name" | |
android:supportsRtl="true" | |
android:theme="@style/AppTheme"> | |
<activity | |
android:name="net.youmi.android.AdBrowser" | |
android:configChanges="keyboard|keyboardHidden|orientation|screenSize" | |
android:theme="@android:style/Theme.Light.NoTitleBar"> | |
</activity> | |
<service | |
android:name="net.youmi.android.AdService" | |
android:exported="false"> | |
</service> | |
<receiver | |
android:name="net.youmi.android.AdReceiver"> | |
<intent-filter> | |
<action android:name="android.intent.action.PACKAGE_ADDED"/> | |
<data android:scheme="package"/> | |
</intent-filter> | |
</receiver> | |
<activity android:name=".MainActivity"> | |
<intent-filter> | |
<action android:name="android.intent.action.MAIN"/> | |
<category android:name="android.intent.category.LAUNCHER"/> | |
</intent-filter> | |
</activity> | |
<activity android:name=".HideAd" android:exported="true"/> | |
</application> | |
</manifest> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="ro.withoutad"> | |
<application | |
android:allowBackup="true" | |
android:icon="@mipmap/ic_launcher" | |
android:label="@string/app_name" | |
android:supportsRtl="true" | |
android:theme="@style/AppTheme"> | |
<activity android:name=".MainActivity"> | |
<intent-filter> | |
<action android:name="android.intent.action.MAIN"/> | |
<category android:name="android.intent.category.LAUNCHER"/> | |
</intent-filter> | |
</activity> | |
</application> | |
</manifest> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'ro_misc/exe' | |
include RoMisc::Exe | |
d = ::RoCell::Noko.parse(File.expand_path("../am.xml", __FILE__)) | |
perms = d.css('uses-permission') | |
d2 = ::RoCell::Noko.parse(File.expand_path("../am2.xml", __FILE__)) | |
d2.first('manifest').unshift_child(perms) | |
puts d2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment