[DEV][P769] 2nd Init Rom discussion - LG Optimus L9 P760, P765, P768, P769

Alright so this thread is to be used to discuss everything related to getting 2nd init to work in our phone, no matter how irrelevant it is as we do have a way to unlock the bootloader, some of us are having issues getting it to work.
Essentially the "adb reboot oem-unlock" not working on any OS or ADB version.
Theory is that a blown e-fuse implemented on TI OMAP devices are the culprit for this alleged "Perma-Locked"
SO, this could be seen as a work around for installing a custom rom on our device without unlocking the bootloader, or until LG spills the beans without Tmobile throwing a fit.
-----------------------------------------------------------------------------------------------
Anyways i found this for the Motorola Milestone 2 (TI omap device AFAIK)
http://forum.xda-developers.com/showthread.php?t=998425
EDIT: SO apparently Artas' recovery already installs 2nd init??
if so then all we need is a script to get the roms working?
http://forum.xda-developers.com/showthread.php?t=2099238
His thread.
please contribute and thanks

The script and recovery are found in system/bootstrap.
Sent from my LG-P769 using xda app-developers app
---------- Post added at 05:27 PM ---------- Previous post was at 05:26 PM ----------
We should work with cm10 by Anton without his kernel obviously. I'm out of town this weekend or I would whip up a quick WIP
Sent from my LG-P769 using xda app-developers app

omgbossis21 said:
The script and recovery are found in system/bootstrap.
Sent from my LG-P769 using xda app-developers app
---------- Post added at 05:27 PM ---------- Previous post was at 05:26 PM ----------
We should work with cm10 by Anton without his kernel obviously. I'm out of town this weekend or I would whip up a quick WIP
Sent from my LG-P769 using xda app-developers app
Click to expand...
Click to collapse
Looking inside ~/bootstrap:
2nd-init
getkey
recovery.tar
stop
taskset
unsecureboot
Now inside recovery.tar, is a folder called . and inside it is what the phone's filesystem looks like, do we need to fill in the correct folders for it to work?
im only used to building roms and zipping them so i have no idea how to work with 2nd init.
If you have the time then sure whip it up. anything is great in xda

I believe we don't touch the recovery and will use the app to reboot into it. otherwise the reboot to recovery option must be set to use that recovery.
Sent from my LG-P769 using xda app-developers app

omgbossis21 said:
I believe we don't touch the recovery and will use the app to reboot into it. otherwise the reboot to recovery option must be set to use that recovery.
Sent from my LG-P769 using xda app-developers app
Click to expand...
Click to collapse
Which one of those files is the script?
the file 2nd init?

MoonMaster345 said:
Which one of those files is the script?
the file 2nd init?
Click to expand...
Click to collapse
Not certain compare it with a rom. Also I'm on phone it won't let me copy paste check the code guru thread where I posted what files are checked by wallpaper. Bin. Either copy paste that here or gather the files and upload then to dropbox. They will be needed to stop the kernel from throwing a security error.

omgbossis21 said:
Not certain compare it with a rom. Also I'm on phone it won't let me copy paste check the code guru thread where I posted what files are checked by wallpaper. Bin. Either copy paste that here or gather the files and upload then to dropbox. They will be needed to stop the kernel from throwing a security error.
Click to expand...
Click to collapse
Expect it in 10 minutes
You removed the posts

Awesome... good luck, guys!
Sent from my LG-P769 using XDA Premium 4 mobile app

