Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PT-BR Translations for ROMUpdater #4

Open
wants to merge 63 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
5a232a7
Initial commit to build in cm7 repo
tpruvot Jan 15, 2012
085cd64
French translation (some messages to finish)
tpruvot Jan 16, 2012
76d9db3
Add some null check with TextUtils
tpruvot Jan 16, 2012
d3d210d
clean manifest, add reboot permission
tpruvot Jan 16, 2012
b6f3a8e
move duplicate donate message to shared data
tpruvot Jan 21, 2012
0986700
Add message versionlist_is_empty and fixes empty force close
tpruvot Jan 21, 2012
65e04b0
enhance json parser
tpruvot Jan 21, 2012
c96fc75
check ro.modversion against server rom version name
tpruvot Jan 23, 2012
84a1d02
cleanspec: add libGson too
tpruvot Jan 24, 2012
b67f069
Wipe strings fix and default repo url
tpruvot Jan 23, 2012
c7a05fd
french translation update
tpruvot Jan 24, 2012
7c33b3e
fix incremental version fc and rename Full
tpruvot Jan 23, 2012
823525d
update layouts: reduce a bit the title size
tpruvot Jan 24, 2012
2496447
json: allow a dynamic url, without main.json
tpruvot Jan 28, 2012
ca99842
french: small fix
tpruvot Jan 28, 2012
345ca99
my recovery and version check changes
tpruvot Jan 21, 2012
505f7bc
tab to spaces, package name and version changes
tpruvot Jan 23, 2012
0cc3fd3
Recovery script support
tpruvot Jan 21, 2012
f81e6ff
Rewrite http downloader to support redirections and cookies
tpruvot Jan 24, 2012
eac8448
better device overlay for repository urls (aosp/cm repo only)
tpruvot Jan 24, 2012
447a0ae
Add menu settings and use android icon resources
tpruvot Jan 24, 2012
bced623
too much changes/time to keep original copyright
tpruvot Jan 24, 2012
8d5bce8
download: remove prefix of dynamic filename
tpruvot Jan 28, 2012
df0e6e2
change version number and update README
tpruvot Jan 28, 2012
56c91ac
intl: translate 'Downloading' string
tpruvot Jan 28, 2012
307b2ab
update cleanspec
tpruvot Jan 28, 2012
c489f08
recovery: final fix for update zips
tpruvot Jan 28, 2012
b361af7
make urls more flexibles
tpruvot Jan 28, 2012
15b59fe
overlay the anonymous repository url
tpruvot Jan 28, 2012
6bb1e84
Fix SD-Ext wipe feature and disable annoying question about anon. stats
tpruvot Jan 28, 2012
41f8ea5
french: update notice about anonymous servers
tpruvot Jan 28, 2012
19d3efb
fix repository list switch, for dynamic json repos
tpruvot Jan 28, 2012
c5782a3
mount/umount sdext on sdext wipe
tpruvot Jan 28, 2012
0d7aa4a
update variant icon ^^
tpruvot Feb 1, 2012
e306579
sendAnonymousData dont use a static method
tpruvot Jan 31, 2012
1b7a330
ics fixes and version prefix removal
tpruvot Jan 31, 2012
2875b7f
better checks for url prefix and suffixes
tpruvot Jan 31, 2012
5825fba
better about box format for ICS
tpruvot Jan 31, 2012
12d1fdf
update google-gson with version 2.1
tpruvot Feb 23, 2012
c2e3fb5
Add the changelog to the Package Details View
tpruvot Feb 23, 2012
5457a34
Fix workflow at end of the package download
tpruvot Feb 23, 2012
dd72d9a
Now remove the changelog longpress toast
tpruvot Feb 23, 2012
9d234d5
We dont use anonymous repositories for the moment...
tpruvot Feb 23, 2012
81925f1
Prepare bootmenu reboot string and small res fixes
tpruvot Jun 2, 2012
9c64a44
Disable the data wipe feature from the app
tpruvot Jun 2, 2012
5a7880e
Changelog: more space to display changes
tpruvot Jun 2, 2012
1fa1ded
Correctly encode filenames like 'Defy+.zip'
tpruvot Jun 13, 2012
60fafef
allow strings to be used as versions
brandon15811 Jun 12, 2012
10e38d0
Be safe with null strings
tpruvot Jun 13, 2012
272fc8f
update gson lib to 2.2.2
tpruvot Jul 10, 2012
c5468d9
v2.08, retry 3 times on json socket timeout, disable StrictMode
tpruvot Jul 10, 2012
4fa4c18
update README, add sample json.php repo scripts
tpruvot Jul 10, 2012
df38689
link proguard.cfg flags
tpruvot Jul 20, 2012
833f582
hmm, proguards flags are buggy... disable that
tpruvot Jul 21, 2012
1c46d22
Link RomUpdater in settings
tpruvot Jul 25, 2012
5d3dae8
proper proguard flags
tpruvot Jul 25, 2012
4cc8ff9
Use the right class to list the available versions
tpruvot Jul 25, 2012
d7ae962
spanish: part 1/2
traffic22 Jul 30, 2012
077a92f
spanish: part 2/2
tpruvot Jul 30, 2012
6b6fb9f
make project buildable in eclipse
brandon15811 Jul 27, 2012
80763d6
remove resources.arsc from systemproperties.jar
brandon15811 Jul 27, 2012
8b2e335
Update res/values/messages.xml
pupiloalpha Sep 15, 2012
275298e
Add PT-BR Translation for Strings
pupiloalpha Sep 15, 2012
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .classpath
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry kind="lib" path="Gson/gson-1.6.jar"/>
<classpathentry kind="output" path="bin"/>
<classpathentry exported="true" kind="lib" path="Gson/gson-2.2.2.jar"/>
<classpathentry kind="lib" path="systemproperties.jar"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
27 changes: 27 additions & 0 deletions Android.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
LOCAL_PATH:= $(call my-dir)

