-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 80f440d
Showing
143 changed files
with
3,075 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
*.iml | ||
.gradle | ||
/local.properties | ||
/.idea/caches/build_file_checksums.ser | ||
/.idea/libraries | ||
/.idea/modules.xml | ||
/.idea/workspace.xml | ||
.DS_Store | ||
/build | ||
/captures | ||
.externalNativeBuild |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/build |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
apply plugin: 'com.android.application' | ||
|
||
android { | ||
compileSdkVersion 28 | ||
defaultConfig { | ||
applicationId "com.alpha.devster.backkk" | ||
minSdkVersion 18 | ||
targetSdkVersion 28 | ||
versionCode 1 | ||
versionName "1.0" | ||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" | ||
} | ||
buildTypes { | ||
release { | ||
minifyEnabled false | ||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | ||
} | ||
} | ||
sourceSets { | ||
main { | ||
res.srcDirs = | ||
[ | ||
'src/main/res/layout', | ||
'src/main/res/menu', | ||
'src/main/res', | ||
|
||
] | ||
|
||
} | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation fileTree(dir: 'libs', include: ['*.jar']) | ||
implementation 'com.android.support:appcompat-v7:28.0.0' | ||
|
||
implementation 'com.android.support.constraint:constraint-layout:1.1.3' | ||
implementation 'com.android.support:design:28.0.0' | ||
implementation 'org.greenrobot:eventbus:3.0.0' | ||
|
||
|
||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Add project specific ProGuard rules here. | ||
# You can control the set of applied configuration files using the | ||
# proguardFiles setting in build.gradle. | ||
# | ||
# For more details, see | ||
# http://developer.android.com/guide/developing/tools/proguard.html | ||
|
||
# If your project uses myWebView with JS, uncomment the following | ||
# and specify the fully qualified class name to the JavaScript interface | ||
# class: | ||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview { | ||
# public *; | ||
#} | ||
|
||
# Uncomment this to preserve the line number information for | ||
# debugging stack traces. | ||
#-keepattributes SourceFile,LineNumberTable | ||
|
||
# If you keep the line number information, uncomment this to | ||
# hide the original source file name. | ||
#-renamesourcefileattribute SourceFile |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
<?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="com.alpha.devster.backkk"> | ||
|
||
<uses-permission android:name="android.permission.INTERNET" /> | ||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> | ||
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/> | ||
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" /> | ||
<uses-permission android:name="android.permission.REORDER_TASKS" /> | ||
|
||
<application | ||
android:allowBackup="true" | ||
android:fullBackupContent="true" | ||
android:hardwareAccelerated="true" | ||
android:icon="@mipmap/logo_app2" | ||
android:label="@string/app_name" | ||
android:roundIcon="@mipmap/logo_app2" | ||
android:supportsRtl="true" | ||
android:theme="@style/AppTheme31"> | ||
|
||
<activity | ||
android:name=".SplashActivity" | ||
android:exported="false" | ||
android:theme="@style/SplashTheme." /> | ||
|
||
<activity | ||
android:name=".Backk" | ||
android:configChanges="orientation|screenSize|keyboardHidden" | ||
android:label="@string/app_name"> | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
</activity> | ||
|
||
|
||
<activity android:name=".GetPermission" | ||
android:parentActivityName=".Backk" | ||
android:theme="@style/AppTheme3.NoActionBar"/> | ||
|
||
<activity | ||
android:name=".MainActivity" | ||
android:configChanges="orientation|screenSize|keyboardHidden" | ||
android:excludeFromRecents="true" | ||
android:hardwareAccelerated="true" | ||
android:label="@string/app_name" | ||
android:launchMode="singleInstance"> | ||
|
||
<intent-filter> | ||
<action android:name="android.intent.action.VIEW" /> | ||
|
||
</intent-filter> | ||
</activity> | ||
|
||
|
||
|
||
<service android:name=".Services.BackkService" | ||
tools:ignore="InnerclassSeparator" | ||
android:enabled="true"/> | ||
|
||
<service android:name=".Services.GhostModeService1" | ||
tools:ignore="InnerclassSeparator" | ||
android:enabled="true"/> | ||
|
||
</application> | ||
|
||
</manifest> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,131 @@ | ||
package com.alpha.devster.backkk; | ||
|
||
|
||
import android.app.Notification; | ||
import android.content.Context; | ||
import android.net.ConnectivityManager; | ||
import android.net.NetworkInfo; | ||
import android.os.Build; | ||
import android.provider.Settings; | ||
|
||
import com.alpha.devster.backkk.Services.BackkService; | ||
import com.alpha.devster.backkk.Services.GhostModeService1; | ||
import com.alpha.devster.backkk.Services.MediaPlayerServices; | ||
|
||
import static android.content.Context.CONNECTIVITY_SERVICE; | ||
|
||
public class BASE { | ||
|
||
|
||
static boolean isPermission(Context context){ | ||
if(Build.VERSION.SDK_INT>=Build.VERSION_CODES.M) { | ||
if (Settings.canDrawOverlays(context)) | ||
return true; | ||
else | ||
return false; | ||
}else | ||
return true; | ||
} | ||
|
||
static boolean isServiceRunning() { | ||
return BackkService.isServiceCreated(); | ||
} | ||
|
||
public static boolean isNetworkAvailable(Context context) { | ||
ConnectivityManager cm = (ConnectivityManager) context.getSystemService(CONNECTIVITY_SERVICE); | ||
NetworkInfo netInfo = cm.getActiveNetworkInfo(); | ||
return (netInfo!=null && netInfo.isConnected()); | ||
} | ||
|
||
|
||
public static class CONSTANTS{ | ||
// Request for Overlay over other apps | ||
final static int OVERLAY_PERMISSION_REQ_BACKTO_ACT = 2345; | ||
final static Class<MediaPlayerServices> playerServiceClass=MediaPlayerServices.class; | ||
final static String URL="https://www.youtube.com/"; | ||
public static final String CHANNELID="Backk"; | ||
//Type of player | ||
//myWebView player = 0 | ||
static int playerType = 0; | ||
|
||
//Repeat | ||
//if repeatType = 0 --> no repeatType | ||
//if repeatType = 1 --> repeatType complete | ||
//if repeatType = 2 --> repeatType single | ||
public static int repeatType = 0; | ||
public static int noOfRepeats = 0; | ||
|
||
//Finish service on end video | ||
static boolean finishOnEnd = false; | ||
|
||
|
||
//Actions | ||
public interface ACTION { | ||
String EXPAND_MODE = "com.alpha.devster.expandmode"; | ||
String PREV_ACTION = "com.alpha.devster.action.prev"; | ||
String PAUSE_PLAY_ACTION = "com.alpha.devster.action.play"; | ||
String NEXT_ACTION = "com.alpha.devster.action.next"; | ||
String STARTFOREGROUND_WEB_ACTION = "com.alpha.devster.playingweb"; | ||
String STOPFOREGROUND_WEB_ACTION = "com.alpha.devster.stopplayingweb"; | ||
|
||
} | ||
|
||
//Notification Id | ||
public interface NOTIFICATION_ID { | ||
int FOREGROUND_SERVICE = 1; | ||
} | ||
public static Notification notification; | ||
|
||
public static class STRINGS{ | ||
public static String VID_URL = ""; | ||
public static void setVid(String vid_url) { STRINGS.VID_URL = vid_url; } | ||
public static String getVideoHTML() { | ||
return "<!DOCTYPE HTML>\n" + | ||
"<html>\n" + | ||
" <head>\n" + | ||
" <script src=\"https://www.youtube.com/iframe_api\"></script>\n" + | ||
" <style type=\"text/css\">\n" + | ||
" html, body {\n" + | ||
" margin: 0px;\n" + | ||
" padding: 0px;\n" + | ||
" border: 0px;\n" + | ||
" width: 100%;\n" + | ||
" height: 100%;\n" + | ||
" }\n" + | ||
" </style>" + | ||
" </head>\n" + | ||
"\n" + | ||
" <body>\n" + | ||
" <iframe style=\"display: block;\" id=\"player\" frameborder=\"0\" width=\"100%\" height=\"100%\" " + | ||
" src=\"blob:https://www.youtube.com/watch?=" + VID_URL + | ||
"?enablejsapi=1&autoplay=1&iv_load_policy=3&fs=0&rel=0\">" + | ||
" </iframe>\n" + | ||
" <script type=\"text/javascript\">\n" + | ||
" var tag = document.createElement('script');\n" + | ||
" tag.src = \"https://www.youtube.com/iframe_api\";\n" + | ||
" var firstScriptTag = document.getElementsByTagName('script')[0];\n" + | ||
" firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);\n" + | ||
" var player;\n" + | ||
" function onYouTubeIframeAPIReady() {\n" + | ||
" player = new YT.Player('player', {\n" + | ||
" events: {\n" + | ||
" 'onReady': onPlayerReady\n" + | ||
" }\n" + | ||
" });\n" + | ||
" }\n" + | ||
" function onPlayerReady(event) {\n" + | ||
" player.setPlaybackQuality(\"" + 2 + "\");\n" + | ||
" }\n" + | ||
" </script>\n" + | ||
"\n" + | ||
"</body>\n" + | ||
"</html>"; | ||
} | ||
|
||
|
||
} | ||
|
||
} | ||
|
||
|
||
} |
Oops, something went wrong.