Skip to content
This repository was archived by the owner on Mar 24, 2023. It is now read-only.

Commit c8edd35

Browse files
Add Documentation, More apps and Share app options
Signed-off-by: sunilpaulmathew <sunil.kde@gmail.com>
1 parent 16e62b7 commit c8edd35

4 files changed

Lines changed: 40 additions & 1 deletion

File tree

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
11
![](banner.png)
22

3+
[![](https://img.shields.io/badge/Kernel%20Profiler-v0.5-green)](https://play.google.com/store/apps/details?id=com.smartpack.kernelprofiler)
4+
![](https://img.shields.io/github/downloads/SmartPack/KernelProfiler/total)
5+
![](https://img.shields.io/github/contributors/smartpack/KernelProfiler)
6+
![](https://img.shields.io/github/license/smartpack/KernelProfiler)
7+
38
## Download
4-
[![](https://img.shields.io/badge/Kernel%20Profiler-v0.5-green)](https://github.com/SmartPack/KernelProfiler/releases/download/v0.5/com.smartpack.kernelprofiler-v0.5-release.apk)
9+
[<img src="https://play.google.com/intl/en_us/badges/images/generic/en-play-badge.png"
10+
alt=""
11+
height="80">](https://play.google.com/store/apps/details?id=com.smartpack.kernelprofiler)
12+
[<img src="https://i.ibb.co/q0mdc4Z/get-it-on-github.png"
13+
alt=""
14+
height="80">](https://github.com/SmartPack/KernelProfiler/releases/download/v0.5/com.smartpack.kernelprofiler-v0.5-release.apk)
515

616
## Requirements
717
* ROOT Access

app/src/main/java/com/smartpack/kernelprofiler/MainActivity.java

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import android.content.Context;
55
import android.content.Intent;
66
import android.content.pm.ActivityInfo;
7+
import android.net.Uri;
78
import android.os.Bundle;
89
import android.os.Handler;
910
import android.view.Menu;
@@ -174,8 +175,11 @@ private void settingsMenu() {
174175
.setChecked(mDeveloperMode);
175176
}
176177
SubMenu app = menu.addSubMenu(Menu.NONE, 0, Menu.NONE, getString(R.string.app_about));
178+
app.add(Menu.NONE, 15, Menu.NONE, getString(R.string.share));
177179
app.add(Menu.NONE, 4, Menu.NONE, getString(R.string.support));
178180
app.add(Menu.NONE, 9, Menu.NONE, getString(R.string.source_code));
181+
app.add(Menu.NONE, 16, Menu.NONE, getString(R.string.documentation));
182+
app.add(Menu.NONE, 14, Menu.NONE, getString(R.string.more_apps));
179183
app.add(Menu.NONE, 10, Menu.NONE, getString(R.string.report_issue));
180184
app.add(Menu.NONE, 5, Menu.NONE, getString(R.string.change_logs));
181185
if (Utils.isNotDonated(this)) {
@@ -243,6 +247,23 @@ private void settingsMenu() {
243247
mDeveloperMode = true;
244248
Utils.snackbar(mViewPager, getString(R.string.developer_mode_message));
245249
break;
250+
case 14:
251+
Intent ps = new Intent(Intent.ACTION_VIEW);
252+
ps.setData(Uri.parse("https://play.google.com/store/apps/dev?id=5836199813143882901"));
253+
startActivity(ps);
254+
break;
255+
case 15:
256+
Intent share = new Intent();
257+
share.setAction(Intent.ACTION_SEND);
258+
share.putExtra(Intent.EXTRA_SUBJECT, getString(R.string.app_name) + " " + BuildConfig.VERSION_NAME);
259+
share.putExtra(Intent.EXTRA_TEXT, getString(R.string.share_message));
260+
share.setType("text/plain");
261+
Intent shareIntent = Intent.createChooser(share, null);
262+
startActivity(shareIntent);
263+
break;
264+
case 16:
265+
launchURL("https://github.com/SmartPack/KernelProfiler/wiki");
266+
break;
246267
}
247268
return false;
248269
});

app/src/main/res/values-pt-rBR/strings.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
<string name="kernel_support">Como adicionar suporte ao kernel</string>
2727
<string name="kernel_support_summary">O Kernel Profiler espera um arquivo de configuração (<b><i>kernelprofiler.json</i></b>) e um ou mais \'<b><i>perfis</i></b>\' (basicamente scripts shell) em uma determinada estrutura específica colocada em <b>\'<i>/data/kernel_profiler</i>\'</b>. Por favor, dê uma olhada em \'<b>Configurações -> Ferramentas do Desenvolvedor</b>\' para mais informações.</string>
2828
<string name="more">Mais</string>
29+
<string name="more_apps">Mais do desenvolvedor</string>
2930
<string name="name_empty">O nome do perfil não deve estar vazio! Abortando.</string>
3031
<string name="no_internet">Por favor, verifique sua conexão à internet!</string>
3132
<string name="no_root">Sem root</string>
@@ -43,6 +44,8 @@
4344
<string name="profile_details">Detalhes do Perfil</string>
4445
<string name="profile_details_summary">Adicione detalhes (apenas comandos) aqui!</string>
4546
<string name="report_issue">Comunicar um Problema</string>
47+
<string name="share">Compartilhar</string>
48+
<string name="share_with">Compartilhar com</string>
4649
<string name="source_code">Código Fonte</string>
4750
<string name="storage_access_denied">Permissão negada para modificar o armazenamento!</string>
4851
<string name="support">Suporte</string>

app/src/main/res/values/strings.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
<string name="developer_credits_summary">Add credits text to be shown in the app as copyright!</string>
2626
<string name="developer_mode">Developer Mode</string>
2727
<string name="developer_mode_message">Developer Mode is enabled! Access to developer tools are temporarily unlocked.</string>
28+
<string name="documentation">Documentation</string>
2829
<string name="donations">Donations</string>
2930
<string name="donation_app">Buy Donation App</string>
3031
<string name="donations_summary">Add donation link here!</string>
@@ -36,6 +37,7 @@
3637
<string name="kernel_support">How to add support in kernel</string>
3738
<string name="kernel_support_summary">Kernel Profiler expects a configuration file (<b><i>kernelprofiler.json</i></b>) and one or more \'<b><i>profiles</i></b>\' (basically shell scripts) in certain specific structure placed inside <b>\'<i>/data/kernel_profiler</i>\'</b>. Please check \'<b>Settings -> Developer Tools</b>\' for more information.</string>
3839
<string name="more">More</string>
40+
<string name="more_apps">More from Developer</string>
3941
<string name="name_empty">Profile name shouldn\'t be empty! Aborting.</string>
4042
<string name="no_internet">Please check your internet connection!</string>
4143
<string name="no_root">No Root</string>
@@ -59,6 +61,9 @@
5961
<string name="save_config_title">Are you sure to save this configuration?</string>
6062
<string name="save_config_message">Please note: The new configuration file will be saved as \'%s\'!</string>
6163
<string name="save_config_warning">Please note: \'%s\' will be overwritten. Please be sure to make a backup if necessary!</string>
64+
<string name="share">Share</string>
65+
<string name="share_message">Kernel Profiler is a profile based kernel management utility, which allows kernel developers to provide predefined profiles to their users.\n\nThe latest version of Kernel Profiler can be obtained from https://play.google.com/store/apps/details?id=com.smartpack.kernelprofiler\n\nTo know more about integrating Kernel Profiler support into a kernel, please visit https://github.com/SmartPack/KernelProfiler/wiki</string>
66+
<string name="share_with">Share with</string>
6267
<string name="source_code">Source Code</string>
6368
<string name="storage_access_denied">Permission denied for writing to storage!</string>
6469
<string name="support">Support</string>

0 commit comments

Comments
 (0)