MoonMaster345 said:
Expect it in 10 minutes
You removed the posts
Click to expand...
Click to collapse
Trying to copy them here I posted it 2x in the end of thread. It should be towards the end of thread still.
Sent from my LG-P769 using xda app-developers app
---------- Post added at 07:10 PM ---------- Previous post was at 07:08 PM ----------
On our phone wallpaper accounts for these exact files (only files that would be required for a 2nd int rom =-)
<3>[08-07 06:15:39.437] [WALLPAPER] : lge.signed_image unknown
<3>[08-07 06:15:39.445] [WALLPAPER] : Verify Check Module : /system/lib/liblgdrm.so size : 1147536
<3>[08-07 06:15:39.476] [WALLPAPER] : Verify check module hash : 0x36 0x08 0x3A 0x94 0xED 0xFF 0xBA 0x2E 0x31 0x9D 0x77 0x75 0x78 0xD2 0x7E 0x9B
<3>[08-07 06:15:39.476] [WALLPAPER] : Verify Check Module : /system/lib/libdrmframework.so size : 91272
<3>[08-07 06:15:39.476] [WALLPAPER] : Verify check module hash : 0xAF 0x0D 0xD5 0x7F 0x9F 0x83 0x4F 0x26 0x26 0xFC 0x2F 0x04 0xF2 0x14 0x8D 0xAA
<3>[08-07 06:15:39.476] [WALLPAPER] : Verify Check Module : /system/lib/libssl.so size : 224752
<3>[08-07 06:15:39.484] [WALLPAPER] : Verify check module hash : 0xAD 0x27 0x73 0xAD 0x0A 0x48 0x3C 0x38 0xD4 0x40 0xC7 0x7D 0x8E 0x63 0xBA 0xBD
<3>[08-07 06:15:39.492] [WALLPAPER] : Verify Check Module : /system/lib/libcrypto.so size : 870988
<3>[08-07 06:15:39.515] [WALLPAPER] : Verify check module hash : 0x8D 0x67 0x72 0x42 0xDB 0xBD 0x82 0x87 0x3C 0x5B 0x52 0x6D 0xEC 0x0D 0x96 0x99
<3>[08-07 06:15:39.515] [WALLPAPER] : Verify Check Module : /system/lib/libsurfaceflinger.so size : 201976
<3>[08-07 06:15:39.523] [WALLPAPER] : Verify check module hash : 0xAA 0xDA 0x52 0x30 0x57 0xE2 0x88 0xFB 0xEA 0x78 0x85 0xA7 0x7F 0x5E 0xBB 0x75
<3>[08-07 06:15:39.523] [WALLPAPER] : Verify Check Module : /system/vendor/lib/drm/libdrmwvmplugin.so size : 50384
<3>[08-07 06:15:39.523] [WALLPAPER] : Verify check module hash : 0xF6 0xB0 0x77 0xF6 0xA6 0x1B 0x59 0xCE 0xCC 0x47 0x21 0xE0 0x93 0xB8 0x3E 0xD9
<3>[08-07 06:15:39.523] [WALLPAPER] : Verify Check Module : /system/vendor/lib/libwvm.so size : 38072
<3>[08-07 06:15:39.531] [WALLPAPER] : Verify check module hash : 0x26 0x95 0xAE 0x43 0xBB 0x5A 0x41 0x47 0x01 0x3D 0xEC 0x2B 0x5D 0x8A 0xEB 0x20
<3>[08-07 06:15:39.531] [WALLPAPER] : Verify Check Module : /system/vendor/lib/libWVStreamControlAPI_L1.so size : 2439924
<3>[08-07 06:15:39.593] [WALLPAPER] : Verify check module hash : 0xE4 0xC3 0x7B 0xED 0xBF 0x5B 0xBC 0xD7 0x0D 0x88 0x80 0xF7 0xCF 0x07 0xC0 0x24
Any issue with any of these files and boom, security error.
Sent from my LG-P769 using xda app-developers app

Op delivered
http://db.tt/UlxM6ECk
Sent from my LG-P769 using xda app-developers app

Thanks! Ill be back in town tonight so expect a wip up by tomorrow
Sent from my LG-P769 using xda app-developers app

Noob question. Is 2nd init similar to running a live Linux from USB or CD? In memory?
Sent from my LG-P769 using XDA Premium 4 mobile app

My understanding is is just a different way to boot a custom rom. It uses only factory kernel.
Sent from my LG-P769 using xda app-developers app

I remember this 2nd init thing from Motorola Milestone times...
Sent from my P760 using Tapatalk 2

zviki said:
I remember this 2nd init thing from Motorola Milestone times...
Sent from my P760 using Tapatalk 2
Click to expand...
Click to collapse
Sadly its the same chipsets..

The system is mounted on the system partition just like stock. Its not stored in ram.... think I've figured it out looking into a 2nd int rom. Should have time to put it togother tonight...
Sent from my LG-P769 using xda app-developers app

omgbossis21 said:
The system is mounted on the system partition just like stock. Its not stored in ram.... think I've figured it out looking into a 2nd int rom. Should have time to put it togother tonight...
Sent from my LG-P769 using xda app-developers app
Click to expand...
Click to collapse
Thanks for your work on this project. I am very excited to load it on my phone!

That is great news! I was just about ready to flash v20b kdz but got nervous...lol. This is a replacement for a Galaxy S II and I'd rather try this first.
Sent from my LG-P769 using XDA Premium 4 mobile app

Well first build just threw a security error. Sent a message to another developer. May have another go at it tomorrow.
Sent from my LG-P769 using xda app-developers app

Well, I don't know what I'm doing with this 2nd int mess.... other dev I contacted has no interest in 2nd int. He has done it before but confirmed my claim its very tricky lol. The link in the first post was developed up to gb only. I'm gonna look for a prada or similar 2nd int rom...
Sent from my LG-P769 using xda app-developers app

Related

How to add permissions for init.d folder in 4.0 (AOSP) source?

