su permission denied

by Jon Webb » Wed, 15 Apr 2009 00:38:45 GMT


Sponsored Links
 Any idea why I get permission denied when I run su in adb shell? I've
seen multiple posts here claiming all you have to do is run su, but it
never works for me. Why?
--~--~---------~--~----~------------~-------~--~----~



su permission denied

by Dianne Hackborn » Wed, 15 Apr 2009 01:47:50 GMT


 You can't get root on a regular G1.






-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

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


Sponsored Links


Other Threads

1. app widget problem(sdk1.5)

public class SearchWidget extends AppWidgetProvider {
@Override
        public void onUpdate(Context context, AppWidgetManager
appWidgetManager,
                        int[] appWidgetIds) {
                // TODO Auto-generated method stub
                // super.onUpdate(context, appWidgetManager, appWidgetIds);
                RemoteViews views = new RemoteViews(context.getPackageName(),
                                R.layout.widget_search);
                ComponentName thisWidget = new ComponentName(context,
                                SearchWidget.class);
                appWidgetManager.updateAppWidget(thisWidget, views);
        }
}

res/layout/widget_search:

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/
android"
        android:layout_width="fill_parent"
android:layout_height="fill_parent"
        android:orientation="horizontal" android:background="@drawable/
search_bg"
        android:gravity="center_vertical">
        <ImageView android:layout_width="wrap_content"
                android:layout_height="wrap_content" android:paddingRight="3dip"
                android:src="@drawable/google_logo" />
        <AutoCompleteTextView
                android:id="@+id/input" android:layout_width="0dip"
                android:layout_weight="1" android:layout_height="wrap_content"
                android:layout_marginTop="1dip" 
android:hint="@string/search_hint"
                android:focusableInTouchMode="false" android:singleLine="true"
                android:selectAllOnFocus="true" android:completionThreshold="1"
                android:inputType="textAutoComplete"
android:imeOptions="actionSearch"
                android:lines="1" android:dropDownWidth="fill_parent"
                android:popupBackground="@drawable/spinner_dropdown_background" 
/>
        <ImageButton android:id="@+id/search_go_btn"
                android:layout_marginLeft="5dip" 
android:layout_width="wrap_content"
                android:layout_height="wrap_content" 
android:src="@*android:drawable/
ic_btn_search"
                style="@style/SearchButton" />
        <ImageButton android:id="@+id/search_voice_btn"
                android:layout_marginLeft="4dip" 
android:layout_width="wrap_content"
                android:layout_height="wrap_content" 
android:src="@android:drawable/
ic_btn_speak_now"
                style="@style/SearchButton" />
</LinearLayout>

I run,message as follows:

W/AppWidgetHostView(  610): updateAppWidget couldn't find any view,
using error
view
W/AppWidgetHostView(  610): android.view.InflateException: Binary XML
file line
#9: Error inflating class <unknown>

it means AutoCompleteTextView is not found. I change it to
TextView,it's right. Also I change it to a view defined by
myself ,it's wrong.  Why? 3x

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

2. Davlik bug? UNEXPECTED TOP-LEVEL EXCEPTION: java.lang.IllegalArgumentException: already added: [classXXX]

Hi all,

 

I am attempting to integrate some previous libraries that we have within
my new android project.

I have made several attempts including:

            Importing the code as sub-projects (that are built using the
android.jar)

            Importing the code as jar files (from the built code)

            Adding the files directly as part of my project

            Reordering the dependencies

 

However for each one of these scenarios I keep getting the following
exception thrown by the davlik compiler.

It is always picking the first class in the package (ie if I remove that
class, it picks the next and so on).

 

It would appear to me that this is a compiler bug - somehow it's getting
it's dependencies in a twist.

Anyone else experienced this?  And/or have any ideas on how to get
around this one?

 

Cheers,

 

Peter.

 

 

 

[2009-05-11 12:13:01 - Android] 

UNEXPECTED TOP-LEVEL EXCEPTION:

java.lang.IllegalArgumentException: already added:
Lau/com/skytechnologies/ecssdk/comm/CommException;

[2009-05-11 12:13:01 - Android]     at
com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:123)

[2009-05-11 12:13:01 - Android]     at
com.android.dx.dex.file.DexFile.add(DexFile.java:143)

[2009-05-11 12:13:01 - Android]     at
com.android.dx.command.dexer.Main.processClass(Main.java:299)

[2009-05-11 12:13:01 - Android]     at
com.android.dx.command.dexer.Main.processFileBytes(Main.java:276)

[2009-05-11 12:13:01 - Android]     at
com.android.dx.command.dexer.Main.access$100(Main.java:56)

[2009-05-11 12:13:01 - Android]     at
com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:228)

[2009-05-11 12:13:01 - Android]     at
com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.
java:245)

[2009-05-11 12:13:01 - Android]     at
com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java
:130)

[2009-05-11 12:13:01 - Android]     at
com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpene
r.java:190)

[2009-05-11 12:13:01 - Android]     at
com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java
:122)

[2009-05-11 12:13:01 - Android]     at
com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:10
8)

[2009-05-11 12:13:01 - Android]     at
com.android.dx.command.dexer.Main.processOne(Main.java:245)

[2009-05-11 12:13:01 - Android]     at
com.android.dx.command.dexer.Main.processAllFiles(Main.java:183)

[2009-05-11 12:13:01 - Android]     at
com.android.dx.command.dexer.Main.run(Main.java:139)

[2009-05-11 12:13:01 - Android]     at
sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)

[2009-05-11 12:13:01 - Android]     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

[2009-05-11 12:13:01 - Android]     at
java.lang.reflect.Method.invoke(Unknown Source)

[2009-05-11 12:13:01 - Android]     at
com.android.ide.eclipse.adt.build.DexWrapper.run(Unknown Source)

[2009-05-11 12:13:01 - Android]     at
com.android.ide.eclipse.adt.build.ApkBuilder.executeDx(Unknown Source)

[2009-05-11 12:13:01 - Android]     at
com.android.ide.eclipse.adt.build.ApkBuilder.build(Unknown Source)

[2009-05-11 12:13:01 - Android]     at
org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:63
3)

[2009-05-11 12:13:01 - Android]     at
org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)

[2009-05-11 12:13:01 - Android]     at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.ja
va:170)

[2009-05-11 12:13:01 - Android]     at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.ja
va:201)

[2009-05-11 12:13:01 - Android]     at
org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:25
3)

[2009-05-11 12:13:01 - Android]     at
org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)

[2009-05-11 12:13:01 - Android]     at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.ja
va:256)

[2009-05-11 12:13:01 - Android]     at
org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManage
r.java:309)

[2009-05-11 12:13:01 - Android]     at
org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:34
1)

[2009-05-11 12:13:01 - Android]     at
org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:
140)

[2009-05-11 12:13:01 - Android]     at
org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:238)

[2009-05-11 12:13:01 - Android]     at
org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

[2009-05-11 12:13:01 - Android] 1 error; aborting

[2009-05-11 12:13:01 - Android] Conversion to Dalvik format failed with
error 1


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

3. Programatically selection of 3G network connection in G1

4. OpenCOE :: Disabling the audio path

5. BulletML : Source Code

6. How to control composing text more flexibly in Android 1.5 IMF.

7. Assets on device