yashsingh1/xdaforums huggingface dataset:
[Galaxy Note 3 Q&A, Help & Troubleshooting] celderic:
Leankernel on jb worked fine for chrooted linux for me.
[Windows Mobile Development and Hacking General] toyjeep:
Hi there,

I have a vodafone card with an Personal and a Profissional Number in a Qtek 2020i.

The problem is that I want to find a way to put the profissional or personal Vodafone Tag in the today screen to know witch card i'm using!

Do you know a way to do that?
[Windows Mobile Development and Hacking General] woschirmer:
I'm using IP Dashboard. It shows you at least which network you're using.

Wolfgang
[Windows Mobile Development and Hacking General] toyjeep:
That is a good aplication but don't serve my needs that are see the card i'm using in my network in the Qtek 2020i

something like regular phones do:

Vodafone P

Private

or

Vodafone P

Business
[Xperia Play General] vj.xtha:
hey can anyone provide me Jstick 2 Touch.apk file???searched everywhere on the net..but couldn't find it...it is even removed from playstore...:confused::crying:
[Xperia Play General] Miichaell:
Isn't that what you are looking for?

www 67.zippyshare.com/v/32198620/file.html

(just delete space between www and 67)
[Xperia Play General] lordsolrac2:
Dead

Link dead
[Xperia Play General] insane5125:
Go to 4shared.com download blackmarket apk it's like 297 kb bamboo. Thank me later.
[One (M7) Q&A, Help & Troubleshooting] NormanH.91:
Hello when i watch a video the softkey backlight wont turn off :silly:

i have the ViperOne 3.1 RC2 Rom with S-Off and Unlocked Bootloader and i use the newst elementarx kernel

hope somebody can help me
[Sony Xperia ZL] Shotgun4:
Hey guys, I bought this phone Brand new from kijiji and it was sealed from bell and all the sudden about 2 months later I get this error MM #6 ... I guess this means its blacklisted but how and why, please help , is there a way to get it off the blacklist and working ?? thank you
[Sony Xperia ZL] maclancer:
Next time, buy your smartphone from a recognize selling website like Amazon, which can give you warranty in case the phone stop working. I will never buy a phone from craigslist or kijiji... You are risking to lose your money
[Sony Xperia ZL] Shotgun4:
OK, but if I go to bell showing proof of purchase , will they not take it off the blacklist ??
[Samsung Galaxy Nexus] niamul:
When are they going to release it on aosp and when will somebody port it properly for our nexus?
[Samsung Galaxy Nexus] Esteway.619:
Its been released to aosp
[Samsung Galaxy Nexus] ruben46_:
Maybe tomorrow....

Enviado desde mi Galaxy Nexus con KitKat
[Android Apps and Games] highcrypt:
Now HighCrypt with Dropbox and Google Drive support.

Makes it simple to sync between your devices!!

New Features:

• Dropbox and Google Drive support for data syncing.

• Support for tablets

• Lockscreen Themes

• New Menudrawer version

• Added Brazilian Portuguese language

FREE APP.

https://play.google.com/store/apps/details?id=com.highcrypt.lite

http://highcrypt.com

Description

Never forget a password again!

With HighCrypt Password Manager all your private information is really safe and ordered. Your data is encrypted so it is safe, even if your device is lost or stolen.

Password security shouldn't be taken lightly. A scary 90% of people use the same password across all websites. We know using the same password everywhere is stupid, it's not safe, but who can remember dozens of complicated passwords?

No one! so stop using the same password for all your accounts ! That's why everyone should think about using HighCrypt Password Manager.

MAIN FEATURES:

• Dropbox and Google Drive support makes it simple to sync between your devices.

• Support for Tablets.

• Impenetrable security on your device

• 256-bit Advanced Encryption Standard database (The algorithm guarantees one of the highest possible security levels possible with encryption).

• Auto-lock to protect the app from curious eyes.

• Over 120 icons to personalize your records and folders.

• Strong Random Password Generator to prevent your password from being hacked with social engineering, brute force or dictionary attack method.

• Backup/Restore to SD Card to keep data safe.

• Optional self-destruct if someone attempts to guess your password.

