Related
Hello there! After months asking for the developer of Simple Streak Rom for a fix in the VPN connections (and no answer) I have been trying to fix it. Well, I made it! After several days of frustration, I have finally made it work
What do you need:
1. Working VPNServices.apk (I pulled from the PlayDoh ROM, which it is based on 354 ROM which it is supposedly the same of Simple Streak 1.2 Testing V4)
Links:
http://www.multiupload.com/E9RI0XOKCQ
Mirror:
https://sites.google.com/site/ernestovillarreal/home/VpnServices.apk?attredirects=0&d=1
2. Working tun.ko for our devices (thanks gpmg762 for that!)
Link:
http://www.multiupload.com/D3FXAJUC72
Mirror:
https://sites.google.com/site/ernestovillarreal/home/tun.ko?attredirects=0&d=1
3. Need to give special permissions to the VPNServices.apk. In a terminal emulator, or using adb, type:
Code:
su
mount -o remount,rw /dev/null /system
chmod 0644 /system/app/VpnServices.apk
mount -o remount,ro /dev/null /system
sync
reboot
3. Load for the first time the tun.ko. In the same console, type:
Code:
su
insmod /pathofwheretun.kois/tun.ko
4. Edit the init script to load the tun module every boot. Edit this file: "/etc/init.streak.post_boot.sh", adding this line to the last line:
"insmod /system/lib/modules/tun.ko"
ASSUMING you have the tun.ko in /system/lib/modules folder.
And that's it!
**UPDATE: It works! The problem seems to be my router, in 3G is working fine!!
**UPDATE 2: In my case, it is not working on WiFi. I'll try on other ones in the night.
**UPDATE 3: My bad, problem with the chmod. I have fixed it on the thread
**UPDATE 4: In the Simple Streak 1.3 testing 5, Splida added the tun.ko but he didnt add the VpnServices.apk nor the postboot modification. So, just skip step 2. And it is still not working using WiFi.
WiFi problem probably with dd-wrt router. Will test this night.
#Bump
This is awesome! VPN working on Simple Streak?! Downloading now.
Excited to use my blue tooth mouse with windows remote desktop (2x Client) away from the office and secured tunnel.
::EDIT:: working great on my WiFi!
Ok, so how do we script tun.ko? You could figure out how to run the insmod /data/tunko/tun.ko at every boot -TheManii, I'm looking at you
Or create a shortcut that will run tun.ko on demand and preferably connect the VPN with the same single click.
This is more of DJ_Steve's area of expertise I think, I dont really know much in regards to launching scripts on boot.
I guess you could make a script in /system/etc/init.d or just /system/etc
with
Code:
insmod /system/lib/modules/tun.ko
I dont see where streakdroid has it's scripts to run it, mabye it's automatic if it's in that folder? If it does in fact still need to be scripted i believe init.d runs with root privs?
Really I'm just guessing
May be you can try scriptmanager run on boot option
Sent from my Dell Streak using Tapatalk
Guys, you can put the line "/system/bin/insmod /system/lib/modules/tun.ko" into /etc/init.streak.post_boot.sh, that loads it for me after a reboot.
Or you can use GScript from market to load it manually.
Hope that helps.
gpmg762 said:
Guys, you can put the line "/system/bin/insmod /system/lib/modules/tun.ko" into /etc/init.streak.post_boot.sh, that loads it for me after a reboot.
Or you can use GScript from market to load it manually.
Hope that helps.
Click to expand...
Click to collapse
That's right, I figured it out minutes later I posted this post.. but I was lazy to put it here
In my case, I just put on the last line:
insmod /system/lib/modules/tun.ko
i'm testing your method now....
here is the result. ..
terminal emulator:
su
insmod /system/lib/modules/tun.ko
insmod: init_module '/system/lib/modules/tun.ko' failed(Exec format error)
need your expertise. . . .TIA
in init.streak.post_boot.sh
the last line says "esac"
will i put it like this{ esac "insmod /system/lib/modules/tun.ko"}
or like this:
esac
"insmod /system/lib/modules/tun.ko"
noob here....thanks again.
request. . .
gpmg762 said:
Guys, you can put the line "/system/bin/insmod /system/lib/modules/tun.ko" into /etc/init.streak.post_boot.sh, that loads it for me after a reboot.
Or you can use GScript from market to load it manually.
Hope that helps.
Click to expand...
Click to collapse
can you compile a working tun.ko for my device sir?tun attached in this thread didn't work for me...here is the info:
dell streak 5
android 2.2.2
baseband - GAUSB1A134700-EU
kernel - SimpleStreakKernel-bySpidlA
OEM - GAUSB1A135411
build number - Simple Streak 1.3 (4th testing)
TIA XDA MEMBERS...
takoyaki17 said:
can you compile a working tun.ko for my device sir?tun attached in this thread didn't work for me...here is the info:
dell streak 5
android 2.2.2
baseband - GAUSB1A134700-EU
kernel - SimpleStreakKernel-bySpidlA
OEM - GAUSB1A135411
build number - Simple Streak 1.3 (4th testing)
TIA XDA MEMBERS...
Click to expand...
Click to collapse
Try to ask him via PM and then, provide the tun.ko, so I can put it on the mirror server to everyone.
takoyaki17 said:
i'm testing your method now....
here is the result. ..
terminal emulator:
su
insmod /system/lib/modules/tun.ko
insmod: init_module '/system/lib/modules/tun.ko' failed(Exec format error)
need your expertise. . . .TIA
in init.streak.post_boot.sh
the last line says "esac"
will i put it like this{ esac "insmod /system/lib/modules/tun.ko"}
or like this:
esac
"insmod /system/lib/modules/tun.ko"
noob here....thanks again.
Click to expand...
Click to collapse
Thanks right, but without the quotes.
Like this:
esac
insmod /system/lib/modules/tun.ko
Still searching for the right tun.ko to run openvpn in my streak....
Sent from my Dell Streak using XDA Premium App
takoyaki17 said:
Still searching for the right tun.ko to run openvpn in my streak....
Sent from my Dell Streak using XDA Premium App
Click to expand...
Click to collapse
if you trust me, sned me the login details so I can check with my cell phone if I can log in.
hmmm
netomx said:
if you trust me, sned me the login details so I can check with my cell phone if I can log in.
Click to expand...
Click to collapse
log in details of what?my openvpn or my xda account?
takoyaki17 said:
can you compile a working tun.ko for my device sir?tun attached in this thread didn't work for me...here is the info:
dell streak 5
android 2.2.2
baseband - GAUSB1A134700-EU
kernel - SimpleStreakKernel-bySpidlA
OEM - GAUSB1A135411
build number - Simple Streak 1.3 (4th testing)
TIA XDA MEMBERS...
Click to expand...
Click to collapse
try the attached file.
netomx said:
if you trust me, sned me the login details so I can check with my cell phone if I can log in.
Click to expand...
Click to collapse
For your last config file.
takoyaki17 said:
log in details of what?my openvpn or my xda account?
Click to expand...
Click to collapse
Your OpenVPN login details.
thanks but. . .
gpmg762 said:
try the attached file.
Click to expand...
Click to collapse
i think it doesn't work....
i used terminal emulator to test it
and says no such file or directory....
can you take another shot sir....thanks
takoyaki17 said:
i think it doesn't work....
i used terminal emulator to test it
and says no such file or directory....
can you take another shot sir....thanks
Click to expand...
Click to collapse
That seems to be a problem in your terminal emulator.
hmmm
netomx said:
That seems to be a problem in your terminal emulator.
Click to expand...
Click to collapse
i dont think so...at first i thought that's the problem too....
so i tried using openvpn it says FATAL ERROR: cannot allocate tun/tap
you guys are great...so please help me. . .thanks
takoyaki17 said:
i dont think so...at first i thought that's the problem too....
so i tried using openvpn it says FATAL ERROR: cannot allocate tun/tap
you guys are great...so please help me. . .thanks
Click to expand...
Click to collapse
yes it is, that's why openvpn can't open the tun device.
type here what you write on the terminal
netomx said:
yes it is, that's why openvpn can't open the tun device.
type here what you write on the terminal
Click to expand...
Click to collapse
same as your post...
su
mount -o remount,rw /dev/null /system
chmod 0644 /system/app/VpnServices.apk
mount -o remount,ro /dev/null /system
sync
reboot
then after reboot:
su
insmod /system/lib/modules/tun.ko
i tried the one gpmr provided ad the result is:
no such file or directory
then i tried the one that he gave you last:
Failed (file exist)
anyway,what does 0644 do to the vpnservices.apk?
Hi guys, I've gotten quite a few pm's lately about learning how to develop things for our Amaze. So I decided to make this thread as a the one stop shop to ask all your development questions and to discuss the problems your encountering and get answers to them instead of keeping everything private so if you want to learn how to cook, modify, develop your own android rims this is the place to come Ask away
Sent from my HTC_Amaze_4G using xda premium
Awesome! Well i wanna learn how to cook roms and modify them, like for example replacing apps and adding apps
Sent from my iPad using Tapatalk HD
Umm... How do you flash a Rom
Sent from my HTC_Amaze_4G using Tapatalk 2
ETA on an update for Team nightmare Sense 4.0?
eggydrums said:
Awesome! Well i wanna learn how to cook roms and modify them, like for example replacing apps and adding apps
Sent from my iPad using Tapatalk HD
Click to expand...
Click to collapse
A good place to start would be here http://forum.xda-developers.com/showthread.php?t=633246 it' lets you extract roms and a bunch of other things so you can see how a rom is constructed. /system/app is where the system apps are they can't be updated from market so that's where you would put superuser and stuff but user apps would go in /data/app which you can make using the kitchen i linked you too I made my first rom with it http://forum.xda-developers.com/showthread.php?t=1303850
ziggy46 said:
Umm... How do you flash a Rom
Sent from my HTC_Amaze_4G using Tapatalk 2
Click to expand...
Click to collapse
Well ziggy first you take your amaze and put it in the oven for 1 Hour then you take it to a body of water and through it right in the middle and your done lol
Thanks ill try that later. Are there any chances of a brick? Lol
Oh and I cab help out with this thread to cause I know a lot as well
Sent from my HTC_Amaze_4G using Tapatalk 2
sportsstar89 said:
A good place to start would be here http://forum.xda-developers.com/showthread.php?t=633246 it' lets you extract roms and a bunch of other things so you can see how a rom is constructed. /system/app is where the system apps are they can't be updated from market so that's where you would put superuser and stuff but user apps would go in /data/app which you can make using the kitchen i linked you too I made my first rom with it http://forum.xda-developers.com/showthread.php?t=1303850
Well ziggy first you take your amaze and put it in the oven for 1 Hour then you take it to a body of water and through it right in the middle and your done lol
Click to expand...
Click to collapse
Thanks sports i will try. If im gonna try and cook a rom, can i use a rom thats already made, much like how eclipse speed rom that he made using energy rom?
Sent from my iPad using Tapatalk HD
eggydrums said:
Thanks sports i will try. If im gonna try and cook a rom, can i use a rom thats already made, much like how eclipse speed rom that he made using energy rom?
Sent from my iPad using Tapatalk HD
Click to expand...
Click to collapse
Yes you can make roms from other roms. That's what devs do when they say that they based a Rom from another.
Sent from my epic amaze 4g
Dang my computer is too suckish to set up the kitchen :/
Sent from my iPad using Tapatalk HD
When I try and install the ROM, I get an error. I think it says, expected 4 args but got 3. something along those lines lol.
hasoon2000 said:
When I try and install the ROM, I get an error. I think it says, expected 4 args but got 3. something along those lines lol.
Click to expand...
Click to collapse
Your own rom?
Sent from my HTC_Amaze_4G using xda premium
hasoon2000 said:
When I try and install the ROM, I get an error. I think it says, expected 4 args but got 3. something along those lines lol.
Click to expand...
Click to collapse
Updater--script error?
Sent from a Galaxy Nexus?
Dark Nightmare said:
Updater--script error?
Sent from a Galaxy Nexus?
Click to expand...
Click to collapse
Yep that's what it is
Sent from my HTC_Amaze_4G using xda premium
sportsstar89 said:
Yep that's what it is
Sent from my HTC_Amaze_4G using xda premium
Click to expand...
Click to collapse
I tried making my own ROM. I looked at the updater-script. The kitchen makes it and add the MTD format type rather than EXT4. I have no clue how to fix it.
Sent from my HTC_Amaze_4G using Tapatalk 2
I have a few questions
1-what libs do you push so that the AOSP ics keyboard (or any other for that matter) to work
2- how do you set a default wallpaper for a sense rom, do you open up the Rosie apk or the htc resource... Because when I change the framework wallpaper it doesn't stick
3- what are some more examples of init.d scripts as I don't know many
These questions are relatively simple so don't scold me.....
hasoon2000 said:
I tried making my own ROM. I looked at the updater-script. The kitchen makes it and add the MTD format type rather than EXT4. I have no clue how to fix it.
Sent from my HTC_Amaze_4G using Tapatalk 2
Click to expand...
Click to collapse
The problem with the kitchen is it doesn't have an config script for the ruby so just take any updater script from any Rom and it'll work
Sent from my HTC_Amaze_4G using xda premium
EclipzeRemix said:
I have a few questions
1-what libs do you push so that the AOSP ics keyboard (or any other for that matter) to work
2- how do you set a default wallpaper for a sense rom, do you open up the Rosie apk or the htc resource... Because when I change the framework wallpaper it doesn't stick
3- what are some more examples of init.d scripts as I don't know many
These questions are relatively simple so don't scold me.....
Click to expand...
Click to collapse
1. I'm not quite sure try the latinime libs and input libs and i believe some of it is framework
2. customize folder i think just replace what the default wall paper is which a file with the same name
3. to Zipalign
Code:
LOG_FILE=/data/zipalign.log
if [ -e $LOG_FILE ]; then
rm $LOG_FILE;
fi;
echo "Starting Automatic ZipAlign $( date +"%m-%d-%Y %H:%M:%S" )" | tee -a $LOG_FILE;
for apk in /data/app/*.apk ; do
zipalign -c 4 $apk;
ZIPCHECK=$?;
if [ $ZIPCHECK -eq 1 ]; then
echo ZipAligning $(basename $apk) | tee -a $LOG_FILE;
zipalign -f 4 $apk /cache/$(basename $apk);
if [ -e /cache/$(basename $apk) ]; then
cp -f -p /cache/$(basename $apk) $apk | tee -a $LOG_FILE;
rm /cache/$(basename $apk);
else
echo ZipAligning $(basename $apk) Failed | tee -a $LOG_FILE;
fi;
else
echo ZipAlign already completed on $apk | tee -a $LOG_FILE;
fi;
done;
echo "Automatic ZipAlign finished at $( date +"%m-%d-%Y %H:%M:%S" )" | tee -a $LOG_FILE;
Calibrate Battery
Code:
SLEEP=120
if [ -e /data/.battery-calibrated ] ; then
exit 0
fi
(
while : ; do
LEVEL=$(cat /sys/class/power_supply/battery/capacity)
CUR=$(cat /sys/class/power_supply/battery/batt_current)
if [ "$LEVEL" == "100" ] && [ "$CUR" == "0" ] ; then
log -p i -t battery-calibration "*** LEVEL: $LEVEL CUR: $CUR***: calibrating..."
rm -f /data/system/batterystats.bin
touch /data/.battery-calibrated
exit 0
fi
# log -p i -t battery-calibration "*** LEVEL: $LEVEL CUR: $CUR ***: sleeping for $SLEEP s..."
sleep $SLEEP
done
) &
sportsstar89 said:
The problem with the kitchen is it doesn't have an config script for the ruby so just take any updater script from any Rom and it'll work
Sent from my HTC_Amaze_4G using xda premium
Click to expand...
Click to collapse
Can you give me some tips so I can make it work myself?
hasoon2000 said:
Can you give me some tips so I can make it work myself?
Click to expand...
Click to collapse
Well the problem is that it has the wrong mount points so you change MTD or yaffs to EXT4 and you'll need to change the partition numbers which you can compare on any other updater scrip I would need to see it to tell you more
Sent from my HTC_Amaze_4G using xda premium
Google amaze 4g mount points and also how to write updater-script, I found an excellent tutorial right here on xda that taught me to write a script and the mount points are helpful for the obvious reason, though there are some universal methods I found in peoples scripts that are much easier to write.
Sent from a Galaxy Nexus?
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
KERNEL FOR SM-N9005 - SNAPDRAGON 800 MODEL
Successfully changed SELinux status to permissive. Able to restore apps with Titanium Backup with data without force closes.
This is the stock samsung kernel source, but changed the SELinux policy from enforcing to permissive.
In the settings app, it still shows as "Permissive", see the attached image.
Flash at your own risk. Please have an available flashable tar file of a working boot.img just in case, however it works fine on my phone!
Link to stock kernels: http://forum.xda-developers.com/showthread.php?t=2459328&highlight=stock+roms
Known Issues
Wifi and exfat external storage not working
WiFi not working. To fix: modify build.prop ro.securestorage.support=true - Change to false. WiFi works on reboot (Thanks to freeza)
ExFAT external storage not working. To fix: Use https://github.com/dorimanx/exfat-nofuse
Download Here: https://www.dropbox.com/s/8ze2xzk2mcbagyc/DJT_N9005_KERNEL.tar
TODO:
- Add ExFAT to kernel
- Add Busybox / init.d capability
- Add CPU overclocking
For other kernel devs, there is new feature in Snapdragon 800 mtd where you need a different version of mkbootimg tools.
More Information
Some more info:
In the build config specified by Samsung, there is the following:
Code:
CONFIG_SEC_RESTRICT_ROOTING=y
CONFIG_SEC_RESTRICT_SETUID=y
CONFIG_SEC_RESTRICT_FORK=y
CONFIG_SEC_RESTRICT_ROOTING_LOG=y
And the build notes for the kernel say this:
$ make VARIANT_DEFCONFIG=msm8974_sec_hlteeur_defconfig msm8974_sec_defconfig SELINUX_DEFCONFIG=selinux_defconfig
And if we look at the SELINUX Makefile:
Code:
ifeq ($(SEC_BUILD_OPTION_SELINUX_ENFORCE),true)
EXTRA_CFLAGS += -DCONFIG_ALWAYS_ENFORCE=true
endif
My guess is that because we are "supposed" to build with the SELinux flag, then the Makefile picks this up and sets ALWAYS ENFORCE to true. So I am now rebuilding kernel now to try it without that line.
it dose not work on my stock rom
After flashing over Omega ROM 1.0 i lost WIFI (could not activate it) and external storage access.
Still SELinux was indeed permissive and data restore with Titanium was working.
bubbl3 said:
After flashing over Omega ROM 1.0 i lost WIFI (could not activate it) and external storage access.
Still SELinux was indeed permissive and data restore with Titanium was working.
Click to expand...
Click to collapse
Thankyou I will look at fixing this. I also realised lost wifi.
Sent from my SM-N9005 using xda app-developers app
danieljamie said:
Thankyou I will look at fixing this. I also realised lost wifi.
Sent from my SM-N9005 using xda app-developers app
Click to expand...
Click to collapse
Woa, how can you able to flash kernel with locked bootloader ?, how do i create tar and boot.img from the zImage ?
Thanks
rheza02 said:
Woa, how can you able to flash kernel with locked bootloader ?, how do i create tar and boot.img from the zImage ?
Thanks
Click to expand...
Click to collapse
boot.img consists of the kernel and ramdisk. You need ramdisk compiled from source, or ripped from a current working boot.img.
Then use tool mkboot to package zImage and ramdisk into boot.img (not just any mkboot, there is a special one updated for usage with snapdragon 800).
Then just use tar command in linux: tar -cvf mykernel.tar boot.img
Then flash in odin
Does this work with SM-N900W8 version?
Sorry for Out of topic,
do you compile the boot.img with the dt.img ?
Thanks
rheza02 said:
Sorry for Out of topic,
do you compile the boot.img with the dt.img ?
Thanks
Click to expand...
Click to collapse
Yes...
Use this:
https://github.com/xiaolu/mkbootimg_tools
Can you please do it for SM-900 version also ?
Sent from my SM-N900 using XDA Premium 4 mobile app
How do we make the modules for wifi and external storage ?, I able to compile my own kernel now. but can't access external storage and wifi.
rheza02 said:
How do we make the modules for wifi and external storage ?, I able to compile my own kernel now. but can't access external storage and wifi.
Click to expand...
Click to collapse
I'm wondering the same thing brother. I want to open a thread regarding kernel compiling but don't know where to do it or where to get help. Feel so stuck.
Then my dev environment died on me and make started throwing me errors randomly after I did apt-get upgrade.
Sent from my SM-N9005 using xda app-developers app
danieljamie said:
I'm wondering the same thing brother. I want to open a thread regarding kernel compiling but don't know where to do it or where to get help. Feel so stuck.
Then my dev environment died on me and make started throwing me errors randomly after I did apt-get upgrade.
Sent from my SM-N9005 using xda app-developers app
Click to expand...
Click to collapse
Do you have google+ ?, can we chat while doing this. hehe!
rheza02 said:
Do you have google+ ?, can we chat while doing this. hehe!
Click to expand...
Click to collapse
Yeah I will send you a PM
Hi, I'm in the same boat as you guys. I have compiled a kernel successfully and while WiFi works, sdcard/exfat doesn't.
We need to figure out how to get to the bottom of this! Oddly enough, kernel modules are no longer in /system/lib/modules. I guess they're baked into the kernel?
feel free to add me on google+. my xda username @ gmail
freeza said:
Hi, I'm in the same boat as you guys. I have compiled a kernel successfully and while WiFi works, sdcard/exfat doesn't.
We need to figure out how to get to the bottom of this! Oddly enough, kernel modules are no longer in /system/lib/modules. I guess they're baked into the kernel?
feel free to add me on google+. my xda username @ gmail
Click to expand...
Click to collapse
How did you get wifi working???
Sent from my SM-N9005 using xda app-developers app
And what about Exynos kernel?
Code:
parentDir
|-- mkbootimg
|--/XXDEV-ramdisk/
+--/Kernel-folder/
Code:
makeKernel
Code:
#!/bin/sh
export KDIR=`readlink -f ../Kernel-folder/`
if [ -z ${1} ]; then
echo "Enter the device code"
exit 1;
else
export DEV=$1
fi
case $DEV in
XXDEV) export DEFCONFIG="XXDEV_defconfig";
export RDIR="XXDEV-ramdisk";;
*) echo "Not a valid device"
exit 2;;
esac;
cd $KDIR;
echo "Making $DEFCONFIG";
if [ -z $3 ]; then
make $DEFCONFIG ARCH=arm || exit 3;
nice -n 10 make modules -j4 ARCH=arm || exit 4;
nice -n 10 make -j4 ARCH=arm || exit 5;
else
echo "Bypassing kernel make."
fi
find -name '*.ko' -exec cp -av {} ../$RDIR/lib/modules/ \;
chmod 644 ../$RDIR/lib/modules/* ;
cd ..;
cd ./$RDIR
pwd;
find . | cpio -o -H newc | gzip -9 > ../$RDIR.cpio.gz
cd ..
./mkbootimg --kernel $KDIR/arch/arm/boot/zImage --ramdisk $RDIR.cpio.gz -o boot.img && echo "Made boot image."
tar cf ./Finished/Kernel-$2-$DEV.tar boot.img
echo "Made Kernel-$2-$DEV.tar"
exit 0;
Code:
parentDir/makeKernel XXDEV whateverVersionNumber
Now stop pestering me, I'm not a helpdesk. All of the above is easily found if you search for it.
I've managed to fix both sdcard(EXFAT) and WiFi
Just gonna jump right into it and Masterchief87 helped with this
Code:
Install packages needed to build
Note: Some of these may have changed some ,it has been a good 6 months since I have had to set up an environment. Feel free to post and changes or ask for help.
$ yaourt -S git gnupg flex bison gperf sdl wxgtk squashfs-tools curl ncurses zlib schedtool perl-switch zip unzip libxslt python2-virtualenv bc
$ yaourt -S gcc-multilib lib32-zlib ( For Arch Linux sudo mousepad /etc/pacman.conf and include multilib-testing & multilib. Then update packages sudo pacman -Syu)
$ yaourt libtinfo , then pick libtinfo-5 5-10 should be #5
# To build Android 6.0 and above you also need rsync.
$ yaourt -S rsync
# To install ncurses5-compat-libs you need
# to enter this key in your terminal first.
$ gpg --keyserver pgp.mit.edu --recv-keys C52048C0C0748FEE227D47A2702353E0F7E48EDB
$ yaourt -S ncurses5-compat-libs
# Before installing lib32-ncurses5-compat-libs I had to
# uninstall these packages due to conflicts and dependencies.
# this might or might not be necessary for you. If you are unable to
# install lib32-ncureses5-compat-libs because it conflicts with other
# installed packages, this should fix the problem.
$ sudo pacman -R lib32-ncurses lib32-libxml2 lib32-gconf lib32-libcroco lib32-libsoup lib32-llvm-libs lib32-readline lib32-js17 lib32-librsvg lib32-mesa lib32-rest lib32-cairo lib32-glew1.10 lib32-gtk3 lib32-polkit lib32-colord lib32-gtk2 lib32-pango lib32-libdbusmenu-gtk2 lib32-libindicator-gtk2 lib32-libappindicator-gtk2
# Install more necessary packages.
$ yaourt -S lib32-ncurses5-compat-libs
$ yaourt -S lib32-readline
$ yaourt -S make-3.81
$ yaourt -S pngcrush
$ yaourt -S pngquant
# Install java 7 and set it as default
$ yaourt -S jdk7-openjdk
$ sudo archlinux-java set java-7-openjdk
# Check java version.
$ java -version
# Output should look something like this.
# java version "1.7.0_91"
# OpenJDK Runtime Environment (IcedTea 2.6.3)
# (Arch Linux build 7.u91_2.6.3-3-x86_64)
# OpenJDK 64-Bit Server VM (build 24.91-b01, mixed mode)
# Install java 8 and set it as default
$ yaourt -S jdk8-openjdk
$ sudo archlinux-java set java-8-openjdk
$ java -version
# Output should look something like this.
# openjdk version "1.8.0_112"
# OpenJDK Runtime Environment (build 1.8.0_112-b15)
# OpenJDK 64-Bit Server VM (build 25.112-b15, mixed mode)
# Install repo and configure it to download the source
$ mkdir ~/bin
$ PATH=~/bin:$PATH
$ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
$ chmod a+x ~/bin/repo
# Symlink make-3.81 and python2 to ~/bin
$ ln -s /usr/bin/make-3.81 ~/bin/make
$ ln -s /usr/bin/make-3.81-config ~/bin/make-config
$ ln -s /usr/bin/python2 ~/bin/python
$ ln -s /usr/bin/python2-config ~/bin/python-config
# Download the Android SDK from
# [url]http://dl.google.com/android/android-sdk_r24.4.1-linux.tgz[/url]
# Then extract it to your home directory and rename to android-sdk
# Open and edit .bashrc with mousepad text editor.
$ mousepad ~/.bashrc
# Add these lines to the end of .bashrc (make sure you dont copy the *).
* export LANG=C
* export PATH=~/bin:$PATH
* export PATH=$PATH:~/android-sdk/tools/
* export PATH=$PATH:~/android-sdk/platform-tools/
* export USE_CCACHE=1
* export CCACHE_DIR=~/.ccache
* export JAVA_HOME=/usr/lib/jvm/java
# Save changes and close mousepad.
# Restart .bashrc.
$ source ~/.bashrc
# Run SDK Manager and install the platform-tools(adb, fastboot, etc...).
$ android sdk (Select platform-tools and install)
# Close SDK Manager
# Check make version. (It should be 3.81)
$ make --v
# Check python version. (It should be 2.7)
$ python --version
For those getting clang errors add this commit
[url]https://review.cyanogenmod.org/#/c/120824/[/url]
Note: This guide is tailored toward the XFCE version of Manjaro 15.09 and above. You can use this guide with other versions of Manjaro but there are some commands that will be slightly different. For example, mousepad is the text editor that comes with XFCE so if you install a different version you will have to find out the name of the text editor included in the version you installed and change the command accordingly.
Because there are already guides on YouTube and elsewhere, that show how to install Manjaro or replace another Linux distro with Manjaro we will not explain the installation process or hold anyone's hand when it comes to installation.
What did not exist was a simple user friendly guide explaining how to set up the build environment, which is why this is here.
ps: For those of you who may not already know, please refrain from quoting the whole op. It's bad manners.
Very nice work here my friend!
Masterchief87 said:
Thanks for the mention bro.
If anyone has a hard time with this I'll try to help where I can.
ps: For those of you who may not already know, please refrain from quoting the whole op. It's bad manners.
Click to expand...
Click to collapse
Hi,
can you please elaborate whole process in a simple way noob friendly .
rajlko said:
Hi,
can you please elaborate whole process in a simple way noob friendly .
Click to expand...
Click to collapse
Well are you even running Manjaro? If you're a noob, well you should probably start with a disrto like Ubuntu or mint. Manjaro is a Linux Arch base OS with a installer like Ubuntu.
Sent from my Nexus 5 using Tapatalk
D-FUSE said:
Well are you even running Manjaro? If you're a noob, well you should probably start with a disrto like Ubuntu or mint. Manjaro is a Linux Arch base OS with a installer like Ubuntu.
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
at present I am using ubuntu 14.04 , a detailed guide will be very helpful.
rajlko said:
at present I am using ubuntu 14.04 , a detailed guide will be very helpful.
Click to expand...
Click to collapse
This is if you're running Manjaro
Sent from my Nexus 5 using Tapatalk
rajlko said:
Hi,
can you please elaborate whole process in a simple way noob friendly .
Click to expand...
Click to collapse
That's what @D-FUSE and I already did. Once you install Manjaro it is as easy as copy and paste.
rajlko said:
at present I am using ubuntu 14.04 , a detailed guide will be very helpful.
Click to expand...
Click to collapse
Manjaro already includes a GUI installer much like the installer for Ubuntu. Replacing Ubuntu with manjaro is very easy. There is already plenty of information related to installing Manjaro Linux to be found on Google and YouTube. Because there are already Install guides we don't need to go through the installation process in this guide. What did not already exist was a simple guide detailing how to successfully set up the build environment after installing Manjaro which is why this is here.
VECTUS said:
Very nice work here my friend!
Click to expand...
Click to collapse
How have you been bro?
Sent from my Nexus 5 using Tapatalk
D-FUSE said:
How have you been bro?
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Thanks for this. Awesome guide, jumped ship on Ubuntu and moved over to Manjaro. Glad I made the switch.
obsolete1 said:
Thanks for this. Awesome guide, jumped ship on Ubuntu and moved over to Manjaro. Glad I made the switch.
Click to expand...
Click to collapse
I used Ubuntu for 3 year and about 3 months ago I tried Manjaro and haven't looked back!
Sent from my Nexus 5 using Tapatalk
D-FUSE said:
How have you been bro?
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
I'm good man... Work work work... Hope you are doing well my friend!
Thanks for this. Just recently switched both PCs to Manjaro xfce 15.12 and fell in love with it. Thanks for this up to date guide for installing an environment on it.
I myself just changed over to Manjaro. Thank you both for the simple guide on setting up my environment. This was way easier than have to bang my head against the wall to find all the packages....
Thanks again...
EDIT: Has anyone been able to build a bootable kernel from this? I cant seem to boot up.
The Sickness said:
I myself just changed over to Manjaro. Thank you both for the simple guide on setting up my environment. This was way easier than have to bang my head against the wall to find all the packages....
Thanks again...
EDIT: Has anyone been able to build a bootable kernel from this? I cant seem to boot up.
Click to expand...
Click to collapse
My kernel boots!!! #StayBroken I build hammerhead , fugu ,flo ,and flounder .
Sent from my Nexus 5 using Tapatalk
D-FUSE said:
My kernel boots!!! #StayBroken I build hammerhead , fugu ,flo ,and flounder .
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Im installing the gcc from AUR....gonna see if that solves the problem
The Sickness said:
Im installing the gcc from AUR....gonna see if that solves the problem
Click to expand...
Click to collapse
Are you having errors? Or will you're kernel not boot?
Sent from my Nexus 5 using Tapatalk
D-FUSE said:
Are you having errors? Or will you're kernel not boot?
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
No errors.....it gets stuck on the S6 logo....not splash screen.
Have tried both 4.8 and 4.9 toolchains.
The Sickness said:
No errors.....it gets stuck on the S6 logo....not splash screen.
Have tried both 4.8 and 4.9 toolchains.
Click to expand...
Click to collapse
That's yo problem! Samsung !!!!!
Sent from my Nexus 5 using Tapatalk
D-FUSE said:
That's yo problem! Samsung !!!!!
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Yeah, tell me about it. First build I had to fix a duplicate entry in firmware........
I will figure it out.......hopefully