Unable to fix after wrong update - Hero, G2 Touch Q&A, Help & Troubleshooting

Hi everyone,
About 6 months ago I was trying to change my ROM (done it many times using clockword Mod & Nandroid) when I accidentally used a ROM designed for HERO CDMA. It half installed and I'm now left with a very sluggish error ridden phone.
According to the 'About Phone' this is what I'm running...
ANDROID VERSION - 2.3.5
HTC SENSE VERSION - 3.5
SOFTWARE NUMBER - Zero Hero Sense 3.5
KERNEL VERSION - [email protected] #8
BASEBAND VERSION - 63.18.55.06SH_6.35.17.03
BUILD NUMBER - HTX Zero Hero Sense 3.5
BROWSER VERSION - WebKit/533.1
To make it easier to show the problems, I've listed them...
It shows as rooted, but then revokes privileges when it feels like, so I can't actually install anything through ROM MANAGER.
WI-FI doesn't work.
Anything to do with network settings causes an error, so changes can't be made.
HTC SYNC does not find it when connected via USB.
USB connection does not allow access to SD card.
trying to install an RUU does not find the phone
Starting into HBOOT i get:
SD checking...
Loading...[HERODIAG.zip]
No Image!
Loading...[HERODIA3.nbh]
No Image!
Loading...[HERODIA2.nbh]
No Image!
Loading...[HERODIAG.nbh]
No Image!
Loading...[HEROIMG.zip]
No Image!
Loading...[HEROIMG.nbh]
No Image!
Using CMD with SDK i get as far as
adb push recovery-clockwork-2.5.0.7-hero.img /data/local/
adb push flash_image /data/local/
wwhen I try to adb shell chmod 777 /data/local/flash_image I get a Segmentation Error.
I tried to run Universal Androot and it failed, here's the text file....
o for root !
Version: Universal Androot - v1.6.2 beta 5
Detected OS version:10
ls -l /system/etc
ls -l /system/bin/reboot
cat /proc/sys/kernel/osrelease
getprop ro.product.model
Error running exec(). Command: [getprop, ro.product.model] Working Directory: null Environment: null
java.lang.ProcessManager.exec(ProcessManager.java: 224)
java.lang.Runtime.exec(Runtime.java:189)
java.lang.Runtime.exec(Runtime.java:275)
java.lang.Runtime.exec(Runtime.java:210)
com.corner23.android.universalandroot.utils.Utils. genSysInfoReport(Utils.java:111)
com.corner23.android.universalandroot.UniversalAnd root.go4root(UniversalAndroot.java:188)
com.corner23.android.universalandroot.UniversalAnd root.access$2(UniversalAndroot.java:183)
com.corner23.android.universalandroot.UniversalAnd root$1$1.onClick(UniversalAndroot.java:92)
com.android.internal.app.AlertController$ButtonHan dler.handleMessage(AlertController.java:161)
android.os.Handler.dispatchMessage(Handler.java:99 )
android.os.Looper.loop(Looper.java:150)
android.app.ActivityThread.main(ActivityThread.jav a:4389)
java.lang.reflect.Method.invokeNative(Native Method)
java.lang.reflect.Method.invoke(Method.java:507)
com.android.internal.os.ZygoteInit$MethodAndArgsCa ller.run(ZygoteInit.java:849)
com.android.internal.os.ZygoteInit.main(ZygoteInit .java:607)
dalvik.system.NativeStart.main(Native Method)
ls -l /sqlite_stmt_journals
ls -l /data/local/tmp
ls -l /app-cache
run mount
Error running exec(). Command: [mount] Working Directory: null Environment: null
java.lang.ProcessManager.exec(ProcessManager.java: 224)
java.lang.Runtime.exec(Runtime.java:189)
java.lang.Runtime.exec(Runtime.java:275)
java.lang.Runtime.exec(Runtime.java:210)
com.corner23.android.universalandroot.utils.Utils. genSysDebugInfoReport(Utils.java:174)
com.corner23.android.universalandroot.UniversalAnd root.go4root(UniversalAndroot.java:189)
com.corner23.android.universalandroot.UniversalAnd root.access$2(UniversalAndroot.java:183)
com.corner23.android.universalandroot.UniversalAnd root$1$1.onClick(UniversalAndroot.java:92)
com.android.internal.app.AlertController$ButtonHan dler.handleMessage(AlertController.java:161)
android.os.Handler.dispatchMessage(Handler.java:99 )
android.os.Looper.loop(Looper.java:150)
android.app.ActivityThread.main(ActivityThread.jav a:4389)
java.lang.reflect.Method.invokeNative(Native Method)
java.lang.reflect.Method.invoke(Method.java:507)
com.android.internal.os.ZygoteInit$MethodAndArgsCa ller.run(ZygoteInit.java:849)
com.android.internal.os.ZygoteInit.main(ZygoteInit .java:607)
dalvik.system.NativeStart.main(Native Method)
Preparing Exploit ... :true
Preparing busybox binary ... :true
User selected: Not install
Preparing Su binary ... :true
Preparing root toolkit script ... :true
Error running exec(). Command: [/system/bin/mount] Working Directory: null Environment: null
java.lang.ProcessManager.exec(ProcessManager.java: 224)
java.lang.Runtime.exec(Runtime.java:189)
java.lang.Runtime.exec(Runtime.java:275)
java.lang.Runtime.exec(Runtime.java:210)
com.corner23.android.universalandroot.asynctask.Ro otTask.getFilesystemInfo(RootTask.java:176)
com.corner23.android.universalandroot.asynctask.Ro otTask.generateScripts(RootTask.java:214)
com.corner23.android.universalandroot.asynctask.Ro otTask.doInBackground(RootTask.java:356)
com.corner23.android.universalandroot.asynctask.Ro otTask.doInBackground(RootTask.java:1)
android.os.AsyncTask$2.call(AsyncTask.java:185)
java.util.concurrent.FutureTask$Sync.innerRun(Futu reTask.java:306)
java.util.concurrent.FutureTask.run(FutureTask.jav a:138)
java.util.concurrent.ThreadPoolExecutor.runWorker( ThreadPoolExecutor.java:1088)
java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:581)
java.lang.Thread.run(Thread.java:1027)
Install/Uninstall rootkit: false
ls -l /sqlite_stmt_journals
ls -l /data/local/tmp
ls -l /app-cache
run mount
Error running exec(). Command: [mount] Working Directory: null Environment: null
java.lang.ProcessManager.exec(ProcessManager.java: 224)
java.lang.Runtime.exec(Runtime.java:189)
java.lang.Runtime.exec(Runtime.java:275)
java.lang.Runtime.exec(Runtime.java:210)
com.corner23.android.universalandroot.utils.Utils. genSysDebugInfoReport(Utils.java:174)
com.corner23.android.universalandroot.asynctask.Ro otTask.onPostExecute(RootTask.java:398)
com.corner23.android.universalandroot.asynctask.Ro otTask.onPostExecute(RootTask.java:1)
android.os.AsyncTask.finish(AsyncTask.java:417)
android.os.AsyncTask.access$300(AsyncTask.java:127 )
android.os.AsyncTask$InternalHandler.handleMessage (AsyncTask.java:429)
android.os.Handler.dispatchMessage(Handler.java:99 )
android.os.Looper.loop(Looper.java:150)
android.app.ActivityThread.main(ActivityThread.jav a:4389)
java.lang.reflect.Method.invokeNative(Native Method)
java.lang.reflect.Method.invoke(Method.java:507)
com.android.internal.os.ZygoteInit$MethodAndArgsCa ller.run(ZygoteInit.java:849)
com.android.internal.os.ZygoteInit.main(ZygoteInit .java:607)
dalvik.system.NativeStart.main(Native Method)
Any advice greatly received
Cheers
Mike