• Sensitive fields are masked.

• Eighteen standard templates for fast data entry:

Credit Card

Web account

Email account

Username / Password

Code

Wi-Fi Network

Insurance

Membership

Notes

Bank account

Instant Messaging

FTP Account

Amazon S3

Database

GPS

Web address - URL

Software License

Contacts

• Folders to categorize your records.

• Integrated search.

• Save any record as a favorite for quick access.

• App interface intuitive, clean and easy to use.

• Multilingual User Interface: English, French, Spanish and Portuguese.
[Galaxy Note 10.1 (2014 Edition) General] AstroDigital:
This is not a show stopper or I would of avoided the Note 10.1 2014

Bit disappointed that it does not have USB 3.0 like the Note 3

Wonder why USB 3.0 was not included?
[Android Software/Hacking General [Developers Only]] llrraa2010:
build one module of Android alone

1. run envsetup.sh

USER-NAME@MACHINE-NAME:~/Android$ . ./build/envsetup.sh

after this, there would be some extra commands available:

- croot: Changes directory to the top of the tree.

- m: Makes from the top of the tree.

- mm: Builds all of the modules in the current directory.

- mmm: Builds all of the modules in the supplied directories.

- cgrep: Greps on all local C/C++ files.

- jgrep: Greps on all local Java files.

