[VZW] HiddenMenu - G2 General

In my search for a solution to disabling CABL on this phone, I wanted to take a look into all the LG hidden tests/settings. As the Verizon variant doesn't have this apk, I took it from an AT&T build, deodexed it and it seems to run fine on the VS980. I haven't been able to launch it from the dialer, but using the below will get you there. If you don't know what these tests or settings do, then you're better off leaving them alone, as there is the potential to mess something up.
Code:
am start -a android.intent.action.MAIN -n com.lge.hiddenmenu/com.lge.hiddenmenu.HiddenMenu

were you able to turn off cabl from it? only thing people were saying was the high temperature screen dimming.
Sent from my VS980 4G using Tapatalk 4

I haven't looked through it all yet, but so far I haven't found anything unfortunately.

xdabbeb said:
I haven't looked through it all yet, but so far I haven't found anything unfortunately.
Click to expand...
Click to collapse
yeah i haven't ever had my phone get so hot that the thermal controls limit my screne brightness..my GS4 did all the time, though.

xdabbeb said:
In my search for a solution to disabling CABL on this phone, I wanted to take a look into all the LG hidden tests/settings. As the Verizon variant doesn't have this apk, I took it from an AT&T build, deodexed it and it seems to run fine on the VS980. I haven't been able to launch it from the dialer, but using the below will get you there. If you don't know what these tests or settings do, then you're better off leaving them alone, as there is the potential to mess something up.
Code:
am start -a android.intent.action.MAIN -n com.lge.hiddenmenu/com.lge.hiddenmenu.HiddenMenu
Click to expand...
Click to collapse
Thanks a lot !
I found this work on my VZW G2 ..Why VZW choose to hidden the phone test menu, so unconvenient.
I wonder if you can help me more about the APN MCC/MNC locked questions.
http://forum.xda-developers.com/showthread.php?t=2491221&highlight=apn
Thanks............

xdabbeb said:
In my search for a solution to disabling CABL on this phone, I wanted to take a look into all the LG hidden tests/settings. As the Verizon variant doesn't have this apk, I took it from an AT&T build, deodexed it and it seems to run fine on the VS980. I haven't been able to launch it from the dialer, but using the below will get you there. If you don't know what these tests or settings do, then you're better off leaving them alone, as there is the potential to mess something up.
Code:
am start -a android.intent.action.MAIN -n com.lge.hiddenmenu/com.lge.hiddenmenu.HiddenMenu
Click to expand...
Click to collapse
What is "CABL" and what is all in this hidden menu?? Can someone post a screen shot of it.
Thank you

cabl is content adaptive brightness... it's that flickering issue we always see.
Sent from my LG G2 using Tapatalk Pro

What is the dialer code that you need to access this hidden menu?

Can I just run the APK to install? Because I'm getting an error trying to do it that way.
Sent from my LG G2 using xda app-developers app

No, it needs to be installed as a system app. As for the dialer code, it won't work because the corresponding broadcast intent wasn't built in the vzw ROM. If I have some free time I could do that, but it really is easy to launch it via command I listed above.

I want to set up the Qualcomm usb setting. I use the QPST to connect to G2 .But it could not open the port of the G2.
Sent from my VS980 4G using xda app-developers app

error
i get error unable to resolve intent

I try, but error:
Warning: linker: app_process has text relocations. This is wasting memory and is a security risk. Please fix.

xdabbeb said:
In my search for a solution to disabling CABL on this phone, I wanted to take a look into all the LG hidden tests/settings. As the Verizon variant doesn't have this apk, I took it from an AT&T build, deodexed it and it seems to run fine on the VS980. I haven't been able to launch it from the dialer, but using the below will get you there. If you don't know what these tests or settings do, then you're better off leaving them alone, as there is the potential to mess something up.
Code:
am start -a android.intent.action.MAIN -n com.lge.hiddenmenu/com.lge.hiddenmenu.HiddenMenu
Click to expand...
Click to collapse
Could someone provide some detail on how this should be run? I downloaded the file and then the code above in my phone's terminal, but was told the file was not found.

mdroid60 said:
Could someone provide some detail on how this should be run? I downloaded the file and then the code above in my phone's terminal, but was told the file was not found.
Click to expand...
Click to collapse
put hiddenmenu.apk to /system/app
then set permission to еры file rw- r- r-
then reboot device
then do this using ADB
Code:
adb shell
su
am start -a android.intent.action.MAIN -n com.lge.hiddenmenu/com.lge.hiddenmenu.HiddenMenu
Voila

maloma99 said:
put hiddenmenu.apk to /system/app
then set permission to еры file rw- r- r-
then reboot device
then do this using ADB
Code:
adb shell
su
am start -a android.intent.action.MAIN -n com.lge.hiddenmenu/com.lge.hiddenmenu.HiddenMenu
Voila
Click to expand...
Click to collapse
Thanks for the response! I dont have ADB on the computer I'm on but I'll try this when I get home!

maloma99 said:
put hiddenmenu.apk to /system/app
then set permission to еры file rw- r- r-
then reboot device
then do this using ADB
Code:
adb shell
su
am start -a android.intent.action.MAIN -n com.lge.hiddenmenu/com.lge.hiddenmenu.HiddenMenu
Voila
Click to expand...
Click to collapse
It worked, thank you again!