I would like to know how you add permissions for init.d folder in the aosp source so that the rom supports the init.d folder and scripts in it by default..
Sent from my Galaxy Nexus using Tapatalk 2
iceandfire said:
I would like to know how you add permissions for init.d folder in the aosp source so that the rom supports the init.d folder and scripts in it by default..
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
Updater script.
Sent from my Nexus S 4G using xda premium
Well I know that. But where is the updater script built from? Where to add it in the source?
Sent from my Galaxy Nexus using Tapatalk 2
I will link you something when I get home.
Sent from my Nexus S 4G using xda premium
I found the easiest way was to look at a script that did what I want mine to do, then compare it to one that already exists for my device, and merge the two. My $0.02.
lithid-cm said:
I will link you something when I get home.
Sent from my Nexus S 4G using xda premium
Click to expand...
Click to collapse
Still waiting....
chmod is the command , put it in the updater script , and then use the command on desired files ie chmod +777 /system/etc/init.d , something like that , hope it helps
I know what to add. But I want to know from where is the updater script built from the source. Where to add the permissions in the AOSP source for init.d folder.
Ok...this may seem simple, but have you tried using grep to search the code base? And I think it might be done in the releasetools scripts, do you have a releasetool folder in your device tree?
Here you go:
https://github.com/TeamHorizon/android_build/tree/master/tools/releasetools
In this file: https://github.com/TeamHorizon/android_build/blob/master/tools/releasetools/ota_from_target_files
Look at this module:
Code:
import edify_generator
When I get home from work I'll take a closer look at the API and see if I can get you the exact command.
---------- Post added at 03:20 PM ---------- Previous post was at 03:05 PM ----------
def SetPermissions(self, fn, uid, gid, mode)
You are going to want to call that function in there with your arguments. I'm guessing you can take it from here? Or do you need more help?
A little more help would be appreciated. Like what to add.
Sent from my Galaxy Nexus using Tapatalk 2
Ok I've never done this before so we are going to have to try some stuff. Let's start with this.
Find this block of code in the releasetools/ota_from_target_files file.
Code:
def WriteFullOTAPackage(input_zip, output_zip):
# TODO: how to determine this? We don't know what version it will
# be installed on top of. For now, we expect the API just won't
# change very often.
script = edify_generator.EdifyGenerator(3, OPTIONS.info_dict)
metadata = {"post-build": GetBuildProp("ro.build.fingerprint", input_zip),
"pre-device": GetBuildProp("ro.product.device", input_zip),
"post-timestamp": GetBuildProp("ro.build.date.utc", input_zip),
}
device_specific = common.DeviceSpecificParams(
input_zip=input_zip,
input_version=OPTIONS.info_dict["recovery_api_version"],
output_zip=output_zip,
script=script,
input_tmp=OPTIONS.input_tmp,
metadata=metadata,
info_dict=OPTIONS.info_dict)
if not OPTIONS.omit_prereq:
ts = GetBuildProp("ro.build.date.utc", input_zip)
script.AssertOlderBuild(ts)
AppendAssertions(script, input_zip)
device_specific.FullOTA_Assertions()
script.ShowProgress(0.5, 0)
script.Print("")
script.Print("************************************************")
script.Print("* *")
script.Print("* Team Horizon Presents *")
script.Print("* Xenon HD *")
script.Print("* Ice & Fire Adam80460 *")
script.Print("* *")
script.Print("************************************************")
script.Print("")
script.Print("Installing system files...")
if OPTIONS.wipe_user_data:
script.FormatPartition("/data")
script.FormatPartition("/system")
script.Mount("/system")
script.UnpackPackageDir("system", "/system")
(symlinks, retouch_files) = CopySystemFiles(input_zip, output_zip)
script.MakeSymlinks(symlinks)
if OPTIONS.aslr_mode:
script.RetouchBinaries(retouch_files)
else:
script.UndoRetouchBinaries(retouch_files)
boot_img = common.GetBootableImage("boot.img", "boot.img",
OPTIONS.input_tmp, "BOOT")
Item.GetMetadata(input_zip)
Item.Get("system").SetPermissions(script)
common.CheckSize(boot_img.data, "boot.img", OPTIONS.info_dict)
common.ZipWriteStr(output_zip, "boot.img", boot_img.data)
script.ShowProgress(0.2, 0)
script.ShowProgress(0.2, 10)
script.WriteRawImage("/boot", "boot.img")
script.ShowProgress(0.1, 0)
device_specific.FullOTA_InstallEnd()
if OPTIONS.extra_script is not None:
script.AppendExtra(OPTIONS.extra_script)
script.UnmountAll()
script.AddToZip(input_zip, output_zip)
WriteMetadata(metadata, output_zip)
Below the line that says Item.Get("system").SetPermissions(script) add:
Code:
script.SetPermissions("<path to your folder>", uid, gid, XXXX)
Please let me know if it works, I'm curious!
thewadegeek said:
Ok I've never done this before so we are going to have to try some stuff. Let's start with this.
Find this block of code in the releasetools/ota_from_target_files file.
Code:
def WriteFullOTAPackage(input_zip, output_zip):
# TODO: how to determine this? We don't know what version it will
# be installed on top of. For now, we expect the API just won't
# change very often.
script = edify_generator.EdifyGenerator(3, OPTIONS.info_dict)
metadata = {"post-build": GetBuildProp("ro.build.fingerprint", input_zip),
"pre-device": GetBuildProp("ro.product.device", input_zip),
"post-timestamp": GetBuildProp("ro.build.date.utc", input_zip),
}
device_specific = common.DeviceSpecificParams(
input_zip=input_zip,
input_version=OPTIONS.info_dict["recovery_api_version"],
output_zip=output_zip,
script=script,
input_tmp=OPTIONS.input_tmp,
metadata=metadata,
info_dict=OPTIONS.info_dict)
if not OPTIONS.omit_prereq:
ts = GetBuildProp("ro.build.date.utc", input_zip)
script.AssertOlderBuild(ts)
AppendAssertions(script, input_zip)
device_specific.FullOTA_Assertions()
script.ShowProgress(0.5, 0)
script.Print("")
script.Print("************************************************")
script.Print("* *")
script.Print("* Team Horizon Presents *")
script.Print("* Xenon HD *")
script.Print("* Ice & Fire Adam80460 *")
script.Print("* *")
script.Print("************************************************")
script.Print("")
script.Print("Installing system files...")
if OPTIONS.wipe_user_data:
script.FormatPartition("/data")
script.FormatPartition("/system")
script.Mount("/system")
script.UnpackPackageDir("system", "/system")
(symlinks, retouch_files) = CopySystemFiles(input_zip, output_zip)
script.MakeSymlinks(symlinks)
if OPTIONS.aslr_mode:
script.RetouchBinaries(retouch_files)
else:
script.UndoRetouchBinaries(retouch_files)
boot_img = common.GetBootableImage("boot.img", "boot.img",
OPTIONS.input_tmp, "BOOT")
Item.GetMetadata(input_zip)
Item.Get("system").SetPermissions(script)
common.CheckSize(boot_img.data, "boot.img", OPTIONS.info_dict)
common.ZipWriteStr(output_zip, "boot.img", boot_img.data)
script.ShowProgress(0.2, 0)
script.ShowProgress(0.2, 10)
script.WriteRawImage("/boot", "boot.img")
script.ShowProgress(0.1, 0)
device_specific.FullOTA_InstallEnd()
if OPTIONS.extra_script is not None:
script.AppendExtra(OPTIONS.extra_script)
script.UnmountAll()
script.AddToZip(input_zip, output_zip)
WriteMetadata(metadata, output_zip)
Below the line that says Item.Get("system").SetPermissions(script) add:
Code:
script.SetPermissions("<path to your folder>", uid, gid, XXXX)
Please let me know if it works, I'm curious!
Click to expand...
Click to collapse
This is what I got.
http://pastebin.com/SXzNtYrt
Trying something now. Will let you know.
Hahaha sorry I didn't mean literal "uid" and "gid", I meant the one's you wanted to use! I think "0" should work for both. And you don't actually put the "<>" around the brackets either. So try:
script.SetPermissions("/system/etc/init.d", 0, 0, 0755)
thewadegeek said:
Hahaha sorry I didn't mean literal "uid" and "gid", I meant the one's you wanted to use! I think "0" should work for both.
Click to expand...
Click to collapse
Hehe got that. Playing with it.
Cool glad it's going.
Added this in the file in the release tools:
script.SetPermissions("/system/etc/init.d", 0, 0555, 0755)
Got this in my updater script:
set_perm(0, 365, 0755, "/system/etc/init.d");
Will test it tomorrow.
Thanks for the help.
No problem, that's why we have a community. Besides it was nice to get a question from somebody who is actually trying to do something from source, and not all these people that just want to be "l33t" developers.
You probably want to add an entry for /system/etc/init.d in this file.
https://android.googlesource.com/pl...r/include/private/android_filesystem_config.h
So, you probably want to do this.
https://github.com/CyanogenMod/android_system_core/commit/cf47652af591a391c871d1ef8338565d6e5310ea

