3 | *
4 | * This file is part of Kernel Adiutor.
5 | *
6 | * Kernel Adiutor is free software: you can redistribute it and/or modify
7 | * it under the terms of the GNU General Public License as published by
8 | * the Free Software Foundation, either version 3 of the License, or
9 | * (at your option) any later version.
10 | *
11 | * Kernel Adiutor is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with Kernel Adiutor. If not, see .
18 | *
19 | */
20 | package com.grarak.kerneladiutor.views.recyclerview.downloads;
21 |
22 | import android.view.View;
23 | import android.widget.ImageView;
24 | import android.widget.TextView;
25 |
26 | import com.grarak.kerneladiutor.R;
27 | import com.grarak.kerneladiutor.utils.Utils;
28 | import com.grarak.kerneladiutor.utils.ViewUtils;
29 | import com.grarak.kerneladiutor.utils.tools.SupportedDownloads;
30 | import com.grarak.kerneladiutor.views.recyclerview.RecyclerViewItem;
31 |
32 | /**
33 | * Created by willi on 06.07.16.
34 | */
35 | public class KernelItemView extends RecyclerViewItem {
36 |
37 | private final SupportedDownloads.KernelContent mKernelContent;
38 |
39 | public KernelItemView(SupportedDownloads.KernelContent content) {
40 | mKernelContent = content;
41 | }
42 |
43 | @Override
44 | public int getLayoutRes() {
45 | return R.layout.rv_kernel_item_view;
46 | }
47 |
48 | @Override
49 | public void onCreateView(View view) {
50 | super.onCreateView(view);
51 |
52 | final ImageView icon = (ImageView) view.findViewById(R.id.icon);
53 | TextView title = (TextView) view.findViewById(R.id.title);
54 | TextView summary = (TextView) view.findViewById(R.id.summary);
55 |
56 | ViewUtils.loadImagefromUrl(mKernelContent.getLogo(), icon, 300, 300);
57 |
58 | title.setText(Utils.htmlFrom(mKernelContent.getName()).toString());
59 | summary.setText(Utils.htmlFrom(mKernelContent.getShortDescription()));
60 |
61 | view.setOnClickListener(new View.OnClickListener() {
62 | @Override
63 | public void onClick(View view) {
64 | if (getOnItemClickListener() != null) {
65 | getOnItemClickListener().onClick(KernelItemView.this);
66 | }
67 | }
68 | });
69 | }
70 |
71 | @Override
72 | protected boolean cardCompatible() {
73 | return false;
74 | }
75 | }
76 |
--------------------------------------------------------------------------------
/app/src/main/java/com/viewpagerindicator/PageIndicator.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2011 Patrik Akerfeldt
3 | * Copyright (C) 2011 Jake Wharton
4 | *
5 | * Licensed under the Apache License, Version 2.0 (the "License");
6 | * you may not use this file except in compliance with the License.
7 | * You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package com.viewpagerindicator;
18 |
19 | import android.support.v4.view.ViewPager;
20 |
21 | /**
22 | * A PageIndicator is responsible to show an visual indicator on the total views
23 | * number and the current visible view.
24 | */
25 | public interface PageIndicator extends ViewPager.OnPageChangeListener {
26 | /**
27 | * Bind the indicator to a ViewPager.
28 | *
29 | * @param view
30 | */
31 | void setViewPager(ViewPager view);
32 |
33 | /**
34 | * Bind the indicator to a ViewPager.
35 | *
36 | * @param view
37 | * @param initialPosition
38 | */
39 | void setViewPager(ViewPager view, int initialPosition);
40 |
41 | /**
42 | * Set the current page of both the ViewPager and indicator.
43 | *
44 | * This must be used if you need to set the page before
45 | * the views are drawn on screen (e.g., default start page).
46 | *
47 | * @param item
48 | */
49 | void setCurrentItem(int item);
50 |
51 | /**
52 | * Set a page change listener which will receive forwarded events.
53 | *
54 | * @param listener
55 | */
56 | void setOnPageChangeListener(ViewPager.OnPageChangeListener listener);
57 |
58 | /**
59 | * Notify the indicator that the fragment list has changed.
60 | */
61 | void notifyDataSetChanged();
62 | }
63 |
--------------------------------------------------------------------------------
/app/src/main/res/anim/slide_in_bottom.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
10 |
11 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/drawable_frame_dark.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/drawable_frame_light.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/dropshadow.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
7 |
8 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_about.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
10 |
11 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_add.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_arrow.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_banner.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NHellFire/KernelAdiutor/bc0fb7a2b4a3d0f1bb99a01a70b373728f457311/app/src/main/res/drawable/ic_banner.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_banner_material.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NHellFire/KernelAdiutor/bc0fb7a2b4a3d0f1bb99a01a70b373728f457311/app/src/main/res/drawable/ic_banner_material.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_battery.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
10 |
11 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_blank.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_bolt.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
10 |
11 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_cancel.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_chart.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
10 |
11 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_clear.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
10 |
11 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_console.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
10 |
11 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_cpu.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
10 |
11 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_database.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
10 |
11 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_device.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
10 |
11 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_dir.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_display.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
10 |
11 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_done.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_dots.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_download.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_edit.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
10 |
11 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_file.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_gallery.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_github.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NHellFire/KernelAdiutor/bc0fb7a2b4a3d0f1bb99a01a70b373728f457311/app/src/main/res/drawable/ic_github.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_googleplus.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NHellFire/KernelAdiutor/bc0fb7a2b4a3d0f1bb99a01a70b373728f457311/app/src/main/res/drawable/ic_googleplus.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_gpu.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
10 |
11 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_help.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_keyboard.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_launcher_preview.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NHellFire/KernelAdiutor/bc0fb7a2b4a3d0f1bb99a01a70b373728f457311/app/src/main/res/drawable/ic_launcher_preview.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_layers.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
10 |
11 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_led.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
10 |
11 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_merge.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
10 |
11 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_music.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
10 |
11 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_numbers.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
10 |
11 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_paypal.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NHellFire/KernelAdiutor/bc0fb7a2b4a3d0f1bb99a01a70b373728f457311/app/src/main/res/drawable/ic_paypal.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_people.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
10 |
11 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_profile.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NHellFire/KernelAdiutor/bc0fb7a2b4a3d0f1bb99a01a70b373728f457311/app/src/main/res/drawable/ic_profile.jpeg
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_refresh.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_restore.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_save.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_sdcard.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
10 |
11 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_search.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_security.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
10 |
11 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_server.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
10 |
11 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_settings.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
10 |
11 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_shell.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
10 |
11 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_stackoverflow.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
10 |
11 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_start.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
10 |
11 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_switch.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
10 |
11 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_temperature.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
10 |
11 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_unlock.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
10 |
11 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_xda.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NHellFire/KernelAdiutor/bc0fb7a2b4a3d0f1bb99a01a70b373728f457311/app/src/main/res/drawable/ic_xda.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/profile_widget_preview.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NHellFire/KernelAdiutor/bc0fb7a2b4a3d0f1bb99a01a70b373728f457311/app/src/main/res/drawable/profile_widget_preview.jpg
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_downloads.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 |
18 |
19 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_editor.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
15 |
16 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_fragments.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
10 |
11 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
13 |
14 |
24 |
25 |
29 |
30 |
36 |
37 |
43 |
44 |
50 |
51 |
57 |
58 |
59 |
60 |
66 |
67 |
68 |
69 |
70 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_navigation.xml:
--------------------------------------------------------------------------------
1 |
2 |
11 |
12 |
15 |
16 |
20 |
21 |
26 |
27 |
28 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_profile.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
13 |
14 |
22 |
23 |
32 |
33 |
34 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_security.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
18 |
19 |
29 |
30 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_text.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
23 |
24 |
35 |
36 |
37 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/ad_native_express_view.xml:
--------------------------------------------------------------------------------
1 |
2 |
11 |
12 |
16 |
17 |
20 |
21 |
25 |
26 |
33 |
34 |
45 |
46 |
51 |
52 |
53 |
60 |
61 |
62 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/app_bar_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
10 |
11 |
18 |
19 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/fragment_apply_on_boot.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
17 |
18 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/fragment_buildprop_search.xml:
--------------------------------------------------------------------------------
1 |
2 |
10 |
11 |
19 |
20 |
29 |
30 |
39 |
40 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/fragment_description.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
14 |
15 |
23 |
24 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/fragment_global_offset.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
17 |
18 |
22 |
23 |
34 |
35 |
45 |
46 |
57 |
58 |
59 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/fragment_info.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
17 |
18 |
23 |
24 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/fragment_profile_details.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
12 |
13 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/fragment_profile_dialog.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
11 |
12 |
21 |
22 |
30 |
31 |
36 |
37 |
46 |
47 |
56 |
57 |
58 |
59 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/fragment_recovery_options.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
14 |
15 |
21 |
22 |
23 |
32 |
33 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/fragment_selector.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
18 |
19 |
24 |
25 |
31 |
32 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/fragment_switcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
16 |
17 |
25 |
26 |
30 |
31 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/fragment_usage_view.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
11 |
12 |
26 |
27 |
35 |
36 |
45 |
46 |
55 |
56 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/nav_header_layout.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/nav_header_view.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
10 |
11 |
18 |
19 |
20 |
34 |
35 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/preference_color_view.xml:
--------------------------------------------------------------------------------
1 |
2 |
10 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/rv_button.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
11 |
12 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/rv_contributor_view.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
13 |
14 |
20 |
21 |
28 |
29 |
35 |
36 |
41 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/rv_datasharing_device.xml:
--------------------------------------------------------------------------------
1 |
2 |
12 |
13 |
18 |
19 |
28 |
29 |
33 |
34 |
38 |
39 |
46 |
47 |
57 |
58 |
59 |
63 |
64 |
65 |
66 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/rv_datasharing_page.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
14 |
15 |
23 |
24 |
31 |
32 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/rv_description_view.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
13 |
14 |
22 |
23 |
28 |
29 |
35 |
36 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/rv_drop_down_item_view.xml:
--------------------------------------------------------------------------------
1 |
2 |
10 |
11 |
15 |
16 |
20 |
21 |
28 |
29 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/rv_drop_down_view.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
15 |
16 |
21 |
22 |
28 |
29 |
34 |
35 |
40 |
41 |
42 |
43 |
50 |
51 |
52 |
53 |
58 |
59 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/rv_edittext_view.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
16 |
17 |
23 |
24 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/rv_error_view.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
15 |
16 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/rv_frequencytable_view.xml:
--------------------------------------------------------------------------------
1 |
2 |
10 |
11 |
16 |
17 |
21 |
22 |
29 |
30 |
37 |
38 |
45 |
46 |
47 |
48 |
55 |
56 |
57 |
58 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/rv_kernel_item_view.xml:
--------------------------------------------------------------------------------
1 |
2 |
11 |
12 |
17 |
18 |
24 |
25 |
32 |
33 |
41 |
42 |
46 |
47 |
48 |
49 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/rv_stats_view.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
13 |
14 |
21 |
22 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/rv_switch_view.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
15 |
16 |
21 |
22 |
27 |
28 |
33 |
34 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/rv_title_view.xml:
--------------------------------------------------------------------------------
1 |
2 |
15 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/rv_value_view.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
13 |
14 |
19 |
20 |
25 |
26 |
31 |
32 |
38 |
39 |
45 |
46 |
51 |
52 |
53 |
54 |
55 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/rv_xygraph_view.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
13 |
14 |
18 |
19 |
27 |
28 |
29 |
35 |
36 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/viewpager_view.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
15 |
16 |
24 |
25 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/widget_profile.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
16 |
17 |
22 |
23 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/widget_profile_item.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NHellFire/KernelAdiutor/bc0fb7a2b4a3d0f1bb99a01a70b373728f457311/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/ic_launcher_material.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NHellFire/KernelAdiutor/bc0fb7a2b4a3d0f1bb99a01a70b373728f457311/app/src/main/res/mipmap-hdpi/ic_launcher_material.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NHellFire/KernelAdiutor/bc0fb7a2b4a3d0f1bb99a01a70b373728f457311/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/ic_launcher_material.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NHellFire/KernelAdiutor/bc0fb7a2b4a3d0f1bb99a01a70b373728f457311/app/src/main/res/mipmap-mdpi/ic_launcher_material.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NHellFire/KernelAdiutor/bc0fb7a2b4a3d0f1bb99a01a70b373728f457311/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/ic_launcher_material.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NHellFire/KernelAdiutor/bc0fb7a2b4a3d0f1bb99a01a70b373728f457311/app/src/main/res/mipmap-xhdpi/ic_launcher_material.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NHellFire/KernelAdiutor/bc0fb7a2b4a3d0f1bb99a01a70b373728f457311/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/ic_launcher_material.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NHellFire/KernelAdiutor/bc0fb7a2b4a3d0f1bb99a01a70b373728f457311/app/src/main/res/mipmap-xxhdpi/ic_launcher_material.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NHellFire/KernelAdiutor/bc0fb7a2b4a3d0f1bb99a01a70b373728f457311/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/ic_launcher_material.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NHellFire/KernelAdiutor/bc0fb7a2b4a3d0f1bb99a01a70b373728f457311/app/src/main/res/mipmap-xxxhdpi/ic_launcher_material.png
--------------------------------------------------------------------------------
/app/src/main/res/values-af/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
--------------------------------------------------------------------------------
/app/src/main/res/values-az/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
--------------------------------------------------------------------------------
/app/src/main/res/values-da/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Adgangskode
6 | Forkert adgangskode
7 | Vælg billede
8 | Intet billede
9 | Noget gik galt!
10 | Tryk på tilbage igen for at afslutte
11 | Annullér
12 | OK
13 | Ukendt
14 | Uden for område
15 | Indstillinger
16 | Mere
17 |
18 |
19 | Gem
20 |
21 | Vælg %s?
22 |
23 | MHz
24 | ºC
25 | ºF
26 |
27 |
28 |
29 | Om
30 | Bidragsydere
31 | Hjælp
32 |
33 | Offline
34 | Oppetid
35 |
36 | RAM
37 | Fingeraftryk
38 | Bootloader
39 | Hardware
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
--------------------------------------------------------------------------------
/app/src/main/res/values-v21/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 | 16dp
3 | 16dp
4 | 16dp
5 | 16dp
6 |
7 | 16dp
8 | -30dp
9 | 16dp
10 |
11 |
--------------------------------------------------------------------------------
/app/src/main/res/values-v21/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
12 |
13 |
--------------------------------------------------------------------------------
/app/src/main/res/values/attrs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #2a7289
4 | #1d5060
5 |
6 | #8a000000
7 | #b3ffffff
8 |
9 | #000000
10 | #ffffff
11 | #5fb962
12 | #f66055
13 |
14 | #ef5350
15 | #ff80aa
16 | #ab47Bc
17 | #42a5f5
18 | #66bb6a
19 | #ffa726
20 | #8d6e63
21 | #bdbdbd
22 | #78909c
23 | #26a69a
24 |
25 |
--------------------------------------------------------------------------------
/app/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 | 160dp
3 |
4 | 8dp
5 | 0dp
6 | 0dp
7 | 0dp
8 |
9 | 8dp
10 | -48dp
11 | 8dp
12 |
13 | 10dp
14 |
15 | 3dp
16 | 3dp
17 |
18 | 50dp
19 | 50dp
20 | 2dp
21 | 1dp
22 |
23 | 30dp
24 |
25 | 100dp
26 | 50dp
27 |
28 | 50dp
29 |
30 | 320dp
31 |
32 | 140dp
33 | 180dp
34 | 280dp
35 |
36 | 50dp
37 | 50dp
38 | 1dp
39 |
40 | 5dp
41 |
42 |
--------------------------------------------------------------------------------
/app/src/main/res/values/ids.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | ca-app-pub-1851546461606210/9265877481
4 | ca-app-pub-1851546461606210/4717926683
5 |
6 |
--------------------------------------------------------------------------------
/app/src/main/res/xml/profile_widget.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
--------------------------------------------------------------------------------
/app/src/main/res/xml/shortcuts.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 |
13 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/app/src/test/java/com/grarak/kerneladiutor/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package com.grarak.kerneladiutor;
2 |
3 | import org.junit.Test;
4 |
5 | import static org.junit.Assert.assertEquals;
6 |
7 | /**
8 | * To work on unit tests, switch the Test Artifact in the Build Variants view.
9 | */
10 | public class ExampleUnitTest {
11 | @Test
12 | public void addition_isCorrect() throws Exception {
13 | assertEquals(4, 2 + 2);
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | jcenter()
6 | google()
7 | }
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:3.0.1'
10 | classpath 'com.google.gms:google-services:3.0.0'
11 |
12 | // NOTE: Do not place your application dependencies here; they belong
13 | // in the individual module build.gradle files
14 | }
15 | }
16 |
17 | allprojects {
18 | repositories {
19 | jcenter()
20 | google()
21 | }
22 | }
23 |
24 | task clean(type: Delete) {
25 | delete rootProject.buildDir
26 | }
27 |
--------------------------------------------------------------------------------
/controls/selinux.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": 1,
3 | "control": {
4 | "apply": "#!/system/bin/sh\n\nsetenforce $1",
5 | "enable": "#!/system/bin/sh\n\nif [ `getenforce` == \"Enforcing\" ]; then\n echo 1\nelse\n echo 0\nfi",
6 | "title": "Selinux",
7 | "description": "Security-Enhanced Linux is a Linux kernel security module that provides a mechanism for supporting access control security policies.",
8 | "id": "switch"
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/download/angler.json:
--------------------------------------------------------------------------------
1 | [
2 | "https://raw.githubusercontent.com/Fechinator/android_kernel_huawei_angler/m/Fechdakernel_Angler.json"
3 | ]
4 |
--------------------------------------------------------------------------------
/download/condor.json:
--------------------------------------------------------------------------------
1 | [
2 | "https://raw.githubusercontent.com/zeeshanhussain/Inazumakernel/master/Inazuma.json"
3 | ]
4 |
--------------------------------------------------------------------------------
/download/desire816.json:
--------------------------------------------------------------------------------
1 | [
2 | "https://raw.githubusercontent.com/Grarak/grarak.github.io/master/grakernel/desire816.json"
3 | ]
4 |
--------------------------------------------------------------------------------
/download/falcon.json:
--------------------------------------------------------------------------------
1 | [
2 | "https://raw.githubusercontent.com/BryanByteZero/android_kernel_motorola_msm8226/restart6/falcon.json"
3 | ]
4 |
--------------------------------------------------------------------------------
/download/g3.json:
--------------------------------------------------------------------------------
1 | [
2 | "https://www.dropbox.com/s/axo8gywdzmblvrl/g3.json?raw=1"
3 | ]
4 |
--------------------------------------------------------------------------------
/download/g3beat_jag3gds.json:
--------------------------------------------------------------------------------
1 | [
2 | "https://raw.githubusercontent.com/TheNotOnly/android_kernel_lge_msm8226/cm-13.0/g3beat_jag3gds.json"
3 | ]
4 |
--------------------------------------------------------------------------------
/download/g3beat_jagnm.json:
--------------------------------------------------------------------------------
1 | [
2 | "https://raw.githubusercontent.com/TheNotOnly/android_kernel_lge_msm8226/cm-13.0/g3beat_jagnm.json"
3 | ]
4 |
--------------------------------------------------------------------------------
/download/galaxyr.json:
--------------------------------------------------------------------------------
1 | [
2 | "https://raw.githubusercontent.com/Grarak/grarak.github.io/master/grakernel/galaxyr.json"
3 | ]
4 |
--------------------------------------------------------------------------------
/download/galaxys5.json:
--------------------------------------------------------------------------------
1 | [
2 | "https://raw.githubusercontent.com/FrancescoCG/KernelUpdates/master/galaxys5tw.json",
3 | "https://raw.githubusercontent.com/FrancescoCG/KernelUpdates/master/galaxys5aosp.json"
4 | ]
5 |
--------------------------------------------------------------------------------
/download/galaxys7.json:
--------------------------------------------------------------------------------
1 | [
2 | "https://raw.githubusercontent.com/djb77/tgpkernel-s7/tw601/tgpkernel-tw601.json"
3 | ]
4 |
--------------------------------------------------------------------------------
/download/galaxys7edge.json:
--------------------------------------------------------------------------------
1 | [
2 | "https://raw.githubusercontent.com/djb77/tgpkernel-s7/tw601/tgpkernel-tw601.json"
3 | ]
4 |
--------------------------------------------------------------------------------
/download/jalebi.json:
--------------------------------------------------------------------------------
1 | [
2 | "https://raw.githubusercontent.com/Shoaib0597/Velocity_Kernel_for_Yu-MSM8939/cm-12.1-amss-1.0.2/jalebi.json"
3 | ]
4 |
--------------------------------------------------------------------------------
/download/lettuce.json:
--------------------------------------------------------------------------------
1 | [
2 | "https://raw.githubusercontent.com/Shoaib0597/Velocity_Kernel_for_Yu-MSM8939/Yup_CM12.1/lettuce.json",
3 | "https://raw.githubusercontent.com/The-Demon12/Json/master/phenex.json"
4 | ]
5 |
--------------------------------------------------------------------------------
/download/nicki.json:
--------------------------------------------------------------------------------
1 | [
2 | "https://raw.githubusercontent.com/Nicklas373/Hana-Kernel_MSM8627-AOSP_7.0/master/tools/nicki.json"
3 | ]
4 |
--------------------------------------------------------------------------------
/download/oneplusone.json:
--------------------------------------------------------------------------------
1 | [
2 | "https://raw.githubusercontent.com/akhilnarang/akhilnarang.github.io/master/kernel/opo.json"
3 | ]
4 |
--------------------------------------------------------------------------------
/download/peregrine.json:
--------------------------------------------------------------------------------
1 | [
2 | "https://raw.githubusercontent.com/BryanByteZero/android_kernel_motorola_msm8226/restart6/peregrine.json"
3 | ]
4 |
--------------------------------------------------------------------------------
/download/quark.json:
--------------------------------------------------------------------------------
1 | [
2 | "https://raw.githubusercontent.com/bhb27/KernelAdiutor/json/quark.json"
3 | ]
4 |
--------------------------------------------------------------------------------
/download/s2.json:
--------------------------------------------------------------------------------
1 | [
2 | "https://raw.githubusercontent.com/rishabhrao/AndroModX-s2/android-6.0/AndroModX-s2.json"
3 | ]
4 |
--------------------------------------------------------------------------------
/download/sm-g900t.json:
--------------------------------------------------------------------------------
1 | [
2 | "https://raw.githubusercontent.com/ShinySide/KernelUpdates/master/sm-g900t.json"
3 | ]
4 |
--------------------------------------------------------------------------------
/download/sprout.json:
--------------------------------------------------------------------------------
1 | [
2 | "https://raw.githubusercontent.com/akhilnarang/akhilnarang.github.io/master/kernel/sprout.json",
3 | "https://raw.githubusercontent.com/Swapnil133609/swapnil133609.github.io/master/kernel/sprout.json",
4 | "https://raw.githubusercontent.com/vikrant699/Vikings_Sprout/marshmallow/sprout.json"
5 | ]
6 |
--------------------------------------------------------------------------------
/download/tomato.json:
--------------------------------------------------------------------------------
1 | [
2 | "https://raw.githubusercontent.com/HridayHS/Lightning-Downloads/master/tomato.json",
3 | "https://raw.githubusercontent.com/SomeshThakur/Xeon-KernelAdiutor/master/tomato.json",
4 | "https://raw.githubusercontent.com/Shoaib0597/Velocity_Kernel_for_Yu-MSM8939/cm-12.1-amss-1.0.2/tomato.json"
5 | ]
6 |
--------------------------------------------------------------------------------
/download/wingtech.json:
--------------------------------------------------------------------------------
1 | [
2 | "https://raw.githubusercontent.com/dev-elixir/elixir-redmi2/experimental/tools/elixir_r2.json",
3 | "https://raw.githubusercontent.com/dev-elixir/elixir-redmi2/master/tools/elixir_r2.json"
4 | ]
5 |
--------------------------------------------------------------------------------
/download/x3.json:
--------------------------------------------------------------------------------
1 | [
2 | "https://raw.githubusercontent.com/psycho-source/x3/master/x3.json"
3 | ]
4 |
--------------------------------------------------------------------------------
/download/xperiasp.json:
--------------------------------------------------------------------------------
1 | [
2 | "https://raw.githubusercontent.com/Tomoms/helium_kernel/release/huashan.json"
3 | ]
4 |
--------------------------------------------------------------------------------
/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 |
3 | # IDE (e.g. Android Studio) users:
4 | # Gradle settings configured through the IDE *will override*
5 | # any settings specified in this file.
6 |
7 | # For more details on how to configure your build environment visit
8 | # http://www.gradle.org/docs/current/userguide/build_environment.html
9 |
10 | # Specifies the JVM arguments used for the daemon process.
11 | # The setting is particularly useful for tweaking memory settings.
12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m
13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
14 |
15 | # When configured, Gradle will run in incubating parallel mode.
16 | # This option should only be used with decoupled projects. More details, visit
17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18 | # org.gradle.parallel=true
19 |
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NHellFire/KernelAdiutor/bc0fb7a2b4a3d0f1bb99a01a70b373728f457311/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Thu Nov 23 01:16:50 CET 2017
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
7 |
--------------------------------------------------------------------------------
/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
12 | set DEFAULT_JVM_OPTS=
13 |
14 | set DIRNAME=%~dp0
15 | if "%DIRNAME%" == "" set DIRNAME=.
16 | set APP_BASE_NAME=%~n0
17 | set APP_HOME=%DIRNAME%
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windowz variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 | if "%@eval[2+2]" == "4" goto 4NT_args
53 |
54 | :win9xME_args
55 | @rem Slurp the command line arguments.
56 | set CMD_LINE_ARGS=
57 | set _SKIP=2
58 |
59 | :win9xME_args_slurp
60 | if "x%~1" == "x" goto execute
61 |
62 | set CMD_LINE_ARGS=%*
63 | goto execute
64 |
65 | :4NT_args
66 | @rem Get arguments from the 4NT Shell from JP Software
67 | set CMD_LINE_ARGS=%$
68 |
69 | :execute
70 | @rem Setup the command line
71 |
72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73 |
74 | @rem Execute Gradle
75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76 |
77 | :end
78 | @rem End local scope for the variables with windows NT shell
79 | if "%ERRORLEVEL%"=="0" goto mainEnd
80 |
81 | :fail
82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83 | rem the _cmd.exe /c_ return code!
84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85 | exit /b 1
86 |
87 | :mainEnd
88 | if "%OS%"=="Windows_NT" endlocal
89 |
90 | :omega
91 |
--------------------------------------------------------------------------------
/importTranslations.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | BASE=`pwd`
4 | ZIP=$1
5 |
6 | if [ -z $ZIP ]; then
7 | echo missing ZIP
8 | exit 1
9 | fi
10 |
11 | if [ ! -f $ZIP ]; then
12 | echo ZIP does not exists
13 | exit 1
14 | fi
15 |
16 | NAME=`basename $ZIP`
17 | DIR=$(dirname $ZIP)/translations
18 | if [ -e $DIR ]; then
19 | rm -r $DIR
20 | fi
21 | mkdir -p $DIR
22 | cp $ZIP $DIR/
23 | cd $DIR
24 | unzip -q $NAME
25 | rm $NAME
26 | for i in `ls`; do
27 | mv $i values-$i
28 | done
29 |
30 | mv values-ast values-ast-rES
31 | mv values-es-ES values-es
32 | mv values-hy-AM values-hy-rAM
33 | mv values-pt-BR values-pt-rBR
34 | mv values-pt-PT values-pt-rPT
35 | mv values-sv-SE values-sv
36 | mv values-zh-CN values-zh-rCN
37 | mv values-zh-TW values-zh-rTW
38 |
39 | for i in `ls`; do
40 | cp -r $i $BASE/app/src/main/res/
41 | done
42 |
43 | cd ..
44 | rm -r translations
45 |
--------------------------------------------------------------------------------
/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
--------------------------------------------------------------------------------