maloma99 said:
put hiddenmenu.apk to /system/app
then set permission to еры file rw- r- r-
then reboot device
then do this using ADB
Code:
adb shell
su
am start -a android.intent.action.MAIN -n com.lge.hiddenmenu/com.lge.hiddenmenu.HiddenMenu
Voila
Click to expand...
Click to collapse
can I just run the "am start" line from a terminal in the phone?

markrulesallnow said:
can I just run the "am start" line from a terminal in the phone?
Click to expand...
Click to collapse
Why not? Try it. Ony first command
Code:
su
, then other.

maloma99 said:
I try, but error:
Warning: linker: app_process has text relocations. This is wasting memory and is a security risk. Please fix.
Click to expand...
Click to collapse
Same

Related

[BUGLIST] AOSP 2.2 ROM Bugs and Fixes | Post questions here

If you ...
find a bug or problem on 2.2, post here
find a solution on how to fix the bug, post here
want to get help on how to fix the bug, post here
anything else, goes here
This thread are meant for bug/problem solution and reported bug list of 2.2 custom ROM which i will try to manage, so people are not posting same bug, and asking for same solution all over again in X10 Custom ROM AOSP thread.
Limitation
Cannot Mount via USB
2.2 Custom ROM put the SYSTEM partition on your phone memory and the DATA partition in your SD card. That is why you cannot dismount the SD card from Android to mount to your PC.
No App2SD
2.2 Custom ROM is still running on 2.1 Custom Kernel which not supporting this.
Bug list
#0001 - WiFi not working - Fixed on 2.2
#0002 - Random android.process.media force close - Fixed on 2.2
#0003 - Home button not working, and no Lock Screen - Fixed on 2.2
#0004 - Cannot install certain APK (Angry Bird)
#0005 - No radio, no network and flashing Home - New on 0.0.2
#0006 - ADB shell have SU access, but Titanium Backup cannot work - New on 0.0.2
#0007 - SD Card non-ascii folder show as ???
#0008 - Facebook Contact Sync not available
#0009 - CPU Governor set to performance by default
Solutions for bugs
#0001 - How to enable WiFi on 2.2 Custom ROM
1. Try to enable WiFi, of course it will not work.. just do it.
2. WiFi will goes off automatically
3. Run
Code:
adb shell /system/bin/wlan_tool
4. If the adb stucks, just press CTRL+C
5. Repeat step 4 until you crash the phone
6. After reboot, your WiFi will work.
or
Code:
adb shell killall servicemanager
Post Reference
#0002 - android.process.media FC solution
0.0.1 compiled with prefilled databases which invalid for your phone
Code:
adb shell
cd /data/data/com.android.providers.media/databases
rm *
reboot
or this will ensure no invalid data anymore but will remove fixes for bug #0003
Code:
adb shell
cd /data/
rm -r data
mkdir data
reboot
Post Reference
#0003 - Fix Home Button & Lock Screen
Download sqlite here
First pull the db file first.
Code:
adb pull /data/data/com.android.providers.settings/databases/settings.db settings.db
Then add value to its content
Code:
sqlite3.exe settings.db
sqlite> INSERT INTO "secure" VALUES(67,'device_provisioned','1');
sqlite> .exit
Then push back the db
Code:
adb push settings.db /data/data/com.android.providers.settings/databases/settings.db
Then reboot.
Post Reference
#0004 - Solving installing APK problems
Currently the 2.2 Custom ROM does not support app2sd, and some APK may configure it self to be installed in sdcard.
So we force it to install on internal with code below
Code:
adb shell pm setInstallLocation 1
adb install -l com.rovio.angrybirds.apk
Post Reference
#0005 - Fixing radio, wifi and home screen flashing problem
Run this command
Code:
adb shell killall servicemanager
Post Reference
#0006 - Fixing SU access for Titanium Backup
Run this command
Code:
adb shell chmod 4755 /system/bin/su
Post Reference
#0007 - Fixing SD card mount command to show unicode letters
Modify your chargemon file so its enables utf8 for non ascii letter.
You need to do this on 2.1 ROM, not 2.2 ROM. The file is located in /system/bin
look for this
Code:
mount -t vfat -o rw,noatime,nodiratime /dev/block/mmcblk0p1 /sd
and change into this
Code:
mount -t vfat -o rw,noatime,nodiratime,utf8 /dev/block/mmcblk0p1 /sd
Notes:
You must use a Unix/Linux format capable text editor for this. Notepad will not work.
You can try ultraedit for it.
Post Reference
#0008 - Fix Facebook Sync
Download the ContactsProvider.apk here, then install to your Android using push command
Code:
adb push ContactsProvider.apk /system/app/ContactsProvider.apk
adb reboot
Post Reference
#0009 - Using SetCPU
By default is Performance, fast but wasting too much battery.
Use SetCPU and set to OnDemand.
Post Reference
2.2 Custom ROM FAQ
How and what happened if upgrade from 0.0.1 to 0.0.2?
Just copy data.img and system.img replacing your current one in FreeX10 folder.
This will replace all your 0.0.1 data, be sure to back up first with Titanium Backup
WiFi is running and connected, but cannot browser
This problem seems to be occurring on selected few.. You can set static IP to your android.
Go to Settings -> Wireless ... -> WiFi, then press menu button. From there you can se static IP
Is there a possibility of Timescape and Mediascape for 2.2 Custom ROM
The answer is yes, its possible.
I managed to install Mediascape.apk into 2.2 Custom ROM, but cannot run.
The reason it cannot run is because UX is using a lot of things in Framework-res.apk, images, layout, styles, and etc which cannot be copied directly from SE 2.1 into 2.2 AOSP. It requires someone to properly put all values, resolving conflicts inside Framework-res.apk before the UX can run, which will take months or at least weeks if someone dedicated his or her day job for it. Then after that we still need to deal with external files. So in conclusion, while it still possible, i don't think anyone will do it because of the time demanding process.
I want to help devs solving bugs, i found one but i don't know what actually happend.
While usb connected, from command prompt, type
Code:
adb logcat > logcat.txt
This will output a lot of debugging info into logcat.txt file, later if you find bug, you take a look inside the file.
See anything error or info related to the bug, and post here.. When writing the logcat.txt output, but them inside
Code:
brackets.
Do not post everything.. post few lines related to the bugs.
2.2 Custom ROM Testing Tools
Service Menu
WARNING: DO NOT INSTALL THIS UNLESS YOU DO DEVS, END USER DO NOT INSTALL
PURPOSE: MAYBE FOR TESTING DEVICE FEATURE, MIGHT BREAK SYSTEM APPS
Enable SE Service Menu for device testing. For devs only. You need to put adb stuff in the directory for install.bat to run.
Install framework
Code:
adb push permissions /system/etc/permissions
adb push lib /system/framework
adb reboot
Install applications
Code:
adb install app\bootinfo3.apk
adb install app\ServiceMenu2.apk
adb install app\com.laac.launcher.servicemenu.apk
Nice work. THis is handy
As i posted in the Main thread!
I think some of the force closes, (mainly acore and google framework) and the fact that the market crashes, come down to importing a vcard!
I imported vcard, get many force closes, market stops working, I clean install and don't install the vcard. Everything functions fine.
I do believe this is the reason!
Greeet ~~!! but can u tell me the seloution of this proplem :
i was run 2.2 001 ok ? then i back to to SE 2.1 to change old system.img & data.img by the new on FreeX10_alpha-release_0.0.2-UPDATE , ok ? then i reboot my phone into 2.2 , it run but like u make a refresh on computer ! evry 3 second !
thnx
Ahmed radi said:
Greeet ~~!! but can u tell me the seloution of this proplem :
i was run 2.2 001 ok ? then i back to to SE 2.1 to change old system.img & data.img by the new on FreeX10_alpha-release_0.0.2-UPDATE , ok ? then i reboot my phone into 2.2 , it run but like u make a refresh on computer ! evry 3 second !
thnx
Click to expand...
Click to collapse
Please read the main post!
sorry but no one answer me there
Thanks
Thanks for this ,hopefully a post like this is made for the 1st post on 2.1
http://forum.xda-developers.com/showpost.php?p=9134882&postcount=1
awesome thread, very helpful. Hopefully more people will read this rather than constantly posting the same bugs in the main thread.
Ahmed radi said:
sorry but no one answer me there
Click to expand...
Click to collapse
hey ahmed
grb el solution da
#0005 - Fixing radio, wifi and home screen flashing problem
Run this command
Code:
adb shell killall servicemanager
i think en da el 7l
bye
bsthost said:
hey ahmed
grb el solution da
#0005 - Fixing radio, wifi and home screen flashing problem
Run this command
Code:
adb shell killall servicemanager
i think en da el 7l
bye
Click to expand...
Click to collapse
i dont know how to use adb shell is there anythread for newbie user how to use adb ?
angry birds on my x10 is working well....i take it from a previous backup and restrored on 2.2 with mybackup pro
Please post to http://forum.xda-developers.com/showthread.php?t=835308&page=9999 thread instead.
We don't need to create two discussion thread.
i fixed the wifi and flashing problem and i have connected to wifi but i cant access internet or market any it seems i have connected to my modem netwok still cant access to internet any idea how to fix this?
17mayis said:
i fixed the wifi and flashing problem and i have connected to wifi but i cant access internet or market any it seems i have connected to my modem netwok still cant access to internet any idea how to fix this?
Click to expand...
Click to collapse
Code:
setprop ro.kernel.android.ndns 2
setprop net.eth0.dns1 8.8.8.8
setprop net.eth0.dns2 8.8.4.4
New crash this morning : i tried to connect my BT headphone after that i've activated BT => BT has desactivated itself then the phone reboots.
zephyrix said:
Code:
setprop ro.kernel.android.ndns 2
setprop net.eth0.dns1 8.8.8.8
setprop net.eth0.dns2 8.8.4.4
Click to expand...
Click to collapse
i appreciate your answer man if you could tell me how to do this ? through adb shell or something else?
17mayis said:
i dont know how to use adb shell is there anythread for newbie user how to use adb ?
Click to expand...
Click to collapse
Google is your friend!
i have flashPlayer10.1 problem it,s to slow when i play on any website any solution what might be ?

