Android-x86
Fork
Spenden

  • R/O
  • HTTP
  • SSH
  • HTTPS

external-koush-Superuser: Liste der Commits

external/koush/Superuser


RSS
Rev. Zeit Autor
b48c45b oreo-x86 android-x86-8.1-r1 2018-03-01 15:46:46 Chih-Wei Huang

Remove the usage of junit.framework.Assert

It's not buildable in Android 8.0.

1f0bc59 nougat-x86 android-x86-7.1-r1 android-x86-7.1-r2 2018-02-02 11:16:18 Chih-Wei Huang

Remove unused code

cd2f8cc 2018-02-02 11:14:23 Chih-Wei Huang

jni: correct the database path

It was moved to the device encrypted user data dir.

b11c596 2018-02-01 23:52:34 Chih-Wei Huang

jni: fix log of su

Sync changes from upstream: git://github.com/koush/Superuser

9ace3dc 2016-09-08 00:58:02 Chih-Wei Huang

init.superuser.rc: correct the SELinux domain

1fc4df0 marshmallow-x86 android-x86-6.0-r1 android-x86-6.0-r2 android-x86-6.0-r3 2016-01-06 09:11:34 Paulo Sergio Travaglia

Fixes for koush's Superuser on marshmallow

Koush Superuser uses Apache http client imports, which are
deprecated on API 23 (marshmallow).

As google recommends, it was replaced by HttpURLConnection

References:
http://developer.android.com/intl/pt-br/about/versions/marshmallow/android-6.0-changes.html
http://stackoverflow.com/questions/9856195/how-to-read-an-http-input-stream
https://developer.android.com/intl/pt-br/reference/java/net/HttpURLConnection.html

6e16917 2015-12-22 15:48:34 Mauro Rossi

android: fix 64-bit targets building errors

Patch to avoid the following building errors:

Import includes file: out/target/product/x86_64/obj/EXECUTABLES/su_intermediates/import_includes
target C: su <= external/koush/Superuser/Superuser/jni/su/su.c
external/koush/Superuser/Superuser/jni/su/su.c: In function 'socket_send_request':
external/koush/Superuser/Superuser/jni/su/su.c:397:5: error: implicit declaration of function 'htonl' [-Werror=implicit-function-declaration]
write_token(fd, "version", PROTO_VERSION);
^

target C: su <= external/koush/Superuser/Superuser/jni/su/pts.c
Export includes file: external/koush/Superuser/Android.mk -- out/target/product/x86_64/obj/EXECUTABLES/su_intermediates/export_includes
target Prebuilt: clatd.conf (out/target/product/x86_64/obj/ETC/clatd.conf_intermediates/clatd.conf)
external/koush/Superuser/Superuser/jni/su/pts.c: In function 'pts_open':
external/koush/Superuser/Superuser/jni/su/pts.c:121:5: error: implicit declaration of function 'strncpy' [-Werror=implicit-function-declaration]
strncpy(slave_name, sn_tmp, slave_name_size);
^

a90ff26 lollipop-x86 2015-10-17 00:12:47 Paulo Sergio Travaglia

Fix Superuser on 64 bits target

- An export to "/system/lib" is not required and cause problems
as this is a 32 bits lib dir only
- When writing to socket, datatype size_t was used, which is
4 bytes on 32 bits target and 8 bytes on 64 bits.
Superuser expects it as a 4 bytes length. So, it was
replaced by "uint32_t" datatype

068664b kitkat-x86 android-x86-4.4-r3 2015-07-13 23:45:20 Chih-Wei Huang

Merge remote-tracking branch 'cm/cm-11.0' into kitkat-x86

4053d97 2015-06-22 23:24:04 Michael Bestas

Automatic translation import

Change-Id: I7d41d6f3b08bcb7484eadce7b18dc5f347542af3

fff6d3d 2015-06-01 03:46:11 Michael Bestas

Automatic translation import

Change-Id: Ia8731861aa5cfef3beef3c0a2616cc8bc8c6d273

a04c654 2015-05-02 07:52:50 Michael Bestas

Automatic translation import

