diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ac8f968 --- /dev/null +++ b/.gitignore @@ -0,0 +1,20 @@ +# Compiled source # +################### +*.com +*.class +*.dll +*.exe +*.o +*.so +*.pyc + +# Logs and databases # +###################### +*.log + +# OS generated files # +###################### +.DS_Store* +ehthumbs.db +Icon? +Thumbs.db diff --git a/README b/README index f062db3..807f99e 100644 --- a/README +++ b/README @@ -3,6 +3,6 @@ Android DB Editor Helps you editing android databases on your phone. This project is open source under appache license http://www.apache.org/licenses/LICENSE-2.0 -Also see NOTICE file +Also see NOTICE file Contact and infos at www.troido.de \ No newline at end of file diff --git a/src/com/troido/dbeditor/ADBConnector.java b/src/com/troido/dbeditor/ADBConnector.java index ad71604..afb1076 100644 --- a/src/com/troido/dbeditor/ADBConnector.java +++ b/src/com/troido/dbeditor/ADBConnector.java @@ -14,7 +14,7 @@ Licensed to the Apache Software Foundation (ASF) under one "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. +under the License. */ package com.troido.dbeditor; @@ -114,15 +114,15 @@ public static File getDatabase(Database db) { throw new RuntimeException(exc); } } - + public static void uploadDB(Database db,File dbFile) { try { - + runADBCommand(db.getDeviceName(), "push "+dbFile.getPath()+" " + db.getDBPath()); - + } catch (Exception exc) { throw new RuntimeException(exc); } } - + } diff --git a/src/com/troido/dbeditor/AndroidDBEditor.java b/src/com/troido/dbeditor/AndroidDBEditor.java index 8c5d4dd..40bb226 100644 --- a/src/com/troido/dbeditor/AndroidDBEditor.java +++ b/src/com/troido/dbeditor/AndroidDBEditor.java @@ -14,7 +14,7 @@ Licensed to the Apache Software Foundation (ASF) under one "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. +under the License. */ package com.troido.dbeditor; @@ -32,7 +32,7 @@ Licensed to the Apache Software Foundation (ASF) under one public class AndroidDBEditor extends JFrame { List devices = new ArrayList(); - + private JTree tree; private DefaultMutableTreeNode createNodes(Device device) { @@ -41,13 +41,13 @@ private DefaultMutableTreeNode createNodes(Device device) { for (Package pack:device.getPackages()){ DefaultMutableTreeNode packageNode= new DefaultMutableTreeNode(pack.getName()); packageNode.setUserObject(pack); - + deviceNode.add(packageNode); for (Database database:pack.getDatabases()){ DefaultMutableTreeNode dbNode=new DefaultMutableTreeNode(database.getName()); dbNode.setUserObject(database); packageNode.add(dbNode); - + } } return deviceNode; @@ -76,11 +76,11 @@ public AndroidDBEditor() { devices.add(d); } tree=createDeviceTree(devices); - + JScrollPane scrollPane = new JScrollPane(tree); this.getContentPane().add(scrollPane); this.setSize(300,600); - + } public static void main(String[] args) { diff --git a/src/com/troido/dbeditor/BookInfo.java b/src/com/troido/dbeditor/BookInfo.java index 4862406..6051120 100644 --- a/src/com/troido/dbeditor/BookInfo.java +++ b/src/com/troido/dbeditor/BookInfo.java @@ -14,7 +14,7 @@ Licensed to the Apache Software Foundation (ASF) under one "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. +under the License. */ package com.troido.dbeditor; diff --git a/src/com/troido/dbeditor/CellRenderer.java b/src/com/troido/dbeditor/CellRenderer.java index ff472ac..4b50c20 100644 --- a/src/com/troido/dbeditor/CellRenderer.java +++ b/src/com/troido/dbeditor/CellRenderer.java @@ -14,7 +14,7 @@ Licensed to the Apache Software Foundation (ASF) under one "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. +under the License. */ package com.troido.dbeditor; diff --git a/src/com/troido/dbeditor/DBChangeListener.java b/src/com/troido/dbeditor/DBChangeListener.java index 110b8f4..81e6eee 100644 --- a/src/com/troido/dbeditor/DBChangeListener.java +++ b/src/com/troido/dbeditor/DBChangeListener.java @@ -14,7 +14,7 @@ Licensed to the Apache Software Foundation (ASF) under one "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. +under the License. */ package com.troido.dbeditor; @@ -36,13 +36,13 @@ public void run(){ } try{ sleep(100); - + }catch(Exception exc){ exc.printStackTrace(); } } } - + public DBChangeListener(Database database,File dbFile) { this.database=database; this.dbFile=dbFile; diff --git a/src/com/troido/dbeditor/Database.java b/src/com/troido/dbeditor/Database.java index 58d6f92..814cebe 100644 --- a/src/com/troido/dbeditor/Database.java +++ b/src/com/troido/dbeditor/Database.java @@ -14,7 +14,7 @@ Licensed to the Apache Software Foundation (ASF) under one "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. +under the License. */ package com.troido.dbeditor; diff --git a/src/com/troido/dbeditor/Device.java b/src/com/troido/dbeditor/Device.java index d66143e..c1f274c 100644 --- a/src/com/troido/dbeditor/Device.java +++ b/src/com/troido/dbeditor/Device.java @@ -14,7 +14,7 @@ Licensed to the Apache Software Foundation (ASF) under one "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. +under the License. */ package com.troido.dbeditor; @@ -77,5 +77,5 @@ public String toString(){ public String getIconPath() { return "img/device.png"; } - + } diff --git a/src/com/troido/dbeditor/Package.java b/src/com/troido/dbeditor/Package.java index c3b7a13..2367ab2 100644 --- a/src/com/troido/dbeditor/Package.java +++ b/src/com/troido/dbeditor/Package.java @@ -14,7 +14,7 @@ Licensed to the Apache Software Foundation (ASF) under one "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. +under the License. */ package com.troido.dbeditor; @@ -33,8 +33,8 @@ public Package(String name) { public void addDatabase(Database db){ this.databases.add(db); } - - + + public String getName() { return name; } @@ -58,5 +58,5 @@ public int compareTo(Package pack) { public String getIconPath() { return "img/package.png"; } - + } diff --git a/src/com/troido/dbeditor/TreeMouseListener.java b/src/com/troido/dbeditor/TreeMouseListener.java index 76ee678..792e1c0 100644 --- a/src/com/troido/dbeditor/TreeMouseListener.java +++ b/src/com/troido/dbeditor/TreeMouseListener.java @@ -14,7 +14,7 @@ Licensed to the Apache Software Foundation (ASF) under one "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. +under the License. */ package com.troido.dbeditor; @@ -32,7 +32,7 @@ Licensed to the Apache Software Foundation (ASF) under one public class TreeMouseListener implements MouseListener { public static String sqlitepath; - + public TreeMouseListener() { if (sqlitepath==null){ try{ @@ -45,7 +45,7 @@ public TreeMouseListener() { } } } - + @Override public void mouseClicked(MouseEvent e) { if (e.getClickCount() == 2) { diff --git a/src/com/troido/dbeditor/TreeObject.java b/src/com/troido/dbeditor/TreeObject.java index f458b5a..83f0366 100644 --- a/src/com/troido/dbeditor/TreeObject.java +++ b/src/com/troido/dbeditor/TreeObject.java @@ -14,7 +14,7 @@ Licensed to the Apache Software Foundation (ASF) under one "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. +under the License. */ package com.troido.dbeditor;