Snowball Mod

I ran the Snowball Mod without a hitch. I then tried to run the update but it won't run for some reason. The window flashes some text quickly but then closes so I'm not even really sure why it's not working. Anyone run into this or have any ideas. Thanks in advance!
I haven't had the time to try out the snowball mod, yet -- so I can't offer any advice. But, I would post the issue in the development thread, that's where the most help will be.
Swyped from my B&N Nook Tablet.
Try running it from a command line to keep it up and be able to read any text.
Also, there is a log.txt, if you post that, it can be more helpful.
Yeah I was goin to but I don't have enough posts. I was hoping someone would see it here.
Well... if you post your log.txt and start it from a command-line window rather than double clicking the update.bat, then we can take a look at what's up.
Log file says:
Snowball is reporting: v2.0.2
NO PACKAGE AVAILABLE
Command line:
Snowball is reporting: v2.0.2
There does not appear to be a package for the version snowball is reporting.
Are you sure you're not reapplying an update?
Perhaps you are accidentally trying to apply an "outdate"?
Thanks a lot!
There is no v2.0.2 update package in the zip folder. I renamed v2.0.1 to v2.0.2 and ran. Not sure if this was a good thing to do or not. Any help or direction would be appreciated. Thanks.
No write permissions
Tried to install snowball mod from a macbook pro by just running the snowball.sh. Started up and the B&N stuff was all there, although it looked like it ran without a hitch.
Looked at the log file in the snowball-mod folder and saw a lot of "Read-only file system" business. The first few lines being:
unzip: can't open nook-update-package.zip, nook-update-package.zip.zip, nook-update-package.zip.ZIP^M
rm failed for nook-update-package.zip, Read-only file system^M
Installing nook-update-package...
cd: can't cd to /mnt/media/nook-update-package^M
sh: Can't open install^M
rm failed for /mnt/media/nook-update-package, No such file or directory^M
Click to expand...
Click to collapse
How do you suggest I get around that?
conundrum768 said:
I haven't had the time to try out the snowball mod, yet -- so I can't offer any advice. But, I would post the issue in the development thread, that's where the most help will be.
Swyped from my B&N Nook Tablet.
Click to expand...
Click to collapse
We need 10 legit posts before we are allowed to post in the dev forum
Robotronik said:
Tried to install snowball mod from a macbook pro by just running the snowball.sh. Started up and the B&N stuff was all there, although it looked like it ran without a hitch.
Looked at the log file in the snowball-mod folder and saw a lot of "Read-only file system" business. The first few lines being:
How do you suggest I get around that?
Click to expand...
Click to collapse
Huh... this is weird... /mnt/media should not be read-only... although, I suppose, perhaps if you had it USB mounted, it might end up read-only.
Ensure that you have Automatic USB mounting turned off before you run the script.
You can actually push this update via wifi if you mod the update.bat (or update.sh for linux users) file.
Just turn on ADB Wifi (I prefer adbWireless app) and add the following to your bat file:
Code:
echo Waiting for device...
[B]adb connect XXX.XXX.XXX.XXX:XXXX[/B]
adb wait-for-device
...
adb shell "chmod 755 /data/local/tmp/update-package.sh ; su -c /data/local/tmp/update-package.sh" >> log.txt
if exist reboot adb reboot
[B]adb connect XXX.XXX.XXX.XXX:XXXX[/B]
echo INSTALLATION SUCCESSFUL
Use your IPort given to you by your ADB Wifi app in place of XXXs. Then just run the .bat!
Run from cmd if you don't want the output to vanish right away.
cfoesch said:
Ensure that you have Automatic USB mounting turned off before you run the script.
Click to expand...
Click to collapse
Okay, that got me a little further. Now:
Extracting nook-update-package...
Archive: nook-update-package.zip
creating: nook-update-package/data/
unzip: can't set permissions of directory 'nook-update-package': Operation not permitted
unzip: exiting
Installing nook-update-package...
sh: Can't open install
Click to expand...
Click to collapse
More permissions issues...
Still posting here because I don't have the 10 total posts to go in the Dev forum...
Anyway, I did the factory reinstall, and reran the snowballmod update. It said the root was still there, so I commented out that check from the snowball.sh, reran the package and everything went swimmingly.
Now, for the update:
The terminal spits out this:
Waiting for device...
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
7 KB/s (46 bytes in 0.006s)
Snowball is reporting: v2.0.2
.zipte-package-v2.0.2
There does not appear to be a package for the version snowball is reporting.
Are you sure you're not reapplying an update?
Perhaps you are accidentally trying to apply an 'outdate'?
Click to expand...
Click to collapse
Where the log file gives me:
Snowball is reporting: v2.0.2
NO PACKAGE AVAILABLE
Click to expand...
Click to collapse
The file "update-package-v2.0.2.zip" is in the directory. In the "update.sh" file replaced all instances of "${VERSION}" with "v2.0.2" and it seemed to work fine.
same
Robotronik said:
Still posting here because I don't have the 10 total posts to go in the Dev forum...
Anyway, I did the factory reinstall, and reran the snowballmod update. It said the root was still there, so I commented out that check from the snowball.sh, reran the package and everything went swimmingly.
Now, for the update:
The terminal spits out this:
Where the log file gives me:
The file "update-package-v2.0.2.zip" is in the directory. In the "update.sh" file replaced all instances of "${VERSION}" with "v2.0.2" and it seemed to work fine.
Click to expand...
Click to collapse
I AM HAVING THE SAME PROBLEM.MYBE..I need help some plz make a better howtos for dummies m
The first thing you need to do, if you have no clue what you're doing, is post the contents of the log file in the snowballmod folder.
The ".zipte-package-v2.0.2" seems to be related to adb shell "snowball-ver" returning DOS formatted text, even though you're in a *nix. I really did not expect this to happen with the linux and osx versions of adb, but apparently, they perform the same as cygwin... (cygwin I expected, after all, the adb.exe is a windows program). I will fix the update scripts to take that into account.
Code:
unzip: can't set permissions of directory 'nook-update-package': Operation not permitted
This message is reported by unzip when it is run by a non-root user on the /mnt/media partition.
You do _NOT_ have to run snowball-update though if you've installed snowball-mod fresh with the most recent version.
robtlebel said:
I AM HAVING THE SAME PROBLEM.MYBE..I need help some plz make a better howtos for dummies m
Click to expand...
Click to collapse
The changes made to the script were posted here:
Robotronik said:
Now, for the update:
The terminal spits out this:
Waiting for device...
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
7 KB/s (46 bytes in 0.006s)
Snowball is reporting: v2.0.2
.zipte-package-v2.0.2
There does not appear to be a package for the version snowball is reporting.
Are you sure you're not reapplying an update?
Perhaps you are accidentally trying to apply an 'outdate'?
Where the log file gives me:
Snowball is reporting: v2.0.2
NO PACKAGE AVAILABLE
The file "update-package-v2.0.2.zip" is in the directory. In the "update.sh" file replaced all instances of "${VERSION}" with "v2.0.2" and it seemed to work fine.
Click to expand...
Click to collapse
I had the same issue with the name of the update file being called incorrectly: ".zipte-package-v2.0.2". With that output the script is looking for a file of that name and it's not finding it. I just changed the value of the variable ${VERSION} to v2.0.2 (since that was what was being reported by Snowball as my current version) and all worked after that.
Easy to fix temporarily:
-open "update.sh" in a text editor
-go to line 66 and change
VERSION=`awk '//{ print $2 }' snowball.version`
Click to expand...
Click to collapse
to
VERSION=v2.0.2
Click to expand...
Click to collapse
or whatever version yours shows to be running (v2.0.1, etc). Something tells me it might be important to input the correct current version number in
-save and close the file and rerun it.
EDIT: or wait until cfoesch fixes the scripts
Scripts should be updated. I changed the awk program from just "//{ print $2 }" to "//{ sub('\r', '', $2); print $2 }" ... this means that it works both ways... *insert your favorite "both ways" joke here*
It should also detect if you haven't turned off automount, and warn you about it. If the nook ends up rebooting, then it would tear the USB mount and could cause file corruption. I got around it by putting things in /data rather than /mnt/media, but then realized, if it has to reboot, then it could cause trouble. So better, to just warn them that automount was on, and quit out.
It also detects better if something went wrong in the installation process, and should report that installation has failed, rather than successful under all cases.
Things may have gotten broken in the process, so keep up the bug reports.
I just can't stop Nookin' Around.........god i need to sleep
I decided to check out the update.sh script (can only go so far currently since I have the latest update).
At least for me, (Ubuntu Linux 11.10) I figured something out about the $OSTYPE call to set the $adb variable. I could echo $OSTYPE in the terminal and got a response, but could not echo it in any scripts. Ended up finding the "uname -o" call and that seems to have gotten it to work, although the printout is different.
snowball-update# echo $OSTYPE
linux-gnu
snowball-update# uname -o
GNU/Linux
Changed lines 7 & 8 and seems to have worked:
case `uname -o` in
GNU*|linux*|Linux*)
Now this last part is probably something on my end but: update.sh: 62: ./adblinux: Permission denied
Thanks again for the work (and everyone else involved in rooting/hacking these things )
Indeed. $OSTYPE seems to be specific to bash, and not all sh implementations.
If you don't mind could you do this command and give me the output? "ls -l /bin/sh" and "sh --version" Those two commands should explain exactly which implementation of sh you have. (For instance, on the NT with snowball-mod, the sh is a minimal implementation, and does not support $OSTYPE. But on most OSes I've seen sh is actually a statically linked bash, as it is the most widely used shell scripting language.)
The case on that you provided though could be a poor choice, as GNU*) would match GNU/freebsd, or GNU/openbsd, or GNU/anykernel. Sure it is unlikely, but it is possible.
The permissions issue is not entirely your end, but it is an expected artifact of extracting from a zip file. Although, is suppose performing a chmod 755 on it prior to use would be a good idea in general.

