OSDN Git Service
Frant1c [Wed, 4 Dec 2013 22:44:14 +0000 (00:44 +0200)]
Superuser: LT translations
Minor fixes
Change-Id: I2f4828b631e74ddd49c636841b7f74852aad8976
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.
Marco Brohet [Fri, 22 Nov 2013 20:12:26 +0000 (20:12 +0000)]
Merge "Add Lithuanian translations" into cm-10.2
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
João Luís [Sat, 7 Sep 2013 10:08:07 +0000 (11:08 +0100)]
Superuser: PT-rPT translations
Change-Id: Ic3862ca92aa18ff837ca2a28b8a487c0fb725fc4
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
Koushik Dutta [Tue, 30 Jul 2013 22:38:48 +0000 (15:38 -0700)]
Submitting to POSIX C standard: fork_zero_fucks.
For when you give zero fucks about the state of the child process.
This version of fork understands you dont care about the child.
deadbeat dad fork.
Change-Id: I7babf48658e8601a866f0f522b579e9c8341352f
Koushik Dutta [Tue, 30 Jul 2013 22:04:34 +0000 (15:04 -0700)]
For some reason log exec calls from the daemon
result in zombie log processes... just disable logging from the daemon.
Forked daemon clients do not seem to have this issue, I presume because they die?
Change-Id: I65867bdbfb6a296af47b1cdf3a3024b33ee1388e
Koushik Dutta [Tue, 30 Jul 2013 04:58:29 +0000 (21:58 -0700)]
fix script failure
Change-Id: If5b839efbd6a6d6a82a5e1e1de520ed4ad612ede
Koushik Dutta [Tue, 30 Jul 2013 04:41:52 +0000 (21:41 -0700)]
fix 4.3 check logic
Change-Id: Id87a853cdc20062e73b0f86786dd9b5d0b83b111
Koushik Dutta [Tue, 30 Jul 2013 03:59:41 +0000 (20:59 -0700)]
Rev the su binary version.
Add --daemon documentation.
Only allow recovery install on 4.3+.
Change-Id: I08624fd435a027c515442e2eef7a45bb7f41d666
Koushik Dutta [Tue, 30 Jul 2013 03:36:05 +0000 (20:36 -0700)]
Merge remote-tracking branch 'github/cm-10.1' into cm-10.2
Koushik Dutta [Tue, 30 Jul 2013 03:35:56 +0000 (20:35 -0700)]
install-recovery.sh packaging
Change-Id: I7f8fb1295b8564d33f3e7a04ab622a9075075a50
Koushik Dutta [Tue, 30 Jul 2013 02:17:36 +0000 (19:17 -0700)]
Add support for su daemon installation and detection in recovery zip.
Change-Id: I09f2d2be61c9e8c5dec755de05227d41e08e4de8
Koushik Dutta [Sun, 28 Jul 2013 05:09:48 +0000 (22:09 -0700)]
cleanups and sanity check string length
Change-Id: I17be8f06edd5ec507ab9b0a14cf305be75afc067
Koushik Dutta [Sun, 28 Jul 2013 04:21:54 +0000 (21:21 -0700)]
Fix build
Change-Id: I2f65d0128ef0b885603caf1100a194626d04cbed
Koushik Dutta [Sat, 27 Jul 2013 04:35:23 +0000 (21:35 -0700)]
Superuser 4.3 fixes.
Add support for su daemon to work around SELinux policies
and new capset on zygote/dalvik.
Change-Id: I2bdc7ef61dc17430a878e13dd098e6d0c004ddb2
Koushik Dutta [Tue, 30 Jul 2013 02:17:36 +0000 (19:17 -0700)]
Add support for su daemon installation and detection in recovery zip.
Change-Id: I09f2d2be61c9e8c5dec755de05227d41e08e4de8
Koushik Dutta [Mon, 29 Jul 2013 01:29:34 +0000 (18:29 -0700)]
Add missing NULL sentinel.
Change-Id: I95b86d8e60d54a54280dae89ab93ff7eb322fe18
Koushik Dutta [Mon, 29 Jul 2013 01:29:34 +0000 (18:29 -0700)]
Add missing NULL sentinel.
Change-Id: I95b86d8e60d54a54280dae89ab93ff7eb322fe18
Koushik Dutta [Sun, 28 Jul 2013 05:09:48 +0000 (22:09 -0700)]
cleanups and sanity check string length
Change-Id: I17be8f06edd5ec507ab9b0a14cf305be75afc067
Koushik Dutta [Sun, 28 Jul 2013 04:21:54 +0000 (21:21 -0700)]
Fix build
Change-Id: I2f65d0128ef0b885603caf1100a194626d04cbed
Koushik Dutta [Sat, 27 Jul 2013 04:35:23 +0000 (21:35 -0700)]
Superuser 4.3 fixes.
Add support for su daemon to work around SELinux policies
and new capset on zygote/dalvik.
Change-Id: I2bdc7ef61dc17430a878e13dd098e6d0c004ddb2
Koushik Dutta [Wed, 24 Jul 2013 08:18:53 +0000 (01:18 -0700)]
Merge pull request #165 from CyanogenMod/cm-10.1
update
jackmu95 [Thu, 27 Jun 2013 12:12:43 +0000 (14:12 +0200)]
Superuser: Fix German translation
Change-Id: I70375eccb742afea338255230cba60aa8b03804c
Danny Baumann [Thu, 27 Jun 2013 10:36:39 +0000 (03:36 -0700)]
Merge "Superuser: Translation fixes" into cm-10.1
Marco Brohet [Wed, 26 Jun 2013 12:53:30 +0000 (05:53 -0700)]
Merge "Superuser: PT-PT translations: minor corrections" into cm-10.1
Andrew Jiang [Wed, 5 Jun 2013 21:16:29 +0000 (17:16 -0400)]
Superuser: Translation fixes
R.string.disabled is an AOSP string present in Settings. It was
overriding the same string that was present in strings.xml of Superuser,
causing translations to be ineffective. Change the string in superuser
to R.string.access_disabled to avoid this conflict.
Patch Set 3: Rebase
Patch Set 4: Remove carriage returns and tabs from files.
Change-Id: I22e2cf51d6931fd79c39d70f57142120cab93a44
brisky [Sat, 15 Jun 2013 12:19:24 +0000 (13:19 +0100)]
Superuser: PT-PT translations: minor corrections
Change-Id: I23c666ef03cec6fa798a13196c3904e8af386d00
Danny Baumann [Fri, 14 Jun 2013 07:05:22 +0000 (00:05 -0700)]
Merge "Superuser: Simplified Chinese Translations" into cm-10.1
brisky [Mon, 10 Jun 2013 21:05:15 +0000 (22:05 +0100)]
Added PT-PT language support for Superuser
Change-Id: I617ce102b86fe30e6c102d2466f02be24eececd2
Andrew Jiang [Wed, 5 Jun 2013 20:28:32 +0000 (16:28 -0400)]
Superuser: Simplified Chinese Translations
Some corrections for consistency throughout the system.
Patch Set 2: Corrections, also fixed carriage returns.
Change-Id: Ia22517548dc80eb26fb752c2fee08054a7a4a4e8
okrt [Thu, 23 May 2013 18:22:46 +0000 (21:22 +0300)]
Superuser: TR translations
Change-Id: I2e75b8af7179d68d0711d64a08bf089b4202c924
djMesias [Mon, 20 May 2013 10:27:03 +0000 (12:27 +0200)]
Superuser: ES translations
- From 3rd to 2nd person
Change-Id: I689e52832b9f20257972d19e8ee130be2b5527b5
isimobile [Thu, 14 Mar 2013 13:01:38 +0000 (15:01 +0200)]
Superuser: Add AF Translations
Change-Id: Ie11cdf60f8afe3396f98811a0b8a406b97ee6057
Koushik Dutta [Thu, 2 May 2013 09:14:31 +0000 (02:14 -0700)]
1018
Change-Id: Ie521f8b526892434b8cca4b72a12e5701e3d0e52
Koushik Dutta [Thu, 2 May 2013 09:09:39 +0000 (02:09 -0700)]
add reboot binary
Change-Id: Ie059daae4cc0525ab67c9c774a1a106a8e50a0b3
Ondrej Zima [Mon, 22 Apr 2013 08:37:42 +0000 (10:37 +0200)]
Superuser: CS translation
- fixed (unified) translation
- added copyright header
Change-Id: I43a970ee1e479bd93530666132cba869e3989329
Marco Brohet [Sat, 30 Mar 2013 20:19:16 +0000 (21:19 +0100)]
Superuser: NL translations
Patch set 1: - initial commit
Patch set 2: - implementing suggestions
Patch set 3: - implementing suggestions
Patch set 4: - implementing suggestion
Patch set 5: - consistent strings
Change-Id: If85bfd34891e98d0954575ceb908e6c375fba2e8
Marco Brohet [Fri, 12 Apr 2013 21:25:29 +0000 (14:25 -0700)]
Merge "Superuser: added Norwegian translation" into cm-10.1