[Q] Signapktic error "which: applet not found" - Android Q&A, Help & Troubleshooting

So here's the deal. I'm getting in to some dirty work with Ninjamorph, but after finishing a project, I know it does not resign an .apk. When I try to put the .apk I've modded through Signapktic it spits out the error: "which: applet not found".
Typing which into the terminal emulator yields the same result. Apparently I'm a serious noob when it come to androids, because Busybox is installed and I thought which would have been added to the commands at that point. How do I get which to work? Because being able to do all this modding on the phone is ridiculously convenient.

So, I failed, and didn't realize there was a new busybox version available. which is now working on my phone.
Signapktic, however, does nothing. I click start, it says it's been given su permissions, and then says finished (the terminal log is empty).

Related

Sysctl access

Hey guys
One of the things im working on atm, having a bit of trouble trying to get a sysctl.conf I am working on to be loaded at startup
I've managed to generate the file, edit what i want, gotten it into /etc, but therein lies the problem
when i try to run systl -p, it keeps telling me the following:
sysctl: error setting key <insert sysctl key here>: Permission Denied
How can i overcome this? As soon as ive finished the work on this file, I'll be happy to share it with everyone
so no ideas?
Do you have superuser permissions (su, command prompt #) ?
When trying with this:
-p
Load in sysctl settings from the file specified or /etc/sysctl.conf if none given.
Perhaps this helps ?
-e
Use this option to ignore errors about unknown keys.
I try running su from command prompt
after using adb shell, all i get after running su is this
Brief 5sec delay, and permission denied. Thats what i dont get, I've Rooted the phone using the guide on the forums and everything went to the letter
*Shrugs* I dunno, tried the -p, thats what gives me the error i get.
Nutterpc said:
I try running su from command prompt
after using adb shell, all i get after running su is this
Brief 5sec delay, and permission denied. Thats what i dont get, I've Rooted the phone using the guide on the forums and everything went to the letter
*Shrugs* I dunno, tried the -p, thats what gives me the error i get.
Click to expand...
Click to collapse
Look at your phone to allow Superuser permission after entering su in the terminal or command
Sent from my X10i using XDA App
had a bit more of a fish round the net to see if anyone else ham similar issues
seems i was able to find the eventual root cause of it, was /system/bin/sh was set to secure mode, so i downloaded root explorer and changed the permissions
now the only thing is, how do i actually get the sysctl.conf im working on to be loaded at start, when i turn the phone on?
You might find something useful in this thread:
http://forum.xda-developers.com/showthread.php?t=523707

Can't install .sh file on WebTop/Ubuntop

So I'm taking a free computer science/programming class (edx.org offered by MIT and Harvard, check it out, even give you the textbook for free) and I'm trying to install the programming package they recommend by Enthough, I downloaded the .sh file and tried to install it (bash xxx.sh) using WebTop2SD with WebTopScripts with the packages fixed, then tried Ubuntop with no luck, I keep getting "Cannot create symlink to "xxxx" Operation not permitted" for everything when trying to install it on either.
I remember before using Webtop2sd I had the webtopmod and all that crap (tried it first, kept messing up and I figured they all did the same thing since they're all by Sogarth) even had a username instead of adas and installed some linux chemistry programs, I still have all that too but webtop2sd wouldn't install the ubuntu.sh (I made a backup cause I really want to get that webtop back up, had programs I can't get anymore).
Would something like Gentop work or is it just a limitation from android?
thanks
EDIt: moved it to /osh/home/adas and then did sudo bash on it, getting "cannot execute binary file" now, someone saud chmod u+x xxx.sh, but still getting same error
Try just sudo -i. If you end up in a root shell, that's good. If not, your sudo might have issues.

[Q] Commands that work in terminal, but not when put in script

Hi everyone,
I am having a general conundrum that is really setting me back. My device(s) are my HTC One (rooted) and and CS968 (rooted) mini-pc. I've tried the following on both devices and always get the same thing. I don't think its device specific:
I am trying to install an APK. When I go into Terminal Emulator and get su permissions, I type in the following command "pm install /sdcard/directory/of/apk/target.apk" and it works, success, the apk is installed.
If I write a .sh script with the EXACT same syntax, I always get the infamous "INSTALL_FAILED_INVALID_URI" error. I cannot for the life of me figure out why.
Yes, I have searched every corner of this forum and google for solutions to this problem. They all end with the conclusion that you need to re-flash your rom (???) which seems very improbable to me. What makes my case different is that, like I said, the command works just fine when manually entered into Terminal Emulator, but when executed from a script, is when I get this bizzare error. I am at my wits end.
If anyone could shine some light on this for me I would greatly appreciate it.
Thank you

difficulty installing botbrew basil experimental (maybe related to /var)

hi, I downloaded botbrew, supersu granted it super access. It says something like "extract archive: cannot create symlink from ./system/bin/botbrew to /data/botbrew/bin/borbrew read-only file system.."
To reinstall I tried choose uninstall in the play store, and on phone, then install but it just starts back up without reinstalling. So didn't really uninstall. And also I can't see any terminal with it. I went into android terminal but it can't see any command like apt-get I see about adding a repository and searching for packages.. what repository to add to use ssh and nmap and get apt-get? (i'd like to do apt-get install dropbear)
I don't recall if that was when trying botbrew root or botbrew basil.
I have gone to the android terminal and run 'botbrew' , I see the $PATH variable change to include botbrew/bin so I know i'm in. but I don't have apt-get (which I want)
I had installed botbrew root beforehand, then realised it didn't have apt-get, so I went for botbrew basil experimental.
Botbrew basil experimental is showing nothing in the 'installed' tab, At one point one tab said something like dpkg or something was pending, but something was locked and it couldn't continue with that. So I closed some other programs and turned my phone off and on, and went back into Botbrew but now I see nothing pending.
I just got this message
E: Couldn't create temporary file to work with /var/lib/apt/lists/repo.botbrew.com_basil_main_Release - mkstemp (13: Permission denied)
E: The package lists or status file could not be parsed or opened
E: No packages found
I suppose perhaps that message might be from apt-get.. operating within the botbrew gui..
It's not surprising that it can't write to /var , as there is no /var directory on my phone. I tried cd /var, also as root.. from a terminal but nope, that directory doesn't exist.
I considered posting to http://forum.xda-developers.com/showpost.php?p=26261600&postcount=119 as that looks like it might be a dedicated thread. I don't know if i'm too newby to post in that section, but anyhow I can't in that section as one needs 10 posts to.
TIA

Difficulty granting permission with adb / terminal

Per this issue, and specifically this comment, I'm trying to grant the BATTERY_STATS permission to GSam Battery Monitor. I've tried the adb command "pm grant com.gsamlabs.bbm android.permission.BATTERY_STATS" but can't get it to work. I've also tried "pm grant com.gsamlabs.bbm android.Manifest.permission.BATTERY_STATS" but the results are the same. Doing it through ConnectBot gives me the following error:
Operation not allowed: java.lang.SecurityException: grantRuntimePermission: Neither user 10338 nor current process has android.permission.GRANT_RUNTIME_PERMISSIONS.
Doing it through adb gives me this:
Bad argument: java.lang.IllegalArgumentException: Unknown package: com.gsamlabs.bbm
This is on a stock Moto Z Play, 7.1.1
kernel:
3.18.31-perf-g757c8d9
[email protected] #1
Build number NPN26.118-22
Are you running the pro version? Then it needs to be com.gsamlabs.bbm.pro
The error is because it can't find a package named com.gsamlabs.bbm, so I would investigate why that's occurring. Either there's a typo (I don't see one) or that's not the correct package name.
ConnectBot won't work because ConnectBot doesn't have superuser permissions. Unless your device is rooted it'll have to be done through adb or using a PC-side program which effectively does the same thing.
Thanks! I think that was it, as adding .pro to the end didn't give an error. But it didn't actually say it was successful, either. It just spit out all the adb usage info like if you just type "adb" with no parameters. Any idea how I know if it worked?
vertigo_2_20 said:
Thanks! I think that was it, as adding .pro to the end didn't give an error. But it didn't actually say it was successful, either. It just spit out all the adb usage info like if you just type "adb" with no parameters. Any idea how I know if it worked?
Click to expand...
Click to collapse
Do the advanced stats in BBM work now? Also, are you on the paid version of BBM? That's the pro version, iirc.
You are typing "adb -d shell pm grant com.gsamlabs.bbm.pro android.permission.BATTERY_STATS", right?
Got busy with other stuff and just now got back to this, but I got it working. The reason I got the output I did before was because I was typing an invalid command, since pm grant isn't one of the commands of adb.exe. I had to type adb shell THEN type the command, and then it worked (and I just noticed you said that, I must have overlooked that when I looked at it before since I was busy). Also, for anyone that might come across this trying to do this, GSam didn't automatically recognize that this was done. I had to go through the steps of having it show me how to do it and at the end of that it worked. One final note, I had to update to the latest SDK for it to work, the version I was using was too old. Thanks again for the help apraetor!
Yea, I had a feeling after re-reading your original post that you were missing the "adb -d shell" portion, glad it's working.
vertigo_2_20 said:
Got busy with other stuff and just now got back to this, but I got it working. The reason I got the output I did before was because I was typing an invalid command, since pm grant isn't one of the commands of adb.exe. I had to type adb shell THEN type the command, and then it worked (and I just noticed you said that, I must have overlooked that when I looked at it before since I was busy). Also, for anyone that might come across this trying to do this, GSam didn't automatically recognize that this was done. I had to go through the steps of having it show me how to do it and at the end of that it worked. One final note, I had to update to the latest SDK for it to work, the version I was using was too old. Thanks again for the help apraetor!
Click to expand...
Click to collapse

Categories

Resources