Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
129 commits
Select commit Hold shift + click to select a range
d3962d7
- 0.3.0
manusfreedom May 22, 2014
8f60b87
Replace SU Shell by Chainfire
manusfreedom Jun 13, 2014
c8b2c40
0.3.5
manusfreedom Jun 19, 2014
eb6595a
Fixed apk
manusfreedom Jun 19, 2014
bc5819b
Fix goToSleep mode
manusfreedom Jun 21, 2014
8adccbf
Fix GetEvent lib missing
manusfreedom Jun 23, 2014
2983405
Add Date & Time Feature
manusfreedom Jun 24, 2014
246b9f3
0.3.6
manusfreedom Jun 24, 2014
baa5919
0.3.7
manusfreedom Jun 24, 2014
82a2463
Respect BSD source license...
manusfreedom Jun 25, 2014
121c67e
0.3.8 Fix System Bar appear under cover when we touch the screen (onl…
manusfreedom Jun 25, 2014
15c7015
Missing files
manusfreedom Jun 25, 2014
ef56cbd
Fix bad previous commit
manusfreedom Jun 25, 2014
c23ea41
Merge remote-tracking branch 'remotes/upstream/master'
manusfreedom Jun 26, 2014
ea96a50
3.9 Compiled
manusfreedom Jun 26, 2014
5172ec0
Fix build 3.9
manusfreedom Jun 28, 2014
3715e90
Merge remote-tracking branch 'remotes/upstream/master'
manusfreedom Jun 29, 2014
ff6d26a
0.4.0
manusfreedom Jun 30, 2014
5958cd4
Merge remote-tracking branch 'remotes/upstream/master'
manusfreedom Jul 4, 2014
b528071
Merge remote-tracking branch 'remotes/B--B/master'
manusfreedom Jul 4, 2014
35a280f
Build 0.4.1
manusfreedom Jul 6, 2014
de9f147
Merge remote-tracking branch 'remotes/B--B/master'
manusfreedom Jul 6, 2014
1a40da1
Update to last 0.4.1 from B--B
manusfreedom Jul 6, 2014
d584d47
Merge remote-tracking branch 'remotes/B--B/master'
manusfreedom Jul 11, 2014
1870061
Compile last B--B 0.4.2
manusfreedom Jul 11, 2014
7bf458b
Release instead of debug!
manusfreedom Jul 11, 2014
59692f4
Updated android-support lib
manusfreedom Jul 11, 2014
b3b33f7
serrano3gxx support
habeIchVergessen Aug 17, 2014
7af4003
Merge remote-tracking branch 'remotes/durka/master'
manusfreedom Aug 18, 2014
1166f9c
Add real fullscreen (no navigation bar)
manusfreedom Aug 18, 2014
79be22d
0.5.0
manusfreedom Aug 19, 2014
a91258c
Merge commit 'b3b33f74125533482a3e65d5e03cc58f223dbe26'
manusfreedom Aug 19, 2014
1cf8193
0.5.1 Add serrano3gxx support (thank habeIchVergessen)
manusfreedom Aug 19, 2014
fc74f93
2.0.0 beta
manusfreedom Sep 3, 2014
07100b7
Fix null pointer on fresh install
manusfreedom Sep 4, 2014
cb37e2d
Disable single configurationActivity instance
manusfreedom Sep 4, 2014
d3673fa
Fix bug for notification service
manusfreedom Sep 4, 2014
a82158d
Separate System persmissions
manusfreedom Sep 5, 2014
420b279
Fix camera rotation (only original S4?)
manusfreedom Sep 5, 2014
4c4f28b
Rename service_running to getServiceRunning
manusfreedom Sep 5, 2014
21c8da3
Fix widget preference crash after update
manusfreedom Sep 5, 2014
01eb3d0
Remove internal task CS_TASK_CANCEL_BLACKSCREEN and replace by a dire…
manusfreedom Sep 5, 2014
1f94c99
Add restartServices
manusfreedom Sep 5, 2014
77562ba
Change open/close action for Internal Services to avoid broadcast to …
manusfreedom Sep 5, 2014
e1600d1
Add debug info for Camera
manusfreedom Sep 5, 2014
eb7306e
Avoid duplicate call of freeDevice
manusfreedom Sep 5, 2014
d52f25f
Use LocalBroadcastManager
manusfreedom Sep 5, 2014
03733bc
Add possible wake up on ACTION_POWER_CONNECTED & ACTION_POWER_DISCONN…
manusfreedom Sep 5, 2014
157683e
Fix CS_TASK_TORCH_TOGGLE (missing break)
manusfreedom Sep 5, 2014
5060d52
Avoid some set variable
manusfreedom Sep 5, 2014
a04ab7d
Add use OS power management for close/open cover (normally fix CM11 L…
manusfreedom Sep 5, 2014
d356b79
Add missing updated file for previous commit
manusfreedom Sep 5, 2014
a5f2fdd
Avoid some security Warning
manusfreedom Sep 5, 2014
5b6336c
Fix hangup call
manusfreedom Sep 5, 2014
d9ddeb0
Change some local broadcast in sync mode because they are in independ…
manusfreedom Sep 5, 2014
85e8d10
Add Hardware Accelerated support for Default Activity
manusfreedom Sep 5, 2014
8691367
Fix a small log bad type
manusfreedom Sep 5, 2014
7f39945
Revert "Change some local broadcast in sync mode because they are in …
manusfreedom Sep 5, 2014
047163c
Re-add freeDevice on cover open. Because if SCREEN already ON, ACTION…
manusfreedom Sep 5, 2014
9fb78f6
Fix missing mStateManager.getActionCover() for LID open in Real Hall …
manusfreedom Sep 5, 2014
e62247c
Fix hangup call but don't work to reject call.
manusfreedom Sep 6, 2014
79e48f2
Fix camera display.
manusfreedom Sep 6, 2014
33cc3e2
Fix reject call
manusfreedom Sep 6, 2014
bd0f4ce
2.0.0 bug fix release
manusfreedom Sep 6, 2014
cbafbc9
Add debug log
manusfreedom Sep 6, 2014
85cb020
Try to fix restart full
manusfreedom Sep 6, 2014
3f9e823
Binaries with more log and modified restart
manusfreedom Sep 7, 2014
b16bc6f
Fix crash multi stopservices call.
manusfreedom Sep 7, 2014
0054b60
Fix start error on clean install
manusfreedom Sep 7, 2014
49590da
Default mode to debug
manusfreedom Sep 7, 2014
4299c7e
Instruction to install
manusfreedom Sep 7, 2014
7371efe
Fix lockMode as system app or with OS cover management
manusfreedom Sep 7, 2014
46ad635
Run root request in AsyncTask to avoid crash on start
manusfreedom Sep 7, 2014
46319ee
Fix root async
manusfreedom Sep 7, 2014
990c6ae
Fix lock mode preference
manusfreedom Sep 7, 2014
62dd39d
Fix possible crash, but don't fix crash on enable OS cover management
manusfreedom Sep 7, 2014
49721ce
Compile last commits
manusfreedom Sep 7, 2014
ccd05ba
Fix lock mode never enabled.
manusfreedom Sep 7, 2014
1beec99
I hope last fix.
manusfreedom Sep 7, 2014
c7c3e94
Fix null pointer exception with widget
manusfreedom Sep 7, 2014
593d0b4
Fix screen on (confusion between FLAG_KEEP_SCREEN_ON & FLAG_TURN_SCRE…
manusfreedom Sep 7, 2014
dbd3f3d
Enable and fix single instance configurationActivity
manusfreedom Sep 7, 2014
82c4ff9
Added FLAG_KEEP_SCREEN_ON (so now we have FLAG_TURN_SCREEN_ON & FLAG_…
manusfreedom Sep 7, 2014
d36a263
Clear code
manusfreedom Sep 17, 2014
551e9c3
Add logs
manusfreedom Sep 17, 2014
4b04084
Simpler log
manusfreedom Sep 17, 2014
d5bfbed
Add unique identifier to log
manusfreedom Sep 17, 2014
716e83c
Add createID (missing from previous commit)
manusfreedom Sep 17, 2014
54c9b19
Cleaning code
manusfreedom Sep 17, 2014
d2ae8c8
Force focus on DA
manusfreedom Sep 17, 2014
fb21512
Finish activity through broadcast (will fix multi-instance launched)
manusfreedom Sep 17, 2014
31c8044
Reorder call
manusfreedom Sep 17, 2014
41e8da3
Ensure keeping flags
manusfreedom Sep 17, 2014
01e1559
Avoid call finish, during activity startup
manusfreedom Sep 17, 2014
a25b484
Move notification refresh in Resume instead of Start
manusfreedom Sep 17, 2014
2c5b55b
Missing declaration in commit d5bfbedb32b1c53ce7ee9d075ccbf33b3f58fa5e
manusfreedom Sep 17, 2014
2f27649
Move PowerManager to CoreStateManager
manusfreedom Sep 17, 2014
932b9c8
Uniform logs
manusfreedom Sep 17, 2014
9d7e3e3
Ensure context in CoreReceiver
manusfreedom Sep 17, 2014
81c8073
Remove BOOT task, only need to start CoreService to start all service…
manusfreedom Sep 17, 2014
dd9ed7f
Already done in Resume
manusfreedom Sep 18, 2014
9549876
Fix restart
manusfreedom Sep 18, 2014
5716eb0
Fix crash during widget first call
manusfreedom Sep 18, 2014
7fb5e62
Fix OS LID support (thanks to @habeIchVergessen)
manusfreedom Sep 18, 2014
0267671
Remove DIM in preference (not used)
manusfreedom Sep 18, 2014
1c964fe
Rename widget function
manusfreedom Sep 18, 2014
2e3f3a8
Reorder all strings
manusfreedom Sep 18, 2014
8f1ff69
2.0.1 beta
manusfreedom Sep 18, 2014
302fc27
Binary for previous commit 8f1ff69bf1bbb4a8a1b551efb8a509460af7f072
manusfreedom Sep 18, 2014
703876c
LocalBroadcastManager in sync mode to ensure done now (at the call)
manusfreedom Sep 20, 2014
f604127
Fix crash on call from other thread than UI.
manusfreedom Sep 20, 2014
214916b
Optimize layout set flags
manusfreedom Sep 20, 2014
76be678
Fix camera log
manusfreedom Sep 20, 2014
bfcc7fd
Clean logs
manusfreedom Sep 20, 2014
629afaf
Optimize (avoid some sub-thread creation)
manusfreedom Sep 20, 2014
bf22502
Fix warning as system app during major activity
manusfreedom Sep 20, 2014
68217a3
Higher priority to boost latency
manusfreedom Sep 20, 2014
a10e8de
Remove unneeded call
manusfreedom Sep 20, 2014
171601b
Fix screen keep on during camera (2/2)
manusfreedom Sep 20, 2014
4de82c8
Boost CPU during main works
manusfreedom Sep 20, 2014
35d843a
2.0.2 beta
manusfreedom Sep 20, 2014
5412ae5
Fix date & time not updated
manusfreedom Sep 20, 2014
3316dbd
Remove colored debug bar in alternative layout
manusfreedom Sep 20, 2014
130d9e2
Use global string instead of hardcoded for sample
manusfreedom Sep 20, 2014
cff99cf
Add missing string of previous commit
manusfreedom Sep 20, 2014
6219ab3
Apply a Lint recommendation
manusfreedom Sep 20, 2014
6c9c971
Suppress Eclipse/SDK warning
manusfreedom Sep 20, 2014
af7b24c
Prepare some variable
manusfreedom Sep 20, 2014
ca926c9
2.0.2 Fix date
manusfreedom Sep 20, 2014
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
56 changes: 40 additions & 16 deletions AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,40 +17,52 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.durka.hallmonitor"
android:installLocation="internalOnly"
android:versionCode="17"
android:versionName="0.4.2">
android:versionCode="20"
android:versionName="2.0.2">
<uses-sdk android:minSdkVersion="19"
android:targetSdkVersion="19" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.MODIFY_PHONE_STATE" />
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.DEVICE_POWER" />
<uses-permission android:name="android.permission.ACCESS_SUPERUSER" />
<uses-feature android:name="android.hardware.camera"
android:required="false" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.DISABLE_KEYGUARD" />
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
<uses-permission android:name="android.permission.FLASHLIGHT" />
<uses-permission android:name="android.permission.GET_TASKS" />
<!-- System persmissions -->
<uses-permission android:name="android.permission.STOP_APP_SWITCHES" />
<uses-permission android:name="android.permission.DISABLE_KEYGUARD"/>
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>

<uses-permission android:name="android.permission.DEVICE_POWER" />
<uses-permission android:name="android.permission.MODIFY_PHONE_STATE" />
<uses-feature android:name="android.hardware.camera"
android:required="false" />
<application android:allowBackup="true"
android:name="org.durka.hallmonitor.CoreApp"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme">
<activity android:name="org.durka.hallmonitor.MainActivity"
android:launchMode="singleTask"
android:label="@string/app_name">
<!-- TODO delete this -->
</activity>
<activity android:name="org.durka.hallmonitor.Configuration"
android:launchMode="singleTask"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="org.durka.hallmonitor.DefaultActivity"
android:screenOrientation="portrait"
android:configChanges="orientation|keyboardHidden|screenSize"
android:launchMode="singleTask"
android:theme="@style/FullscreenTheme"
android:excludeFromRecents="true"></activity>
<service android:name="org.durka.hallmonitor.CoreService" />
<service android:name="org.durka.hallmonitor.ViewCoverHallService" />
<service android:name="org.durka.hallmonitor.ViewCoverProximityService" />
<service android:name=".NotificationService"
Expand All @@ -68,17 +80,29 @@
<action android:name="android.app.action.DEVICE_ADMIN_ENABLED" />
</intent-filter>
</receiver>
<receiver android:name="org.durka.hallmonitor.BootReceiver">
<receiver android:name="org.durka.hallmonitor.CoreReceiver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<action android:name="android.intent.action.QUICKBOOT_POWERON" />
<action android:name="com.htc.intent.action.QUICKBOOT_POWERON" />
</intent-filter>
<intent-filter android:priority="900">
<action android:name="com.android.deskclock.ALARM_ALERT" />
<action android:name="com.android.deskclock.ALARM_SNOOZE" />
<action android:name="com.android.deskclock.ALARM_DISMISS" />
<action android:name="com.android.deskclock.ALARM_DONE" />
</intent-filter>
<intent-filter android:priority="900">
<action android:name="android.intent.action.ACTION_POWER_CONNECTED" />
<action android:name="android.intent.action.ACTION_POWER_DISCONNECTED" />
</intent-filter>
<intent-filter>
<action android:name="net.cactii.flash2.TOGGLE_FLASHLIGHT" />
<action android:name="net.cactii.flash2.TORCH_STATE_CHANGED" />
</intent-filter>
<intent-filter android:priority="900">
<action android:name="android.intent.action.PHONE_STATE" />
</intent-filter>
</receiver>
<activity android:name="org.durka.hallmonitor.DefaultActivity"
android:screenOrientation="portrait"
android:configChanges="orientation|keyboardHidden|screenSize"
android:launchMode="singleTask"
android:theme="@style/FullscreenTheme"
android:excludeFromRecents="true"></activity>
</application>
</manifest>
94 changes: 92 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,94 @@
- 2.0.2 beta
Major code update:
- Boost performance

Fixes:
- Fix possible crash turning on/off torch
- Fix camera log
- Fix not all but main security warning in log
- Fix screen off during alert/activity

Know issues:
- Alternative layout broken

Next big beta (2.1.0):
- Gesture/Swipe over the cover (bottom&left to: open camera, hang up call, snooze alarm / bottom right to: toggle torch, pickup call, dismiss alarm / bottom top to: pop-up menu)
- Pop-up menu like habeIchVergessen propose (using over cover touch): https://github.com/durka/HallMonitor/issues/18
- Network connectivity indicator (WIFI/2G/3G/4G): https://github.com/durka/HallMonitor/issues/24
- Add landscape layout to avoid rotate animation & rotate background app

- 2.0.1 beta
Major code update:
- Clean/Reorder preferences
- Clean/Reorder strings
- Better preferences change/update
- Better preferences dependencies

Feature:
- Support 3 modes:
Lock (require admin)
OS PowerManagement
Internal/HallMonitor Powermanagement (require system app)

Fixes:
- Fix CM 11 LID support
- Fix widget crash (to confirm)

Know issues:
- Alternative layout broken

Next big beta (2.1.0):
- Gesture/Swipe over the cover (bottom&left to: open camera, hang up call, snooze alarm / bottom right to: toggle torch, pickup call, dismiss alarm / bottom top to: pop-up menu)
- Pop-up menu like habeIchVergessen propose (using over cover touch): https://github.com/durka/HallMonitor/issues/18
- Network connectivity indicator (WIFI/2G/3G/4G): https://github.com/durka/HallMonitor/issues/24
- Add landscape layout to avoid rotate animation & rotate background app

- 2.0.0 beta
Major code update:
- Rewrite many code to exclude much as possible from UI thread
- Add share value between application parts

Feature:
- Normally support last CM 11 LID action (to test): turn off Use internal service
- Support 4x1 widget (from my test)
- Add lock mode option when system app (fixed to lock mode if not system app)
- New Input Controls menu under Optional Features
- Pick Up & Hang Up a call without use command line

Fixes:
- https://github.com/durka/HallMonitor/issues/33 (to test)
- Fix swipe

Know issues:
- Alternative layout broken
- Must force restart application (through Configuration activity) to get widget content updated after the first attachment

Next beta (2.1.0):
- Gesture/Swipe over the cover (bottom&left to: open camera, hang up call, snooze alarm / bottom right to: toggle torch, pickup call, dismiss alarm / bottom top to: pop-up menu)
- Pop-up menu like habeIchVergessen propose (using over cover touch): https://github.com/durka/HallMonitor/issues/18
- Network connectivity indicator (WIFI/2G/3G/4G): https://github.com/durka/HallMonitor/issues/24
- Add landscape layout to avoid rotate animation & rotate background app

- 0.5.1
Features
- Add serrano3gxx support (thank habeIchVergessen)

- 0.5.0
Features
- Add Swipe for Torch
- Add Swipe for Alarm
- Add Swipe for Phone (fix)
- Re-add Real Fullscreen (only for software navigation bar)

Fixes
- Try re-fix (#37) Last used app shows up randomly
- Remove duplicate torch button
- At init unable to turn on directly Torch Control
- Torch icon on CM display correctly (is on/off too when activated outside HallMonitor)
- Clean Alarm code
- Cover mode sensitivity after displaying not before
- Better debug tag

- 0.4.2
Features
- Added a new alternative layout
Expand All @@ -7,8 +98,7 @@
- Stopped TimerTask when receiving a call
Partial Fixes
- Incoming call screen now works 99% times in both layouts when the screen is off and the cover closed. Does not work if the screen is on and the cover closed (need to open and close the cover manually)
- Alternative and media widgets works for 4x1 widgets and for some 4x2 widget, but
only on alternative layout
- Alternative and media widgets works for 4x1 widgets and for some 4x2 widget, but only on alternative layout
- 0.4.1
- Fixes
- Touch screen sensitivity now works on S4 Mini Dual Sim
Expand Down
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,25 @@ If you test this on something other than the above (including another carrier's

Installation / Usage
--------------------

STABLE RELEASE
The current release is: [0.4.1](https://github.com/durka/HallMonitor/tree/0.4.1) (see [changelog](https://github.com/durka/HallMonitor/blob/0.4.1/CHANGELOG.md))

- The easiest way to install the latest stable version is through [F-Droid](https://f-droid.org/), an "app store" for open source. Here is [Hall Monitor's entry](https://f-droid.org/repository/browse/?fdid=org.durka.hallmonitor).
- You can download [`bin/HallMonitor-debug.apk`](https://github.com/durka/HallMonitor/blob/0.4.1/bin/HallMonitor-debug.apk?raw=true) from one of the tagged versions, and install it on your phone assuming you have sideloading turned on.
- You can clone the repository at a tagged version and build from source. It's configured as an Eclipse project, but I haven't even used any external libraries yet, so it "should" be "simple" to build with another system such as Android Studio or ant.

CUSTOM RELEASE (manusfreedom)
- You can download [`HallMonitor.apk`](https://github.com/manusfreedom/HallMonitor/tree/master/download/debug) install it on your phone assuming you have sideloading turned on.
But becareful, you can not install it over a system version!!!
- Install in your ROM as system app, use HallMonitor.zip in Recovery mode (https://github.com/manusfreedom/HallMonitor/tree/master/download/CM_SystemApp)
- To update system app, you must copy to time as root the HallMonitor.apk in /system/app

To switch from one to another you need to completly clean your system (to remove trace of signature):
- Uninstall HallMonitor
- Delete all folders&files named : org.durka.hallmonitor in your /data folder.


Limitations / Known Issues
--------------------------
- Little Things
Expand Down Expand Up @@ -74,3 +87,16 @@ This should serve as quick guide if you're trying to find your way around my cod
- ViewCoverService: the most important file, really, outside of [`Functions.java`](https://github.com/durka/HallMonitor/blob/master/src/org/durka/hallmonitor/Functions.java), is [`ViewCoverService.java`](https://github.com/durka/HallMonitor/blob/master/src/org/durka/hallmonitor/ViewCoverService.java). This is the service that runs all the time and receives events from the proximity sensor, so it can check the hall effect sensor state, and react to view cover events.

Happy hacking! File an issue or contact me at [android@alexburka.com](mailto:android@alexburka.com) with any questions.

Compiling
---------

To compile for OS system (install using recovery):
- In AndroidManifest.xml, just after package="org.durka.hallmonitor add (section manifest):
coreApp="true"
android:sharedUserId="android.uid.system"
- In build_signed_system.bat change MODE to release:
SET MODE=release
- In build_signed_system.sh change MODE to release:
MODE=release

23 changes: 9 additions & 14 deletions cm_certs/build_signed_system.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,13 @@ REM keytool-importkeypair -k cm_platform.keystore -p android -pk8 platform.pk8 -
SET JAVA_HOME=c:\Progra~1\Java\jdk1.8
SET PATH=%PATH%;c:\Progra~1\Java\jdk1.8\Bin;C:\Dev\android-sdk-windows\tools;C:\Dev\android-sdk-windows\platform-tools;C:\Dev\apache-ant\bin
SET ANDROID_SDK_TOOLS=C:\Dev\android-sdk-windows\build-tools\19.1.0
SET ANDROID_HOME=C:\\Dev\\android-sdk-windows
SET ANDROID_NDK=C:\Dev\android-ndk
SET APPNAME=HallMonitor
SET MODE=release
SET MODE=debug
ant clean
del bin\%APPNAME%-%MODE%-unaligned.apk
del bin\%APPNAME%.apk
<<<<<<< HEAD:cm_certs/build_signed_system.txt
%ANDROID_NDK%\ndk-build.cmd clean
%ANDROID_NDK%\ndk-build.cmd
ant %MODE%
IF %MODE%==release java -jar cm_certs\signapk.jar cm_certs\platform.x509.pem cm_certs\platform.pk8 bin\%APPNAME%-%MODE%-unsigned.apk bin\%APPNAME%-%MODE%-unaligned.apk
"%ANDROID_SDK_TOOLS%\zipalign.exe" -v 4 bin\%APPNAME%-%MODE%-unaligned.apk bin\%APPNAME%.apk
=======
del libs\armeabi\libGetEvent.so
del libs\armeabi-v7a\libGetEvent.so
del libs\mips\libGetEvent.so
Expand All @@ -23,9 +17,10 @@ del libs\x86\libGetEvent.so
%ANDROID_NDK%\ndk-build.cmd > build_ndk.log
ant %MODE% > build_ant.log
IF %MODE%==release java -jar cm_certs\signapk.jar cm_certs\platform.x509.pem cm_certs\platform.pk8 bin\%APPNAME%-%MODE%-unsigned.apk bin\%APPNAME%-%MODE%-unaligned.apk > build_sign.log
"%ANDROID_SDK_TOOLS%\zipalign.exe" -v 4 bin\%APPNAME%-%MODE%-unaligned.apk bin\%APPNAME%.apk > build_align.log
xcopy /y bin\%APPNAME%.apk cm_certs\zip\common
xcopy /s /y libs\* cm_certs\zip\lib
del cm_certs\zip\lib\android-support-v4.jar
echo Please create zip with cm_certs\zip contents
>>>>>>> 59692f4... Updated android-support lib:cm_certs/build_signed_system.bat
IF %MODE%==release "%ANDROID_SDK_TOOLS%\zipalign.exe" -v 4 bin\%APPNAME%-%MODE%-unaligned.apk bin\%APPNAME%.apk > build_align.log
IF %MODE%==release xcopy /y bin\%APPNAME%.apk cm_certs\zip\common
IF %MODE%==release xcopy /s /y libs\* cm_certs\zip\lib
IF %MODE%==release xcopy /s /y bin\%APPNAME%.apk download\CM_SystemApp\HallMonitor.apk
IF %MODE%==release del cm_certs\zip\lib\android-support-v4.jar
IF %MODE%==release echo Please create zip with cm_certs\zip contents
IF %MODE%==debug xcopy /s /y bin\%APPNAME%-debug.apk download\debug\HallMonitor.apk
Binary file modified cm_certs/zip/common/HallMonitor.apk
Binary file not shown.
Binary file modified download/CM_SystemApp/HallMonitor.apk
Binary file not shown.
Binary file modified download/CM_SystemApp/HallMonitor.zip
Binary file not shown.
Binary file added download/debug/HallMonitor.apk
Binary file not shown.
8 changes: 4 additions & 4 deletions res/drawable/rounded.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
<corners android:radius="15dp" />

<padding
android:bottom="10dp"
android:left="10dp"
android:right="10dp"
android:top="10dp" />
android:bottom="5dp"
android:left="5dp"
android:right="5dp"
android:top="5dp" />

</shape>
Loading