Change-Id: I6d6024153d09e28fe2d667fda8a93851b24a9bd8

c0506e2 2015-04-18 06:31:04 Michael Bestas

Automatic translation import

Change-Id: I3b32192d226d799dedf54ccab5478dbe86c7f959

036a6f6 2015-04-07 05:18:49 Michael Bestas

Automatic translation import

Change-Id: I16ea350f10094eb3c6c3be1a9bcb2b667800440c

519abe9 2015-03-31 06:41:46 Michael Bestas

Automatic translation import

Change-Id: I0b217e96b33b5654701e444d5c32f446b7601136

204a077 2015-03-23 01:51:04 Michael Bestas

Automatic translation import

Change-Id: I3a5dd7904a4e8bcb498a94b3411351933a947996

e5dc579 2015-03-17 04:21:50 Michael Bestas

Automatic translation import

Change-Id: I41f179a43d3222f8daae3f58bf9ef72d7dcd8f48

3376db6 2015-03-04 12:19:35 Michael Bestas

Automatic translation import

Change-Id: Ide8cdd70619abbd64568a61c1f78a9f46a2e84ca

0796666 2015-02-15 14:29:11 Michael Bestas

Automatic translation import

Change-Id: Ic144599b5e48078a9f63e2febd524e014f9aa08a

5447446 2015-01-30 14:36:38 Michael Bestas

Automatic translation import

Change-Id: I0c1274cfc32fd589008ff31a973bcb27299b0fad

b97c3f7 2015-01-20 03:32:54 Michael Bestas

Automatic translation import

Change-Id: I8b3a35529222d40bfde56785bfa9360cf3fb4557

2cb837b 2015-01-12 06:13:51 Michael Bestas

Automatic translation import

Change-Id: Ia24b50ad42e5cc0e00c6c901a77c0d7b548a8057

392c152 2015-01-04 04:48:34 Michael Bestas

Automatic translation import

Change-Id: I6f32b990dfc59e8625cd0c3ed245f9f0cb1c9934

fe33e4a 2014-12-30 08:33:18 repo Shareef Ali

Superuser: Don't set root access as a default fallback option.

Problem: if persist.sys.root_access is not present, it will set
root access anyways regardless of build type
fix: set to 0 anyway which is no root.

Change-Id: I3665d965a6fbb21fd26a8d7256579eb272b608f0

d50d213 android-x86-4.4-r2 2014-12-28 17:12:17 Chih-Wei Huang

Merge remote-tracking branch 'cm/cm-11.0' into kitkat-x86

da400d5 2014-12-20 11:25:44 Michael Bestas

Automatic translation import

Change-Id: If61d85c7fae1ebeb1eb57f85ff27763fea19613d

2b782d1 2014-12-12 07:54:37 Marcos Marado

Fix security, tighter str comparison, fix warnings

* When reading our and the caller's path, we were mistakingly reading only the
first sizeof(char*) characters, so anything that was running from a path
starting with '/sys' was being considered to be us
* strcmp'ing strings instead of comparing only for the length of the first of
them. Avoids possible executions from /system/xbin/suwhatever .
* Fixed several compile-time warnings

Change-Id: I2af07f7bf5078acd0c36bd22b74fbc01276957be

c2ec204 2014-12-12 04:40:46 Ricardo Cerqueira

su: Fix verification fails when the client isn't setuid

Don't take an uid-0 caller as a trust guarantee. Trust only values
that are delivered by a remote that's the same as ourselves (su-as-client
talking to su-as-daemon) and use PEERCRED to assert the remote UID and PID
on any other case.
This fixes credential validation when the client isn't always running with
root privileges via setuid

Change-Id: Iad8fc271d9c6aae7f6654af2ef9db638f2165af1

026a344 2014-12-07 05:40:20 blunden

Update the Superuser settings drawable

Change-Id: I9057b5fc18d2669b29c9e8dde1b121c23cb57744

3a6d5c9 2014-11-27 21:17:27 Michael Bestas

Automatic translation import

Change-Id: Iff6c175264ebcea87f28d404222757f23b5ecf5f

Show on old repository browser