OSDN Git Service
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
Peter Wu [Sun, 24 Nov 2013 00:01:21 +0000 (01:01 +0100)]
daemon: do not leak resources
Before this patch, the client was responsible for removing FIFOs before
connecting. That left a whole bunch of FIFOs in the SuperUser /dev/...
directory. After This patch, the daemon removes FIFOs as soon as the client is
connected. (This is detected by making the daemon read from the control socket.)
This patch becomes unnecessary when file descriptors can be passed though
processes.
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)
Kevin Cernekee [Sat, 23 Nov 2013 23:02:58 +0000 (15:02 -0800)]
Add workaround for Samsung set*id restrictions (bug #196)
Marco Brohet [Fri, 22 Nov 2013 20:12:26 +0000 (20:12 +0000)]
Merge "Add Lithuanian translations" into cm-10.2
Danny Baumann [Fri, 22 Nov 2013 15:43:04 +0000 (16:43 +0100)]
Improve logging code.
- Write to log buffer ourselves instead of calling log, so the printed
pid is correct
- Reduce debug spam
Change-Id: I9afe7249fc589268ea61419a7cfc724897981e9e
Danny Baumann [Fri, 22 Nov 2013 13:34:12 +0000 (14:34 +0100)]
Fix typos.
Change-Id: I9b2658336ac4d66df7cf745b8d58d8d49813ec16
Koushik Dutta [Thu, 21 Nov 2013 18:52:38 +0000 (10:52 -0800)]
wtf
Change-Id: I0ad34d3d1c104693c47fac82ce32a05626eb6b17
Koushik Dutta [Thu, 21 Nov 2013 17:36:29 +0000 (09:36 -0800)]
1026
Change-Id: I07fd878894ba1fbb401ea5621e6cc9d0d7fcf4f5
Koushik Dutta [Thu, 21 Nov 2013 17:28:30 +0000 (09:28 -0800)]
fix tab
Change-Id: Ie8fca086e7bc496ba8fca591e4c3fb008172f198
Koushik Dutta [Thu, 21 Nov 2013 17:19:47 +0000 (09:19 -0800)]
su daemon fixes:
Do not require a client connection unless actually necessary.
Only use the client on initial invocation of main(), and not from
invocation of run_daemon_client, which may recursively call
main via another client on API 19.
Change-Id: I136f9a3b829bf0a4f5335a83412cc3a8cd512856
Koushik Dutta [Thu, 21 Nov 2013 17:00:56 +0000 (09:00 -0800)]
1024
Change-Id: Ic5afc4fd94ee5449dfc241ff48bfba87921f2988
Koushik Dutta [Thu, 21 Nov 2013 14:20:46 +0000 (14:20 +0000)]
Merge "Revert back to original daemon client usage behavior. Fix ART by always using the daemon client on API 19+." into cm-10.2
arnau [Sat, 16 Nov 2013 10:41:44 +0000 (11:41 +0100)]
Superuser: CA translations
Change-Id: I2ce0e0766ce56a506364d9b5a982fb86006ce205
Koushik Dutta [Sat, 16 Nov 2013 17:11:14 +0000 (18:11 +0100)]
Revert back to original daemon client usage behavior.
Fix ART by always using the daemon client on API 19+.
Change-Id: I69b31e339cec2f71d2de9b0468d7dcab1d3ea078
Koushik Dutta [Sat, 16 Nov 2013 07:58:29 +0000 (23:58 -0800)]
Merge pull request #198 from cernekee/version-v1
Trivial fix for v4.3+ version check logic
Koushik Dutta [Fri, 15 Nov 2013 17:24:32 +0000 (18:24 +0100)]
Fix superuser when using ART.
Change-Id: I8ef488afe6f7912d8fac205088c3b431a5cb4a35
Koushik Dutta [Thu, 14 Nov 2013 16:07:27 +0000 (17:07 +0100)]
require that --daemon is uid/gid 0
execv invocation fixes
Change-Id: I80e7100a834b7eca2d9c8560c221cffd41492f03
Kevin Cernekee [Fri, 15 Nov 2013 05:55:36 +0000 (21:55 -0800)]
update-binary: Fix 4.3+ version check
In Bug #194 a check for 4.3+ was added, but checking major and minor
separately would yield an incorrect result on e.g. v5.0. Fix this.
Kevin Cernekee [Fri, 15 Nov 2013 05:53:51 +0000 (21:53 -0800)]
README: Update required SDK and NDK versions
Koushik Dutta [Thu, 14 Nov 2013 16:07:27 +0000 (17:07 +0100)]
execv invocation fixes
Change-Id: I80e7100a834b7eca2d9c8560c221cffd41492f03
Frant1c [Fri, 8 Nov 2013 19:13:54 +0000 (21:13 +0200)]
Add Lithuanian translations
Change-Id: Iad3e2f31cb2272c4215d96f99f61c8cf4c9f694f
Koushik Dutta [Fri, 8 Nov 2013 07:57:50 +0000 (23:57 -0800)]
1022
Change-Id: I36b8e616895ccaeaa1d886346ba18e27cef3c63a
Koushik Dutta [Thu, 7 Nov 2013 21:53:39 +0000 (13:53 -0800)]
comment out hte multiuser stuff that is breaking regular ndk builds
Change-Id: I535472084833883e5bedb1631dcb309b6d9e77a3
Koushik Dutta [Thu, 7 Nov 2013 21:12:07 +0000 (13:12 -0800)]
Merge remote-tracking branch 'koush/master' into cm-10.2
Koushik Dutta [Thu, 7 Nov 2013 21:10:22 +0000 (13:10 -0800)]
Merge pull request #195 from cernekee/mips-v1
Add MIPS CPU support
Kevin Cernekee [Thu, 7 Nov 2013 02:03:27 +0000 (18:03 -0800)]
Add MIPS support
Tested on:
- Ainol Novo 7 Paladin (JZ4770 MIPS SoC) with ICS 4.0.3 and CWM
- Nexus 5 (ARM) with KK 4.4 and TWRP
Not tested on x86.
I checked to make sure "uname -m" is standard in busybox (not a feature
flag). "uname" doesn't seem to exist at all in AOSP, so without busybox,
the original script probably wouldn't have detected the architecture
correctly.
Kevin Cernekee [Thu, 7 Nov 2013 01:26:42 +0000 (17:26 -0800)]
Use new assets/<ARCH>/reboot binary
Now that we are building the reboot binary from source, we'll need to
retrieve it from the proper subdirectory according to the device's CPU
architecture.
Kevin Cernekee [Thu, 7 Nov 2013 01:26:04 +0000 (17:26 -0800)]
MainActivity: Split getArch() into a common function
Kevin Cernekee [Thu, 7 Nov 2013 01:11:32 +0000 (17:11 -0800)]
reboot: Build utility from source
This was based on disassembling the HTC ARM reboot binary currently
shipped with Superuser. It attempts to mimic the behavior of the
original program.
Future work may involve cleaning it up, removing the HTC-specific
features, etc.
Kevin Cernekee [Wed, 6 Nov 2013 20:34:52 +0000 (12:34 -0800)]
README: Update build information
Specify the required SDK API and NDK versions. Add info on signing the
release build, as build.xml is hardcoded to use Superuser-release.apk only.
Koushik Dutta [Wed, 6 Nov 2013 18:08:01 +0000 (10:08 -0800)]
Merge pull request #194 from tmzullinger/kitkat-version-check
Update version check to work with >= 4.3
Todd Zullinger [Wed, 6 Nov 2013 17:51:54 +0000 (12:51 -0500)]
Update version check to work with >= 4.3
Now that 4.4 is out, the check was failing and not properly setting up
the su daemon.
Using POSIX sh parameter substitution allows us to extract the major and
minor version numbers from ro.build.version.release in build.prop and
compare them.
This was tested on a Nexus 4 running 4.4.
sahranbay [Sat, 26 Oct 2013 04:43:45 +0000 (10:43 +0600)]
Superuser: UG translation, added Uyghur translation.
Change-Id: If71d506c1a18fa9525d8b70dbd3d733050909c7f
Koushik Dutta [Thu, 10 Oct 2013 09:25:12 +0000 (09:25 +0000)]
Merge "Make emulated storage mounting consistent to Zygote." into cm-10.2
Koushik Dutta [Sun, 6 Oct 2013 05:36:53 +0000 (22:36 -0700)]
Only use access_disabled if SUPERUSER_EMBEDDED.
It is not possible to reenable Superuser when non embedded. su will reject.
Change-Id: If440d9d758c21c61a2d7c0bef132eb716b494c5d
Danny Baumann [Mon, 23 Sep 2013 09:00:35 +0000 (11:00 +0200)]
Make emulated storage mounting consistent to Zygote.
- Mount in private namespace
- Mount in forked child
- Mount /storage/emulated/legacy
All of this is optional and must be enabled by setting the environment
variable MOUNT_EMULATED_STORAGE.
Change-Id: Ied9c4485e58ab26ba8e6eafcbe05bb75fe6fdc52
Chih-Wei Huang [Thu, 15 Aug 2013 10:49:06 +0000 (18:49 +0800)]
Fix incorrect prerequisites
'Nothing to be done' build failed because
* $(LOCAL_MODULE) should not be a prerequisite
* The created symlink doesn't exist in the host out tree
Besides, all prerequisites of $(SYMLINKS) are removed. This is because
'make' checks the timestamp of the file the link references rather than
the link itself. Therefore $(LOCAL_INSTALLED_MODULE) is a useless
prerequisite. On the other hand, $(LOCAL_PATH)/Android.mk should not
be a prerequisite of $(SYMLINKS) unless it is also a prerequisite of
$(LOCAL_INSTALLED_MODULE). Otherwise, if $(LOCAL_PATH)/Android.mk is
newer than $(LOCAL_INSTALLED_MODULE), $(SYMLINKS) will always be
re-made.
Correct the prerequisites of $(SUPERUSER_RC) as well.
Change-Id: I5746e983046a9cdc3ee2b8ecd3827f1f7e6b596e
Ricardo Cerqueira [Wed, 25 Sep 2013 16:50:09 +0000 (17:50 +0100)]
su is an optional component
Do not build it unless explicitly included in PRODUCT_PACKAGES
Change-Id: Ic7337daeb61aa8eb862aa33c4533a0177db87aa1
BILLyTheLiTTle [Fri, 20 Sep 2013 16:44:36 +0000 (19:44 +0300)]
Fix several Lint's warnings
Change-Id: I8da5969d7fb2dd2bc2d0760e445da96470042598
BILLyTheLiTTle [Fri, 20 Sep 2013 15:22:02 +0000 (18:22 +0300)]
Change target API from 17 to 18
Change-Id: I7adb61ad20740875e31a7e94b218aeb593e3b368
Danny Baumann [Tue, 17 Sep 2013 11:27:51 +0000 (13:27 +0200)]
Make emulated storage available via su.
Apps (e.g. file managers) expect that they get the same view of files in
su and non-su mode.
Change-Id: I613d021dddb7b90c34bd6d7cf6d2234448404731
Tan Chee Eng [Sun, 8 Sep 2013 13:08:44 +0000 (21:08 +0800)]
Eliminated use of FIFOs, factored PTY proxy code
Instead of opening FIFOs, we now send the standard I/O descriptors
across the Unix socket.
Also, the I/O pumps were moved to pts.c
João Luís [Sat, 7 Sep 2013 10:08:07 +0000 (11:08 +0100)]
Superuser: PT-rPT translations
Change-Id: Ic3862ca92aa18ff837ca2a28b8a487c0fb725fc4
Tan Chee Eng [Mon, 2 Sep 2013 07:32:52 +0000 (15:32 +0800)]
Treat each standard I/O stream separately
Tan Chee Eng [Sun, 1 Sep 2013 11:28:17 +0000 (19:28 +0800)]
Changed when the client sends pts-slave
Tan Chee Eng [Fri, 30 Aug 2013 08:56:21 +0000 (16:56 +0800)]
Made scoket protocol uniform
Also eliminated some control flow branches
Tan Chee Eng [Fri, 30 Aug 2013 08:30:23 +0000 (16:30 +0800)]
Removed a hackish check for stdout in pump()
Tan Chee Eng [Fri, 30 Aug 2013 08:12:33 +0000 (16:12 +0800)]
Undo a change which resulted in dangling FDs
Tan Chee Eng [Fri, 30 Aug 2013 08:09:21 +0000 (16:09 +0800)]
Refactored pseudo-terminal code into pts.c
Tan Chee Eng [Fri, 30 Aug 2013 02:44:12 +0000 (10:44 +0800)]
Added SIGWINCH handling and better cleanup
Added a task to forward SIGWINCH from the client to the daemon via the
correct ioctl. Terminal window sizing now seems to work correctly.
Also added signal handler to catch signals which can cause the client to
terminate, allowing the client to restore stdin's termios. Previously,
killing the su client using (for example) SIGTERM would result in the
terminal being left in an unusable state.
Tan Chee Eng [Thu, 29 Aug 2013 17:00:52 +0000 (01:00 +0800)]
Part 1 of terminal support fix
Changed the daemon to use pseudo-terminals closer to the way SSH or telnet does. Changes are extensive because the slave device was being opened by the wrong end of the connection, ie. the client is the one which should be opening the master ptmx device.
SIGWINCH is still not being handled. The next commit will attempt to address this.
Chih-Wei Huang [Fri, 16 Aug 2013 06:01:30 +0000 (14:01 +0800)]
Change the root_access property by SystemProperties.set
This works if Superuser is embedded.
Change-Id: I779d06c1777bb63740649b2b6db1e944275a5e0a
Ondrej Zima [Mon, 29 Jul 2013 09:15:46 +0000 (11:15 +0200)]
Superuser: CS translation
- fixed some misaligned translation
- fixed element names and small glitches
Change-Id: I410ef0c50a6b236c13bfde1658187e9136176862
Ondrej Zima [Sun, 11 Aug 2013 18:49:12 +0000 (20:49 +0200)]
Superuser: SK translation
- little help for our neighbors - SK translation
Change-Id: I8818ad459bb76701a841dd4ad50cdc0712c35c88
Koushik Dutta [Mon, 12 Aug 2013 04:23:11 +0000 (21:23 -0700)]
always start daemon, as that is the default behavior.
Change-Id: I0986d1eeef84a6866df100f40b55cb98167c4fc0
Koushik Dutta [Mon, 12 Aug 2013 01:43:47 +0000 (18:43 -0700)]
update WHATS_NEW
Change-Id: I3c3a6fe5d4e24e9688874605e31284bf3a5ccd59
Koushik Dutta [Mon, 12 Aug 2013 01:37:57 +0000 (18:37 -0700)]
Merge remote-tracking branch 'koush/master' into cm-10.2
Koushik Dutta [Mon, 12 Aug 2013 01:37:08 +0000 (18:37 -0700)]
v1021
Change-Id: Ie96206111f9bfc8b9c5a3247a2951082b09b7778
Koushik Dutta [Mon, 12 Aug 2013 01:14:59 +0000 (18:14 -0700)]
Merge remote-tracking branch 'github/cm-10.1' into cm-10.2
Koushik Dutta [Mon, 12 Aug 2013 01:14:41 +0000 (18:14 -0700)]
Fix potential trust issues by using SO_PEERCRED.
Change-Id: I510fcabe3c2a7765684a31d0553ce73fa1e1ed56
Koushik Dutta [Mon, 12 Aug 2013 01:05:11 +0000 (18:05 -0700)]
sanitize inputs. verify mallocs.
Change-Id: If5d7a51ca56c4dba6948d2f405f41721a15a16b6
Niko Koivu [Fri, 9 Aug 2013 23:38:30 +0000 (02:38 +0300)]
Superuser: fixed FI translations
Change-Id: I4803c500549ff4a797048ea2cba1a9a9349fa175
Niko Koivu [Fri, 9 Aug 2013 23:35:33 +0000 (02:35 +0300)]
Superuser: fixed FI translations
Change-Id: I3cb4d85b4a984d6cfbef3245d446719bea417873
Koushik Dutta [Thu, 8 Aug 2013 17:39:46 +0000 (10:39 -0700)]
Merge remote-tracking branch 'github/cm-10.1' into cm-10.2
Koushik Dutta [Thu, 8 Aug 2013 17:39:20 +0000 (10:39 -0700)]
Fix Makefile for non embedded ROMs
Change-Id: Ia8d80b0fe392b0f7388d9b1e00d29c255d14313f
Marco Brohet [Thu, 8 Aug 2013 09:45:28 +0000 (09:45 +0000)]
Merge "superuser: updated finnish translations" into cm-10.2
Niko Koivu [Tue, 6 Aug 2013 16:24:52 +0000 (19:24 +0300)]
Superuser: FI translations
Change-Id: I6a00007683c77aba9af93e0b87e383eb3b11876e
Koushik Dutta [Mon, 5 Aug 2013 22:38:02 +0000 (15:38 -0700)]
Helium
Change-Id: Ifaed0fa12f94240828911aba3a886b4dfba75424
Koushik Dutta [Mon, 5 Aug 2013 22:36:21 +0000 (15:36 -0700)]
v1020
Change-Id: Id4807c1a2630e20d0b1b6580f40c4df9ca03a22b
Koushik Dutta [Mon, 5 Aug 2013 22:35:59 +0000 (15:35 -0700)]
Fix recovery install via app.
Fix adb shell not being able to access /data.
Use thin font on values-16, only on Superuser-light theme.
Better logging.
Change-Id: I9d7dd0d9b0a006f1703926f65f8a5ea3f0e29bd2
Niko Koivu [Wed, 31 Jul 2013 12:40:22 +0000 (15:40 +0300)]
superuser: updated finnish translations
Change-Id: I5b9a42cabd105eead4d80e95d46d13ec8b5f12c3
Koushik Dutta [Thu, 1 Aug 2013 03:25:42 +0000 (20:25 -0700)]
unset immutable bit on su
Change-Id: If7d5e0b597038dbe0963c9309bd5c66d8557cdb8
Evan Anderson [Wed, 31 Jul 2013 19:43:32 +0000 (14:43 -0500)]
Fix endif spacing
Without this spacing, the required files failed to copy to the build target
directory.
Change-Id: I65c38f899c341b86dbdd65131ad4862c69cf5113
Signed-off-by: Evan Anderson <evan1124@gmail.com>
Koushik Dutta [Wed, 31 Jul 2013 08:19:42 +0000 (01:19 -0700)]
unset immutable bit on install-recovery.sh
Change-Id: I4ae0d9cd567eb71736c852b678b74b227a8d4c97
Koushik Dutta [Tue, 30 Jul 2013 23:18:01 +0000 (16:18 -0700)]
more cleanups around waitpid
Change-Id: Iad8cd1c6847641a7538614e9ff3c375f7af81c63