Skip to content

Commit

Permalink
Merge branch 'master' of git://github.com/grarak/KernelAdiutor
Browse files Browse the repository at this point in the history
  • Loading branch information
AsdMonio committed Mar 28, 2018
2 parents 8a7becc + 9468630 commit 29527f8
Show file tree
Hide file tree
Showing 58 changed files with 381 additions and 224 deletions.
60 changes: 60 additions & 0 deletions POLICY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# Privacy Policy
built the Kernel Adiutor app as an Open Source app. This SERVICE is provided by at no cost and is intended for use as is.

This page is used to inform website visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use my Service.

If you choose to use my Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that I collect is used for providing and improving the Service. I will not use or share your information with anyone except as described in this Privacy Policy.

The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at Kernel Adiutor unless otherwise defined in this Privacy Policy.

##### Information Collection and Use

For a better experience, while using our Service, I may require you to provide us with certain personally identifiable information. The information that I request is retained on your device and is not collected by me in any way

The app does use third party services that may collect information used to identify you.

Link to privacy policy of third party service providers used by the app

[Google Play Services](https://www.google.com/policies/privacy/)

##### Log Data

I want to inform you that whenever you use my Service, in a case of an error in the app I collect data and information (through third party products) on your phone called Log Data. This Log Data may include information such as your device Internet Protocol (“IP”) address, device name, operating system version, the configuration of the app when utilizing my Service, the time and date of your use of the Service, and other statistics.

##### Cookies

Cookies are files with small amount of data that is commonly used an anonymous unique identifier. These are sent to your browser from the website that you visit and are stored on your device internal memory.

This Service does not use these “cookies” explicitly. However, the app may use third party code and libraries that use “cookies” to collection information and to improve their services. You have the option to either accept or refuse these cookies and know when a cookie is being sent to your device. If you choose to refuse our cookies, you may not be able to use some portions of this Service.

##### Service Providers

I may employ third-party companies and individuals due to the following reasons:

To facilitate our Service;
To provide the Service on our behalf;
To perform Service-related services; or
To assist us in analyzing how our Service is used.
I want to inform users of this Service that these third parties have access to your Personal Information. The reason is to perform the tasks assigned to them on our behalf. However, they are obligated not to disclose or use the information for any other purpose.

##### Security

I value your trust in providing us your Personal Information, thus we are striving to use commercially acceptable means of protecting it. But remember that no method of transmission over the internet, or method of electronic storage is 100% secure and reliable, and I cannot guarantee its absolute security.

##### Links to Other Sites

This Service may contain links to other sites. If you click on a third-party link, you will be directed to that site. Note that these external sites are not operated by me. Therefore, I strongly advise you to review the Privacy Policy of these websites. I have no control over and assume no responsibility for the content, privacy policies, or practices of any third-party sites or services.

##### Children’s Privacy

These Services do not address anyone under the age of 13. I do not knowingly collect personally identifiable information from children under 13. In the case I discover that a child under 13 has provided me with personal information, I immediately delete this from our servers. If you are a parent or guardian and you are aware that your child has provided us with personal information, please contact me so that I will be able to do necessary actions.

##### Changes to This Privacy Policy

I may update our Privacy Policy from time to time. Thus, you are advised to review this page periodically for any changes. I will notify you of any changes by posting the new Privacy Policy on this page. These changes are effective immediately after they are posted on this page.

##### Contact Us

If you have any questions or suggestions about my Privacy Policy, do not hesitate to contact me.

This privacy policy page was created at [privacypolicytemplate.net](privacypolicytemplate.net) and modified/generated by App Privacy Policy Generator
20 changes: 14 additions & 6 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,22 @@ android {
applicationId "com.grarak.kerneladiutor"
minSdkVersion 15
targetSdkVersion 27
versionCode 260
versionName "0.9.10.1"
versionCode 262
versionName "0.9.10.3"
vectorDrawables.useSupportLibrary = true
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
debugProguard {
initWith debug
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}

release {
minifyEnabled false
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
Expand All @@ -48,9 +56,9 @@ dependencies {
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
implementation 'com.google.android.gms:play-services-ads:11.8.0'
implementation 'com.google.firebase:firebase-core:11.8.0'
implementation 'com.google.android.gms:play-services-auth:11.8.0'
implementation 'com.google.android.gms:play-services-ads:12.0.0'
implementation 'com.google.firebase:firebase-core:12.0.0'
implementation 'com.google.android.gms:play-services-auth:12.0.0'
implementation('com.crashlytics.sdk.android:crashlytics:2.9.1@aar') {
transitive = true
}
Expand Down
23 changes: 18 additions & 5 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,21 @@
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
-keepattributes Signature
-keepattributes *Annotation*
-keep class com.squareup.okhttp.** { *; }
-keep interface com.squareup.okhttp.** { *; }
-dontwarn com.squareup.okhttp.**
-keepattributes Signature,*Annotation*

-keep class com.grarak.kerneladiutor.** { *; }

-keep class com.bumptech.glide.** { *; }

-keep class com.google.android.gms.** { *; }
-keep class com.google.ads.** { *; }

-keep class com.google.android.apps.dashclock.** { *; }

-keep class com.google.firebase.** { *; }

-keep public class com.mattprecious.swirl.** { *; }

-keep public class org.adw.library.widgets.discreteseekbar.** { *; }

-keep class com.bvalosek.cpuspy.** { *; }
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,11 @@ public void onStopTrackingTouch(DiscreteSeekBar seekBar) {
}
});

rootView.findViewById(R.id.cancel).setOnClickListener(v -> seekBar.setProgress(px - minHeight));
rootView.findViewById(R.id.cancel).setOnClickListener(v
-> seekBar.setProgress(px - minHeight));

rootView.findViewById(R.id.restore).setOnClickListener(v
-> seekBar.setProgress(defaultHeight - minHeight));

rootView.findViewById(R.id.done).setOnClickListener(v -> {
AppSettings.saveBannerSize(seekBar.getProgress() + minHeight, getActivity());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
import android.view.Window;
import android.view.WindowManager;

import com.crashlytics.android.Crashlytics;
import com.grarak.kerneladiutor.BuildConfig;
import com.grarak.kerneladiutor.R;
import com.grarak.kerneladiutor.utils.AppSettings;
import com.grarak.kerneladiutor.utils.Themes;
Expand All @@ -42,13 +44,20 @@

import java.util.Locale;

import io.fabric.sdk.android.Fabric;

/**
* Created by willi on 14.04.16.
*/
public class BaseActivity extends AppCompatActivity {

@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
// Don't initialize analytics with debug build
if (!BuildConfig.DEBUG) {
Fabric.with(this, new Crashlytics());
}

AppCompatDelegate.setCompatVectorFromResourcesEnabled(true);
Utils.DARK_THEME = Themes.isDarkTheme(this);
Themes.Theme theme = Themes.getTheme(this, Utils.DARK_THEME);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
import android.view.View;
import android.widget.TextView;

import com.crashlytics.android.Crashlytics;
import com.crashlytics.android.answers.Answers;
import com.crashlytics.android.answers.CustomEvent;
import com.google.android.gms.common.GooglePlayServicesNotAvailableException;
Expand All @@ -44,6 +43,7 @@
import com.grarak.kerneladiutor.services.profile.Tile;
import com.grarak.kerneladiutor.utils.AppSettings;
import com.grarak.kerneladiutor.utils.Device;
import com.grarak.kerneladiutor.utils.Log;
import com.grarak.kerneladiutor.utils.Utils;
import com.grarak.kerneladiutor.utils.kernel.battery.Battery;
import com.grarak.kerneladiutor.utils.kernel.cpu.CPUBoost;
Expand All @@ -69,26 +69,20 @@
import java.net.HttpURLConnection;
import java.net.URL;

import io.fabric.sdk.android.Fabric;

/**
* Created by willi on 14.04.16.
*/
public class MainActivity extends BaseActivity {

private static final String TAG = MainActivity.class.getSimpleName();

private TextView mRootAccess;
private TextView mBusybox;
private TextView mCollectInfo;

@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

// Don't initialize analytics with debug build
if (!BuildConfig.DEBUG) {
Fabric.with(this, new Crashlytics());
}

setContentView(R.layout.activity_main);

View splashBackground = findViewById(R.id.splash_background);
Expand Down Expand Up @@ -250,6 +244,15 @@ private void collectData() {
Answers.getInstance().logCustom(new CustomEvent("SoC")
.putCustomAttribute("type", Device.getBoard()));
}

Log.crashlyticsI(TAG, "Build Display ID: "
+ Device.getBuildDisplayId());
Log.crashlyticsI(TAG, "ROM: "
+ Device.ROMInfo.getInstance().getVersion());
Log.crashlyticsI(TAG, "Kernel version: "
+ Device.getKernelVersion(true));
Log.crashlyticsI(TAG, "Board: " +
Device.getBoard());
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
import com.grarak.kerneladiutor.services.monitor.Monitor;
import com.grarak.kerneladiutor.utils.AppSettings;
import com.grarak.kerneladiutor.utils.Device;
import com.grarak.kerneladiutor.utils.Log;
import com.grarak.kerneladiutor.utils.Utils;
import com.grarak.kerneladiutor.utils.ViewUtils;
import com.grarak.kerneladiutor.utils.WebpageReader;
Expand Down Expand Up @@ -114,6 +115,8 @@
public class NavigationActivity extends BaseActivity
implements NavigationView.OnNavigationItemSelectedListener {

private static final String TAG = NavigationActivity.class.getSimpleName();

private static final String PACKAGE = NavigationActivity.class.getCanonicalName();
public static final String INTENT_SECTION = PACKAGE + ".INTENT.SECTION";

Expand Down Expand Up @@ -516,8 +519,11 @@ private void onItemSelected(final int res, boolean saveOpened) {
setShortcuts();

mDrawer.postDelayed(()
-> getSupportFragmentManager().beginTransaction().replace(
R.id.content_frame, fragment, res + "_key").commitAllowingStateLoss(),
-> {
Log.crashlyticsI(TAG, "open " + fragment.getClass().getSimpleName());
getSupportFragmentManager().beginTransaction().replace(
R.id.content_frame, fragment, res + "_key").commitAllowingStateLoss();
},
250);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@
import android.content.Intent;
import android.os.Bundle;

import com.crashlytics.android.Crashlytics;
import com.grarak.kerneladiutor.BuildConfig;

import io.fabric.sdk.android.Fabric;

/**
* Created by willi on 02.08.16.
*/
Expand All @@ -40,9 +35,6 @@ public class StartActivity extends BaseActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if (!BuildConfig.DEBUG) {
Fabric.with(this, new Crashlytics());
}
Intent intent = new Intent(this, MainActivity.class);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);
if (getIntent().getExtras() != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@
import android.content.Intent;
import android.os.Bundle;

import com.crashlytics.android.Crashlytics;
import com.grarak.kerneladiutor.BuildConfig;

import io.fabric.sdk.android.Fabric;

/**
* Created by willi on 02.08.16.
*/
Expand All @@ -40,9 +35,6 @@ public class StartActivityMaterial extends BaseActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if (!BuildConfig.DEBUG) {
Fabric.with(this, new Crashlytics());
}
Intent intent = new Intent(this, MainActivity.class);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);
if (getIntent().getExtras() != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import com.grarak.kerneladiutor.fragments.DescriptionFragment;
import com.grarak.kerneladiutor.fragments.recyclerview.RecyclerViewFragment;
import com.grarak.kerneladiutor.utils.Device;
import com.grarak.kerneladiutor.utils.Log;
import com.grarak.kerneladiutor.utils.Utils;
import com.grarak.kerneladiutor.utils.ViewUtils;
import com.grarak.kerneladiutor.utils.kernel.cpu.CPUBoost;
Expand All @@ -51,6 +52,8 @@
*/
public class CPUFragment extends RecyclerViewFragment {

private static final String TAG = CPUFragment.class.getSimpleName();

private CPUFreq mCPUFreq;
private CPUBoost mCPUBoost;

Expand Down Expand Up @@ -94,23 +97,30 @@ protected void init() {

@Override
protected void addItems(List<RecyclerViewItem> items) {
Log.crashlyticsI(TAG, "freqInit");
freqInit(items);
if (Misc.hasMcPowerSaving()) {
Log.crashlyticsI(TAG, "mcPowerSavingInit");
mcPowerSavingInit(items);
}
if (Misc.hasPowerSavingWq()) {
Log.crashlyticsI(TAG, "powerSavingWqInit");
powerSavingWqInit(items);
}
if (Misc.hasCFSScheduler()) {
Log.crashlyticsI(TAG, "cfsSchedulerInit");
cfsSchedulerInit(items);
}
if (Misc.hasCpuQuiet()) {
Log.crashlyticsI(TAG, "cpuQuietInit");
cpuQuietInit(items);
}
if (mCPUBoost.supported()) {
Log.crashlyticsI(TAG, "cpuBoostInit");
cpuBoostInit(items);
}
if (Misc.hasCpuTouchBoost()) {
Log.crashlyticsI(TAG, "cpuTouchBoostInit");
cpuTouchBoostInit(items);
}
}
Expand Down
Loading

0 comments on commit 29527f8

Please sign in to comment.