OSDN Git Service
Chih-Wei Huang [Tue, 8 Oct 2019 10:22:42 +0000 (18:22 +0800)]
Fix building issues with pie-x86
Chih-Wei Huang [Thu, 1 Mar 2018 06:46:46 +0000 (14:46 +0800)]
Remove the usage of junit.framework.Assert
It's not buildable in Android 8.0.
Chih-Wei Huang [Fri, 2 Feb 2018 02:16:18 +0000 (10:16 +0800)]
Remove unused code
Chih-Wei Huang [Thu, 1 Feb 2018 14:52:52 +0000 (22:52 +0800)]
jni: correct the database path
It was moved to the device encrypted user data dir.
Chih-Wei Huang [Thu, 1 Feb 2018 14:52:34 +0000 (22:52 +0800)]
jni: fix log of su
Sync changes from upstream: git://github.com/koush/Superuser
Chih-Wei Huang [Wed, 7 Sep 2016 15:58:02 +0000 (23:58 +0800)]
init.superuser.rc: correct the SELinux domain
Paulo Sergio Travaglia [Wed, 6 Jan 2016 00:11:34 +0000 (22:11 -0200)]
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
Mauro Rossi [Tue, 22 Dec 2015 00:41:09 +0000 (01:41 +0100)]
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);
^
Paulo Sergio Travaglia [Fri, 16 Oct 2015 11:23:27 +0000 (08:23 -0300)]
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
repo Shareef Ali [Mon, 29 Dec 2014 23:30:15 +0000 (17:30 -0600)]
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
Marcos Marado [Thu, 11 Dec 2014 20:41:24 +0000 (20:41 +0000)]
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
Ricardo Cerqueira [Thu, 11 Dec 2014 19:40:46 +0000 (19:40 +0000)]
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
blunden [Sat, 6 Dec 2014 20:40:20 +0000 (21:40 +0100)]
Update the Superuser settings drawable
Change-Id: I9057b5fc18d2669b29c9e8dde1b121c23cb57744
Ricardo Cerqueira [Thu, 27 Nov 2014 00:58:58 +0000 (00:58 +0000)]
Invert theme
Use light theme as a stopgap readibility fix until this gets a
Material overhaul
Change-Id: I5f77d96daee34700d3cea7bd4e07728fdc3ca2d2
Ricardo Cerqueira [Wed, 26 Nov 2014 21:52:45 +0000 (21:52 +0000)]
init: Update daemon contexts for enforcing selinux policies
Change-Id: I6c33445f741aab3ac89f1bbfa096fbe65d44ad66
Michael Bestas [Mon, 27 Oct 2014 20:04:16 +0000 (22:04 +0200)]
Automatic translation import
Change-Id: I6ebb9dad16aa8f482d179aaa8b95d03a962594a5
Michael Bestas [Mon, 20 Oct 2014 21:35:16 +0000 (00:35 +0300)]
Automatic translation import
Change-Id: Ic1a347ac7fb63a49188e378857d3fa1c52480df0
Michael Bestas [Tue, 14 Oct 2014 22:38:01 +0000 (01:38 +0300)]
Automatic translation import
Change-Id: I8f23ffbd432ed49587bdaf93bfcfe3ceea039e7f
Michael Bestas [Mon, 29 Sep 2014 18:26:09 +0000 (21:26 +0300)]
Automatic translation import
Change-Id: Iacfd50ee4e7aa3bc6b6622fa1475c43f76322a79
Michael Bestas [Tue, 9 Sep 2014 00:16:44 +0000 (03:16 +0300)]
Automatic translation import
Change-Id: Ia2949c44b1fee77823343a93b5044a81644ed58e
Michael Bestas [Tue, 2 Sep 2014 10:26:42 +0000 (13:26 +0300)]
SU: Use different strings for notification summary & popup list
Change-Id: I46017bd0dec40b57c27e951a863662d1a6afb72e
Michael Bestas [Sun, 31 Aug 2014 22:03:42 +0000 (01:03 +0300)]
Automatic translation import
Change-Id: Ic9c9cb50bc532b167a7643f2748cc75af4fef972
Michael Bestas [Sat, 23 Aug 2014 11:42:27 +0000 (14:42 +0300)]
Automatic translation import
Change-Id: I04b01276a3c079a0d4b6ad187a3c0707da364166
Ricardo Cerqueira [Sat, 16 Aug 2014 03:21:54 +0000 (04:21 +0100)]
su: Don't forcefully add the bin symlink to the installed packages
The LOCAL_MODULE dependency is enough to get it deployed when the
actual binary is built. Adding it to the default modules was leaving
a dangling dead symlink in cases where su isn't bundled (user builds)
Change-Id: I1364cf6537993a8b72bce8c178a7aeec080c9eb3
Michael Bestas [Tue, 12 Aug 2014 15:11:26 +0000 (18:11 +0300)]
Superuser: Remove unused translations
Change-Id: Iecd28faacb070e753305bc52395586f429d58723
Danny Baumann [Mon, 11 Aug 2014 13:17:26 +0000 (15:17 +0200)]
Rename allow and deny strings.
Both are also present in the Settings app's resources, which we
integrate into.
Change-Id: Ib08e84995a946d3fdf22f1bb61871c4e1429538e
Michael Bestas [Fri, 1 Aug 2014 00:04:16 +0000 (03:04 +0300)]
Automatic translation import
Change-Id: I78b6d486ab5203fabbb2f2b0763058c76b927d0f
Michael Bestas [Thu, 24 Jul 2014 20:01:44 +0000 (23:01 +0300)]
Automatic translation import
Change-Id: Iaf971bba9546c9531685265a899bbff635e88d37
Veeti Paananen [Fri, 18 Jul 2014 09:23:15 +0000 (12:23 +0300)]
Prevent clickjacking of superuser requests
Enable filterTouchesWhenObscured on the accept request button to prevent
possible clickjacking attacks. This is a measure used in many sensitive
dialogs (app installation, backup & VPN) in AOSP.
Change-Id: I33c18c449c909b97b29b981bffe7f3095adee506
Michael Bestas [Fri, 11 Jul 2014 10:07:14 +0000 (13:07 +0300)]
Automatic translation import
Change-Id: If0fecb26f20c7e4f6a8d4a12c7a5faf49f0d229c
Michael Bestas [Wed, 9 Jul 2014 17:56:49 +0000 (17:56 +0000)]
Revert "Superuser: Don't duplicate 'Allow' string"
On a second thought, this is plain confusing for translators.
I'd like to keep the ~350 people who translate happy.
This reverts commit
6af4772b0172cb3e0b70f2ab5b961139f404e621.
Change-Id: I6b1a82ed3292aa98b0d340d6dd9e90de8791b05d
Michael Bestas [Wed, 9 Jul 2014 10:38:41 +0000 (13:38 +0300)]
Superuser: Don't duplicate 'Allow' string
Change-Id: I98085f8da3ea9f6f6b8899d0bb0cda0cc1d503aa
black [Fri, 4 Jul 2014 13:24:14 +0000 (06:24 -0700)]
Superuser: Add a string for JA translation
Change-Id: I16d7ad52fcb276b25c86390485afdafbfd94a41a
Michael Bestas [Sun, 29 Jun 2014 20:59:46 +0000 (23:59 +0300)]
Automatic translation import
Change-Id: Ie301344eef330ed6682c68303390c35d60e9ad1b
Michael Bestas [Sat, 21 Jun 2014 11:46:51 +0000 (14:46 +0300)]
Automatic translation import
Change-Id: I4bc9436aae4562091b06c8443b73b6192a0a0b41
Michael Bestas [Thu, 12 Jun 2014 17:34:28 +0000 (20:34 +0300)]
Automatic translation import
Change-Id: If5ef6c83a467de35f4f068131f0865919f8cabf1
Michael Bestas [Fri, 30 May 2014 14:49:15 +0000 (17:49 +0300)]
Automatic translation import
Change-Id: I2865d9073cf2ed45ab27b6c5c6e4b4d89d69a444
Michael Bestas [Sun, 25 May 2014 11:46:45 +0000 (14:46 +0300)]
Automatic translation import
Change-Id: I04fead7704642016a9dd409e4163b831222428ab
Michael Bestas [Tue, 20 May 2014 22:51:39 +0000 (01:51 +0300)]
Automatic translation import
Change-Id: I1ff64f4ba0797546b8d048d8cd7b5d9f707e9d6d
Michael Bestas [Thu, 8 May 2014 22:07:21 +0000 (01:07 +0300)]
Automatic translation import
Change-Id: Ic83b086e46a18097b92df37f5a4b531254f5b10b
Michael Bestas [Fri, 25 Apr 2014 19:45:24 +0000 (22:45 +0300)]
Automatic translation import
Change-Id: Ifa6d16f69c024fe2e467e462f243fb01e11f616b
Michael Bestas [Thu, 17 Apr 2014 15:15:28 +0000 (18:15 +0300)]
Automatic translation import
Change-Id: I61d66ceb09490db53fd4cd0cdc3d9b780dbc5086
Michael Bestas [Thu, 10 Apr 2014 14:41:17 +0000 (17:41 +0300)]
Automatic translation import
Change-Id: I2b7238d2031c79aba8780e29f2efeba695c75b39
Michael Bestas [Wed, 2 Apr 2014 17:00:05 +0000 (20:00 +0300)]
Initial translation import
Change-Id: Ifc8b79259db6f9c628cd3033fa3e46261dfd1e82
Ondrej Zima [Wed, 26 Mar 2014 16:35:55 +0000 (17:35 +0100)]
Superuser: CS translation
- added missing
Change-Id: I60aa40c4124bbbd36b3dcae4b3aca93f319c3865
Gustavo [Tue, 18 Mar 2014 03:08:57 +0000 (00:08 -0300)]
Superuser: PT-BR Translations
Change-Id: I6f5e9973b35ab96fecfa870a6fa8edd421b4ce0e
Michael Bestas [Mon, 24 Mar 2014 23:06:26 +0000 (23:06 +0000)]
Merge "Superuser: SK translations" into cm-11.0
pylerCM [Mon, 10 Mar 2014 14:40:39 +0000 (14:40 +0000)]
Superuser: SK translations
Change-Id: I16f07cd4f9c1c7c29d54e65e45e1cc733d7be215
Lorenzo M [Wed, 26 Feb 2014 13:00:58 +0000 (14:00 +0100)]
Superuser: ES translations
- Pop-up dialog for each app
Change-Id: I39a7f1c5972fa626e42fa3b28dd8a0b43b40585b
Jacob Overgaard Madsen [Sun, 9 Mar 2014 14:33:43 +0000 (15:33 +0100)]
Superuser: DA translation
Change-Id: Ia37fbc3e6b2571acf0545dd3454c22628b02f27c
BILLyTheLiTTle [Tue, 11 Mar 2014 15:35:03 +0000 (17:35 +0200)]
Fix UXD for tablets
Change-Id: I94b30c3ac95f7d63f6a33657a324fcc895ed3d45
elektroschmock [Thu, 6 Mar 2014 20:18:58 +0000 (21:18 +0100)]
Superuser: Update DE translation
Change-Id: I9e31740ff9a50dbd11e4657a4b305eec75707045
BILLyTheLiTTle [Thu, 27 Feb 2014 21:44:12 +0000 (23:44 +0200)]
Fix for current activity refresh
Change-Id: Ifae4b4991af2ad8945b7f295e76956d56629aefc
Marco Brohet [Fri, 28 Feb 2014 20:51:17 +0000 (20:51 +0000)]
Merge "Superuser: FR translation" into cm-11.0
Marco Brohet [Fri, 28 Feb 2014 20:30:39 +0000 (20:30 +0000)]
Merge "Superuser: NL translation" into cm-11.0
DelPETER [Thu, 27 Feb 2014 18:01:12 +0000 (19:01 +0100)]
Superuser: FR translation
PS2: correction
Change-Id: I0ca2a02aa8b5154328c52afaba0e7c5c7ef17a46
Eddy Witkamp [Wed, 26 Feb 2014 02:12:37 +0000 (03:12 +0100)]
Superuser: NL translation
Change-Id: I7ad0bea3ffe8897738d42982e10adc20d41f5e4c
Michael Bestas [Tue, 25 Feb 2014 23:05:38 +0000 (01:05 +0200)]
Superuser: EL translations
Change-Id: I536a9644bfb8e6c857aa2a3647cbbb83c2f86836
Francesco [Tue, 25 Feb 2014 11:29:56 +0000 (12:29 +0100)]
Superuser: IT translations
Change-Id: If1380effba2cffa602bd093f2f7a8672322cfd60
BILLyTheLiTTle [Fri, 8 Nov 2013 15:28:28 +0000 (17:28 +0200)]
Greek translation for pop-up dialog
Change-Id: Iadeb5b31b47537683c07326dc7442848a83e4c32
BILLyTheLiTTle [Sat, 21 Sep 2013 13:45:30 +0000 (16:45 +0300)]
Create pop-up dialog for each application
Change-Id: I40ed74ae303e06767c63d6b41706dda12f057dc7
BILLyTheLiTTle [Sat, 21 Sep 2013 11:11:15 +0000 (14:11 +0300)]
Fix Trash icon/action bug
Change-Id: I401ce0d368bfdf27dc3a6f941695fdedda77811d
BILLyTheLiTTle [Fri, 20 Sep 2013 19:17:12 +0000 (22:17 +0300)]
Fix several compiler warnings
Change-Id: I477f7f0dc37cc82028a3f1fa280dad1977f20efc
Marco Brohet [Mon, 24 Feb 2014 19:24:33 +0000 (19:24 +0000)]
Merge "Superuser: ES translations" into cm-11.0
Lorenzo M [Mon, 24 Feb 2014 13:43:49 +0000 (14:43 +0100)]
Superuser: ES translations
Change-Id: Id81973ce2a8722d33bc4e1b896a0206ea07db9bb
Arthur Zamarin [Sun, 16 Feb 2014 14:12:50 +0000 (16:12 +0200)]
Superuser: IW translations
Change-Id: I85fa4d283ee6f31026f5eb525f7fc99b47c9b7f7
Koushik Dutta [Mon, 10 Feb 2014 17:02:39 +0000 (09:02 -0800)]
Merge remote-tracking branch 'koush/master' into cm-11.0
Conflicts:
Superuser/AndroidManifest.xml
Change-Id: Ic4c9b674efb040b51a36472cabcd6234a5f382b2
Koushik Dutta [Mon, 10 Feb 2014 17:01:36 +0000 (09:01 -0800)]
v1030
Change-Id: If43549a5f08cc3c895977d6a6b1e124dd3ff732b
Danny Baumann [Wed, 5 Feb 2014 08:10:28 +0000 (08:10 +0000)]
Merge "Fix merge derp: Emulated storage should be mounted in the child, not the parent." into cm-11.0
Marcos Marado [Sat, 1 Feb 2014 22:58:19 +0000 (22:58 +0000)]
Fix bugreport toast spam.
Change-Id: If6886089aa132694b6aad0a4d3d35646bffbed71
Koushik Dutta [Sun, 2 Feb 2014 01:10:53 +0000 (17:10 -0800)]
1029
Change-Id: I0cd3dde3c1c06c7fa50ac6adc2ba9e49eb70a663
Koushik Dutta [Sun, 2 Feb 2014 01:09:44 +0000 (17:09 -0800)]
Fix bugreport toast spam.
Change-Id: If6886089aa132694b6aad0a4d3d35646bffbed71
Danny Baumann [Fri, 31 Jan 2014 12:18:43 +0000 (13:18 +0100)]
Fix merge derp: Emulated storage should be mounted in the child, not the
parent.
Change-Id: I7bb6e8db1a64de90e96783e07ff26932befe2742
Marco Brohet [Fri, 24 Jan 2014 23:04:23 +0000 (00:04 +0100)]
Superuser: add copyright notice
Change-Id: Idb98a35676e5262837dc44392826835c5a009ab6
Frant1c [Sun, 19 Jan 2014 21:18:11 +0000 (23:18 +0200)]
Superuser: LT translations
Fixed quatation marks
*Improved translations
Change-Id: Id0c19966c4cde128e1f03c04bec7608c76681792
Frant1c [Sat, 18 Jan 2014 01:54:13 +0000 (03:54 +0200)]
Superuser: LT translations
Minor fixes, changed quotation marks to match AOSP strings
Change-Id: Ic9b87589d41e1a67d5616dca121e5aa93bd5e8e1
Ricardo Cerqueira [Sun, 12 Jan 2014 22:44:06 +0000 (22:44 +0000)]
su: Add pts as a dependency
Change-Id: Ia2f259f144fe95ae76c842258b59734a1de3e09a
Ricardo Cerqueira [Sun, 12 Jan 2014 22:38:23 +0000 (22:38 +0000)]
su: pts: Fix mismatched return type
the function is declared as an int, always return an int
Change-Id: I90e9815b0fb39d593925f4869455d442f19b0aba
Koushik Dutta [Sun, 12 Jan 2014 19:55:05 +0000 (11:55 -0800)]
Merge remote-tracking branch 'koush/master' into cm-11.0
Koushik Dutta [Sun, 12 Jan 2014 19:54:13 +0000 (11:54 -0800)]
Merge remote-tracking branch 'tance/terminal-support' into cm-11.0
Conflicts:
Superuser/jni/su/daemon.c
Change-Id: I2739f6bcbed03636d7a2fb66377977cd16999926
Koushik Dutta [Sun, 5 Jan 2014 00:06:50 +0000 (16:06 -0800)]
Merge pull request #219 from GMagician/master
Minor typo fix in Italian language
GMagician [Sat, 4 Jan 2014 23:28:46 +0000 (00:28 +0100)]
Minor typo fix in Italian language
Marco Brohet [Sat, 4 Jan 2014 13:56:35 +0000 (13:56 +0000)]
Merge "Superuser : TH translation" into cm-11.0
Pakkapon Phongthawee [Wed, 1 Jan 2014 07:38:49 +0000 (14:38 +0700)]
Superuser : TH translation
Change-Id: I1d6996fd185f89d4be58c2b1d95b2ff5c755fbcb
Frant1c [Wed, 11 Dec 2013 15:17:43 +0000 (17:17 +0200)]
Superuser: LT translations
(Port CM 10.2 (FIXED) strings to CM 11.0
Change-Id: Iad4498833b8bf39da6a6d09887e337c47f26efd0
Frant1c [Wed, 4 Dec 2013 22:44:14 +0000 (00:44 +0200)]
Superuser: LT translations
Minor fixes
Change-Id: I2f4828b631e74ddd49c636841b7f74852aad8976
Koushik Dutta [Sun, 1 Dec 2013 21:00:33 +0000 (13:00 -0800)]
Merge pull request #213 from cernekee/mips-missing-symlink-v1
assets: Add missing mips/ symlink
Kevin Cernekee [Sun, 24 Nov 2013 21:08:19 +0000 (13:08 -0800)]
assets: Add missing mips/ symlink
Bug #195 added MIPS binaries, but the assets/ symlink was missing. This
means that update.zip still worked as expected on MIPS, but MIPS binaries
were missing from the apk.
Koushik Dutta [Sun, 1 Dec 2013 06:25:20 +0000 (22:25 -0800)]
rev versions
Change-Id: Iaeb683302509e15f2a7868968cddd6cba4b21baa
Koushik Dutta [Sun, 1 Dec 2013 06:22:41 +0000 (22:22 -0800)]
Version 1.0.2.7
Leave binary setuid, as the daemon now guards for that.
Change-Id: I379005938bfb68954255ebe54e3cb482a0087e7d
Koushik Dutta [Fri, 29 Nov 2013 17:17:57 +0000 (09:17 -0800)]
Merge remote-tracking branch 'cern/multiuser-regression-v1' into cm-11.0
Conflicts:
Superuser/jni/su/su.c
Change-Id: I2474f5048e590592e1baa7f4bb1caf76e1245b74
Koushik Dutta [Fri, 29 Nov 2013 17:14:27 +0000 (09:14 -0800)]
Merge remote-tracking branch 'koush/master' into cm-11.0
Koushik Dutta [Fri, 29 Nov 2013 17:13:46 +0000 (09:13 -0800)]
Merge remote-tracking branch 'github/cm-10.2' into cm-11.0
Conflicts:
Superuser/jni/su/daemon.c
Change-Id: Ia849b63cf44d8da9e31b1fbe13b54b0b8289e75d
Koushik Dutta [Fri, 29 Nov 2013 17:09:55 +0000 (09:09 -0800)]
Merge pull request #211 from h1618/patch-1
assign user before use
h1618 [Fri, 29 Nov 2013 15:35:22 +0000 (16:35 +0100)]
assign user before use
sorry, jumped too short on my last commit: the user array has to be initialized before first use ...
Koushik Dutta [Fri, 29 Nov 2013 03:03:52 +0000 (19:03 -0800)]
Merge pull request #208 from h1618/patch-1
Update activity.c
h1618 [Thu, 28 Nov 2013 22:42:52 +0000 (23:42 +0100)]
Update activity.c
another am invocation with unconditional --user (the last one on line 185 needs no condition as it is only called in multiuser mode)
Koushik Dutta [Sun, 24 Nov 2013 21:43:11 +0000 (13:43 -0800)]
Merge remote-tracking branch 'koush/master' into cm-10.2
Kevin Cernekee [Sat, 23 Nov 2013 23:46:06 +0000 (15:46 -0800)]
Don't use "am --user" unless multiuser mode is enabled (bug #204)
Koushik Dutta [Sun, 24 Nov 2013 18:31:28 +0000 (10:31 -0800)]
Merge pull request #206 from Lekensteyn/fix-resource-leaks
daemon: do not leak resources