Aroma installer 2.56

Please help me,
SYNTAX ERROR!!! aroma-config on line 8 col 1
aroma-config here:
pastebin.com/amQuVCWj
Click to expand...
Click to collapse
Try my method on aroma post and report and
http://forum.xda-developers.com/showthread.php?t=1770284
This is aroma support thread port there not here lil
Sent from my HTC Sensation Z710e using Tapatalk 2
please help me
Harbir said:
Try my method on aroma post and report and
http://forum.xda-developers.com/showthread.php?t=1770284
This is aroma support thread port there not here lil
Sent from my HTC Sensation Z710e using Tapatalk 2
Click to expand...
Click to collapse
Thanks & other problem :
Here in last line error ? why ?
################################INSTALL#################################
if prop("ch.prop","selected.1")== "1"
then
install(
"Walkman Xperia™ Installation",
getvar("rom_name") + "\n" +
"Please wait while installation completes" +
"",
"icons/install"
);
checkviewbox(
#-- Title
"Installation Completed",
#-- Text
"<#selectbg_g><b>Congratulations...</b></#>\n\n"+
"<b>"+ini_get("rom_name")+"</b> has been installed into your device.\n\n",
#-- Icon
"@welcome",
#-- Checkbox Text
"Reboot your device now.",
#-- Initial Checkbox value ( 0=unchecked, 1=checked ) - (Optional, default:0)
"1",
#-- Save checked value in variable "reboot_it" (Optional)
"reboot_it"
);
endif;
###
#
# Check if reboot checkbox was checked
if
getvar("reboot_it")=="1"
then
reboot("onfinish");
endif;
What is the error so I can look into
Sent from my HTC Sensation using Tapatalk 2
Harbir said:
What is the error so I can look into
Sent from my HTC Sensation using Tapatalk 2
Click to expand...
Click to collapse
(status 0) - line 257 col 7 :
257 : endif;
MicQo said:
(status 0) - line 257 col 7 :
257 : endif;
Click to expand...
Click to collapse
Try to delete end if whole line and make it again as it some time worked with me ...
Sent from my HTC Sensation using Tapatalk 2
please help me
Harbir said:
Try to delete end if whole line and make it again as it some time worked with me ...
Sent from my HTC Sensation using Tapatalk 2
Click to expand...
Click to collapse
Without endif Error in 277 col 17
with endif error in 280 line 7
sorry wrong post