include $(CLEAR_VARS)
LOCAL_MODULE_NAME := libGson
LOCAL_MODULE_TAGS := optional
LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := libGson:Gson/gson-2.2.2.jar
#LOCAL_PROGUARD_FLAG_FILES := proguard.cfg
include $(BUILD_MULTI_PREBUILT)


include $(CLEAR_VARS)
LOCAL_PACKAGE_NAME := RomUpdater
LOCAL_MODULE_TAGS := optional

LOCAL_CERTIFICATE := shared
LOCAL_PROGUARD_FLAG_FILES := proguard.cfg

LOCAL_SRC_FILES := \
$(call all-java-files-under, google) \
$(call all-java-files-under, src) \

LOCAL_STATIC_JAVA_LIBRARIES := libGson

# LOCAL_JAVACFLAGS += -Xlint:unchecked

include $(BUILD_PACKAGE)

50 changes: 37 additions & 13 deletions AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.elegosproject.romupdater"
android:versionName="1.14.2" android:versionCode="25">
android:versionName="2.10-JB" android:versionCode="10210">
<application
android:label="@string/app_name"
android:icon="@drawable/ic_launcher_romupdater">
android:label="@string/app_name"
android:icon="@drawable/ic_launcher_romupdater"
android:allowClearUserData="true" android:allowBackup="true">
<activity android:name=".ROMUpdater"
android:label="@string/app_name">
<intent-filter>
Expand All @@ -13,14 +14,37 @@
</intent-filter>
</activity>