- resgrep: Greps on all local res/*.xml files.

- godir: Go to the directory containing a file.

2. use mmm to build the module, such as Email app:

USER-NAME@MACHINE-NAME:~/Android$ mmm packages/apps/Email/

After building, there would be one Email.apk in out/target/product/generic/system/app, where all app files are located here. Also, out/target/product/generic/system/bin for exexcutable, out/target/product/generic/system/lib for library, and out/target/product/generic/system/lib/hw for HAL interface files.

3. repack system.img

USER-NAME@MACHINE-NAME:~/Android$ make snod

4. run emulator

USER-NAME@MACHINE-NAME:~/Android$ emulator
[Android Software/Hacking General [Developers Only]] llrraa2010:
HAL in android

please read the attached for details.
[Android Software/Hacking General [Developers Only]] llrraa2010:
test the driver with C executable

1. mkdir hello

USER-NAME@MACHINE-NAME:~/Android$ cd external

USER-NAME@MACHINE-NAME:~/Android/external$ mkdir hello

2. hello.c

#include <stdio.h>

#include <stdlib.h>

#include <fcntl.h>

#define DEVICE_NAME "/dev/hello"

int main(int argc, char** argv)

{

int fd = -1;

int val = 0;

fd = open(DEVICE_NAME, O_RDWR);

if(fd == -1) {

printf("Failed to open device %s.\n", DEVICE_NAME);

return -1;

}

printf("Read original value:\n");

read(fd, &val, sizeof(val));

printf("%d.\n\n", val);

val = 5;

printf("Write value %d to %s.\n\n", val, DEVICE_NAME);

write(fd, &val, sizeof(val));

printf("Read the value again:\n");

read(fd, &val, sizeof(val));

printf("%d.\n\n", val);

close(fd);

return 0;

}

3. Android.mk

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE_TAGS := optional

LOCAL_MODULE := hello

LOCAL_SRC_FILES := $(call all-subdir-c-files)

include $(BUILD_EXECUTABLE)

4. mmm

USER-NAME@MACHINE-NAME:~/Android$ mmm ./external/hello

5. repack system.img

USER-NAME@MACHINE-NAME:~/Android$ make snod

6. run /system/bin/hello

USER-NAME@MACHINE-NAME:~/Android$ emulator -kernel ./kernel/common/arch/arm/boot/zImage &

USER-NAME@MACHINE-NAME:~/Android$ adb shell

root@android:/ # cd system/bin

root@android:/system/bin # ./hello

Read the original value:

0.

Write value 5 to /dev/hello.

Read the value again:

5.
[Android Software/Hacking General [Developers Only]] llrraa2010:
inside android

http://xdaforums.com/showthread.php?t=2514846

I'm fresh in xda, so I can't post in "Android Development and Hacking > Android Software and Hacking General [Developers Only] ". Instead, I have to post on gerneral forum. the location of previous post is http://xdaforums.com/showthread.php?t=2514846.

We haven't talked with any press for publishing yet. So if any press is interested in publishing this book, please contact me. As you all know, writing is a tough job, especially when the book is regarding such a complicated android os system, so cheers, encouragement and funding are welcomed badly. Funding would help us not worry about making a living and dedicate to the writing or even hire some people to accelerate the progress. For funding, please visit:

mod edit

Please Rate the thread 5 Stars and click the Thanks Button! (any of my posts will do!)
[Android Software/Hacking General [Developers Only]] llrraa2010:
service to the Android hardware

1. defite the service interface to hardware

USER-NAME@MACHINE-NAME:~/Android$ cd frameworks/base/core/java/android/os

USER-NAME@MACHINE-NAME:~/Android/frameworks/base/core/java/android/os$ vi IHelloService.aidl

package android.os;

interface IHelloService {

void setVal(int val);

int getVal();

}

2. modify Android.mk in frameworks/base, add IHelloService.aidl to LOCAL_SRC_FILES

## READ ME: ########################################################

##

## When updating this list of aidl files, consider if that aidl is

## part of the SDK API. If it is, also add it to the list below that

## is preprocessed and distributed with the SDK. This list should

## not contain any aidl files for parcelables, but the one below should

## if you intend for 3rd parties to be able to send those objects

## across process boundaries.

##

## READ ME: ########################################################

LOCAL_SRC_FILES += /

....................................................................

core/java/android/os/IVibratorService.aidl /

core/java/android/os/IHelloService.aidl /

core/java/android/service/urlrenderer/IUrlRendererService.aidl /

.....................................................................

3. build

USER-NAME@MACHINE-NAME:~/Android$ mmm frameworks/base

4. new HelloService.java in frameworks/base/services/java/com/android/server

package com.android.server;

import android.content.Context;

import android.os.IHelloService;

import android.util.Slog;

public class HelloService extends IHelloService.Stub {

private static final String TAG = "HelloService";

HelloService() {

init_native();

}

public void setVal(int val) {

setVal_native(val);

}

public int getVal() {

return getVal_native();

}

private static native boolean init_native();

private static native void setVal_native(int val);

private static native int getVal_native();

};

5. modify SystemServer.java in frameworks/base/services/java/com/android/server, change ServerThread::run

[MENTION=439709]override[/MENTION]

public void run() {

....................................................................................

try {

Slog.i(TAG, "DiskStats Service");

ServiceManager.addService("diskstats", new DiskStatsService(context));

} catch (Throwable e) {

Slog.e(TAG, "Failure starting DiskStats Service", e);

}

try {

Slog.i(TAG, "Hello Service");

ServiceManager.addService("hello", new HelloService());

} catch (Throwable e) {

Slog.e(TAG, "Failure starting Hello Service", e);

}

......................................................................................

}

6. build HelloService and repack system.img

USER-NAME@MACHINE-NAME:~/Android$ mmm frameworks/base/services/java

USER-NAME@MACHINE-NAME:~/Android$ make snod
[Android Software/Hacking General [Developers Only]] llrraa2010:
standalone android emulator

1. download Android SDK

2. mkdir D:\AndroidEmulator

3. mkdir D:\AndroidEmulator\images

copy android-sdk-windows\platforms\android-7\images to this dir

4. mkdir D:\AndroidEmulator\skins

copy android-sdk-windows\platforms\android-7\skins to this dir.

4. start emulator

D:\AndroidEmulator>start /b emulator.exe -sysdir d:\AndroidEmulator -system images\system.img -data images\userdata.img -ramdisk images\ramdisk.img -kernel images\kernel-qemu -skindir d:\AndroidEmulator\skins -skin HVGA
[Android Software/Hacking General [Developers Only]] llrraa2010:
Binder driver
[Android Software/Hacking General [Developers Only]] llrraa2010:
start of Service Manager

frameworks/base/cmds/servicemanager

service_manager.c

int main(int argc, char **argv)

{

struct binder_state *bs;

void *svcmgr = BINDER_SERVICE_MANAGER;

bs = binder_open(128*1024);

if (binder_become_context_manager(bs)) {

LOGE("cannot become context manager (%s)\n", strerror(errno));

return -1;

}

svcmgr_handle = svcmgr;

binder_loop(bs, svcmgr_handler);

return 0;

}

frameworks/base/cmds/servicemanager/binder.c

struct binder_state

{

int fd;

void *mapped;

unsigned mapsize;

};

frameworks/base/cmds/servicemanager/binder.h

/* the one magic object */

