Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IBBS Support, ADB Over WiFi (WIP) and HALO 2 (inc fixes) #22

Open
wants to merge 35 commits into
base: jb-mr1
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
02c2288
WiFi - Add IBSS supported method
KaosDroid Jul 19, 2013
9002dc5
WiFi - Get the list of supported channels
KaosDroid Jul 19, 2013
7f64ff9
Merge remote-tracking branch 'upstream/jb-mr1' into jb-mr1
KaosDroid Jul 19, 2013
56cf665
remove duplicate entries
KaosDroid Jul 19, 2013
6ef9148
fix duplicate entries
KaosDroid Jul 20, 2013
6057a25
remove some more duplicate entries
KaosDroid Jul 20, 2013
4299692
revert some changes
KaosDroid Jul 20, 2013
4063b3f
testing a few changes
KaosDroid Jul 20, 2013
e293130
remove more duplicate entries
KaosDroid Jul 20, 2013
30a85a2
Merge remote-tracking branch 'upstream/jb-mr1' into jb-mr1
KaosDroid Jul 21, 2013
2120d73
Merge remote-tracking branch 'upstream/jb-mr1' into jb-mr1
KaosDroid Jul 25, 2013
58b3d03
Merge remote-tracking branch 'upstream/jb-mr1' into jb-mr1
KaosDroid Jul 31, 2013
d27f4b5
add ADB over WiFi
KaosDroid Aug 10, 2013
0be9d23
fix wifi over adb
KaosDroid Aug 15, 2013
68fea06
change dalvik location
KaosDroid Aug 15, 2013
4cd5400
revert changes
KaosDroid Aug 26, 2013
6b35834
bring back to same as Root-Box
KaosDroid Aug 26, 2013
d790b16
bring inline with Root-Box
KaosDroid Aug 27, 2013
2819ccf
halo crash?
drcmda Aug 3, 2013
27a939f
HALO Changes
Anu6is Aug 11, 2013
c6257b5
HALO bugfixes
drcmda Aug 12, 2013
2a50976
HALO persistent notifications less pronounced + fixes
drcmda Aug 12, 2013
c27b131
--- HALO 2.0 ---
drcmda Aug 15, 2013
3b515f8
halo, tweaking
drcmda Aug 17, 2013
1e4a172
fix HALO silence bug when notification is dismissed
Anu6is Aug 18, 2013
5cb8b2e
halo, wrong touch calculation, nap trigger fixed
drcmda Aug 19, 2013
a93ae1a
halo, still wrong multitouchhandling
drcmda Aug 19, 2013
cdaac81
halo, fancy flip
drcmda Aug 19, 2013
81c6b6e
halo, flip for incoming messages
drcmda Aug 20, 2013
71bae6a
halo performance, batch revamp
drcmda Aug 20, 2013
38b2841
halo, bugfixes
drcmda Aug 23, 2013
49c57e4
fix xml encoding
KaosDroid Aug 29, 2013
82871bf
fix build issues (HALO Update)
KaosDroid Aug 29, 2013
dd8c647
revert changes made to NotificationManagerService
KaosDroid Aug 29, 2013
67c8b36
revert HALO 2 Changes (for now)
KaosDroid Aug 29, 2013
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions api/current.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13369,6 +13369,8 @@ package android.net.wifi {
field public java.util.BitSet allowedPairwiseCiphers;
field public java.util.BitSet allowedProtocols;
field public boolean hiddenSSID;
field public boolean isIBSS;
field public int frequency;
field public int networkId;
field public java.lang.String preSharedKey;
field public int priority;
Expand Down Expand Up @@ -13457,6 +13459,7 @@ package android.net.wifi {
method public java.util.List<android.net.wifi.ScanResult> getScanResults();
method public int getWifiState();
method public boolean isWifiEnabled();
method public boolean isIbssSupported();
method public boolean pingSupplicant();
method public boolean reassociate();
method public boolean reconnect();
Expand Down
6 changes: 6 additions & 0 deletions core/java/android/provider/Settings.java
Original file line number Diff line number Diff line change
Expand Up @@ -5569,6 +5569,12 @@ public static boolean putFloatForUser(ContentResolver cr, String name, float val
@Deprecated
public static final String ADB_ENABLED = Global.ADB_ENABLED;

/**
* The TCP/IP port to run ADB on, or -1 for USB
* @hide
*/
public static final String ADB_PORT = "adb_port";

/**
* Whether to display the ADB notification.
* @hide
Expand Down
16 changes: 16 additions & 0 deletions services/java/com/android/server/SystemServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
import android.content.IntentFilter;
import android.content.pm.IPackageManager;
import android.content.res.Configuration;
import android.database.ContentObserver;
import android.database.Cursor;
import android.media.AudioService;
import android.net.wifi.p2p.WifiP2pService;
import android.os.Handler;
Expand All @@ -40,6 +42,7 @@
import android.os.SystemClock;
import android.os.SystemProperties;
import android.os.UserHandle;
import android.provider.Settings;
import android.server.search.SearchManagerService;
import android.service.dreams.DreamService;
import android.util.DisplayMetrics;
Expand Down Expand Up @@ -88,6 +91,19 @@ void reportWtf(String msg, Throwable e) {
Log.wtf(TAG, "BOOT FAILURE " + msg, e);
}

private class AdbPortObserver extends ContentObserver {
public AdbPortObserver() {
super(null);
}
@Override
public void onChange(boolean selfChange) {
int adbPort = Settings.Secure.getInt(mContentResolver,
Settings.Secure.ADB_PORT, 0);
// setting this will control whether ADB runs on TCP/IP or USB
SystemProperties.set("service.adb.tcp.port", Integer.toString(adbPort));
}
}

@Override
public void run() {
EventLog.writeEvent(EventLogTags.BOOT_PROGRESS_SYSTEM_RUN,
Expand Down
4 changes: 4 additions & 0 deletions services/java/com/android/server/usb/UsbDeviceManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,10 @@ public void onChange(boolean selfChange) {
}
);

mContentResolver.registerContentObserver(
Settings.Secure.getUriFor(Settings.Secure.ADB_PORT),
false, new AdbSettingsObserver());

// Watch for USB configuration changes
mUEventObserver.startObserving(USB_STATE_MATCH);
mUEventObserver.startObserving(ACCESSORY_START_MATCH);
Expand Down