<activity android:name=".VersionSelector" android:label="@string/view_available_updates" android:configChanges="orientation" />
<activity android:name=".VersionsList" android:label="@string/view_versions_list" android:configChanges="orientation" />
<activity android:name=".Preferences" android:label="@string/view_preferences" android:configChanges="orientation" />
<activity android:name=".RepositoriesList" android:label="@string/view_repositories" android:configChanges="orientation" />
<activity android:name=".Restore" android:label="@string/view_restore" android:configChanges="orientation" />
<activity android:name=".Downloads" android:label="@string/view_downloads" android:configChanges="orientation" />
</application>
<uses-sdk android:minSdkVersion="7" />
<activity android:name=".VersionsList"
android:label="@string/view_versions_list"
android:configChanges="orientation">
<intent-filter>
<action android:name="android.settings.SYSTEM_UPDATE_SETTINGS" />
<category android:name="android.intent.category.CATEGORY_PREFERENCE" />
</intent-filter>
</activity>
<activity android:name=".VersionSelector"
android:label="@string/view_version"
android:configChanges="orientation" />
<activity android:name=".Preferences"
android:label="@string/view_preferences"
android:configChanges="orientation" />
<activity android:name=".RepositoriesList"
android:label="@string/view_repositories"
android:configChanges="orientation" />
<activity android:name=".Restore"
android:label="@string/view_restore"
android:configChanges="orientation" />
<activity android:name=".Downloads"
android:label="@string/view_downloads"
android:configChanges="orientation" />
</application>

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"></uses-permission>
</manifest>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.DELETE_CACHE_FILES" />
<uses-permission android:name="android.permission.CLEAR_APP_CACHE" />
<uses-permission android:name="android.permission.REBOOT" />

<uses-sdk android:minSdkVersion="11" />
</manifest>
15 changes: 15 additions & 0 deletions CleanSpec.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# ************************************************
# NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST
# ************************************************

# For example:
# $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/AndroidTests_intermediates)
# $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/core_intermediates)
# $(call add-clean-step, find $(OUT_DIR) -type f -name "IGTalkSession*" -print0 | xargs -0 rm -f)
# $(call add-clean-step, rm -rf $(PRODUCT_OUT)/data/*)

$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/libGson_intermediates)
$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/RomUpdater_intermediates)
$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/R/org/elegosproject)
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/APPS/RomUpdater_intermediates)

203 changes: 203 additions & 0 deletions Gson/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,203 @@
Google Gson

Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/

TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

1. Definitions.

"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.

"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.

"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.

"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.

"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.

"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.

"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).

"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.

"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."

"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.

2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.

3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.

4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:

(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and

(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and

(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and

(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.

You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.

5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.

6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.

7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.

8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.

9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.

END OF TERMS AND CONDITIONS

APPENDIX: How to apply the Apache License to your work.

To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2008-2011 Google Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
7 changes: 7 additions & 0 deletions Gson/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Gson is a Java library that can be used to convert a Java object into its
JSON representation. It can also be used to convert a JSON string into an
equivalent Java object. Gson can work with arbitrary Java objects including
pre-existing objects that you do not have source-code of.

Complete Gson documentation is available at its project page
http://code.google.com/p/google-gson
Binary file removed Gson/gson-1.6.jar
Binary file not shown.
Binary file added Gson/gson-2.2.2-sources.jar
Binary file not shown.
Binary file added Gson/gson-2.2.2.jar
Binary file not shown.
19 changes: 15 additions & 4 deletions README
Original file line number Diff line number Diff line change
@@ -1,18 +1,29 @@
About this Fork (Android Repo Version)
--------------------------------------------------------------------------------

This project was forked by epsylon3 from elegos version to be integrated
in a repo build process and to support dynamic json file (via php or other)

This version is customized via an overlay xml placed in device tree
to customize default repositories urls and Application name.

--------------------------------------------------------------------------------

ROMUpdater is meant to be an Android universal ROM updater.
It checks for the build.prop's ro.build.display.id and
downloads a series of JSON files that describe and give
It checks for the build.prop's ro.modversion or ro.cm.version
an downloads a series of JSON files that describe and give
a link to the available versions (from the next one
upwards, if available). It can also execute the most
common Recovery actions (via /cache/recovery/command
and extendedcommand), for example Nandroid backup,
cache/data wipe, or simply enter the removery mode.
dalvik and cache wipe, or simply enter the recovery mode.

This application requires root.

ROMUpdater is a free software and its source code
is being distributed under the GNU GPL v.3.

You can find the final APK in the market as
You can find the original APK in the market as
"ROMUpdater" by Giacomo Furlan

For more informations please visit the following sites:
Expand Down
11 changes: 0 additions & 11 deletions default.properties

This file was deleted.

Loading