[TOOL/WinCE]CeSetBacklightLevel.exe

Thought I should share a little tool I wrote.
Abstract:
Changes Windows CE's backlight level on the fly, no warm boot required. It's a command line utility without an UI.
Requirements:
CE device with ARM processor.
Usage:
CeSetBacklightLevel.exe <intensity>
Example: CeSetBackLightLevel 100
MortScript example: Run("CeSetBackLightLevel.exe",100)
Download:
Source code and executable are attached to this post.
HTH
nice, could this with a mort script be used to set back-light according to the hour of the day ?
undergroundcugir said:
nice, could this with a mort script be used to set back-light according to the hour of the day ?
Click to expand...
Click to collapse
That exactly was the reason I made this tool.
jwoegerbauer said:
That exactly was the reason I made this tool.
Click to expand...
Click to collapse
can you help me make a loop in mortscript to check the time of the device and compare it to a look-up table that has the intensity of the screen for some periods of time ?
undergroundcugir said:
can you help me make a loop in mortscript to check the time of the device and compare it to a look-up table that has the intensity of the screen for some periods of time ?
Click to expand...
Click to collapse
In Windows CE we can't use Mortscript's RunAt command.
Perhaps somewhat like this:
Code:
If (FileExists("\Windows\CeSetBacklightLevel.exe"))
If(RegKeyExists("HKCU","ControlPanel\Backlight\Brightness")||RegKeyExists("HKCU","ControlPanel\Backlight\Backlightlevel"))
PollInterval = 1000 * 60 * 10 // 10 minutes
StartTime = 630 // 6:30AM
EndTime = 2130 // 9:30PM
WantedBacklightLevel = 100 // Hex: 64
While(1)
CurrentHour = 0
CurrentMinute = 0
CurrentSecond = 0
CurrentDay = 0
CurrentMonth = 0
CurrentYear = 0
GetTime ( CurrentHour, CurrentMinute, CurrentSecond, CurrentDay, CurrentMonth, CurrentYear )
TheTime = CurrentHour * 100 + CurrentMinute
If ((TheTime >= StartTime) && (TheTime <= EndTime))
CurrentBacklightLevel = -1
If( RegKeyExists("HKCU","ControlPanel\Backlight\Brightness"))
CurrentBacklightLevel = 0 + RegRead("HKCU","ControlPanel\Backlight\Brightness)
ElseIf( RegKeyExists("HKCU","ControlPanel\Backlight\Backlightlevel"))
CurrentBacklightLevel = 0 + RegRead("HKCU","ControlPanel\Backlight\Backlightlevel")
EndIf
If(CurrentBacklightLevel >= 0)
If (CurrentBacklightLevel <> WantedBacklightLevel)
Run ("\Windows\CeSetBacklightLevel.exe", WantedBacklightLevel)
EndIf
Else
// error occurred
Exit
EndIf
EndIf
Sleep(PollInterval)
EndWhile
EndIf
EndIf
I haven't had the oportunity to test it on my 2din. Has anyone tested the code ?
Sent from my V1_Viper using xda app-developers app
Hi there,
should this tool work on Becker TA 7827?
Hi, could someone tell me how to compile the C code jwoegerbauer published?. I have Visual Studio 2008 Pro, but do not know how to get an WinCE .exe.
I want to make some changes, because this utility does not work for me. My unit is a GPS Car, WinCE 6.0 NWD_308 Nowada Board, and I have problems with brightness. This:
http://www.seicane.com/bmw-5-series-e60-gps-navigation-with-radio-bluetooth-ipod-srd-8808
Thank you.
Nice, hope will get an .exe
@jwoegerbauer did you implement the loop in miopocket lite ?
Sent from my V1_Viper using XDA Free mobile app
akatarmo said:
Hi, could someone tell me how to compile the C code jwoegerbauer published?. I have Visual Studio 2008 Pro, but do not know how to get an WinCE .exe.
I want to make some changes, because this utility does not work for me. My unit is a GPS Car, WinCE 6.0 NWD_308 Nowada Board, and I have problems with brightness. This:
http://www.seicane.com/bmw-5-series-e60-gps-navigation-with-radio-bluetooth-ipod-srd-8808
Thank you.
Click to expand...
Click to collapse
As compiler I use Pelles C - it's freeware. Supports compiling native C-code for ARM devices.
undergroundcugir said:
Nice, hope will get an .exe
@jwoegerbauer did you implement the loop in miopocket lite ?
Sent from my V1_Viper using XDA Free mobile app
Click to expand...
Click to collapse
1.
You know that you can't compile a MortScript script into an executable? If you really need an executable, then you have to re-write the code sample shown earlier in 'C' or any other suitable programming language a compiler exists for.
2.
Don't use Miopocket Lite, hence not tested so far. BTW: Some time ago I've written MioPocket 4.0 Mini FV and published here:
https://code.google.com/p/miopocket-mini-40-fv/
Hi, jwoegerbauer.
Thanks for the info. I now have installed Pelles C and I can compile simple things. Abusing your kindness, could you tell me what program lines I need to write to generate a beep? I think MessageBeep, but the compiler takes Error
I am a newbie and I want to check your code to see why it does not work exactly in my unit.
Thanks again !!!
--
Antonio
There are a number of functions from the Standard C Runtime libraries missing under Windows CE.
But, MessageBeep API function should be present.
http://msdn.microsoft.com/en-us/library/aa930642.aspx
Thanks again, jwoegerbauer. With your help I made my first program in C (for Windows CE). Instead of the classic "Hello World", I made a Beep. This can be useful to use as debug semaphore. This is the code, for compile with Pelles C in WinCE Pocket PC Mode:
#include <windows.h>
int PASCAL WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpszCmdLine, int nCmdShow)
{
MessageBeep(MB_OK);
return 0;
}
I used the MessageBeep in your code.
HANDLE hBL=CreateEvent(NULL,FALSE,FALSE,L"BackLightChangeEvent");
if(hBL)
{
MessageBeep(MB_OK);
SetEvent(hBL);
CloseHandle(hBL);
retVal=1;
}
And really, the program executes the SetEvent (HBL). But does not work on my GPS car WinCE 6 .
---------- Post added at 09:00 PM ---------- Previous post was at 08:47 PM ----------
A question, jwoegerbauer.
I tried downloading your MioPocket Mini 4.0 FV from here: https://miopocketmini40fv.codeplex.com/releases
But the project is empty. Can you tell me where to I can download it (or send me by email), I have interest in trying it.
Thanks.
akatarmo said:
---------- Post added at 09:00 PM ---------- Previous post was at 08:47 PM ----------
A question, jwoegerbauer.
I tried downloading your MioPocket Mini 4.0 FV from here: https://miopocketmini40fv.codeplex.com/releases
But the project is empty. Can you tell me where to I can download it (or send me by email), I have interest in trying it.
Thanks.
Click to expand...
Click to collapse
Correct link: https://miopocketmini40fv.codeplex.com/releases/view/110660
Sorry for your inconvenience.
------------------------------
Please do NOT use current thread to discuss MioPocket Mini 4.0 FV. If necessary, use this thread instead of:
http://www.gpspassion.com/forumsen/topic.asp?TOPIC_ID=132727
Thanks.
I'm looking for a similar program, but for the MIPS processor, discussed this?