Related

[Q] Installing Ubuntu errors. Any ideas.

Yo,
Been playing and searching for any possible solution's for hours now, and have not come up with anything.
I'm trying to install Ubuntu on my Vibrant, which is Rooted and currently running Nero V3, with Voodoo disabled.
Everything has been downloaded and placed on the sdcard, although when running the commands, I get this.
Code:
D:\android-sdk-windows\tools>adb shell
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
/ $ su
su
# cd /sdcard/ubuntu
cd /sdcard/ubuntu
# sh ./ubuntu.sh
sh ./ubuntu.sh
modprobe: chdir(2.6.32.9): No such file or directory
←[H←[Jrm failed for -f, No such file or directory
rm failed for -f, No such file or directory
rm failed for -f, No such file or directory
rm failed for -f, No such file or directory
rm failed for -f, No such file or directory
mkdir failed for /data/local/mnt, File exists
←[H←[Jrm failed for -/system/bin/mountonly, No such file or directory
Unable to chmod bootlinux: Operation not permitted
←[H←[J
Ubuntu Chroot Bootloader v0.1
Ubuntu Bootloader is now installed!
This process does NOT damage Android OS!
To enter the Debian Linux console just type 'bootlinux'
At first I thought it was a Busybox issue, though that seems to run fine. Just a quick command to show.
Code:
# cp
cp
BusyBox v1.18.0 (2010-12-30 04:44:34 CST) multi-call binary.
Usage: cp [OPTIONS] SOURCE DEST
Copy SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY
Options:
-a Same as -dpR
-R,-r Recurse
-d,-P Preserve symlinks (default if -R)
-L Follow all symlinks
-H Follow symlinks on command line
-p Preserve file attributes if possible
-f Overwrite
-i Prompt before overwrite
-l,-s Create (sym)links
Anyone have some guidance to make this work? Its not a big deal. Just want to try some linux only apps I use at work.
Cheers

[SOLVED] Help in deodexing stock jelly bean rom?

I am unable to deodex any apps or framework by any method (Samsung galaxy grand i9082 system dump)
i use smali/baksmali v1.4.2 (latest)
i used these lines to deodex a single apk
java -Xmx1024m -jar baksmali-1.4.2.jar -a 16 -d ~/kitchen/WORKING_030413_132838/system/app -d ~/Desktop/deodexed -c :core.jar:core-junit.jar:bouncycastle.jar:ext.jar:framework.jar:framework2.jar:android.policy.jar:services.jar:apache-xml.jar:/sec_edm.jar:seccamera.jar -x ~/kitchen/WORKING_030413_132838/system/app/SecPhoneMultiSIM.odex
The error message i got is this :
[email protected]:~$ cd ktchen/tools/deodex_files
bash: cd: ktchen/tools/deodex_files: No such file or directory
[email protected]:~$ cd ~/kitchen/tools/deodex_files
[email protected]:~/kitchen/tools/deodex_files$ java -Xmx1024m -jar baksmali-1.4.2.jar -a 17 -d ~/kitchen/WORKING_030413_132838/system/app -d ~/Desktop/deodexed -c :core.jar:core-junit.jar:bouncycastle.jar:ext.jar:framework.jar:framework2.jar:android.policy.jar:services.jar:apache-xml.jar:/sec_edm.jar:seccamera.jar -x ~/kitchen/WORKING_030413_132838/system/app/SecPhoneMultiSIM.odex
Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
if i deodex it by dsixda's kitchen i get this error :
NOW AT FILE 43 OF 43 IN system/framework: uiautomator.odex
Disassembling uiautomator.odex ...
java -Xmx512m -jar baksmali.jar -a 16 -d ../framework -x uiautomator.odex
Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
ERROR: Aborting uiautomator.odex
Can anybody help me find a solution ?
problem solved ...and i made a batch file too so that any one finding this problem can get his solution
visit here ---> Click

[Q] Run custom script at boot CM10.1

Hi!
I want to create a script that runs during boot without the need of SManager.
I want to run this command at boot:
Code:
mount -o bind /storage/sdcard1/data/com.google.android.music/ /storage/sdcard0/Android/data/com.google.android.music/
That's what I think I should do:
I put this code in a file called "99userinit" and then push it via adb to "/system/etc/init.d" and then set the permissions of "99userinit" to 755. That's it.
1) Will this script work as expected in CyanogenMod 10.1?
2) Will it survive when I update my nightly?
I am currently running stock 10.1-20130603-NIGHTLY-i9100. No mods whatsoever.
Thank you!
My progress report
So I just tried to do it by myself, here's what happened:
This is what my "99userinit" script looks like:
Code:
#!/system/bin/sh
mount -o bind /storage/sdcard1/data/com.google.android.music/ /storage/sdcard0/Android/data/com.google.android.music/
Did not work as planned, so I went to the teamhacksung irc channel and got some help.
I put it in "/system/etc/init.d/" and restarted the phone. Here's what I got:
Code:
127|[email protected]:/proc $ /system/xbin/run-parts -l /system/etc/init.d
/system/xbin/run-parts -l /system/etc/init.d
/system/etc/init.d/00banner
/system/etc/init.d/90userinit
/system/etc/init.d/99userinit
I/run-parts( 1871): mount: No such file or directory
I/run-parts( 1871): run-parts: /system/etc/init.d/99userinit exited with code 255
I/logwrapper( 1871): /system/xbin/run-parts terminated by exit(1)
Then I put my script to /data/local/userinit.d/" and restarted the phone. Here's what I got:
Code:
[email protected]:/ # /system/xbin/run-parts -l /data/local/userinit.d
/system/xbin/run-parts -l /data/local/userinit.d
/data/local/userinit.d/99userinit
I/busybox ( 1941): mount: No such file or directory
I/busybox ( 1941): run-parts: /data/local/userinit.d/99userinit exited with code 255
I/logwrapper( 1941): busybox terminated by exit(1)
I will update this thread, as I progress further.
Problem solved!
The script now works fine, here's what it looks like:
Code:
#!/system/bin/sh
sleep 50s
mount -o bind /storage/sdcard1/data/com.google.android.music/ /storage/sdcard0/Android/data/com.google.android.music/
Why wait 50 seconds you ask? Because 40 seconds are too short. :-/
Because I am not very satisfied with the sleep command, I will look a bit further into shell scripting and the "ACTION_MEDIA_SCANNER_FINISHED". But seeing this as my first programming project ever, it's going to take me a while

Ubuntu on i9300

I have installed Googy Max dual boot kernel..i start terminal i installed busybox i unzipped ubuntu in ubuntu folder..and i have this error in terminal
Code:
[email protected]:/ $ su
[email protected]:/ # cd sdcard/ubuntu
cd sdcard/ubuntu
[email protected]:/sdcard/ubuntu # sh ubuntu.sh
sh ubuntu.sh
mkdir failed for /data/local/mnt, File exists
Loop device exists
ioctl LOOP_SET_FD failed: Device or resource busy
mount: Device or resource busy
net.ipv4.ip_forward = 1
ubuntu is configured with SSH and VNC servers that can be accessed from the IP:
eth0: No such device
BusyBox v1.21.1-Stericson (2013-07-08 15:58:11 BST) multi-call binary.
Usage: chroot NEWROOT [PROG ARGS]
Run PROG with root directory set to NEWROOT
Shutting down ubuntu ARM
failed: Device or resource busy
losetup: /dev/loop7: No such file or directory
1|[email protected]:/sdcard/ubuntu #
Sent from my GT-I9300 using Tapatalk 4
g9savvas said:
I have installed Googy Max dual boot kernel..i start terminal i installed busybox i unzipped ubuntu in ubuntu folder..and i have this error in terminal
Code:
[email protected]:/ $ su
[email protected]:/ # cd sdcard/ubuntu
cd sdcard/ubuntu
[email protected]:/sdcard/ubuntu # sh ubuntu.sh
sh ubuntu.sh
mkdir failed for /data/local/mnt, File exists
Loop device exists
ioctl LOOP_SET_FD failed: Device or resource busy
mount: Device or resource busy
net.ipv4.ip_forward = 1
ubuntu is configured with SSH and VNC servers that can be accessed from the IP:
eth0: No such device
BusyBox v1.21.1-Stericson (2013-07-08 15:58:11 BST) multi-call binary.
Usage: chroot NEWROOT [PROG ARGS]
Run PROG with root directory set to NEWROOT
Shutting down ubuntu ARM
failed: Device or resource busy
losetup: /dev/loop7: No such file or directory
1|[email protected]:/sdcard/ubuntu #
Sent from my GT-I9300 using Tapatalk 4
Click to expand...
Click to collapse
Check this bro !!
http://forum.xda-developers.com/showthread.php?t=2194237
Thnks solved but now nothing..i wrote the code and the resolution then vnc not connecting
Sent from my GT-I9300 using Tapatalk 4

[Q] Complete Linux Installer: dirname not found; Unable to mount the loop device

I could successfully install Ubuntu 13.10 via Complete Linux Installer under Android 4.4.2 (on a Nexus 5). If I reboot and then open Ubuntu 13.10, everything works fine. But if I close Ubuntu and open it again (without reboot), I get:
[email protected]:/ $
[email protected]:/ $ cd /sdcard/ubuntu
[email protected]:/sdcard/ubuntu $ su
sh /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh /sdcard/ubuntu/ubuntu.img
sh /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh /sdcard/ubuntu/ubuntu.img
[email protected]:/storage/emulated/legacy/ubuntu # sh /data/dcom.zpwebsites .linuxonandroid/files/bootscript.sh /sdcard/ubuntu/ubuntu.img
/data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh[39]: dirname: not found
Checking loop device... FOUND
mount: mounting /dev/block/loop255 on /data/local/mnt failed: Device or resource busy
Error: Unable to mount the loop device!
1|[email protected]:/storage/emulated/legacy/ubuntu #
What is the problem?
Hear hear. Same issue Galaxy S5 g900r4. SELINUX is permissive(finally).

Categories

Resources