Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
nasaiya
Old
#11  
Member
Thanks Meter 13
Posts: 58
Join Date: Feb 2012
Sounds good. I'm happy to help with this in any way possible, so let me know if you need anything...

Having to use adb to transfer files all the time is annoying!
 
kenyu73
Old
#12  
kenyu73's Avatar
Senior Member
Thanks Meter 79
Posts: 345
Join Date: Mar 2010
Location: Upstate NY
I started playing around in the android OS and here are some files I found that ahve "testmode" within them. I tried doing a full system search, but the 'find' keeps stalling/freezing. init.rc has some, what looks like, programmer patch scripts in it that directly affect testmode. What's funny is that each "patch" is labeled by the devs email address! We could probably email the guy to find out how to disable testmode.... (=

# find . -type f -exec grep -l "testmode" {} + 2> /sdcard/err.log

./init.rc
./system/lib/libandroid_runtime.so
./system/lib/libhardware_legacy.so
./system/app/VerizonHiddenMenu.apk
./system/app/Settings.apk
./system/app/LgHiddenMenu.odex
./system/app/LgHiddenMenu.apk
./system/etc/efs.txt
./system/framework/framework.odex
./system/bin/btld
./system/bin/lg_diag_app
./sys/devices/platform/testmode/uevent
./sys/devices/platform/testmode/modalias
Signal Problems? Try my product... [Real Signal] (=
https://play.google.com/store/apps/d...u73.realsignal


HTC One (AT&T/Net10)
HTC DNA
ASUS Nexus 7
Samsung Galaxy Nexus (rooted, retired)
HTC Thunderbolt (rooted, retired)
Samsung GT 10.1 (rooted)(retired)
HTC Flyer WiFi (rooted) (retired)
Samsung Fascinate (rooted, retired)
Achros 70s (retired)
HTC Incredible (rooted, retired)
HTC Eris (retired)
 
kenyu73
Old
#13  
kenyu73's Avatar
Senior Member
Thanks Meter 79
Posts: 345
Join Date: Mar 2010
Location: Upstate NY
I emailed one of the engineers listed in the init.rc file.... MAYBE if we're lucky, he'll help us out.
Signal Problems? Try my product... [Real Signal] (=
https://play.google.com/store/apps/d...u73.realsignal


HTC One (AT&T/Net10)
HTC DNA
ASUS Nexus 7
Samsung Galaxy Nexus (rooted, retired)
HTC Thunderbolt (rooted, retired)
Samsung GT 10.1 (rooted)(retired)
HTC Flyer WiFi (rooted) (retired)
Samsung Fascinate (rooted, retired)
Achros 70s (retired)
HTC Incredible (rooted, retired)
HTC Eris (retired)
 
kenyu73
Old
#14  
kenyu73's Avatar
Senior Member
Thanks Meter 79
Posts: 345
Join Date: Mar 2010
Location: Upstate NY
So far, not looking good. I think he may be thinking I was it disabled in the core, but he doesn't understand that its running actively.

Code:
Eric <~@gmail.com> Wed, Apr 4, 2012 at 9:13 AM
To: 김세현 <~@lge.com>

Thank you for your response!

Can testmode be disabled in Linux or from Android. Can we dial a code to turn it off?
How can I turn it off? Do you know how or can hint at how to do it?
Thank you again

김세현 <~@lge.com>	 Wed, Apr 4, 2012 at 9:25 AM
To: Eric <~@gmail.com>

Impossible!!

If you are guru, then you can disable it and then it make a brick.

It’s useless job. Why are you trying that?

Give up I suggest. Testmode is lg version of QCT diag cmd set.

BR.
Signal Problems? Try my product... [Real Signal] (=
https://play.google.com/store/apps/d...u73.realsignal


HTC One (AT&T/Net10)
HTC DNA
ASUS Nexus 7
Samsung Galaxy Nexus (rooted, retired)
HTC Thunderbolt (rooted, retired)
Samsung GT 10.1 (rooted)(retired)
HTC Flyer WiFi (rooted) (retired)
Samsung Fascinate (rooted, retired)
Achros 70s (retired)
HTC Incredible (rooted, retired)
HTC Eris (retired)
 
mtmichaelson
Old
#15  
mtmichaelson's Avatar
Senior Member
Thanks Meter 1113
Posts: 1,149
Join Date: Apr 2009
Location: Cane Ridge, TN

 
DONATE TO ME
Guys, test mode is embedded deep inside the kernel source. Disabling it in one place will cause it to not build because it is referenced in another file. Remove it from there and it won't build because of another. Etc., etc., etc. Now what you can try is asking if he knows which partition holds the flag for test mode. It is obviously not /boot, /data, /system/, or /recovery.

Sent from my VS920 4G using Tapatalk
 
kenyu73
Old
#16  
kenyu73's Avatar
Senior Member
Thanks Meter 79
Posts: 345
Join Date: Mar 2010
Location: Upstate NY
Quote:
Originally Posted by mtmichaelson View Post
Guys, test mode is embedded deep inside the kernel source. Disabling it in one place will cause it to not build because it is referenced in another file. Remove it from there and it won't build because of another. Etc., etc., etc. Now what you can try is asking if he knows which partition holds the flag for test mode. It is obviously not /boot, /data, /system/, or /recovery.

Sent from my VS920 4G using Tapatalk
Hey mt,

Do we know why emergency mode installed tot's flag testmode whereas regular installed tot's (from cwm recovery or usbmode) dont flag flag testmode? Same tot's same kernel, right?

Is it possible to pull the other mounts images (not /system, /data, etc) and push them to a testmode device?
Signal Problems? Try my product... [Real Signal] (=
https://play.google.com/store/apps/d...u73.realsignal


HTC One (AT&T/Net10)
HTC DNA
ASUS Nexus 7
Samsung Galaxy Nexus (rooted, retired)
HTC Thunderbolt (rooted, retired)
Samsung GT 10.1 (rooted)(retired)
HTC Flyer WiFi (rooted) (retired)
Samsung Fascinate (rooted, retired)
Achros 70s (retired)
HTC Incredible (rooted, retired)
HTC Eris (retired)
 
mtmichaelson
Old
#17  
mtmichaelson's Avatar
Senior Member
Thanks Meter 1113
Posts: 1,149
Join Date: Apr 2009
Location: Cane Ridge, TN

 
DONATE TO ME
I don't believe it's tots flashed from emergency mode per se, but rather phones that had bad recoveries installed first, then flashed in emergency mode.

Sent from my VS920 4G using Tapatalk
 
kenyu73
Old
#18  
kenyu73's Avatar
Senior Member
Thanks Meter 79
Posts: 345
Join Date: Mar 2010
Location: Upstate NY
Quote:
Originally Posted by mtmichaelson View Post
I don't believe it's tots flashed from emergency mode per se, but rather phones that had bad recoveries installed first, then flashed in emergency mode.

Sent from my VS920 4G using Tapatalk
Agreed.

Now, where is the flag, byte offset, or whatever that is flagging the whole system to be in 'testmode'. If it can be set, it can be unset.

Since /system, /data and /cache are wiped and replaced with a new ROM, then that leaves one of the other.. what (3 or 4) mounted partitions that could contain this flag. Maybe the rootfs contains this flag as a byte offset?

Again, what if a partition from a non-testmode device was exported and pushed to a testmode device? Is there a way to compare these other partitions byte for byte between a good and testmode device?

How I wish I was a linux guru right now.... damn you Microsoft!
Signal Problems? Try my product... [Real Signal] (=
https://play.google.com/store/apps/d...u73.realsignal


HTC One (AT&T/Net10)
HTC DNA
ASUS Nexus 7
Samsung Galaxy Nexus (rooted, retired)
HTC Thunderbolt (rooted, retired)
Samsung GT 10.1 (rooted)(retired)
HTC Flyer WiFi (rooted) (retired)
Samsung Fascinate (rooted, retired)
Achros 70s (retired)
HTC Incredible (rooted, retired)
HTC Eris (retired)
 
nasaiya
Old
(Last edited by nasaiya; 4th April 2012 at 09:43 PM.) Reason: addendum
#19  
Member
Thanks Meter 13
Posts: 58
Join Date: Feb 2012
I found a program called wxHexEdit that seems about right for the job...

It can compare two binary files / images.

I'm currently having a peek at the MISC partition but I don't have a non-testmode copy to compare it with.

If someone could hook me up with an image (mmcblk0p8) from a non-test-mode phone that would be great!
 
HighLimit
Old
#20  
HighLimit's Avatar
Senior Member
Thanks Meter 41
Posts: 142
Join Date: Mar 2012
Location: Huntsville AL

 
DONATE TO ME
I got out of test mode easy, just csll verizon and get a new phone.

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...