FCs in different apps after porting original framework

Hey guys!
So here's the problem.
I used framework-res,framework.jar, and android.policy.jar from the hdpi version of UHD by Jader.
I faced some fcs:-
1) Brightness fcs when i access it from settings->display. (Toggle in statusbar works well)
2) APN settings fc.
3) In QuickPic, when i try to change alignment of arrangement of photos, it fcs.
Please help!
Here are the logcats:-
https://db.tt/KTgYTd0b
Thank you!
Sent from my WT19i using XDA Premium 4 mobile app
Anyone? I really need help
Bump.
Someone help please?
coolancool said:
Hey guys!
So here's the problem.
I used framework-res,framework.jar, and android.policy.jar from the hdpi version of UHD by Jader.
I faced some fcs:-
1) Brightness fcs when i access it from settings->display. (Toggle in statusbar works well)
2) APN settings fc.
3) In QuickPic, when i try to change alignment of arrangement of photos, it fcs.
Please help!
Here are the logcats:-
https://db.tt/KTgYTd0b
Thank you!
Sent from my WT19i using XDA Premium 4 mobile app
Click to expand...
Click to collapse
come on gtalk >> [email protected] after 7 pm indian time
edit : use orignal UHD framework on mdpi as there is nothing needed to be changed in framework
Wish someone could help me out with this one.
It's making me crazy.
coolancool said:
Wish someone could help me out with this one.
It's making me crazy.
Click to expand...
Click to collapse
Hmmm...i believe you need to use the original system UI too cause those FC comes out because the system UI that you are using right now is not properly compile to work on original framework...
iPusak Gaoq™ said:
Hmmm...i believe you need to use the original system UI too cause those FC comes out because the system UI that you are using right now is not properly compile to work on original framework...
Click to expand...
Click to collapse
Is that what the logcat says?
Sent from my WT19i using XDA Premium 4 mobile app
Ignore this post
I am just using this post as a check point so I dont have to re-read the logs every time
Code:
11-03 23:46:47.524 4309 4309 E AndroidRuntime: FATAL EXCEPTION: main
11-03 23:46:47.524 4309 4309 E AndroidRuntime: android.view.InflateException: Binary XML file line #15: Error inflating class android.widget.RadioButton
11-03 23:46:47.524 4309 4309 E AndroidRuntime: at android.view.LayoutInflater.createView(LayoutInflater.java:606)
11-03 23:46:47.524 4309 4309 E AndroidRuntime: Caused by: android.content.res.Resources$NotFoundException: File res/drawable/btn_radio_label_background.xml from drawable resource ID #0x1080187
11-03 23:46:49.364 634 730 E InputDispatcher: channel '41036438 com.android.settings/com.android.settings.Settings (server)' ~ Channel is unrecoverably broken and will be disposed!

