Problem with Jeffs Kitchen... Permission Denied. - MDA, XDA, 1010 Software Upgrading

Here are the errors that I am getting when I try to build a rom based on the 4.00.16 TMobile Rom...
echo Warning: OS type not detected, you may need to set tounicode variable manually
./mkrom.sh: line 89: ./tounicode: Permission deniedwrite xip block starting at 81740000, with 4 fileswrite xip block starting at 81cc0000, with 62 files
Can't exec "./dumprom": Permission denied at drparse.pl line 22.readline() on closed filehandle FH at drparse.pl line 24.
Can't exec "./dumprom": Permission denied at drparse.pl line 22.readline() on closed filehandle FH at drparse.pl line 24.
Can't exec "./dumprom": Permission denied at drparse.pl line 22.readline() on closed filehandle FH at drparse.pl line 24.
!!! your rom is not known to me:
md5: 8ac9fd0d069f71b6113785cf724315ac
this bootloader seems to be V5.22 2003-05-15 17:46:55
This looks like something that Jeff would have to fix...
Anyone have any suggestions otherwise?
J

Related

AdBlock

Has anyone tried to run the adblock script on their phones yet? I keep trying it on mine, and making some minor modifications to the script and to the method of running it, but I cant get it to run.
Unlike on the G1 (and others), there seems to be no hosts file in /system/etc. Was it moved to another location (I can't find it). I manually created a hosts file and moved it to /system/etc, but it did not block anything.
Every time I have tried it, I get the following:
# sh adblock.sh
sh adblock.sh
: not found
: not found
: not found
: not found
: not found
: not found
ADBLOCK: Remounting /system to read-write
mount: No such file or directory
: not found
ADBLOCK: Testing for Internet Connection...
adblock.sh: 139: Syntax error: end of file unexpected (expecting "then")
# busybox sh adblock.sh
busybox sh adblock.sh
: not found line 23:
: not found line 27:
: not found line 32:
: not found line 34:
: not found line 36:
: not found line 41:
ADBLOCK: Remounting /system to read-write
mount: No such file or directory
: not found line 44:
ADBLOCK: Testing for Internet Connection...
adblock.sh: line 139: syntax error: unexpected end of file (expecting "then")\
This is the same one I used on my G1 (without any modifications). Looks like it is bombing out right at the end, but not sure what needs to be changed to get it running.
I run adfree and it work perfectly.
Does that block ads within apps, or just for the browser?
Flak_Munky said:
Does that block ads within apps, or just for the browser?
Click to expand...
Click to collapse
Yeah it blocks ads within apps. Hi AIM doesnt show the ad anymore and is replaced with a white greenish with the Android logo

2.2: cannot downgrade

hi.
i'm trying to root my HTC Legend (stock froyo) but i'm stuck to the downgrade step.
i've created the gold card but when i try to downgrade i get always this:
Code:
C:\Program Files (x86)\Android\android-sdk\tools>crackin.bat
"Copying tools"
2301 KB/s (698452 bytes in 0.296s)
1190 KB/s (76044 bytes in 0.062s)
2413 KB/s (655360 bytes in 0.265s)
"Freeing primary PERM linker"
rm failed for /data/DxDrm/fuse/*, No such file or directory
rm failed for /data/DxDrm/fuse, No such file or directory
rmdir failed for /data/DxDrm/fuse/, No such file or directory
cannot create /data/DxDrm/fuse: directory nonexistent
Unable to chmod /data/DxDrm/fuse: No such file or directory
"Freeing secondary PERM linker"
rmdir failed for /data/DxDrm/fuse/, No such file or directory
rmdir failed for /data/DxDrm, No such file or directory
link failed Permission denied
"Rebooting to normal mode to unlock CHMOD links"
rmdir failed for /data/dontpanic, Permission denied
rm failed for /data/DxDrm, No such file or directory
link failed File exists
link failed Permission denied
"Rebooting to normal mode to downgrade ROM"
/dev/mtd/mtd0: Permission denied
cr--rw---- 1 1001 2002 90, 0 Mar 5 17:17 /dev/mtd/mtd0
error writing misc: Permission denied
"Freeing links"
rm failed for /data/DxDrm, No such file or directory
rm failed for /data/dontpanic, Permission denied
any idea?
- Get visionary+
- Temproot your legend with it
- Use commandline with adb on your pc to flash misc1-2.img.
type the following commands from the folder where you have adb;
Code:
adb shell
su
accept the notification on your phone if one comes up
and then in the command line type this;
Code:
/data/local/flash_image misc /data/local/misc1-2.img
That should be enough to make it possible to run the 1.31 RUU.
same problem here..try many way as stated!!
Azaruc said:
- Get visionary+
- Temproot your legend with it
- Use commandline with adb on your pc to flash misc1-2.img.
type the following commands from the folder where you have adb;
Code:
adb shell
su
accept the notification on your phone if one comes up
and then in the command line type this;
Code:
/data/local/flash_image misc /data/local/misc1-2.img
That should be enough to make it possible to run the 1.31 RUU.
Click to expand...
Click to collapse
thanks for your answer.
please, tell me if i'm right.
i should follow these downgrade steps http://forum.xda-developers.com/showthread.php?t=725430 till the end when i keep receiving the reported error, then i should install visionary, temproot, and from a command prompt (starting from the "tools" directory of the android SDK? and the misc1-2.img goes there?) i should type those command.
and then?
run the RUU_Legend_HTC_WWE_1.31.405.5_R_Radio_47.26.35.04_ 7.05.35.26L_release_126592_signed.exe?
thanks man!
i did it!
I get error [171] anyone have any idea what is the reason ??
please hepl
I tried every way i managed o find
hboot - 1.00.0000
radio-7.13.35.05
soft 3.14.161.1
kernel 2.6.32.17
Azaruc said:
- Get visionary+
- Temproot your legend with it
- Use commandline with adb on your pc to flash misc1-2.img.
type the following commands from the folder where you have adb;
Code:
adb shell
su
accept the notification on your phone if one comes up
and then in the command line type this;
Code:
/data/local/flash_image misc /data/local/misc1-2.img
That should be enough to make it possible to run the 1.31 RUU.
Click to expand...
Click to collapse
i get permissions denied on the last step
/data/local/flash_image misc /data/local/misc1-2.img
help please?
Ohh c'mom dude! What does "adb shell" return? What does "su" return?
Sent from my HTC Legend
chris.chhoeu said:
i get permissions denied on the last step
/data/local/flash_image misc /data/local/misc1-2.img
help please?
Click to expand...
Click to collapse
Did you get the # symbol after the su command? If not, then you have to do temp root again.
What does ADB say? Do you have Debug Mode eneabled?
Sent from my HTC Legend using XDA App
temproot on boot or temproot now pls ?? thanks m8
"Temproot now"
Sent from my HTC Legend using XDA Premium App

[Q] Security policy blocking native software

I am trying to make a rather complicated script work, but with all the shells I've tried so far I'm gettimg permission issues. Tried the sh of two differemt busyboxes, the default mksh and Bash 4.0
Also tried to use different interpreters but nothing changed.
Example of the errors I get:
Code:
/system/bin/threaddl: line 3: /system/bin/basename: Permission denied
/system/bin/threaddl: line 26: /data/local/bin/egrep: Permission denied
/system/bin/threaddl: line 26: /system/xbin/sed: Permission denied
/system/bin/threaddl: line 27: /data/local/bin/egrep: Permission denied
/system/bin/threaddl: line 26: /system/xbin/sed: Permission denied
/system/bin/threaddl: line 26: /data/local/bin/egrep: Permission denied
/system/bin/threaddl: line 27: /data/local/bin/egrep: Permission denied
These executables exist with 755 permission and have the root:root owner property

Root method for all original note 7's

This is the Root method for any and all original Explode 7's.
This works for all note 7 phones running on any and all firmware,(death updated firmwares as well) the only note 7 this method will not work for is the Note7FE. ENJOY!!
https://www.alliancex.org/viewtopic.php?p=16685#p16685
Anyone tried this yet?
rc0310 said:
Anyone tried this yet?
Click to expand...
Click to collapse
it works 100%, doesnt trip knox and no chance of bricking whatsoever
Work on Note 7 with FE Firmware?
Anybody has a copy of the N930W8VLU3APL1 firmware? Just the system.img would work too
DakiX said:
Work on Note 7 with FE Firmware?
Click to expand...
Click to collapse
does not work on the FE because the FE is not dirtycow vulnerable.
akiraO1 said:
This is the Root method for any and all original Explode 7's.
This works for all note 7 phones running on any and all firmware,(death updated firmwares as well) the only note 7 this method will not work for is the Note7FE. ENJOY!!
https://www.alliancex.org/viewtopic.php?p=16685#p16685
Click to expand...
Click to collapse
Hi, what features will stop working after root?
I assume android pay. What about s health, secure folder?
Sent from my SM-N930W8 using Tapatalk
You're in luck.
ARNOB said:
Anybody has a copy of the N930W8VLU3APL1 firmware? Just the system.img would work too
Click to expand...
Click to collapse
Yes i do have it and yes you definitely know by now it's nowhere to be found...100 bucks and ita yours.
C:\Users\User>adb shell
adb server is out of date. killing...
* daemon started successfully *
[email protected]:/ $ id
uid=2000(shell) gid=2000(shell) groups=2000(shell),1004(input),1007(log),1011(adb),1015(sdcard_rw),1028(sdcard_r),3001(net_bt_admin),3002(net_bt),3003(inet),3006(net_bw_stats) context=u:r:shell:s0
[email protected]:/ $ u:r:dnsmasq:s0
/system/bin/sh: u:r:dnsmasq:s0: not found
127|[email protected]:/ $ cd /data/local/tmp/super-chris/
[email protected]:/data/local/tmp/super-chris $ touch file
[email protected]:/data/local/tmp/super-chris $ echo FFFFFFFF >> root.sh
[email protected]:/data/local/tmp/super-chris $ chmod 777 *
cho u:r:init:s0 > /proc/self/attr/current <
cho u:r:init:s0 > /proc/self/attr/exec <
data/local/tmp/super-chris/root.sh <
mount: Permission denied
mount: Permission denied
mount: Permission denied
mount: Permission denied
mount: Permission denied
mount: Permission denied
mount: Permission denied
mount: Permission denied
mount: Permission denied
mount: Permission denied
mount: Permission denied
mount: Permission denied
mount: Permission denied
mount: Permission denied
Usage: mount [-r] [-w] [-o options] [-t type] device directory
mount: Permission denied
mount: Permission denied
mount: Permission denied
mount: Permission denied
mount: Permission denied
mount: Permission denied
mount: Permission denied
mount: Permission denied
mount: Permission denied
mount: Permission denied
mount: Permission denied
mount: Permission denied
mount: Permission denied
mount: Permission denied
mount: Permission denied
chmod: chmod '/data' to 40777: Permission denied
dd: /data/su.img: Permission denied
dd: /cache/su.img: Permission denied
/data/local/tmp/super-chris/root.sh[36]: e2fsck: can't execute: Permission denied
/data/local/tmp/super-chris/root.sh[37]: resize2fs: can't execute: Permission denied
/data/local/tmp/super-chris/root.sh[38]: e2fsck: can't execute: Permission denied
/data/local/tmp/super-chris/root.sh[39]: resize2fs: can't execute: Permission denied
dd: /sbin/su: Permission denied
dd: /sbin/daemonsu: Permission denied
dd: /sbin/sukernel: Permission denied
dd: /sbin/sush: Permission denied
dd: /sbin/supolicy: Permission denied
dd: /sbin/app_process: Permission denied
dd: /sbin/libsupol.so: Permission denied
dd: /file_contexts: Read-only file system
dd: /sbin/launch_daemonsu.sh: Permission denied
mkdir: '/su': Read-only file system
dd: /su/su: No such file or directory
dd: /su/daemonsu: No such file or directory
dd: /su/sukernel: No such file or directory
dd: /su/sush: No such file or directory
dd: /su/supolicy: No such file or directory
dd: /su/app_process: No such file or directory
dd: /su/libsupol.so: No such file or directory
dd: /file_contexts: Read-only file system
chmod: chmod '/sbin' to 40777: Read-only file system
chmod: No /sbin: Permission denied
chmod: /su: No such file or directory
Function: selinux_compare_spd_ram, index[3], priority [2], priority version is VE=SEPF_SECMOBILE_6.0.1_0013
SELinux: Loaded file_contexts contexts from /file_contexts.
SELinux: Could not get canonical path /su/* restorecon: No such file or directory.
restorecon: restorecon failed: /su/*: No such file or directory
sh: /sbin/launch_daemonsu.sh: Permission denied
/data/local/tmp/super-chris/root.sh[65]: FFFFFFFF: not found
---------- Post added at 10:16 AM ---------- Previous post was at 10:14 AM ----------
heres my log
i chmod 777 the file before I run it root.sh did the nmake commands first then the uid stuff
any help I have to return device today steps in the right direction appreciated thanks
christiansfreeman said:
C:\Users\User>adb shell
adb server is out of date. killing...
* daemon started successfully *
[email protected]:/ $ id
uid=2000(shell) gid=2000(shell) groups=2000(shell),1004(input),1007(log),1011(adb),1015(sdcard_rw),1028(sdcard_r),3001(net_bt_admin),3002(net_bt),3003(inet),3006(net_bw_stats) context=u:r:shell:s0
[email protected]:/ $ u:r:dnsmasq:s0
/system/bin/sh: u:r:dnsmasq:s0: not found
127|[email protected]:/ $ cd /data/local/tmp/super-chris/
[email protected]:/data/local/tmp/super-chris $ touch file
[email protected]:/data/local/tmp/super-chris $ echo FFFFFFFF >> root.sh
[email protected]:/data/local/tmp/super-chris $ chmod 777 *
cho u:r:init:s0 > /proc/self/attr/current <
cho u:r:init:s0 > /proc/self/attr/exec <
data/local/tmp/super-chris/root.sh <
mount: Permission denied
mount: Permission denied
mount: Permission denied
mount: Permission denied
mount: Permission denied
mount: Permission denied
mount: Permission denied
mount: Permission denied
mount: Permission denied
mount: Permission denied
mount: Permission denied
mount: Permission denied
mount: Permission denied
mount: Permission denied
Usage: mount [-r] [-w] [-o options] [-t type] device directory
mount: Permission denied
mount: Permission denied
mount: Permission denied
mount: Permission denied
mount: Permission denied
mount: Permission denied
mount: Permission denied
mount: Permission denied
mount: Permission denied
mount: Permission denied
mount: Permission denied
mount: Permission denied
mount: Permission denied
mount: Permission denied
mount: Permission denied
chmod: chmod '/data' to 40777: Permission denied
dd: /data/su.img: Permission denied
dd: /cache/su.img: Permission denied
/data/local/tmp/super-chris/root.sh[36]: e2fsck: can't execute: Permission denied
/data/local/tmp/super-chris/root.sh[37]: resize2fs: can't execute: Permission denied
/data/local/tmp/super-chris/root.sh[38]: e2fsck: can't execute: Permission denied
/data/local/tmp/super-chris/root.sh[39]: resize2fs: can't execute: Permission denied
dd: /sbin/su: Permission denied
dd: /sbin/daemonsu: Permission denied
dd: /sbin/sukernel: Permission denied
dd: /sbin/sush: Permission denied
dd: /sbin/supolicy: Permission denied
dd: /sbin/app_process: Permission denied
dd: /sbin/libsupol.so: Permission denied
dd: /file_contexts: Read-only file system
dd: /sbin/launch_daemonsu.sh: Permission denied
mkdir: '/su': Read-only file system
dd: /su/su: No such file or directory
dd: /su/daemonsu: No such file or directory
dd: /su/sukernel: No such file or directory
dd: /su/sush: No such file or directory
dd: /su/supolicy: No such file or directory
dd: /su/app_process: No such file or directory
dd: /su/libsupol.so: No such file or directory
dd: /file_contexts: Read-only file system
chmod: chmod '/sbin' to 40777: Read-only file system
chmod: No /sbin: Permission denied
chmod: /su: No such file or directory
Function: selinux_compare_spd_ram, index[3], priority [2], priority version is VE=SEPF_SECMOBILE_6.0.1_0013
SELinux: Loaded file_contexts contexts from /file_contexts.
SELinux: Could not get canonical path /su/* restorecon: No such file or directory.
restorecon: restorecon failed: /su/*: No such file or directory
sh: /sbin/launch_daemonsu.sh: Permission denied
/data/local/tmp/super-chris/root.sh[65]: FFFFFFFF: not found
---------- Post added at 10:16 AM ---------- Previous post was at 10:14 AM ----------
heres my log
i chmod 777 the file before I run it root.sh did the nmake commands first then the uid stuff
any help I have to return device today steps in the right direction appreciated thanks
Click to expand...
Click to collapse
looking at your logs you literally didnt follow the instuctions at all.
right after you type nmake run you have to turn on your mobile hotspot on the device and wait until it loads, then rur off mobile hot spot. right after u type nmake reverse you have to turn on your mobile hotspot on the device again and wait for it to finish loading and then turn off mobile hotspot. Then when you type nmake connect it should look like its hanging, there should not be your devices name followed by a $ or #, its just blank. at this point type in id and youll see that you are root. the type in : echo u:r:init:s0 > /proc/self/attr/current and then type in : echo u:r:init:s0 > /proc/self/attr/exec.
and lastly type in : sh /data/local/tmp/super-chris/root.sh
Now you are full SuperSu root, you csn type in adb shell and then su and youll see a # but know this, it isnt permanent yet so when you reboot, the root disappears and you have to do it over again, im still working on trying to mount the system to make it permanent.
Tried this step by step and doesn't work on my T-Mobile Note 7...
When on Step 12, I run the "/data/local/tmp/super-chris/root.sh" command and receive the following: (And, YES I am able to "adb push the files" and can see them using Root Browser)
C:\ndk\build>nmake connect
Microsoft (R) Program Maintenance Utility Version 14.11.25547.0
Copyright (C) Microsoft Corporation. All rights reserved.
"there is no prompt, type ls to test connection!!"
nc localhost 4040
id
uid=0(root) gid=0(root) groups=0(root) context=u:r:dnsmasq:s0
echo u:r:init:s0 > /proc/self/attr/current
echo u:r:init:s0 > /proc/self/attr/exec
/data/local/tmp/super-chris/root.sh
/system/bin/sh: <stdin>[4]: /data/local/tmp/super-chris/root.sh: not found
Here's the ADB push results:
C:\ADB\platform-tools>adb push C:\ADB\platform-tools\super-chris\ /data/local/tmp
C:\ADB\platform-tools\super-chris\: 14... 1.5 MB/s (103302641 bytes in 64.683s)
cplabaunza said:
Tried this step by step and doesn't work on my T-Mobile Note 7...
When on Step 12, I run the "/data/local/tmp/super-chris/root.sh" command and receive the following: (And, YES I am able to "adb push the files" and can see them using Root Browser)
C:\ndk\build>nmake connect
Microsoft (R) Program Maintenance Utility Version 14.11.25547.0
Copyright (C) Microsoft Corporation. All rights reserved.
"there is no prompt, type ls to test connection!!"
nc localhost 4040
id
uid=0(root) gid=0(root) groups=0(root) context=u:r:dnsmasq:s0
echo u:r:init:s0 > /proc/self/attr/current
echo u:r:init:s0 > /proc/self/attr/exec
/data/local/tmp/super-chris/root.sh
/system/bin/sh: <stdin>[4]: /data/local/tmp/super-chris/root.sh: not found
Here's the ADB push results:
C:\ADB\platform-tools>adb push C:\ADB\platform-tools\super-chris\ /data/local/tmp
C:\ADB\platform-tools\super-chris\: 14... 1.5 MB/s (103302641 bytes in 64.683s)
Click to expand...
Click to collapse
After pushing the folder to /data/local/tmp you have to type adb shell chmod -R 0777 /data/local/tmp
Also type ls /data/local/tmp/super-chris to see what's in the folder, it might be root1.sh but I'm pretty sure it's root.sh
akiraO1 said:
After pushing the folder to /data/local/tmp you have to type adb shell chmod -R 0777 /data/local/tmp
Also type ls /data/local/tmp/super-chris to see what's in the folder, it might be root1.sh but I'm pretty sure it's root.sh
Click to expand...
Click to collapse
Thank you for the suggestions...I will give them a try and report back. :good:
Ok...I can confirm the Temp Root instructions work with changing the file/folder permissions step. Unfortunately when performing certain Root functions, such as allowing Ad Block to update the Host file, the phone reboots...I tried this about 5 times all with the same result and just gave up and installed Blokada instead.

Help downloading the new kernel

The old instructions from Nvidia (new ones aren't available yet) say to set up the git directory with "repo init -u git://nv-tegra.nvidia.com/manifest/android/binary.git -b rel-24-uda-r1.4-partner -m tlk/t210.xml". Do I use the same branch for the Oreo sources, or do I switch to the new "rel-29-r3-partner" branch? Thanks
Well, I tried compiling the current branch and it gave me a Nougat kernel, so I'm guessing Oreo is on rel29. However, it seems to be incomplete. "Repo sync" gave me the following error:
Code:
..
Fetching projects: 95% (534/562) Fetching project android/platform/external/seccomp-tests
Fetching project android/platform/prebuilts/build-tools
Fetching project tegra/prebuilts-licensed-binary-tlk-t210
fatal: Couldn't find remote ref refs/heads/stage-main-partner
fatal: Couldn't find remote ref refs/heads/stage-main-partner
error: Cannot fetch tegra/prebuilts-licensed-binary-tlk-t210
error: Exited sync due to fetch errors
I found I could bypass the error by editing .repo/manifests/tlk/t210.xml and commenting out the line for the prebuilt binaries, then downloading them from https://nv-tegra.nvidia.com/gitweb/?p=tegra/prebuilts-licensed-binary-tlk-t210.git;a=shortlog;h=refs/heads/rel-29-r3-partner. But I ran into another problem.
Code:
$ lunch foster_e-userdebug
/bin/bash: build/tools/normalize_path.py: Permission denied
/bin/bash: build/tools/normalize_path.py: Permission denied
/bin/bash: build/tools/normalize_path.py: Permission denied
/bin/bash: build/tools/normalize_path.py: Permission denied
/bin/bash: build/tools/normalize_path.py: Permission denied
/bin/bash: build/tools/normalize_path.py: Permission denied
/bin/bash: build/tools/normalize_path.py: Permission denied
/bin/bash: build/tools/normalize_path.py: Permission denied
/bin/bash: build/tools/normalize_path.py: Permission denied
/bin/bash: build/tools/normalize_path.py: Permission denied
/bin/bash: build/tools/normalize_path.py: Permission denied
/bin/bash: build/tools/normalize_path.py: Permission denied
/bin/bash: build/tools/normalize_path.py: Permission denied
/bin/bash: build/tools/normalize_path.py: Permission denied
/bin/bash: build/tools/normalize_path.py: Permission denied
/bin/bash: build/tools/normalize_path.py: Permission denied
/bin/bash: build/tools/normalize_path.py: Permission denied
/bin/bash: build/tools/normalize_path.py: Permission denied
/bin/bash: build/tools/normalize_path.py: Permission denied
/bin/bash: build/tools/normalize_path.py: Permission denied
/bin/bash: build/tools/normalize_path.py: Permission denied
/bin/bash: build/tools/normalize_path.py: Permission denied
/bin/bash: build/tools/normalize_path.py: Permission denied
build/core/product_config.mk:247: *** device/nvidia/platform/loki/t210/foster_e.mk: PRODUCT_NAME must be a valid C identifier, not "foster_e @inherit:". Stop.
I checked that all the files are readable and owned by me. No idea what to do here. Maybe the O sources just aren't complete yet.
@Mogster2K
i have the same problem with the sources:
Code:
error: Cannot fetch tegra/prebuilts-licensed-binary-tlk-t210
[...]
error: Exited sync due to fetch errors
Code:
/bin/bash: build/tools/normalize_path.py: Permission denied
Is the file executable? Does the following help?
Code:
chmod +x build/tools/normalize_path.py
It's already marked executable. I'm guessing that some stuff just hasn't been pushed to the repo yet.
Mogster2K said:
It's already marked executable. I'm guessing that some stuff just hasn't been pushed to the repo yet.
Click to expand...
Click to collapse
no the binaries are in the sh as a TGZ wacky way of doing but here is the extracted contents
https://www.androidfilehost.com/?w=files&flid=274922
I don't have a build environ for shield so you will need to handle that your self if you wanna build this into a usable blob
Legitsu said:
I don't have a build environ for shield so you will need to handle that your self if you wanna build this into a usable blob
Click to expand...
Click to collapse
I'm not sure how to search for info on how to build a usable blob, but if you can point me in the right direction I'm sure I can learn. Could you help with that?

Categories

Resources