#define BINDER_SERVICE_MANAGER ((void*) 0)

frameworks/base/cmds/servicemanager/binder.c

struct binder_state *binder_open(unsigned mapsize)

{

struct binder_state *bs;

bs = malloc(sizeof(*bs));

if (!bs) {

errno = ENOMEM;

return 0;

}

bs->fd = open("/dev/binder", O_RDWR);

if (bs->fd < 0) {

fprintf(stderr,"binder: cannot open device (%s)\n",

strerror(errno));

goto fail_open;

}

bs->mapsize = mapsize;

bs->mapped = mmap(NULL, mapsize, PROT_READ, MAP_PRIVATE, bs->fd, 0);

if (bs->mapped == MAP_FAILED) {

fprintf(stderr,"binder: cannot map device (%s)\n",

strerror(errno));

goto fail_map;

}

/* TODO: check version */

return bs;

fail_map:

close(bs->fd);

fail_open:

free(bs);

return 0;

}

kernel/common/drivers/staging/android

binder.c

static struct file_operations binder_fops = {

.owner = THIS_MODULE,

.poll = binder_poll,

.unlocked_ioctl = binder_ioctl,

.mmap = binder_mmap,

.open = binder_open,

.flush = binder_flush,

.release = binder_release,

};

static struct miscdevice binder_miscdev = {

.minor = MISC_DYNAMIC_MINOR,

.name = "binder",

.fops = &binder_fops

};

static int __init binder_init(void)

{

int ret;

binder_proc_dir_entry_root = proc_mkdir("binder", NULL);

if (binder_proc_dir_entry_root)

binder_proc_dir_entry_proc = proc_mkdir("proc", binder_proc_dir_entry_root);

ret = misc_register(&binder_miscdev);

if (binder_proc_dir_entry_root) {

create_proc_read_entry("state", S_IRUGO, binder_proc_dir_entry_root, binder_read_proc_state, NULL);

create_proc_read_entry("stats", S_IRUGO, binder_proc_dir_entry_root, binder_read_proc_stats, NULL);

create_proc_read_entry("transactions", S_IRUGO, binder_proc_dir_entry_root, binder_read_proc_transactions, NULL);

create_proc_read_entry("transaction_log", S_IRUGO, binder_proc_dir_entry_root, binder_read_proc_transaction_log, &binder_transaction_log);

create_proc_read_entry("failed_transaction_log", S_IRUGO, binder_proc_dir_entry_root, binder_read_proc_transaction_log, &binder_transaction_log_failed);

}

return ret;

}

device_initcall(binder_init);

...
[Android Software/Hacking General [Developers Only]] llrraa2010:
getting the Service Manager proxy

frameworks/base/include/binder/IServiceManager.h

sp<IServiceManager> defaultServiceManager();

frameworks/base/libs/binder/IServiceManager.cpp

sp<IServiceManager> defaultServiceManager()

{

if (gDefaultServiceManager != NULL) return gDefaultServiceManager;

{

AutoMutex _l(gDefaultServiceManagerLock);

if (gDefaultServiceManager == NULL) {

gDefaultServiceManager = interface_cast<IServiceManager>(

ProcessState::self()->getContextObject(NULL));

}

}

return gDefaultServiceManager;

}

frameworks/base/libs/binder/Static.cpp

Mutex gDefaultServiceManagerLock;

sp<IServiceManager> gDefaultServiceManager;

class map

frameworks/base/include/binder/IInterface.h

template<typename INTERFACE>

class BpInterface : public INTERFACE, public BpRefBase

{

public:

BpInterface(const sp<IBinder>& remote);

protected:

virtual IBinder* onAsBinder();

};

...
[Android Software/Hacking General [Developers Only]] llrraa2010:
start of Service

