├── .classpath
├── .gitignore
├── .project
├── AndroidManifest.xml
├── LICENSE
├── README.md
├── bin
├── AndroidManifest.xml
├── Build.prop Editor.apk
├── classes.dex
├── classes
│ └── org
│ │ └── nathan
│ │ └── jf
│ │ └── build
│ │ └── prop
│ │ └── editor
│ │ ├── BuildConfig.class
│ │ ├── BuildPropEditor$1.class
│ │ ├── BuildPropEditor.class
│ │ ├── EditPropActivity$1.class
│ │ ├── EditPropActivity$2.class
│ │ ├── EditPropActivity$3.class
│ │ ├── EditPropActivity$4.class
│ │ ├── EditPropActivity$5.class
│ │ ├── EditPropActivity.class
│ │ ├── R$attr.class
│ │ ├── R$color.class
│ │ ├── R$drawable.class
│ │ ├── R$id.class
│ │ ├── R$layout.class
│ │ ├── R$menu.class
│ │ ├── R$string.class
│ │ └── R.class
├── classes2
│ └── org
│ │ └── nathan
│ │ └── jf
│ │ └── build
│ │ └── prop
│ │ └── editor
│ │ └── BuildPropEditor.class
├── jarlist.cache
├── res
│ ├── drawable-hdpi
│ │ ├── ic_action_accept.png
│ │ ├── ic_action_add.png
│ │ ├── ic_action_discart.png
│ │ └── ic_launcher.png
│ ├── drawable-ldpi
│ │ ├── ic_action_accept.png
│ │ ├── ic_action_add.png
│ │ ├── ic_action_discart.png
│ │ └── ic_launcher.png
│ ├── drawable-mdpi
│ │ ├── ic_action_accept.png
│ │ ├── ic_action_add.png
│ │ ├── ic_action_discart.png
│ │ └── ic_launcher.png
│ └── drawable-xhdpi
│ │ ├── ic_action_accept.png
│ │ ├── ic_action_add.png
│ │ ├── ic_action_discart.png
│ │ └── ic_launcher.png
└── resources.ap_
├── gen
└── org
│ └── nathan
│ └── jf
│ └── build
│ └── prop
│ └── editor
│ ├── BuildConfig.java
│ └── R.java
├── proguard.cfg
├── project.properties
├── res
├── drawable-hdpi
│ ├── ic_action_accept.png
│ ├── ic_action_add.png
│ ├── ic_action_discart.png
│ └── ic_launcher.png
├── drawable-ldpi
│ ├── ic_action_accept.png
│ ├── ic_action_add.png
│ ├── ic_action_discart.png
│ └── ic_launcher.png
├── drawable-mdpi
│ ├── ic_action_accept.png
│ ├── ic_action_add.png
│ ├── ic_action_discart.png
│ └── ic_launcher.png
├── drawable-xhdpi
│ ├── ic_action_accept.png
│ ├── ic_action_add.png
│ ├── ic_action_discart.png
│ └── ic_launcher.png
├── layout
│ ├── edit_prop.xml
│ ├── list_item.xml
│ └── main.xml
├── menu
│ ├── context.xml
│ ├── edit.xml
│ └── main.xml
└── values
│ ├── strings.xml
│ └── styles.xml
└── src
└── org
└── nathan
└── jf
└── build
└── prop
└── editor
├── BuildPropEditor.java
└── EditPropActivity.java
/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | *.dex
3 | *.class
4 | *.ap_
5 | *.apk
6 | *.keystore
7 |
--------------------------------------------------------------------------------
/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | Build.prop Editor
4 |
5 |
6 |
7 |
8 |
9 | com.android.ide.eclipse.adt.ResourceManagerBuilder
10 |
11 |
12 |
13 |
14 | com.android.ide.eclipse.adt.PreCompilerBuilder
15 |
16 |
17 |
18 |
19 | org.eclipse.jdt.core.javabuilder
20 |
21 |
22 |
23 |
24 | com.android.ide.eclipse.adt.ApkBuilder
25 |
26 |
27 |
28 |
29 |
30 | com.android.ide.eclipse.adt.AndroidNature
31 | org.eclipse.jdt.core.javanature
32 |
33 |
34 |
--------------------------------------------------------------------------------
/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
14 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | build.prop Editor
2 | Copyright (C) 2012 Nathan Campos
3 |
4 | This program is free software: you can redistribute it and/or modify
5 | it under the terms of the GNU General Public License as published by
6 | the Free Software Foundation, either version 3 of the License, or
7 | (at your option) any later version.
8 |
9 | This program is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | GNU General Public License for more details.
13 |
14 | You should have received a copy of the GNU General Public License
15 | along with this program. If not, see .
16 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # build.prop Editor
2 |
3 | This app will let you easily edit your Android's build.prop file using a intuitive and friendly interface.
4 |
5 | *The developer is not responsible for any problem caused by editing the build.prop file*
6 |
7 | ## Screenshots
8 |
9 | ![Home Page][1] . ![Edit/Add Property][2]
10 |
11 | ## Requirements
12 |
13 | This app is compatible with 2.2 or newer and of course needs root access to write to your Android's ``/system`` directory.
14 |
15 | ## Changelog
16 |
17 | * **v2.0:** Holo redesign
18 | * **v1.0.1:** Minor fixes
19 | * **v1.0:** First release
20 |
21 | ## License
22 |
23 | build.prop Editor is licensed under GPLv3:
24 |
25 | > build.prop Editor
26 | > Copyright (C) 2012 Nathan Campos
27 | >
28 | > This program is free software: you can redistribute it and/or modify
29 | > it under the terms of the GNU General Public License as published by
30 | > the Free Software Foundation, either version 3 of the License, or
31 | > (at your option) any later version.
32 | >
33 | > This program is distributed in the hope that it will be useful,
34 | > but WITHOUT ANY WARRANTY; without even the implied warranty of
35 | > MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
36 | > GNU General Public License for more details.
37 | >
38 | > You should have received a copy of the GNU General Public License
39 | > along with this program. If not, see .
40 |
41 |
42 | [1]: http://i.imgur.com/MthRN.png
43 | [2]: http://i.imgur.com/MthRN.png
--------------------------------------------------------------------------------
/bin/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
14 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/bin/Build.prop Editor.apk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nathanpc/Build.prop-Editor/b3dd61f88a73ee524e9126ff3a447d187d1dc728/bin/Build.prop Editor.apk
--------------------------------------------------------------------------------
/bin/classes.dex:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nathanpc/Build.prop-Editor/b3dd61f88a73ee524e9126ff3a447d187d1dc728/bin/classes.dex
--------------------------------------------------------------------------------
/bin/classes/org/nathan/jf/build/prop/editor/BuildConfig.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nathanpc/Build.prop-Editor/b3dd61f88a73ee524e9126ff3a447d187d1dc728/bin/classes/org/nathan/jf/build/prop/editor/BuildConfig.class
--------------------------------------------------------------------------------
/bin/classes/org/nathan/jf/build/prop/editor/BuildPropEditor$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nathanpc/Build.prop-Editor/b3dd61f88a73ee524e9126ff3a447d187d1dc728/bin/classes/org/nathan/jf/build/prop/editor/BuildPropEditor$1.class
--------------------------------------------------------------------------------
/bin/classes/org/nathan/jf/build/prop/editor/BuildPropEditor.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nathanpc/Build.prop-Editor/b3dd61f88a73ee524e9126ff3a447d187d1dc728/bin/classes/org/nathan/jf/build/prop/editor/BuildPropEditor.class
--------------------------------------------------------------------------------
/bin/classes/org/nathan/jf/build/prop/editor/EditPropActivity$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nathanpc/Build.prop-Editor/b3dd61f88a73ee524e9126ff3a447d187d1dc728/bin/classes/org/nathan/jf/build/prop/editor/EditPropActivity$1.class
--------------------------------------------------------------------------------
/bin/classes/org/nathan/jf/build/prop/editor/EditPropActivity$2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nathanpc/Build.prop-Editor/b3dd61f88a73ee524e9126ff3a447d187d1dc728/bin/classes/org/nathan/jf/build/prop/editor/EditPropActivity$2.class
--------------------------------------------------------------------------------
/bin/classes/org/nathan/jf/build/prop/editor/EditPropActivity$3.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nathanpc/Build.prop-Editor/b3dd61f88a73ee524e9126ff3a447d187d1dc728/bin/classes/org/nathan/jf/build/prop/editor/EditPropActivity$3.class
--------------------------------------------------------------------------------
/bin/classes/org/nathan/jf/build/prop/editor/EditPropActivity$4.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nathanpc/Build.prop-Editor/b3dd61f88a73ee524e9126ff3a447d187d1dc728/bin/classes/org/nathan/jf/build/prop/editor/EditPropActivity$4.class
--------------------------------------------------------------------------------
/bin/classes/org/nathan/jf/build/prop/editor/EditPropActivity$5.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nathanpc/Build.prop-Editor/b3dd61f88a73ee524e9126ff3a447d187d1dc728/bin/classes/org/nathan/jf/build/prop/editor/EditPropActivity$5.class
--------------------------------------------------------------------------------
/bin/classes/org/nathan/jf/build/prop/editor/EditPropActivity.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nathanpc/Build.prop-Editor/b3dd61f88a73ee524e9126ff3a447d187d1dc728/bin/classes/org/nathan/jf/build/prop/editor/EditPropActivity.class
--------------------------------------------------------------------------------
/bin/classes/org/nathan/jf/build/prop/editor/R$attr.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nathanpc/Build.prop-Editor/b3dd61f88a73ee524e9126ff3a447d187d1dc728/bin/classes/org/nathan/jf/build/prop/editor/R$attr.class
--------------------------------------------------------------------------------
/bin/classes/org/nathan/jf/build/prop/editor/R$color.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nathanpc/Build.prop-Editor/b3dd61f88a73ee524e9126ff3a447d187d1dc728/bin/classes/org/nathan/jf/build/prop/editor/R$color.class
--------------------------------------------------------------------------------
/bin/classes/org/nathan/jf/build/prop/editor/R$drawable.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nathanpc/Build.prop-Editor/b3dd61f88a73ee524e9126ff3a447d187d1dc728/bin/classes/org/nathan/jf/build/prop/editor/R$drawable.class
--------------------------------------------------------------------------------
/bin/classes/org/nathan/jf/build/prop/editor/R$id.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nathanpc/Build.prop-Editor/b3dd61f88a73ee524e9126ff3a447d187d1dc728/bin/classes/org/nathan/jf/build/prop/editor/R$id.class
--------------------------------------------------------------------------------
/bin/classes/org/nathan/jf/build/prop/editor/R$layout.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nathanpc/Build.prop-Editor/b3dd61f88a73ee524e9126ff3a447d187d1dc728/bin/classes/org/nathan/jf/build/prop/editor/R$layout.class
--------------------------------------------------------------------------------
/bin/classes/org/nathan/jf/build/prop/editor/R$menu.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nathanpc/Build.prop-Editor/b3dd61f88a73ee524e9126ff3a447d187d1dc728/bin/classes/org/nathan/jf/build/prop/editor/R$menu.class
--------------------------------------------------------------------------------
/bin/classes/org/nathan/jf/build/prop/editor/R$string.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nathanpc/Build.prop-Editor/b3dd61f88a73ee524e9126ff3a447d187d1dc728/bin/classes/org/nathan/jf/build/prop/editor/R$string.class
--------------------------------------------------------------------------------
/bin/classes/org/nathan/jf/build/prop/editor/R.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nathanpc/Build.prop-Editor/b3dd61f88a73ee524e9126ff3a447d187d1dc728/bin/classes/org/nathan/jf/build/prop/editor/R.class
--------------------------------------------------------------------------------
/bin/classes2/org/nathan/jf/build/prop/editor/BuildPropEditor.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nathanpc/Build.prop-Editor/b3dd61f88a73ee524e9126ff3a447d187d1dc728/bin/classes2/org/nathan/jf/build/prop/editor/BuildPropEditor.class
--------------------------------------------------------------------------------
/bin/jarlist.cache:
--------------------------------------------------------------------------------
1 | # cache for current jar dependecy. DO NOT EDIT.
2 | # format is
3 | # Encoding is UTF-8
4 |
--------------------------------------------------------------------------------
/bin/res/drawable-hdpi/ic_action_accept.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nathanpc/Build.prop-Editor/b3dd61f88a73ee524e9126ff3a447d187d1dc728/bin/res/drawable-hdpi/ic_action_accept.png
--------------------------------------------------------------------------------
/bin/res/drawable-hdpi/ic_action_add.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nathanpc/Build.prop-Editor/b3dd61f88a73ee524e9126ff3a447d187d1dc728/bin/res/drawable-hdpi/ic_action_add.png
--------------------------------------------------------------------------------
/bin/res/drawable-hdpi/ic_action_discart.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nathanpc/Build.prop-Editor/b3dd61f88a73ee524e9126ff3a447d187d1dc728/bin/res/drawable-hdpi/ic_action_discart.png
--------------------------------------------------------------------------------
/bin/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nathanpc/Build.prop-Editor/b3dd61f88a73ee524e9126ff3a447d187d1dc728/bin/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/bin/res/drawable-ldpi/ic_action_accept.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nathanpc/Build.prop-Editor/b3dd61f88a73ee524e9126ff3a447d187d1dc728/bin/res/drawable-ldpi/ic_action_accept.png
--------------------------------------------------------------------------------
/bin/res/drawable-ldpi/ic_action_add.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nathanpc/Build.prop-Editor/b3dd61f88a73ee524e9126ff3a447d187d1dc728/bin/res/drawable-ldpi/ic_action_add.png
--------------------------------------------------------------------------------
/bin/res/drawable-ldpi/ic_action_discart.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nathanpc/Build.prop-Editor/b3dd61f88a73ee524e9126ff3a447d187d1dc728/bin/res/drawable-ldpi/ic_action_discart.png
--------------------------------------------------------------------------------
/bin/res/drawable-ldpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nathanpc/Build.prop-Editor/b3dd61f88a73ee524e9126ff3a447d187d1dc728/bin/res/drawable-ldpi/ic_launcher.png
--------------------------------------------------------------------------------
/bin/res/drawable-mdpi/ic_action_accept.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nathanpc/Build.prop-Editor/b3dd61f88a73ee524e9126ff3a447d187d1dc728/bin/res/drawable-mdpi/ic_action_accept.png
--------------------------------------------------------------------------------
/bin/res/drawable-mdpi/ic_action_add.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nathanpc/Build.prop-Editor/b3dd61f88a73ee524e9126ff3a447d187d1dc728/bin/res/drawable-mdpi/ic_action_add.png
--------------------------------------------------------------------------------
/bin/res/drawable-mdpi/ic_action_discart.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nathanpc/Build.prop-Editor/b3dd61f88a73ee524e9126ff3a447d187d1dc728/bin/res/drawable-mdpi/ic_action_discart.png
--------------------------------------------------------------------------------
/bin/res/drawable-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nathanpc/Build.prop-Editor/b3dd61f88a73ee524e9126ff3a447d187d1dc728/bin/res/drawable-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/bin/res/drawable-xhdpi/ic_action_accept.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nathanpc/Build.prop-Editor/b3dd61f88a73ee524e9126ff3a447d187d1dc728/bin/res/drawable-xhdpi/ic_action_accept.png
--------------------------------------------------------------------------------
/bin/res/drawable-xhdpi/ic_action_add.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nathanpc/Build.prop-Editor/b3dd61f88a73ee524e9126ff3a447d187d1dc728/bin/res/drawable-xhdpi/ic_action_add.png
--------------------------------------------------------------------------------
/bin/res/drawable-xhdpi/ic_action_discart.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nathanpc/Build.prop-Editor/b3dd61f88a73ee524e9126ff3a447d187d1dc728/bin/res/drawable-xhdpi/ic_action_discart.png
--------------------------------------------------------------------------------
/bin/res/drawable-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nathanpc/Build.prop-Editor/b3dd61f88a73ee524e9126ff3a447d187d1dc728/bin/res/drawable-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/bin/resources.ap_:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nathanpc/Build.prop-Editor/b3dd61f88a73ee524e9126ff3a447d187d1dc728/bin/resources.ap_
--------------------------------------------------------------------------------
/gen/org/nathan/jf/build/prop/editor/BuildConfig.java:
--------------------------------------------------------------------------------
1 | /** Automatically generated file. DO NOT MODIFY */
2 | package org.nathan.jf.build.prop.editor;
3 |
4 | public final class BuildConfig {
5 | public final static boolean DEBUG = true;
6 | }
--------------------------------------------------------------------------------
/gen/org/nathan/jf/build/prop/editor/R.java:
--------------------------------------------------------------------------------
1 | /* AUTO-GENERATED FILE. DO NOT MODIFY.
2 | *
3 | * This class was automatically generated by the
4 | * aapt tool from the resource data it found. It
5 | * should not be modified by hand.
6 | */
7 |
8 | package org.nathan.jf.build.prop.editor;
9 |
10 | public final class R {
11 | public static final class attr {
12 | }
13 | public static final class color {
14 | public static final int black=0x7f050000;
15 | public static final int grey=0x7f050002;
16 | public static final int white=0x7f050001;
17 | }
18 | public static final class drawable {
19 | public static final int ic_action_accept=0x7f020000;
20 | public static final int ic_action_add=0x7f020001;
21 | public static final int ic_action_discart=0x7f020002;
22 | public static final int ic_launcher=0x7f020003;
23 | }
24 | public static final class id {
25 | public static final int LinearLayout1=0x7f070002;
26 | public static final int add_menu=0x7f070009;
27 | public static final int backup_menu=0x7f07000a;
28 | public static final int context_delete=0x7f070006;
29 | public static final int context_edit=0x7f070005;
30 | public static final int discart_menu=0x7f070007;
31 | public static final int prop_desc=0x7f070004;
32 | public static final int prop_key=0x7f070001;
33 | public static final int prop_name=0x7f070000;
34 | public static final int prop_title=0x7f070003;
35 | public static final int restore_menu=0x7f07000b;
36 | public static final int save_menu=0x7f070008;
37 | }
38 | public static final class layout {
39 | public static final int edit_prop=0x7f030000;
40 | public static final int list_item=0x7f030001;
41 | public static final int main=0x7f030002;
42 | }
43 | public static final class menu {
44 | public static final int context=0x7f060000;
45 | public static final int edit=0x7f060001;
46 | public static final int main=0x7f060002;
47 | }
48 | public static final class string {
49 | public static final int about=0x7f04000b;
50 | public static final int add=0x7f04000a;
51 | public static final int add_prop=0x7f040001;
52 | public static final int app_name=0x7f040000;
53 | public static final int backup=0x7f04000c;
54 | public static final int cancel=0x7f040004;
55 | public static final int discart=0x7f040003;
56 | public static final int edit_key=0x7f040005;
57 | public static final int edit_name=0x7f040006;
58 | public static final int edit_prop_title=0x7f040007;
59 | public static final int restore=0x7f04000d;
60 | public static final int save=0x7f040002;
61 | public static final int unsaved_changes_message=0x7f040009;
62 | public static final int unsaved_changes_title=0x7f040008;
63 | }
64 | }
65 |
--------------------------------------------------------------------------------
/proguard.cfg:
--------------------------------------------------------------------------------
1 | -optimizationpasses 5
2 | -dontusemixedcaseclassnames
3 | -dontskipnonpubliclibraryclasses
4 | -dontpreverify
5 | -verbose
6 | -optimizations !code/simplification/arithmetic,!field/*,!class/merging/*
7 |
8 | -keep public class * extends android.app.Activity
9 | -keep public class * extends android.app.Application
10 | -keep public class * extends android.app.Service
11 | -keep public class * extends android.content.BroadcastReceiver
12 | -keep public class * extends android.content.ContentProvider
13 | -keep public class * extends android.app.backup.BackupAgentHelper
14 | -keep public class * extends android.preference.Preference
15 | -keep public class com.android.vending.licensing.ILicensingService
16 |
17 | -keepclasseswithmembernames class * {
18 | native ;
19 | }
20 |
21 | -keepclasseswithmembers class * {
22 | public (android.content.Context, android.util.AttributeSet);
23 | }
24 |
25 | -keepclasseswithmembers class * {
26 | public (android.content.Context, android.util.AttributeSet, int);
27 | }
28 |
29 | -keepclassmembers class * extends android.app.Activity {
30 | public void *(android.view.View);
31 | }
32 |
33 | -keepclassmembers enum * {
34 | public static **[] values();
35 | public static ** valueOf(java.lang.String);
36 | }
37 |
38 | -keep class * implements android.os.Parcelable {
39 | public static final android.os.Parcelable$Creator *;
40 | }
41 |
--------------------------------------------------------------------------------
/project.properties:
--------------------------------------------------------------------------------
1 | # This file is automatically generated by Android Tools.
2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
3 | #
4 | # This file must be checked in Version Control Systems.
5 | #
6 | # To customize properties used by the Ant build system use,
7 | # "ant.properties", and override values to adapt the script to your
8 | # project structure.
9 |
10 | # Project target.
11 | target=android-14
12 |
--------------------------------------------------------------------------------
/res/drawable-hdpi/ic_action_accept.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nathanpc/Build.prop-Editor/b3dd61f88a73ee524e9126ff3a447d187d1dc728/res/drawable-hdpi/ic_action_accept.png
--------------------------------------------------------------------------------
/res/drawable-hdpi/ic_action_add.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nathanpc/Build.prop-Editor/b3dd61f88a73ee524e9126ff3a447d187d1dc728/res/drawable-hdpi/ic_action_add.png
--------------------------------------------------------------------------------
/res/drawable-hdpi/ic_action_discart.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nathanpc/Build.prop-Editor/b3dd61f88a73ee524e9126ff3a447d187d1dc728/res/drawable-hdpi/ic_action_discart.png
--------------------------------------------------------------------------------
/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nathanpc/Build.prop-Editor/b3dd61f88a73ee524e9126ff3a447d187d1dc728/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/res/drawable-ldpi/ic_action_accept.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nathanpc/Build.prop-Editor/b3dd61f88a73ee524e9126ff3a447d187d1dc728/res/drawable-ldpi/ic_action_accept.png
--------------------------------------------------------------------------------
/res/drawable-ldpi/ic_action_add.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nathanpc/Build.prop-Editor/b3dd61f88a73ee524e9126ff3a447d187d1dc728/res/drawable-ldpi/ic_action_add.png
--------------------------------------------------------------------------------
/res/drawable-ldpi/ic_action_discart.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nathanpc/Build.prop-Editor/b3dd61f88a73ee524e9126ff3a447d187d1dc728/res/drawable-ldpi/ic_action_discart.png
--------------------------------------------------------------------------------
/res/drawable-ldpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nathanpc/Build.prop-Editor/b3dd61f88a73ee524e9126ff3a447d187d1dc728/res/drawable-ldpi/ic_launcher.png
--------------------------------------------------------------------------------
/res/drawable-mdpi/ic_action_accept.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nathanpc/Build.prop-Editor/b3dd61f88a73ee524e9126ff3a447d187d1dc728/res/drawable-mdpi/ic_action_accept.png
--------------------------------------------------------------------------------
/res/drawable-mdpi/ic_action_add.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nathanpc/Build.prop-Editor/b3dd61f88a73ee524e9126ff3a447d187d1dc728/res/drawable-mdpi/ic_action_add.png
--------------------------------------------------------------------------------
/res/drawable-mdpi/ic_action_discart.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nathanpc/Build.prop-Editor/b3dd61f88a73ee524e9126ff3a447d187d1dc728/res/drawable-mdpi/ic_action_discart.png
--------------------------------------------------------------------------------
/res/drawable-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nathanpc/Build.prop-Editor/b3dd61f88a73ee524e9126ff3a447d187d1dc728/res/drawable-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/res/drawable-xhdpi/ic_action_accept.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nathanpc/Build.prop-Editor/b3dd61f88a73ee524e9126ff3a447d187d1dc728/res/drawable-xhdpi/ic_action_accept.png
--------------------------------------------------------------------------------
/res/drawable-xhdpi/ic_action_add.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nathanpc/Build.prop-Editor/b3dd61f88a73ee524e9126ff3a447d187d1dc728/res/drawable-xhdpi/ic_action_add.png
--------------------------------------------------------------------------------
/res/drawable-xhdpi/ic_action_discart.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nathanpc/Build.prop-Editor/b3dd61f88a73ee524e9126ff3a447d187d1dc728/res/drawable-xhdpi/ic_action_discart.png
--------------------------------------------------------------------------------
/res/drawable-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nathanpc/Build.prop-Editor/b3dd61f88a73ee524e9126ff3a447d187d1dc728/res/drawable-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/res/layout/edit_prop.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
13 |
14 |
20 |
21 |
27 |
28 |
34 |
35 |
36 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/res/layout/list_item.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 |
10 |
18 |
19 |
28 |
29 |
--------------------------------------------------------------------------------
/res/layout/main.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
11 |
12 |
--------------------------------------------------------------------------------
/res/menu/context.xml:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/res/menu/edit.xml:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/res/menu/main.xml:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | build.prop Editor
4 | Add Property
5 | Save
6 | Discard
7 | Cancel
8 | Property Key
9 | Property Name
10 | Edit/Add Property
11 | Unsaved Changes
12 | Would you like to set this property?
13 | Add
14 | About
15 | Backup
16 | Restore
17 |
18 |
--------------------------------------------------------------------------------
/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #FF000000
4 | #FFFFFFFF
5 | #FF888888
6 |
7 |
--------------------------------------------------------------------------------
/src/org/nathan/jf/build/prop/editor/BuildPropEditor.java:
--------------------------------------------------------------------------------
1 | package org.nathan.jf.build.prop.editor;
2 |
3 | import java.io.DataOutputStream;
4 | import java.io.File;
5 | import java.io.FileInputStream;
6 | import java.io.IOException;
7 | import java.util.ArrayList;
8 | import java.util.HashMap;
9 | import java.util.List;
10 | import java.util.Map;
11 | import java.util.Properties;
12 |
13 | import android.app.ActionBar;
14 | import android.app.ListActivity;
15 | import android.content.Intent;
16 | import android.os.Bundle;
17 | import android.os.Environment;
18 | import android.view.Menu;
19 | import android.view.MenuInflater;
20 | import android.view.MenuItem;
21 | import android.view.View;
22 | import android.widget.AdapterView;
23 | import android.widget.AdapterView.OnItemClickListener;
24 | import android.widget.ListView;
25 | import android.widget.SimpleAdapter;
26 | import android.widget.Toast;
27 |
28 | public class BuildPropEditor extends ListActivity {
29 | private ListView listView;
30 | private String tempFile;
31 | private boolean refreshList;
32 | private ActionBar actionBar;
33 |
34 | @Override
35 | public void onCreate(Bundle savedInstanceState) {
36 | super.onCreate(savedInstanceState);
37 | setContentView(R.layout.main);
38 |
39 | actionBar = getActionBar();
40 |
41 | listView = getListView();
42 | listView.setTextFilterEnabled(true);
43 |
44 | createTempFile();
45 | populateList();
46 | }
47 |
48 | @Override
49 | public void onDestroy() {
50 | super.onDestroy();
51 | }
52 |
53 | @Override
54 | public void onResume() {
55 | super.onResume();
56 |
57 | // TODO: This isn't working.
58 | if (refreshList) {
59 | // Something was added, better refresh
60 | populateList();
61 | }
62 | }
63 |
64 | @Override
65 | public boolean onCreateOptionsMenu(Menu menu) {
66 | MenuInflater inflater = getMenuInflater();
67 | inflater.inflate(R.menu.main, menu);
68 | return true;
69 | }
70 |
71 | @Override
72 | public boolean onOptionsItemSelected(MenuItem item) {
73 | switch (item.getItemId()) {
74 | case R.id.add_menu:
75 | refreshList = true;
76 | showEdit(null, null);
77 | break;
78 | case R.id.backup_menu:
79 | backup();
80 | break;
81 | case R.id.restore_menu:
82 | restore();
83 | break;
84 | }
85 | return true;
86 | }
87 |
88 | /*@Override
89 | public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) {
90 | super.onCreateContextMenu(menu, v, menuInfo);
91 | MenuInflater inflater = getMenuInflater();
92 | inflater.inflate(R.menu.context, menu);
93 | }
94 |
95 | @Override
96 | public boolean onContextItemSelected(MenuItem item) {
97 | switch (item.getItemId()) {
98 | case R.id.context_edit:
99 | // do one
100 | return true;
101 | case R.id.context_delete:
102 | // do remove
103 | return true;
104 | default:
105 | return false;
106 | }
107 | }*/
108 |
109 | public void populateList() {
110 | final Properties prop = new Properties();
111 | File file = new File(tempFile);
112 | try {
113 | prop.load(new FileInputStream(file));
114 | } catch (IOException e) {
115 | Toast.makeText(getApplicationContext(), "Error: " + e, Toast.LENGTH_SHORT).show();
116 | }
117 |
118 | final String[] pTitle = prop.keySet().toArray(new String[0]);
119 | final List pDesc = new ArrayList();
120 | for (int i = 0; i < pTitle.length; i++) {
121 | pDesc.add(prop.getProperty(pTitle[i]));
122 | }
123 |
124 | ArrayList