chmod unexpected permission error when logged into an actual device

by kooscar » Wed, 29 Oct 2008 07:42:59 GMT


Sponsored Links
 $ ls
ls
sqlite_stmt_journals
cache
sdcard
etc
init
default.prop
logo.rle
init.trout.rc
data
system
sys
proc
init.goldfish.rc
init.rc
sbin
root
dev
$ ls /data/
ls /data/
opendir failed, Permission denied
$ chmod 777 /data/
chmod 777 /data/
Unable to chmod /data/: Operation not permitted
$

I want to change the permission settings for the /data dir, but it
won't let me....


--~--~---------~--~----~------------~-------~--~----~



chmod unexpected permission error when logged into an actual device

by Shane Isbell » Wed, 29 Oct 2008 11:47:18 GMT


 I have the same frustration. This is pretty bad. It is after all, my device.
I wouldn't be happy if I got a computer from Dell and they told me I
couldn't have admin access.

Shane







--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


chmod unexpected permission error when logged into an actual device

by Jean-Baptiste Queru » Fri, 31 Oct 2008 00:43:04 GMT


 Yes, there are other ways. You can drop a signed update image in
/sdcard/update.zip and have the recovery system flash it for you.

The code is here:
 http://git.source.android.com/?p=platform/recovery.git ;a=blob;f=recovery.c
(line 267).

JBQ







--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. appwidget query

Hi all,

I am trying to launch an app widget from another application.

On click of a button in an application, the appwidget is receiving the
message i broadcasted.

I have implemented the appwidgetprovider class.
In the appwidgetprovider class, in the onReceive function i am able to
get the broadcasted message.

My broadcast file is:

package com.example.broadcast;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;

public class broadcast extends Activity implements
View.OnClickListener {
    /** Called when the activity is first created. */

        public static final String ACTION_UPDATE_WIDGET =
"Broadcast_Message";
        public static final String MESSAGE = "message";

        public void onClick(View v) {
              sendBroadcast();
        }

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        Button start = (Button) findViewById(R.id.button);
        start.setOnClickListener(this);

    }

    private void sendBroadcast() {
        Log.i("test", "send broadcast");
        Intent broadcast = new Intent(this, receiver.class);
        broadcast.putExtra(MESSAGE, "Bye");
        broadcast.setAction(ACTION_UPDATE_WIDGET);
        sendBroadcast(broadcast);
        Log.i("test", "after send");
  }

}


My appwidget class is as follows:

package com.example.broadcast;

import android.appwidget.AppWidgetHost;
import android.appwidget.AppWidgetManager;
import android.appwidget.AppWidgetProvider;
import android.appwidget.AppWidgetProviderInfo;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import android.widget.Toast;

public class receiver extends AppWidgetProvider {

        public void onReceive ( Context context,Intent intent ){

                //super.onReceive(context,intent );
                String action = intent.getAction();
                String message="";
                //String packagename="";
                int appwidgetid;

                Log.i("test", "message received");

                if( "Broadcast_Message".equals  ( action ) ) {

                        //String message;
                        Toast.makeText( context, "Broadcast sucessfull...",
Toast.LENGTH_LONG).show();

                        if ( intent.hasExtra(broadcast.MESSAGE)) {

                                message = 
(String)intent.getCharSequenceExtra(broadcast.MESSAGE);
                                Toast.makeText( context, message, 
Toast.LENGTH_LONG).show();
                        }
                        message = message+"in the for loop";

                        updateSampleWidget( context, appWidgetManager,1,message 
);

                }

        }

        private void updateSampleWidget(Context context,AppWidgetManager
appWidgetManager, int widget, String text) {

                 Log.i("test","In the update sample widget function");
             RemoteViews views = new RemoteViews(context.getPackageName
(),R.layout.widget_provider);

             views.setTextViewText(R.layout.widget, text);
             //Intent intent1 = new Intent(context, broadcast.class);
             //PendingIntent pendingIntent = PendingIntent.getActivity
(context, 0,intent1, 0);
             //views.setOnClickPendingIntent(R.layout.widget, pendingIntent);
             //appWidgetManager.updateAppWidget(widget, views);
        }

}

The widget_provider.xml file contains the appwidget resource file.
The widget.xml file contains a textview element only.

The updateSampleWidget function is not getting executed.

Am i doing anything wrong here???

My questions are:
1. Is it possible to start an appwidet from the onReceive function?
2. Is it possible to start an appwidget from another applicaion by
sending and receiving a broadcast message?

-- 

2. Getting the URL from HttpResonse object

I'm writing both the client and REST server for a web app on Android.
The basic idea is to have the phone post a row in the database. I've
setup the HttpPost request's URL to the form page. Then I send the
data to the form in XML. Upon execution the new entry is displayed
from the database. It's not redirected, rather the new data is just
rendered. There is information I'd like to capture in the URL. Does
anyone know how to get a URL from the HttpResponse object?

I've got lots of code to show the Response's status, the headers, the
params. But nothing to show the current URL.

Thanks in advance!

-- 

3. Question about data transfer when browsing

4. OpenGL gluUnProject

5. restore factory settings

6. licence apache 2.0

7. about /system/bin/playmp3