Skip to content

Commit

Permalink
Squashed commit of the following:
Browse files Browse the repository at this point in the history
commit 091a157
Author: grubeli <grubeli@mego.bar>
Date:   Tue Nov 16 14:04:57 2021 +0000

    Fix selinux FP (scottyab#184)

commit 363a9e7
Author: Scott Alexander-Bown <github@alexander-bown.com>
Date:   Mon Jun 7 09:54:51 2021 +0100

    update the app icon link in readme

commit e4345ba
Author: Harsh Mahajan <harshmahajan927@yahoo.com>
Date:   Mon Jun 7 16:50:08 2021 +0800

    Update library version in documentation to 0.1.0 (scottyab#175)

commit d9057ce
Author: Scott Alexander-Bown <scottyab@users.noreply.github.com>
Date:   Mon May 24 08:46:20 2021 +0100

    re-add/restore the package name checks

commit c0840f1
Author: Scott Alexander-Bown <scottyab@users.noreply.github.com>
Date:   Mon May 24 08:45:07 2021 +0100

    Remove debugging info accidentally committed to smaple app

commit 4adecf8
Author: Matthew Rollings <1211162+stealthcopter@users.noreply.github.com>
Date:   Mon May 24 08:35:11 2021 +0100

    [Fix] Shared object name change (scottyab#172)

commit 2fae04b
Author: Scott Alexander-Bown <github@alexander-bown.com>
Date:   Sat May 22 14:42:21 2021 +0100

    Migrate to Cmake and ensure `-fstack-protector-all` is being applied (scottyab#171)

    Co-authored-by: Scott Alexander-Bown <scottyab@users.noreply.github.com>
    Co-authored-by: mat <admin@stealthcopter.com>

commit 88dbbd2
Author: Scott Alexander-Bown <scottyab@users.noreply.github.com>
Date:   Fri May 21 15:40:38 2021 +0100

    Update pre-compiled libtool-checker.so binaries to attempt to ensure fstack protection added.

commit eff8e89
Author: Scott Alexander-Bown <scottyab@users.noreply.github.com>
Date:   Sat May 8 17:42:23 2021 +0100

    Updated App icon to be adaptive

commit 3163211
Author: Scott Alexander-Bown <github@alexander-bown.com>
Date:   Sat May 8 15:18:37 2021 +0100

    Convert sample to kotlin (scottyab#133)

    Co-authored-by: Scott Alexander-Bown <scottyab@users.noreply.github.com>

commit 95821ec
Author: Scott Alexander-Bown <scottyab@users.noreply.github.com>
Date:   Tue May 4 08:04:38 2021 +0100

    Update readme to clarify when the root cloak tests we valid

commit 2989cba
Author: Scott Alexander-Bown <scottyab@users.noreply.github.com>
Date:   Tue May 4 07:47:42 2021 +0100

    Change log and increment version to 0.0.9

commit 5fef9f6
Author: Prempal Singh <prempal.42@gmail.com>
Date:   Tue Jul 28 00:20:09 2020 +0530

    add advice to use background thread in README (scottyab#150)

    thanks @prempalsingh

commit db127ad
Author: Stefan M <StefMa@users.noreply.github.com>
Date:   Wed Jul 22 13:25:49 2020 +0200

    Delete strings.xml (scottyab#149)

commit 03b7ecb
Author: Matthew Rollings <1211162+stealthcopter@users.noreply.github.com>
Date:   Tue Jul 21 14:58:39 2020 +0100

    Added appbrain shield to readme

commit f9ec6c9
Author: Slim Namouchi <namouchi.slim@gmail.com>
Date:   Tue Jul 21 14:19:44 2020 +0100

    Update RootBeer.java (scottyab#142)

    Mount command line has different outputs according to the running Android version. The output has been changed since Android Nougat as follow :

      <fs_spec> <ON> <fs_file> <TYPE> <fs_vfs_type> <(fs_mntopts)>

     where :
        - fs_spec describes the block device or remote filesystem to be mounted.
        - fs_file: describes the mount point for the filesystem.
        - fs_vfs_type: describes the type of the filesystem.
        - fs_mntopts: describes the mount options associated with the filesystem. (E.g. "(rw,seclabel,nosuid,nodev,relatime)" )

commit bb43b74
Author: Matthew Rollings <1211162+stealthcopter@users.noreply.github.com>
Date:   Tue Jul 21 14:10:44 2020 +0100

    Fixed documentation to fix issue scottyab#144 (scottyab#146)

    Co-authored-by: stealthcopter <matthewrollings@pm.me>

commit 08d57fa
Author: Roberto Gonzalez <slawert@gmail.com>
Date:   Fri Jul 17 10:05:44 2020 +0200

    Add fstack protector. (scottyab#136)

commit b71502a
Author: Fi5t <Fi5t@users.noreply.github.com>
Date:   Wed Jul 15 23:47:49 2020 +0300

    Add additional dangerous apps packages (scottyab#145)

    Looks good to me, thanks!

commit d5d3311
Author: Scott Alexander-Bown <github@alexander-bown.com>
Date:   Mon Mar 16 11:44:07 2020 +0000

    Moved to point to local maven publish file and fixed it so uploadArchives is back working (scottyab#132)

    Looks good to me

commit 5b8d79b
Author: mat <matthewrollings@pm.me>
Date:   Wed Mar 11 09:38:15 2020 +0000

    Added tv art and bumped sample app version name/code

commit e221a52
Author: Deepak PK <deepakpk009@users.noreply.github.com>
Date:   Wed Mar 11 14:58:40 2020 +0530

    enabled landscape mode and default focus to fab button (scottyab#129)

commit 46abc67
Author: Matthew Rollings <1211162+stealthcopter@users.noreply.github.com>
Date:   Sat Feb 8 21:35:00 2020 +0000

    Fix issue with jitpack (scottyab#125)

    * testing fix2 for jitpack issue

    * Added back change to see if this was the issue

commit ed68820
Author: Matthew Rollings <1211162+stealthcopter@users.noreply.github.com>
Date:   Sat Feb 8 20:34:17 2020 +0000

    Missed version number bump

    Sorry everyone missed this version number bump (commited it locally but not to master or branch that was merged). This stopped jitpack from picking it up correctly

commit c7ab1a6
Merge: 7815ef8 89cd69a
Author: Matthew Rollings <1211162+stealthcopter@users.noreply.github.com>
Date:   Fri Feb 7 14:44:11 2020 +0000

    Merge pull request scottyab#122 from scottyab/feature/release-0.0.8

    Feature/release 0.0.8

commit 89cd69a
Author: mat <matthewrollings@pm.me>
Date:   Fri Feb 7 09:43:09 2020 +0000

    Removed printStackTrace from main code and placed into logger so it can be silenced if needed

commit 2f8e6d7
Author: mat <matthewrollings@pm.me>
Date:   Tue Feb 4 13:41:34 2020 +0000

    Updated gradle files, circle ci version and rebuild .so files.

commit 2da6dd1
Author: mat <matthewrollings@pm.me>
Date:   Tue Feb 4 13:21:36 2020 +0000

    Updated circle ci image to api-29

commit dbac3d0
Author: mat <matthewrollings@pm.me>
Date:   Tue Feb 4 11:42:07 2020 +0000

    Updated changelog

commit 64fe2f7
Author: mat <matthewrollings@pm.me>
Date:   Tue Feb 4 11:41:46 2020 +0000

    Added sticker graphic

commit 7815ef8
Merge: 87f3019 a00e3f7
Author: Matthew Rollings <1211162+stealthcopter@users.noreply.github.com>
Date:   Mon Feb 3 20:42:40 2020 +0000

    Merge pull request scottyab#104 from danielkutik/master

    Updated toolchain and converted to AndroidX

commit 87f3019
Merge: 6d58c00 94b0ddd
Author: Matthew Rollings <1211162+stealthcopter@users.noreply.github.com>
Date:   Mon Feb 3 20:42:27 2020 +0000

    Merge pull request scottyab#121 from scottyab/feature/extra-test-check-trailing-slash

    Added test for trailing slash on packages

commit a00e3f7
Merge: d1513ca 6d58c00
Author: Daniel Kutik <daniel@kutik.eu>
Date:   Fri Jan 31 08:54:28 2020 +0800

    Merge branch 'master' into master

commit 6d58c00
Merge: 53b32c3 4dc3b78
Author: Matthew Rollings <1211162+stealthcopter@users.noreply.github.com>
Date:   Thu Jan 30 16:17:56 2020 +0000

    Merge pull request scottyab#120 from scottyab/feature/more_root_packages

    Added more root pacakges in

commit 94b0ddd
Author: mat <matthewrollings@pm.me>
Date:   Thu Jan 30 16:12:36 2020 +0000

    Added test for trailing slash on packages

commit 4dc3b78
Author: mat <matthewrollings@pm.me>
Date:   Thu Jan 30 13:09:02 2020 +0000

    Added more root pacakges in

commit 53b32c3
Merge: 6c29d40 e7b4490
Author: Matthew Rollings <1211162+stealthcopter@users.noreply.github.com>
Date:   Thu Jan 30 13:05:20 2020 +0000

    Merge pull request scottyab#116 from scottyab/feature/remove_busybox_default_check

    Feature/remove busybox default check

commit 6c29d40
Merge: 86a8555 d1b4082
Author: Matthew Rollings <1211162+stealthcopter@users.noreply.github.com>
Date:   Thu Jan 30 13:05:03 2020 +0000

    Merge pull request scottyab#117 from scottyab/feature/add_system_path_variables

    Added method to get paths that uses the system variable $PATH and com…

commit d1b4082
Author: mat <matthewrollings@pm.me>
Date:   Tue Jan 28 14:06:12 2020 +0000

    Added method to get paths that uses the system variable $PATH and combines them with a static list of probable paths

commit e7b4490
Author: mat <matthewrollings@pm.me>
Date:   Tue Jan 28 13:12:19 2020 +0000

    Fixed typo

commit b898690
Author: mat <matthewrollings@pm.me>
Date:   Tue Jan 28 13:03:18 2020 +0000

    Fixed the tests and a few typos

commit 2aed9bd
Author: mat <matthewrollings@pm.me>
Date:   Tue Jan 28 12:51:22 2020 +0000

    Updated readme

commit 0ff04d3
Author: mat <matthewrollings@pm.me>
Date:   Tue Jan 28 12:41:49 2020 +0000

    Removed busybox binary check from default root detection and deprecated the isRootedWithoutBusyBoxCheck method. Added isRootedWithBusyBoxCheck for anyone who wants this still.

commit 86a8555
Author: mat <matthewrollings@pm.me>
Date:   Tue Jan 28 12:31:03 2020 +0000

    Modified build.gradle so that it doesn't crash when it attempts to detect if the NDK is installed or not

commit 59c387e
Author: Ivan Vlasov <Blizzed@bk.ru>
Date:   Mon Dec 9 13:32:18 2019 +0300

    Fixed typo in word 'writable' (scottyab#110)

commit 5ad3a24
Author: zhqcqupt <zhqcucn@gmail.com>
Date:   Sat Nov 30 01:15:51 2019 +0800

    root without binary device (scottyab#108)

    on   OPPO R9m (ColorOS 3.0,Android 5.1,Android security patch January 5, 2018
    RootedWithoutBusyBoxCheck is recommended

commit d1513ca
Author: Daniel Kutik <daniel@kutik.eu>
Date:   Sat Nov 16 10:45:47 2019 +0800

    Removed unused androidTests

commit 1ea4252
Author: Daniel Kutik <daniel@kutik.eu>
Date:   Sat Nov 16 10:39:54 2019 +0800

    dos2unix: Ensure we have always the correct line feed characters

commit 94e8c24
Author: Daniel Kutik <daniel@kutik.eu>
Date:   Sat Nov 16 10:34:24 2019 +0800

    Updated toolchain and converted to AndroidX

commit 3488147
Merge: 8b985d9 39def06
Author: Matthew Rollings <1211162+stealthcopter@users.noreply.github.com>
Date:   Mon Jun 10 11:29:09 2019 +0100

    Merge pull request scottyab#96 from JamieCruwys/patch-1

    Fixed typo

commit 39def06
Author: Jamie Cruwys <me@jamiecruwys.co.uk>
Date:   Thu May 2 16:28:11 2019 +0100

    Fixed typo

commit 8b985d9
Author: Matthew Rollings <1211162+stealthcopter@users.noreply.github.com>
Date:   Thu Mar 14 12:24:58 2019 +0000

    Minor bug fix with missing trailing / and code cleanup (scottyab#75)
  • Loading branch information
KimChangYoun committed Sep 2, 2023
1 parent 3407272 commit 92e3adc
Show file tree
Hide file tree
Showing 90 changed files with 1,161 additions and 918 deletions.
3 changes: 2 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ version: 2
jobs:
build:
docker:
- image: circleci/android:api-27-node8-alpha
# https://circleci.com/docs/2.0/circleci-images/#android
- image: circleci/android:api-30
environment:
GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
steps:
Expand Down
195 changes: 195 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,195 @@
* text=auto

###### Git
.gitattributes text
.gitignore text
.gitconfig text
.gitmodules text

##### Windows
*.bat text eol=crlf
*.exe binary
*.dll binary

##### Linux
*.sh text eol=lf
*.so binary

##### Global
# Documents
*.sql text
*.md text
*.adoc text
*.textile text
*.mustache text
*.csv text
*.tab text
*.tsv text
*.coffee text
*.css text
*.htm text
*.html text
*.xhtml text
*.inc text
*.js text
*.jsx text
*.less text
*.od text
*.onlydata text
*.sass text
*.scm text
*.log text
*.properties text
*.scss text
*.styl text
*.tag text
*.ts text
*.tsx text
*.dockerignore text
Dockerfile text
*.markdown text
*.mdwn text
*.mdown text
*.mkd text
*.mkdn text
*.mdtxt text
*.mdtext text
*.txt text
AUTHORS text
CHANGELOG text
CHANGES text
CONTRIBUTING text
COPYING text
copyright text
*COPYRIGHT* text
INSTALL text
license text
LICENSE text
NEWS text
readme text
*README* text
TODO text
# Configuration
*.cnf text
*.cfg text
*.conf text
*.config text
*.ini text
*.json text
*.xml text
*.bowerrc text
.browserslistrc text
.editorconfig text
*.npmignore text
*.yaml text
*.yml text
browserslist text
Makefile text
makefile text
Procfile text
.slugignore text
# Linters
.csslintrc text
.eslintrc text
.htmlhintrc text
.jscsrc text
.jshintrc text
.jshintignore text
.stylelintrc text
# Video
*.3gpp binary
*.3gp binary
*.as binary
*.asf binary
*.asx binary
*.fla binary
*.flv binary
*.m4v binary
*.mng binary
*.mov binary
*.mp4 binary
*.mpeg binary
*.mpg binary
*.ogv binary
*.swc binary
*.swf binary
*.webm binary
# Audio
*.kar binary
*.m4a binary
*.mid binary
*.midi binary
*.mp3 binary
*.ogg binary
*.ra binary
# Graphics
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.tif binary
*.tiff binary
*.ico binary
*.eps binary
*.ai binary
*.bmp binary
*.jng binary
*.jp2 binary
*.jpx binary
*.jxr binary
*.pdf binary
*.psb binary
*.psd binary
*.svg text
*.svgz binary
*.wbmp binary
*.webp binary
# Archives
*.7z binary
*.gz binary
*.jar binary
*.rar binary
*.tar binary
*.zip binary
# Fonts
*.ttf binary
*.eot binary
*.otf binary
*.woff binary
*.woff2 binary
# Executables
*.pyc binary
# Objects
*.o binary

##### IDE/Editor
# Visual Studio
*.sln text eol=crlf
*.csproj text eol=crlf
*.vbproj text eol=crlf
*.vcxproj text eol=crlf
*.vcproj text eol=crlf
*.dbproj text eol=crlf
*.fsproj text eol=crlf
*.lsproj text eol=crlf
*.wixproj text eol=crlf
*.modelproj text eol=crlf
*.sqlproj text eol=crlf
*.wmaproj text eol=crlf
*.xproj text eol=crlf
*.props text eol=crlf
*.filters text eol=crlf
*.vcxitems text eol=crlf
# Eclipse
*.project text
*.classpath text
*.prefs

##### Language
# Java
*.java text
*.jsp text
*.jspf text
*.jspx text
*.class binary
*.war binary
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ captures/
# IntelliJ project files
*.iml
.idea/
.cxx/

# Misc
.DS_Store
Expand Down
Original file line number Diff line number Diff line change
@@ -1,22 +1,30 @@
package com.kimchangyoun.rootbeerFresh;

/**
* Created by mat on 19/06/15.
*/
public final class Const {
import java.util.ArrayList;
import java.util.Arrays;

final class Const {

static final String BINARY_SU = "su";
static final String BINARY_BUSYBOX = "busybox";

private Const() throws InstantiationException {
throw new InstantiationException("This class is not for instantiation");
}

public static final String[] knownRootAppsPackages = {
static final String[] knownRootAppsPackages = {
"com.noshufou.android.su",
"com.noshufou.android.su.elite",
"eu.chainfire.supersu",
"com.koushikdutta.superuser",
"com.thirdparty.superuser",
"com.yellowes.su",
"com.topjohnwu.magisk"
"com.topjohnwu.magisk",
"com.kingroot.kinguser",
"com.kingo.root",
"com.smedialink.oneclickroot",
"com.zhiqupk.root.global",
"com.alephzain.framaroot"
};

public static final String[] knownDangerousAppsPackages = {
Expand All @@ -27,7 +35,26 @@ private Const() throws InstantiationException {
"com.ramdroid.appquarantine",
"com.ramdroid.appquarantinepro",
"com.android.vending.billing.InAppBillingService.COIN",
"com.chelpus.luckypatcher"
"com.android.vending.billing.InAppBillingService.LUCK",
"com.chelpus.luckypatcher",
"com.blackmartalpha",
"org.blackmart.market",
"com.allinone.free",
"com.repodroid.app",
"org.creeplays.hack",
"com.baseappfull.fwd",
"com.zmapp",
"com.dv.marketmod.installer",
"org.mobilism.android",
"com.android.wp.net.log",
"com.android.camera.update",
"cc.madkite.freedom",
"com.solohsu.android.edxp.manager",
"org.meowcat.edxposed.manager",
"com.xmodgame",
"com.cih.game_cih",
"com.charles.lpoqasert",
"catch_.me_.if_.you_.can_"
};

public static final String[] knownRootCloakingPackages = {
Expand All @@ -42,7 +69,8 @@ private Const() throws InstantiationException {
"com.formyhm.hideroot"
};

public static final String[] suPaths ={
// These must end with a /
private static final String[] suPaths = {
"/data/local/",
"/data/local/bin/",
"/data/local/xbin/",
Expand All @@ -54,25 +82,53 @@ private Const() throws InstantiationException {
"/system/sd/xbin/",
"/system/usr/we-need-root/",
"/system/xbin/",
"/cache",
"/data",
"/dev"
"/cache/",
"/data/",
"/dev/"
};


public static final String[] pathsThatShouldNotBeWrtiable = {
static final String[] pathsThatShouldNotBeWritable = {
"/system",
"/system/bin",
"/system/sbin",
"/system/xbin",
"/vendor/bin",
//"/sys",
"/sbin",
"/etc",
//"/sys",
//"/proc",
//"/dev"
};

/**
* Get a list of paths to check for binaries
*
* @return List of paths to check, using a combination of a static list and those paths
* listed in the PATH environment variable.
*/
static String[] getPaths() {
ArrayList<String> paths = new ArrayList<>(Arrays.asList(suPaths));

String sysPaths = System.getenv("PATH");

// If we can't get the path variable just return the static paths
if (sysPaths == null || "".equals(sysPaths)) {
return paths.toArray(new String[0]);
}

for (String path : sysPaths.split(":")) {

if (!path.endsWith("/")) {
path = path + '/';
}

if (!paths.contains(path)) {
paths.add(path);
}
}

return paths.toArray(new String[0]);
}

}
Loading

0 comments on commit 92e3adc

Please sign in to comment.