[DEV] kexec on locked bootloaders

To be continued
Sounds promising =D
Sorry I am unable to find working stock kernel source code, one from http://dl-developer.sonymobile.com/code/copylefts/6.2.A.1.100.tar.bz2 fail to compile at start, so I can not continue, no want to waste my time fixing it since I need excatly the same kernel source which will produce excatly the same binary - stock kernel, probably that will not be happen since sony public source is broken so I can not produce the same binary + later: new modules needed for kexec, sorry guys I stopping now. Our soc going to iritate me a lot
I can just compile it.
Using doomlords prebuilt toolchain
Sent from my C2 using xda app-developers app
nickholtus said:
I can just compile it.
Using doomlords prebuilt toolchain
Sent from my C2 using xda app-developers app
Click to expand...
Click to collapse
Did you tried latest Sony archive? I dont know why but when I "make defconfig" and than do "make" compilation asking me for a lot of defconfig related things - chooses, seems archive from Sony is corupted? Tried riogrande**defconfig, tried allso defconfig which I using, no one working. There asking me for x86 things which is ...no logic
If some one have locked bootloader and have "unlock allowed - no", please give me TA backup! To get TA backup simple install http://www.flashtool.net/download.php and do:
1. install it
2. run it
3. click file menu -> switch to pro
4. click to adwance menu -> trim area -> s1 -> backup
5. post your dump here
Thanks!
You can find many TA backups here.
Gesendet von meinem Xperia S mit Tapatalk
djolivier said:
You can find many TA backups here.
Gesendet von meinem Xperia S mit Tapatalk
Click to expand...
Click to collapse
Missin inposible with ta http://forum.xda-developers.com/showpost.php?p=49958520&postcount=687 only maybe kexec can do a job
Maybe hashcode could help for kexec on locked bootloader. He seems to make it work on several locked device(motorola,latest samsung).
munjeni said:
Sorry I am unable to find working stock kernel source code, one from http://dl-developer.sonymobile.com/code/copylefts/6.2.A.1.100.tar.bz2 fail to compile at start, so I can not continue, no want to waste my time fixing it since I need excatly the same kernel source which will produce excatly the same binary - stock kernel, probably that will not be happen since sony public source is broken so I can not produce the same binary + later: new modules needed for kexec, sorry guys I stopping now. Our soc going to iritate me a lot
Click to expand...
Click to collapse
Sir, I can confirm that its compiling. [TOOLCHAIN- arm-eabi-4.4.3 ] without any changes made in Makefile for now. Which toolchain are you using?
Cheers,
AJ
@munjeni as of now,Xperia U tree and P tree are using ARM-EABI-4.4.3
You can git clone it from here --> www.github.com/Abhinav1997/arm-eabi-4.4-3 and push it over to prebuilts/gcc/linux-x86/arm
So,if you still get errors,modify the toolchain line to : "arm-eabi-4.4.3/bin/arm-eabi-"
Hope it helps
Abhinav2 said:
Sir, I can confirm that its compiling. [TOOLCHAIN- arm-eabi-4.4.3 ] without any changes made in Makefile for now. Which toolchain are you using?
Cheers,
AJ
Click to expand...
Click to collapse
Sorry my wrong :laugh: I executed by this way:
make ARCH=arm CROSS_COMPILE=/root/gitstvari/android_prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi- riogrande_lotus_defconfig
make
instead of
make ARCH=arm CROSS_COMPILE=/root/gitstvari/android_prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi- riogrande_lotus_defconfig
make ARCH=arm CROSS_COMPILE=/root/gitstvari/android_prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-
Ok will continue.
Here is git https://github.com/munjeni/stock_jb_kexec_kernel_for_locked_bootloader/commits/master
lsmod
kexec_load 28179 0 - Live 0x00000000
procfs_rw 2435 0 - Live 0x00000000
Click to expand...
Click to collapse
status
[email protected]:/data/local/tmp # grep kexec_driver /dev/devices
grep kexec_driver /dev/devices
grep: /dev/devices: No such file or directory
2|[email protected]:/data/local/tmp # kexec --load zImage --initrd=initrd.gz --mem-m
in=0x3000000 --command-line="$(cat /proc/cmdline)"
initrd=initrd.gz --mem-min=0x3000000 --command-line="$(cat /proc/cmdline)" <
kernel: 0x401c7008 kernel_size: 35f1f8
kexec_load: entry = 0x3008000 flags = 280000
nr_segments = 3
segment[0].buf = 0xe75090
segment[0].bufsz = 210
segment[0].mem = 0x3001000
segment[0].memsz = 1000
segment[1].buf = 0x401c7008
segment[1].bufsz = 35f1f8
segment[1].mem = 0x3008000
segment[1].memsz = 360000
segment[2].buf = 0x40529008
segment[2].bufsz = 47e538
segment[2].mem = 0x3d7d000
segment[2].memsz = 47f000
kexec_load failed: Function not implemented
entry = 0x3008000 flags = 280000
nr_segments = 3
segment[0].buf = 0xe75090
segment[0].bufsz = 210
segment[0].mem = 0x3001000
segment[0].memsz = 1000
segment[1].buf = 0x401c7008
segment[1].bufsz = 35f1f8
segment[1].mem = 0x3008000
segment[1].memsz = 360000
segment[2].buf = 0x40529008
segment[2].bufsz = 47e538
segment[2].mem = 0x3d7d000
segment[2].memsz = 47f000
255|[email protected]:/data/local/tmp # cat /dev/kexec_driver
Click to expand...
Click to collapse
Progress:
[72371.535949] Kexec: KDS_entry : '3008000'
[72371.535980] Kexec: KDS_nr_segments : '3'
[72371.535980] Kexec: KDS_segment : '1afe8a8'
[72371.535980] Kexec: KDS_kexec_flags : '280004'
[72371.536010] Kexec: - Starting kexec_load...
[72371.599609] Kexec: - ---- kexec_load - result : '0'
[72392.445739] Kexec:-----------------------------------------------------
[72392.445800] Kexec: REBOOT DEVICE !!!
[72392.445953] Starting new kernel
[72392.446044] Bye!
Click to expand...
Click to collapse
Remaining thing is - need to reserve memory for storing hardboot atags, hope I can store them in the same memory like used on my kernel, if not than will investigate something
I wouldn't want to disturb devs working, but I think it would be interesting to follow this.
And btw, if you are still wondering about RCK_H, it's encrypted with unsalted SHA-256 hash
wan5xp said:
Maybe hashcode could help for kexec on locked bootloader. He seems to make it work on several locked device(motorola,latest samsung).
Click to expand...
Click to collapse
Who? Where?
mirhl said:
I wouldn't want to disturb devs working, but I think it would be interesting to follow this.
And btw, if you are still wondering about RCK_H, it's encrypted with unsalted SHA-256 hash
Click to expand...
Click to collapse
Probably some one found something and posted them, but post is deleted http://forum.xda-developers.com/show....php?t=1196932 why?
munjeni said:
Probably some one found something and posted them, but post is deleted http://forum.xda-developers.com/show....php?t=1196932 why?
Click to expand...
Click to collapse
your link was bad
but what posts should have been deleted? Can't see anything wrong
mirhl said:
your link was bad
but what posts should have been deleted? Can't see anything wrong
Click to expand...
Click to collapse
These is copy paste link, so I can not open broken link, tried to append 1196932 to the http://forum.xda-developers.com/newreply.php?do=newreply&p= but thats not link which pointing to the post related to the "arcievied unlock thing"... some one say that there is thread where some guys found unlock procedure for "unlock allowed = no", so I can not see these thread

Categories

Resources