MediaPlayerService class map

frameworks/base/include/binder/IInterface.h

template<typename INTERFACE>

class BnInterface : public INTERFACE, public BBinder

{

public:

virtual sp<IInterface> queryLocalInterface(const String16& _descriptor);

virtual const String16& getInterfaceDescriptor() const;

protected:

virtual IBinder* onAsBinder();

};

frameworks/base/media/mediaserver/main_mediaserver.cpp

int main(int argc, char** argv)

{

sp<ProcessState> proc(ProcessState::self());

sp<IServiceManager> sm = defaultServiceManager();

LOGI("ServiceManager: %p", sm.get());

AudioFlinger::instantiate();

MediaPlayerService::instantiate();

CameraService::instantiate();

AudioPolicyService::instantiate();

ProcessState::self()->startThreadPool();

IPCThreadState::self()->joinThreadPool();

}

interaction
[Android Software/Hacking General [Developers Only]] llrraa2010:
Step 4.*ctivityManagerService.broadcastIntent

frameworks/base/services/java/com/android/server/am/ActivityManagerService.java

public final class ActivityManagerService extends ActivityManagerNative
implements Watchdog.Monitor, BatteryStatsImpl.BatteryCallback {
......

public final int broadcastIntent(IApplicationThread caller,
Intent intent, String resolvedType, IIntentReceiver resultTo,
int resultCode, String resultData, Bundle map,
String requiredPermission, boolean serialized, boolean sticky) {
synchronized(this) {
intent = verifyBroadcastLocked(intent);

final ProcessRecord callerApp = getRecordForAppLocked(caller);
final int callingPid = Binder.getCallingPid();
final int callingUid = Binder.getCallingUid();
final long origId = Binder.clearCallingIdentity();
int res = broadcastIntentLocked(callerApp,
callerApp != null ? callerApp.info.packageName : null,
intent, resolvedType, resultTo,
resultCode, resultData, map, requiredPermission, serialized,
sticky, callingPid, callingUid);
Binder.restoreCallingIdentity(origId);
return res;
}
}

......
}
[Android Software/Hacking General [Developers Only]] llrraa2010:
Step 5.*ActivityManagerService.broadcastIntentLocked

frameworks/base/services/java/com/android/server/am/ActivityManagerService.java

public final class ActivityManagerService extends ActivityManagerNative
implements Watchdog.Monitor, BatteryStatsImpl.BatteryCallback {
......

private final int broadcastIntentLocked(ProcessRecord callerApp,
String callerPackage, Intent intent, String resolvedType,
IIntentReceiver resultTo, int resultCode, String resultData,
Bundle map, String requiredPermission,
boolean ordered, boolean sticky, int callingPid, int callingUid) {
intent = new Intent(intent);

......

// Figure out who all will receive this broadcast.
List receivers = null;
List<BroadcastFilter> registeredReceivers = null;
try {
if (intent.getComponent() != null) {
......
} else {
......
registeredReceivers = mReceiverResolver.queryIntent(intent, resolvedType, false);
}
} catch (RemoteException ex) {
......
}

final boolean replacePending =
(intent.getFlags()&Intent.FLAG_RECEIVER_REPLACE_PENDING) != 0;

int NR = registeredReceivers != null ? registeredReceivers.size() : 0;
if (!ordered && NR > 0) {
// If we are not serializing this broadcast, then send the
// registered receivers separately so they don't wait for the
// components to be launched.
BroadcastRecord r = new BroadcastRecord(intent, callerApp,
callerPackage, callingPid, callingUid, requiredPermission,
registeredReceivers, resultTo, resultCode, resultData, map,
ordered, sticky, false);
......
boolean replaced = false;
if (replacePending) {
for (int i=mParallelBroadcasts.size()-1; i>=0; i--) {
if (intent.filterEquals(mParallelBroadcasts.get(i).intent)) {
......
mParallelBroadcasts.set(i, r);
replaced = true;
break;
}
}
}

if (!replaced) {
mParallelBroadcasts.add(r);

scheduleBroadcastsLocked();
}

registeredReceivers = null;
NR = 0;
}

......

}

......
}
[Android Software/Hacking General [Developers Only]] llrraa2010:
Step 6.*ActivityManagerService.scheduleBroadcastsLocked

