Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
pebble-unpacked-apk/
playground-unpacked-apk/

/output
/playground-app
*.apk

20 changes: 18 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,22 @@ Currently I document the open issues here, if there'll be enough of them - we'll
### Protocol
- RTL canned responsed (currently they're LTR)

## Pre-requirements
- [APKtool](https://ibotpeaches.github.io/Apktool/install/)
- [Python 2.7](https://www.python.org/downloads/)
- [Android SDK](https://developer.android.com/studio/index.html?hl=eo)
- I tested it on a Linux machine but you should be able to compile on a Mac too

## How to build RTL apk
`$ git clone https://github.com/rosenpin/pebble-rtl`

`$ cd pebble-rtl`

`$ ./configure.sh`

Edit `playground-app/local.properties` and change `sdk.dir` to your SDK directory

`$ ./compile.sh`

## What to change?

Expand All @@ -28,10 +44,10 @@ After changing the code:
- run "build-pg-app.sh"
- run "unpack-pg-app.sh"
- run "unpack-pebble-app.sh"
- run ./auto_patcher.py (defaults are good, but check out --help)
- run python2.7 auto_patcher.py (defaults are good, but check out --help)
- run "generate-apk.sh"
- your home baked apk is at output-apks/bla.apk, not sorry for the name :)

### Other stuff
The patch is supposed to be automatic, but it was never tested :)
In this version - the file to patch is: com/getpebble/android/b/c/e.smali
In this version - the file to patch is: com/getpebble/android/b/c/e.smali
4 changes: 4 additions & 0 deletions clean.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
rm -rf playground-unpacked-apk
rm -rf app-release-unsigned
rm -rf pebble-unpacked-apk

16 changes: 16 additions & 0 deletions compile.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash

set -e

./build-pg-app.sh
# rm -rf playground-unpacked-apk
./unpack-pg-app.sh
# rm -rf pebble-unpacked-apk
./unpack-pebble-app.sh
python2.7 auto_patcher.py
./generate-apk.sh

FILENAME=`ls -t1 input-apks/ | head -n 1`
cp output-apks/$FILENAME output-apks/patched_$FILENAME

./clean.sh
1 change: 1 addition & 0 deletions configure.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
git clone https://github.com/rosenpin/playground-app
14 changes: 0 additions & 14 deletions do_it_all.sh

This file was deleted.

6 changes: 4 additions & 2 deletions generate-apk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

set -e

./apktool-files/apktool b -f -p ./apktool-files/framework -o output-apks/bla.apk pebble-unpacked-apk
apktool b -f pebble-unpacked-apk -o output/$FILENAME
# where do I get jarsigner from?
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore keystore/keystore.jks -storepass 123456 output-apks/bla.apk bla
FILENAME=`ls -t1 input-apks/ | head -n 1`
jarsigner -verbose -keystore keystore/keystore.jks -storepass 123456 output/$FILENAME bla

6 changes: 0 additions & 6 deletions playground-app/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion playground-app/.idea/.name

This file was deleted.

22 changes: 0 additions & 22 deletions playground-app/.idea/compiler.xml

This file was deleted.

3 changes: 0 additions & 3 deletions playground-app/.idea/copyright/profiles_settings.xml

This file was deleted.

18 changes: 0 additions & 18 deletions playground-app/.idea/gradle.xml

This file was deleted.

46 changes: 0 additions & 46 deletions playground-app/.idea/misc.xml

This file was deleted.

9 changes: 0 additions & 9 deletions playground-app/.idea/modules.xml

This file was deleted.

12 changes: 0 additions & 12 deletions playground-app/.idea/runConfigurations.xml

This file was deleted.

6 changes: 0 additions & 6 deletions playground-app/.idea/vcs.xml

This file was deleted.

1 change: 0 additions & 1 deletion playground-app/app/.gitignore

This file was deleted.

95 changes: 0 additions & 95 deletions playground-app/app/app.iml

This file was deleted.

25 changes: 0 additions & 25 deletions playground-app/app/build.gradle

This file was deleted.

Loading