help for a script

hi all
i have an galaxy SIII
i am using script manager.
i want to write a script and i have 2 questions
- how to write a script who open an url with the web browser
- is there an function to send a ping to see if an local adress avalaible (192.168.1.X) if not avalaible is there an return error ?
(sorry to seem stupid but i am coming from windows and i am a bit lost for the moment )
thank u for giving me a your time
no suggestion ?
or advise
Google something like "android open browser from shell". You can do it using intents.
Also:
Code:
ping --help
this work in an script u put
am start -a android.intent.action.VIEW -n com.android.browser/.BrowserActivity http://www.google.fr
for chrome i find this
am start -a android.intent.action.VIEW -n com.android.chrome/.Main -d http://xxxxxxxx
but i not find for opera if someone have it
finally
opera =
am start -a android.intent.action.VIEW -n com.opera.browser/com.opera.Opera -d http://www.google.xxxx
hope this help someone
lol now i really need help coz i found nothing
i want to know which ip is reachable from 192.168.1.(1 to 9)
in a script to automate that and give me wish is reachable for use it in a command to browser.
(i know ping from terminal emulator but it's not what i am looking for)
forgive my english i hope you understand what i want ant hope too u help me with this
kondronaute said:
i want to know which ip is reachable from 192.168.1.(1 to 9)
in a script to automate that and give me wish is reachable for use it in a command to browser...
Click to expand...
Click to collapse
That's easy, check:
Code:
for var in {1..9}
do
echo "Looking for 192.168.1.$var..." #optional... jejeje
if ping 192.168.1.$var -c 1 > /dev/null
then
#Reachable, put here your command
else
#Unreachable, you can show an error here
fi
done
RoberGalarga said:
That's easy, check:
Code:
for var in {1..9}
do
echo "Looking for 192.168.1.$var..." #optional... jejeje
if ping 192.168.1.$var -c 1 > /dev/null
then
#Reachable, put here your command
else
#Unreachable, you can show an error here
fi
done
Click to expand...
Click to collapse
but ping command is not reconized by script manager i can only do it with terminal emulator ....
Really? I didn't know that (weird, BTW). Check if you need to use another command with Script Manager, or if you need to add something.
I dunno another way to achieve your goal... only using ping
lol i have a headeach with this and find nothing
RoberGalarga said:
Really? I didn't know that (weird, BTW). Check if you need to use another command with Script Manager, or if you need to add something.
I dunno another way to achieve your goal... only using ping
Click to expand...
Click to collapse
finally i have possibility to run ping you must just in option of script manager chek "override $PATH"
after 2 or 3 aspirin this work for me
#!/system/bin/sh
for i in $(seq 2 10);
do
host="192.168.1.$i"
ping -c 1 -W 1 $host > /dev/null &&
am start -a android.intent.action.VIEW -n com.android.browser/.BrowserActivity http://$host ;
done
i dont know why i have error with else and if with android shell ????
i thank u again for your help and hope the masters here help us a bit to understand, it's difficult coz there are differences with simple linux and this for french using windows :laugh:
Try if this help.
i have this kind of probleme http://forum.xda-developers.com/showthread.php?t=1045006
but i am usin the script manager editor on my phone !!!!!
i have not Windows EOL formatting
please if u are guru of busybox your help is needed to use if else and fi in a script.
must i download another version of busybox or add a command ????
i am fully rooted the path in script manager is good
edit = after trying and googleing
after if you must put [[your code without space before and after]] and after then (yourcode) :laugh:
hope i find the rest...
kondronaute said:
i have not Windows EOL formatting
Click to expand...
Click to collapse
Are you sure? Because if you have created the script in windows, you have that EOL formatting (whatever that means :silly. Try this:
Open Terminal Emulator, and type
Code:
echo "hello there" > /sdcard/newScript.sh
This will create a new and clean script in your SD Card.
Then, go to Script Manager, and edit that script. You can start deleting the text ("hello there") and adding this:
Code:
testvar=1
if [ "$testvar" = "1" ] ; then
echo "All is right"
fi
Ok, run the script. If you can see the text "All is right", that's it, problem solved
RoberGalarga said:
Are you sure? Because if you have created the script in windows, you have that EOL formatting (whatever that means :silly. Try this:
Open Terminal Emulator, and type
Code:
echo "hello there" > /sdcard/newScript.sh
This will create a new and clean script in your SD Card.
Then, go to Script Manager, and edit that script. You can start deleting the text ("hello there") and adding this:
Code:
testvar=1
if [ "$testvar" = "1" ] ; then
echo "All is right"
fi
Ok, run the script. If you can see the text "All is right", that's it, problem solved
Click to expand...
Click to collapse
you save my last neuron
thanks
edit =
my fault is i create a text file under windows (easier and can copy and past easily) after i put the file on my phone and copy past the code in a new script.
i not think that when i just copy past i past the EOL formatting ( i dont know what is that but its a bad thing )
that's mean i must abandon windows and migrate totally to linux
anyway that make me crazy and i am happy to sort it.
you are very helpfull many thanks again
new edit = i understand now why they say notepad++ is necessary

Amazfit Enable app list on US/CN through adb

In CN version you can active the app list in the watch, if you have not already enabled "Launcher App List", go to "More Settings" -> "About" -> Keep clicking legal information till you see countdown to zero. Once that is done, you will have the Lab link below. Click on Lab and select "Launcher AppList". This will restart your Launcher. Now go to the Right most app from your watch face, you will see the Launcher.
This method allows you to activate the app list also on the American versions so as to use the third-party app!
Connect the watch to your computer via USB and access via ADB (install ADB Drivers as needed)
Open command prompt or shell
Enter the commands :
Code:
adb shell
> /sdcard/launcher_config.ini
am force-stop com.huami.watch.launcher
After Launcher restart you can go to the Right most app from your watch face and you will see the App List.
Thank you very much! US firmware 1.3.1, this did work. I was able to install and use AmazfitCNTimer.apk without installing Chinese firmware.
# SEE EDIT!
On 1.3.1m watch model a1612 your instructions return:
Code:
adb shell
* daemon not running. starting it now on port 5038 *
* daemon started successfully *
[email protected]:/ # /sdcard/launcher_config.ini
/sdcard/launcher_config.ini
/system/bin/sh: /sdcard/launcher_config.ini: not found
Further, if I proceed to force-stop the launcher does restart but of course there is no app launcher as expected.
# EDIT
Just realized I needed to include the '>' to create the file. I'll take noob mistakes for 500, Alex.
Hello
On 1.3.2b, it does'nt
Code:
c:\adb shell
[email protected]:/ $
vador1967 said:
Hello
On 1.3.2b, it does'nt
Code:
c:\adb shell
[email protected]:/ $
Click to expand...
Click to collapse
After adb shell command you need to write this command:
> /sdcard/launcher_config.ini
am force-stop com.huami.watch.launcher
Cracklydisc said:
After adb shell command you need to write this command:
> /sdcard/launcher_config.ini
am force-stop com.huami.watch.launcher
Click to expand...
Click to collapse
Hi
I know this and I've tried.
It doesn't work
I've the US 1.3.2b version
vador1967 said:
Hi
I know this and I've tried.
It doesn't work
I've the US 1.3.2b version
Click to expand...
Click to collapse
mmm
you can open with explorer the watch and create the "launcher_config.ini" file .
After the file creation you need to restart the watch, can you try this method?
Cracklydisc said:
mmm
you can open with explorer the watch and create the "launcher_config.ini" file .
After the file creation you need to restart the watch, can you try this method?
Click to expand...
Click to collapse
Ok
I've created the file (empty) et placed it in the root of Amazfit
I enter in CMD the adb shell : it indicates a wrong way
vador1967 said:
Ok
I've created the file (empty) et placed it in the root of Amazfit
I enter in CMD the adb shell : it indicates a wrong way
Click to expand...
Click to collapse
after the file copy you only need to restart the watch and look if the applist is active
Cracklydisc said:
after the file copy you only need to restart the watch and look if the applist is active
Click to expand...
Click to collapse
Hi
Not yet.
vador1967 said:
Hello
On 1.3.2b, it does'nt
Code:
c:\adb shell
[email protected]:/ $
Click to expand...
Click to collapse
Worked for me on 1.3.2b
Please, don't forget to type ">" after the "[email protected]:/ $" prompt ; it makes all the difference
My Amazfit model A1612 Fw1.3.2b
I open Lab manu in about manu
Before lab maun in open I follow code commands
it works
Ok
It works
Thanks a lot
So this allows you to open almost any sideloaded apk installed on the watch?
Noreg96 said:
So this allows you to open almost any sideloaded apk installed on the watch?
Click to expand...
Click to collapse
It allows you to open all sideloaded apps.
BUT IT DOESN'T MEAN THAT ALL APPS WILL WORK.
It's only the app starter.
vador1967 said:
Hi
Not yet.
Click to expand...
Click to collapse
Are you sure you installed correct drivers?
For me that was the problem
question
works...
but then can i install new APK? is it possible with 1.3.2b non rooted?
Cracklydisc said:
In CN version you can active the app list in the watch, if you have not already enabled "Launcher App List", go to "More Settings" -> "About" -> Keep clicking legal information till you see countdown to zero. Once that is done, you will have the Lab link below. Click on Lab and select "Launcher AppList". This will restart your Launcher. Now go to the Right most app from your watch face, you will see the Launcher.
This method allows you to activate the app list also on the American versions so as to use the third-party app!
Connect the watch to your computer via USB and access via ADB (install ADB Drivers as needed)
Open command prompt or shell
Enter the commands :
Code:
adb shell
> /sdcard/launcher_config.ini
am force-stop com.huami.watch.launcher
After Launcher restart you can go to the Right most app from your watch face and you will see the App List.
Click to expand...
Click to collapse
Hello there. I was using this metod on last 1.3.2b update and it was working.
Now i've received 1.3.3a, that should have app list by default.
But it desapparead from the watch, and also using this method, i have no more app list.
any idea?
PS:
Amazfit PACE US
Jun 2017 firmware 1.3.3a was supposed to include the app list as a feature.
I tried to enable it by going in to the menu > About > Legal and tapping 5 times but there was no app list in the new Lab menu.
So I tried the adb shell command and it worked.
To reverse this, do we just delete the launcher_config.ini?
Also, I tried to pull that file and look at it but couldn't:
adb pull /sdcard/launcher_config.ini c:/temp
Got no errors, but got no file in C:\temp.
areynoldsnz said:
Jun 2017 firmware 1.3.3a was supposed to include the app list as a feature.
I tried to enable it by going in to the menu > About > Legal and tapping 5 times but there was no app list in the new Lab menu.
So I tried the adb shell command and it worked.
To reverse this, do we just delete the launcher_config.ini?
Also, I tried to pull that file and look at it but couldn't:
adb pull /sdcard/launcher_config.ini c:/temp
Got no errors, but got no file in C:\temp.
Click to expand...
Click to collapse
For me didn't worked... Maybe because i've activated it on 1.3.2b with adb?
---------- Post added at 07:32 PM ---------- Previous post was at 07:17 PM ----------
Cracklydisc said:
after the file copy you only need to restart the watch and look if the applist is active
Click to expand...
Click to collapse
I've also tried, on 1.3.3a but still not work...

So FREAKING Happy to find out about the "pm" (Package Manager) cmd in adb shell, but

So FREAKING Happy to find out about the "pm" (Package Manager) cmd in adb shell, but
So FREAKING Happy to find out about the "pm" (Package Manager) cmd in adb shell, but I can't find the package I want to remove.
https://forum.xda-developers.com/android/general/uninstall-apps-via-adb-t3738105
The app I want to remove the MOST is the "Visual Voicemail". That POS keeps poping up crap and I can't seem to get rid of it.
LG L4 LS991
From my research, it should have a package name with vvm in it, but I just can't find it.
Does anyone know what name it hides under?
MattR59 said:
So FREAKING Happy to find out about the "pm" (Package Manager) cmd in adb shell, but I can't find the package I want to remove.
https://forum.xda-developers.com/android/general/uninstall-apps-via-adb-t3738105
The app I want to remove the MOST is the "Visual Voicemail". That POS keeps poping up crap and I can't seem to get rid of it.
LG L4 LS991
From my research, it should have a package name with vvm in it, but I just can't find it.
Does anyone know what name it hides under?
Click to expand...
Click to collapse
Try listing all the packages
Code:
pm list packages
Or search package name which contains some word
Code:
pm list packages -f someName
Paget96 said:
Try listing all the packages
Code:
pm list packages
Or search package name which contains some word
Code:
pm list packages -f someName
Click to expand...
Click to collapse
I think
Code:
pm list packages -f | grep "some part of a name"
may also be helpful.
But I've tried that and still can't find it.
Also did a
Code:
pm list packages -f
then cut and pasted the output into an editor and slowly inspected each listed item.
Here:
https://forum.xda-developers.com/showthread.php?t=710698
it says the app will be in a package called sprint_core.apk.
I did a
Code:
find . -name sprint_core.apk
and nothing.
Then tried
Code:
grep -ir "voicemail" .
from the system directory.
It got a few hits, but nothing looks right.
I'm thinking maybe the
Code:
ps
command will show me running tasks and from that I can figure it out.
MattR59 said:
I think
Code:
pm list packages -f | grep "some part of a name"
may also be helpful.
But I've tried that and still can't find it.
Also did a
Code:
pm list packages -f
then cut and pasted the output into an editor and slowly inspected each listed item.
Here:
https://forum.xda-developers.com/showthread.php?t=710698
it says the app will be in a package called sprint_core.apk.
I did a
Code:
find . -name sprint_core.apk
and nothing.
Then tried
Code:
grep -ir "voicemail" .
from the system directory.
It got a few hits, but nothing looks right.
I'm thinking maybe the
Code:
ps
command will show me running tasks and from that I can figure it out.
Click to expand...
Click to collapse
Yes, you can find it from process list.
Edit:
Also keep on mind that it can be also
https://source.android.com/devices/tech/config/voicemail
Sent from my WAS-LX1 using Tapatalk
Paget96 said:
Yes, you can find it from process list.
Edit:
Also keep on mind that it can be also
Sent from my WAS-LX1 using Tapatalk
Click to expand...
Click to collapse
FOUND IT!
It was com.coremobility.app.vnotes
How: Did a
Code:
ps
and looked for likely candidates.
vnotes looked promising. then did a
Code:
ps | grep vnotes
and noted the PID (tried to do a kill, not allowed).
On the phone I killed the process and reexecuted the ps - the PID changed.
Did other stuff on the phone, the PID did not change, killed it on the phone again, PID changed again.
Removed it with the pm command, looked for it on the phone... gone!
:laugh:
MattR59 said:
FOUND IT!
It was com.coremobility.app.vnotes
How: Did a
Code:
ps
and looked for likely candidates.
vnotes looked promising. then did a
Code:
ps | grep vnotes
and noted the PID (tried to do a kill, not allowed).
On the phone I killed the process and reexecuted the ps - the PID changed.
Did other stuff on the phone, the PID did not change, killed it on the phone again, PID changed again.
Removed it with the pm command, looked for it on the phone... gone!
[emoji23]
Click to expand...
Click to collapse
Nice, well done ^^
Sent from my WAS-LX1 using Tapatalk

Categories

Resources