frameworks/base/services/java/com/android/server/am/ActivityManagerService.java

public final class ActivityManagerService extends ActivityManagerNative
implements Watchdog.Monitor, BatteryStatsImpl.BatteryCallback {
......

private final void scheduleBroadcastsLocked() {
......

if (mBroadcastsScheduled) {
return;
}

mHandler.sendEmptyMessage(BROADCAST_INTENT_MSG);
mBroadcastsScheduled = true;
}

......
}
[Android Software/Hacking General [Developers Only]] llrraa2010:
Step 7. Handler.sendEmptyMessage

frameworks/base/services/java/com/android/server/am/ActivityManagerService.java

public final class ActivityManagerService extends ActivityManagerNative
implements Watchdog.Monitor, BatteryStatsImpl.BatteryCallback {
......

final Handler mHandler = new Handler() {
public void handleMessage(Message msg) {
switch (msg.what) {
......
case BROADCAST_INTENT_MSG: {
......
processNextBroadcast(true);
} break;
......
}
}
}

......
}
[Android Software/Hacking General [Developers Only]] llrraa2010:
Step 8.*ActivityManagerService.processNextBroadcast

frameworks/base/services/java/com/android/server/am/ActivityManagerService.java

public final class ActivityManagerService extends ActivityManagerNative
implements Watchdog.Monitor, BatteryStatsImpl.BatteryCallback {
......

private final void processNextBroadcast(boolean fromMsg) {
synchronized(this) {
BroadcastRecord r;

......

if (fromMsg) {
mBroadcastsScheduled = false;
}

// First, deliver any non-serialized broadcasts right away.
while (mParallelBroadcasts.size() > 0) {
r = mParallelBroadcasts.remove(0);
......
final int N = r.receivers.size();
......
for (int i=0; i<N; i++) {
Object target = r.receivers.get(i);
......

deliverToRegisteredReceiverLocked(r, (BroadcastFilter)target, false);
}
addBroadcastToHistoryLocked(r);
......
}

......

}
}

......
}
[Android Software/Hacking General [Developers Only]] llrraa2010:
Step 9.*ActivityManagerService.deliverToRegisteredReceiverLocked

frameworks/base/services/java/com/android/server/am/ActivityManagerService.java

public final class ActivityManagerService extends ActivityManagerNative
implements Watchdog.Monitor, BatteryStatsImpl.BatteryCallback {
......

private final void deliverToRegisteredReceiverLocked(BroadcastRecord r,
BroadcastFilter filter, boolean ordered) {
boolean skip = false;
if (filter.requiredPermission != null) {
......
}
if (r.requiredPermission != null) {
......
}

if (!skip) {
// If this is not being sent as an ordered broadcast, then we
// don't want to touch the fields that keep track of the current
// state of ordered broadcasts.
if (ordered) {
......
}

try {
......
performReceiveLocked(filter.receiverList.app, filter.receiverList.receiver,
new Intent(r.intent), r.resultCode,
r.resultData, r.resultExtras, r.ordered, r.initialSticky);
......
} catch (RemoteException e) {
......
}
}

}

......
}
[Android Software/Hacking General [Developers Only]] llrraa2010:
Step 10.*ActivityManagerService.performReceiveLocked

frameworks/base/services/java/com/android/server/am/ActivityManagerService.java

public final class ActivityManagerService extends ActivityManagerNative
implements Watchdog.Monitor, BatteryStatsImpl.BatteryCallback {
......

static void performReceiveLocked(ProcessRecord app, IIntentReceiver receiver,
Intent intent, int resultCode, String data, Bundle extras,
boolean ordered, boolean sticky) throws RemoteException {
// Send the intent to the receiver asynchronously using one-way binder calls.
if (app != null && app.thread != null) {
// If we have an app thread, do the call through that so it is
// correctly ordered with other one-way calls.
app.thread.scheduleRegisteredReceiver(receiver, intent, resultCode,
data, extras, ordered, sticky);
} else {
......
}
}

......
}