Skip to content

Commit

Permalink
Allow unsafe methods (XPrivacy 3)
Browse files Browse the repository at this point in the history
  • Loading branch information
M66B committed Jul 27, 2014
1 parent 0524d1d commit 3220571
Show file tree
Hide file tree
Showing 52 changed files with 162 additions and 51 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ Changelog
* Fixed resolving transaction code names
* Added restriction for [ACTION_DIAL](http://developer.android.com/reference/android/content/Intent.html#ACTION_DIAL)
* Updated in application documentation
* Updated Dutch translation
* Updated Simplified Chinese translation
* Updated Slovak translation

Expand Down
28 changes: 28 additions & 0 deletions res/layout/help.xml
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,34 @@
android:textAppearance="?android:attr/textAppearanceMedium"
android:textIsSelectable="false" />

<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal" >

<LinearLayout
android:layout_width="48dip"
android:layout_height="48dip"
android:gravity="center_vertical|center_horizontal"
android:orientation="horizontal" >

<ImageView
android:layout_width="32dip"
android:layout_height="32dip"
android:contentDescription="@string/title_unsafe"
android:src="@android:drawable/ic_partial_secure" />
</LinearLayout>

<TextView
android:layout_width="wrap_content"
android:layout_height="48dip"
android:gravity="center_vertical"
android:paddingLeft="6dip"
android:text="@string/title_unsafe"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textIsSelectable="false" />
</LinearLayout>

<!-- dangerous -->

<LinearLayout
Expand Down
10 changes: 10 additions & 0 deletions res/layout/restrictionchild.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,16 @@
android:textAppearance="?android:attr/textAppearanceSmall"
tools:ignore="NestedWeights" />

<ImageView
android:id="@+id/imgUnsafe"
android:layout_width="32dip"
android:layout_height="32dip"
android:layout_gravity="center_vertical"
android:contentDescription="@string/help_application"
android:paddingLeft="3dip"
android:src="@android:drawable/ic_partial_secure"
android:visibility="gone" />

<ImageView
android:id="@+id/imgMethodWhitelist"
android:layout_width="32dip"
Expand Down
2 changes: 1 addition & 1 deletion res/layout/settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
android:id="@+id/etQuirks"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="freeze,noresolve"
android:hint="freeze,noresolve,unsafe"
android:inputType="text"
tools:ignore="HardcodedText" />
</LinearLayout>
Expand Down
1 change: 1 addition & 0 deletions res/values-ar/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@
<string name="title_toggle_dangerous">Long press on a title to toggle dangerous functions</string>
<string name="title_ondemand_category">Applying to the category will reset the function exceptions to default values</string>
<string name="title_function_help">Function documentation</string>
<string name="title_unsafe">is not safe, can be unhooked</string>
<string name="settings_serial">السيريال#</string>
<string name="settings_lat">خط العرض</string>
<string name="settings_lon">خط الطول</string>
Expand Down
1 change: 1 addition & 0 deletions res/values-bg/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@
<string name="title_toggle_dangerous">Long press on a title to toggle dangerous functions</string>
<string name="title_ondemand_category">Applying to the category will reset the function exceptions to default values</string>
<string name="title_function_help">Function documentation</string>
<string name="title_unsafe">is not safe, can be unhooked</string>
<string name="settings_serial">Serial#</string>
<string name="settings_lat">Геогр. ширина</string>
<string name="settings_lon">Геогр. дължина</string>
Expand Down
1 change: 1 addition & 0 deletions res/values-ca/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@
<string name="title_toggle_dangerous">Long press on a title to toggle dangerous functions</string>
<string name="title_ondemand_category">Applying to the category will reset the function exceptions to default values</string>
<string name="title_function_help">Function documentation</string>
<string name="title_unsafe">is not safe, can be unhooked</string>
<string name="settings_serial">Número de sèrie</string>
<string name="settings_lat">Latitud</string>
<string name="settings_lon">Longitud</string>
Expand Down
1 change: 1 addition & 0 deletions res/values-cs/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ nicméně je nemožné zaručit bezchybnou funkčnost na všech zařízeních a
<string name="title_toggle_dangerous">Long press on a title to toggle dangerous functions</string>
<string name="title_ondemand_category">Applying to the category will reset the function exceptions to default values</string>
<string name="title_function_help">Function documentation</string>
<string name="title_unsafe">is not safe, can be unhooked</string>
<string name="settings_serial">Sériové číslo</string>
<string name="settings_lat">Zeměpisná šířka</string>
<string name="settings_lon">Zeměpisná délka</string>
Expand Down
1 change: 1 addition & 0 deletions res/values-da/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@
<string name="title_toggle_dangerous">Lang tryk på en titel for at slå farlige funktioner til og fra</string>
<string name="title_ondemand_category">Hvis du anvender til kategorien, vil det nulstille funktions undtagelser til default værdier</string>
<string name="title_function_help">Function documentation</string>
<string name="title_unsafe">is not safe, can be unhooked</string>
<string name="settings_serial">Serienummer</string>
<string name="settings_lat">Breddegrad</string>
<string name="settings_lon">Længdegrad</string>
Expand Down
1 change: 1 addition & 0 deletions res/values-de/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ dass es einwandfrei auf wirklich JEDEM einzelnen Gerät und für JEDE einzelne A
<string name="title_toggle_dangerous">Auf einen Title lange drücken um bedenkliche Beschränkungen umzuschalten</string>
<string name="title_ondemand_category">Auf die gesamte Kategorie anwenden wird die Ausnahmen der Funktionen auf die Standardwerte zurücksetzen</string>
<string name="title_function_help">Dokumentation der Funktion</string>
<string name="title_unsafe">is not safe, can be unhooked</string>
<string name="settings_serial">Seriennummer</string>
<string name="settings_lat">Breitengrad</string>
<string name="settings_lon">Längengrad</string>
Expand Down
1 change: 1 addition & 0 deletions res/values-ee/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ kuid on võimatu garanteerida, et see töötab igal seadmel ja iga rakendusega.
<string name="title_toggle_dangerous">Long press on a title to toggle dangerous functions</string>
<string name="title_ondemand_category">Applying to the category will reset the function exceptions to default values</string>
<string name="title_function_help">Function documentation</string>
<string name="title_unsafe">is not safe, can be unhooked</string>
<string name="settings_serial">Seeria#</string>
<string name="settings_lat">Laiuskraad</string>
<string name="settings_lon">Pikkuskraad</string>
Expand Down
1 change: 1 addition & 0 deletions res/values-el/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@
<string name="title_toggle_dangerous">Long press on a title to toggle dangerous functions</string>
<string name="title_ondemand_category">Applying to the category will reset the function exceptions to default values</string>
<string name="title_function_help">Function documentation</string>
<string name="title_unsafe">is not safe, can be unhooked</string>
<string name="settings_serial">Σειριακός αριθμός</string>
<string name="settings_lat">Γεωγρ. πλάτος</string>
<string name="settings_lon">Γεωγρ. μήκος</string>
Expand Down
1 change: 1 addition & 0 deletions res/values-es/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ sin embargo no puedo garantizar que funcione sin ningún fallo para cada disposi
<string name="title_toggle_dangerous">Long press on a title to toggle dangerous functions</string>
<string name="title_ondemand_category">Applying to the category will reset the function exceptions to default values</string>
<string name="title_function_help">Function documentation</string>
<string name="title_unsafe">is not safe, can be unhooked</string>
<string name="settings_serial"># de serie</string>
<string name="settings_lat">Latitud</string>
<string name="settings_lon">Longitud</string>
Expand Down
1 change: 1 addition & 0 deletions res/values-fa/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@
<string name="title_toggle_dangerous">Long press on a title to toggle dangerous functions</string>
<string name="title_ondemand_category">Applying to the category will reset the function exceptions to default values</string>
<string name="title_function_help">Function documentation</string>
<string name="title_unsafe">is not safe, can be unhooked</string>
<string name="settings_serial">شماره سریال</string>
<string name="settings_lat">عرض جغرافیایی</string>
<string name="settings_lon">طول جغرافیایی</string>
Expand Down
1 change: 1 addition & 0 deletions res/values-fi/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@
<string name="title_toggle_dangerous">Long press on a title to toggle dangerous functions</string>
<string name="title_ondemand_category">Applying to the category will reset the function exceptions to default values</string>
<string name="title_function_help">Function documentation</string>
<string name="title_unsafe">is not safe, can be unhooked</string>
<string name="settings_serial">sarjanumero#</string>
<string name="settings_lat">Latituudi</string>
<string name="settings_lon">Longituudi</string>
Expand Down
1 change: 1 addition & 0 deletions res/values-fr/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ il est impossible de garantir un fonctionnement parfait sur chaque appareil et p
<string name="title_toggle_dangerous">Long press on a title to toggle dangerous functions</string>
<string name="title_ondemand_category">Applying to the category will reset the function exceptions to default values</string>
<string name="title_function_help">Function documentation</string>
<string name="title_unsafe">is not safe, can be unhooked</string>
<string name="settings_serial">N° de série</string>
<string name="settings_lat">Latitude</string>
<string name="settings_lon">Longitude</string>
Expand Down
1 change: 1 addition & 0 deletions res/values-ga/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@
<string name="title_toggle_dangerous">Long press on a title to toggle dangerous functions</string>
<string name="title_ondemand_category">Applying to the category will reset the function exceptions to default values</string>
<string name="title_function_help">Function documentation</string>
<string name="title_unsafe">is not safe, can be unhooked</string>
<string name="settings_serial">Sraithuimhir#</string>
<string name="settings_lat">TX</string>
<string name="settings_lon">Domhanfhad</string>
Expand Down
1 change: 1 addition & 0 deletions res/values-he/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ however it is impossible to guarantee it will work flawless on each and every de
<string name="title_toggle_dangerous">Long press on a title to toggle dangerous functions</string>
<string name="title_ondemand_category">Applying to the category will reset the function exceptions to default values</string>
<string name="title_function_help">Function documentation</string>
<string name="title_unsafe">is not safe, can be unhooked</string>
<string name="settings_serial">Serial#</string>
<string name="settings_lat">קו אורך</string>
<string name="settings_lon">קו רוחב</string>
Expand Down
1 change: 1 addition & 0 deletions res/values-hi/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@
<string name="title_toggle_dangerous">Long press on a title to toggle dangerous functions</string>
<string name="title_ondemand_category">Applying to the category will reset the function exceptions to default values</string>
<string name="title_function_help">Function documentation</string>
<string name="title_unsafe">is not safe, can be unhooked</string>
<string name="settings_serial">क्रमांक#</string>
<string name="settings_lat">अक्षांश</string>
<string name="settings_lon">रेखांश</string>
Expand Down
1 change: 1 addition & 0 deletions res/values-hu/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ de lehetetlen garantálni hogy tökéletesen működjön az összes eszközön
<string name="title_toggle_dangerous">Long press on a title to toggle dangerous functions</string>
<string name="title_ondemand_category">Applying to the category will reset the function exceptions to default values</string>
<string name="title_function_help">Function documentation</string>
<string name="title_unsafe">is not safe, can be unhooked</string>
<string name="settings_serial">Sorozatszám#</string>
<string name="settings_lat">Szélesség</string>
<string name="settings_lon">Hosszúság</string>
Expand Down
1 change: 1 addition & 0 deletions res/values-it/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ tuttavia non è possibile garantire che funzioni perfettamente su qualunque disp
<string name="title_toggle_dangerous">Premi a lungo su una intestazione per gestire le funzioni pericolose</string>
<string name="title_ondemand_category">Applicando all\'intera categoria le funzioni verranno riportate ai valori di default</string>
<string name="title_function_help">Documentazione funzione</string>
<string name="title_unsafe">is not safe, can be unhooked</string>
<string name="settings_serial">Seriale#</string>
<string name="settings_lat">Latitudine</string>
<string name="settings_lon">Longitudine</string>
Expand Down
1 change: 1 addition & 0 deletions res/values-iw/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ however it is impossible to guarantee it will work flawless on each and every de
<string name="title_toggle_dangerous">Long press on a title to toggle dangerous functions</string>
<string name="title_ondemand_category">Applying to the category will reset the function exceptions to default values</string>
<string name="title_function_help">Function documentation</string>
<string name="title_unsafe">is not safe, can be unhooked</string>
<string name="settings_serial">Serial#</string>
<string name="settings_lat">קו אורך</string>
<string name="settings_lon">קו רוחב</string>
Expand Down
1 change: 1 addition & 0 deletions res/values-ja/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@
<string name="title_toggle_dangerous">危険性のある機能はタイトル部分を長押しするとチェックできるようになります</string>
<string name="title_ondemand_category">カテゴリ全体に設定すると除外機能の設定が初期値にリセットされます</string>
<string name="title_function_help">機能のドキュメント</string>
<string name="title_unsafe">is not safe, can be unhooked</string>
<string name="settings_serial">シリアル番号</string>
<string name="settings_lat">緯度</string>
<string name="settings_lon">経度</string>
Expand Down
1 change: 1 addition & 0 deletions res/values-ku-rIQ/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@
<string name="title_toggle_dangerous">Long press on a title to toggle dangerous functions</string>
<string name="title_ondemand_category">Applying to the category will reset the function exceptions to default values</string>
<string name="title_function_help">Function documentation</string>
<string name="title_unsafe">is not safe, can be unhooked</string>
<string name="settings_serial">سريال نه مبرى موبايل</string>
<string name="settings_lat">هیلی پانی</string>
<string name="settings_lon">هیلی دریژی</string>
Expand Down
1 change: 1 addition & 0 deletions res/values-ku-rIR/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@
<string name="title_toggle_dangerous">Long press on a title to toggle dangerous functions</string>
<string name="title_ondemand_category">Applying to the category will reset the function exceptions to default values</string>
<string name="title_function_help">Function documentation</string>
<string name="title_unsafe">is not safe, can be unhooked</string>
<string name="settings_serial">سريال نه مبرى موبايل</string>
<string name="settings_lat">هیلی پانی</string>
<string name="settings_lon">هیلی دریژی</string>
Expand Down
1 change: 1 addition & 0 deletions res/values-lt/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ Tačiau neįmanoma garantuoti, kad dirbs nepriekaištingai su kiekvienu prietais
<string name="title_toggle_dangerous">Long press on a title to toggle dangerous functions</string>
<string name="title_ondemand_category">Applying to the category will reset the function exceptions to default values</string>
<string name="title_function_help">Funkcijų dokumentacija</string>
<string name="title_unsafe">is not safe, can be unhooked</string>
<string name="settings_serial">Serial#</string>
<string name="settings_lat">Platuma</string>
<string name="settings_lon">Ilguma</string>
Expand Down
1 change: 1 addition & 0 deletions res/values-ms/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ namun ia adalah mustahil untuk menjaminkan penggunaan sempurna untuk setiap pera
<string name="title_toggle_dangerous">Long press on a title to toggle dangerous functions</string>
<string name="title_ondemand_category">Applying to the category will reset the function exceptions to default values</string>
<string name="title_function_help">Function documentation</string>
<string name="title_unsafe">is not safe, can be unhooked</string>
<string name="settings_serial">Siri#</string>
<string name="settings_lat">Latitud</string>
<string name="settings_lon">Longitud</string>
Expand Down
1 change: 1 addition & 0 deletions res/values-nb-rNO/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@
<string name="title_toggle_dangerous">Trykk lenge på tittelen til en farlig funksjon for å skifte mellom farlig/ufarlig</string>
<string name="title_ondemand_category">Bruk på en kategori vil nullstille unntakelser av funksjoner til standardverdier</string>
<string name="title_function_help">Dokumentasjon av funksjoner</string>
<string name="title_unsafe">is not safe, can be unhooked</string>
<string name="settings_serial">Serienummer</string>
<string name="settings_lat">Breddegrad</string>
<string name="settings_lon">Lengdegrad</string>
Expand Down
1 change: 1 addition & 0 deletions res/values-nl/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ maar het is onmogelijk om te garanderen dat het op elk apparaat en voor elke app
<string name="title_toggle_dangerous">Druk lang op een titel om gevaarlijke functies te schakelen</string>
<string name="title_ondemand_category">Toepassen op de categorie zal de functie-uitzondering herstellen naar standaard waarden</string>
<string name="title_function_help">Functie documentatie</string>
<string name="title_unsafe">is niet veilig, kan worden &#8216;unhooked&#8217;</string>
<string name="settings_serial">Serienummer</string>
<string name="settings_lat">Breedtegraad</string>
<string name="settings_lon">Lengtegraad</string>
Expand Down
1 change: 1 addition & 0 deletions res/values-nn-rNO/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@
<string name="title_toggle_dangerous">Trykk lenge på tittelen til en farlig funksjon for å skifte mellom farlig/ufarlig</string>
<string name="title_ondemand_category">Bruk på en kategori vil nullstille unntakelser av funksjoner til standardverdier</string>
<string name="title_function_help">Dokumentasjon av funksjoner</string>
<string name="title_unsafe">is not safe, can be unhooked</string>
<string name="settings_serial">Serienummer</string>
<string name="settings_lat">Breddegrad</string>
<string name="settings_lon">Lengdegrad</string>
Expand Down
1 change: 1 addition & 0 deletions res/values-no-rNO/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@
<string name="title_toggle_dangerous">Trykk lenge på tittelen til en farlig funksjon for å skifte mellom farlig/ufarlig</string>
<string name="title_ondemand_category">Bruk på en kategori vil nullstille unntakelser av funksjoner til standardverdier</string>
<string name="title_function_help">Dokumentasjon av funksjoner</string>
<string name="title_unsafe">is not safe, can be unhooked</string>
<string name="settings_serial">Serienummer</string>
<string name="settings_lat">Breddegrad</string>
<string name="settings_lon">Lengdegrad</string>
Expand Down
1 change: 1 addition & 0 deletions res/values-pl/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@
<string name="title_toggle_dangerous">Przytrzymaj dużej na tytule aby przełączyć niebezpieczne funkcje</string>
<string name="title_ondemand_category">Zastosowanie kategorii zresetuje wyjątki funkcji do wartości domyślnych</string>
<string name="title_function_help">Dokumentacja funkcji</string>
<string name="title_unsafe">is not safe, can be unhooked</string>
<string name="settings_serial">Numer seryjny</string>
<string name="settings_lat">Szerokość geograficzna</string>
<string name="settings_lon">Długość geograficzna</string>
Expand Down
Loading

0 comments on commit 3220571

Please sign in to comment.